2 # From configure.in Revision: 63955 .
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
726 HAVE_GETHOSTBYNAME_R_6_ARG
727 HAVE_GETHOSTBYNAME_R_5_ARG
728 HAVE_GETHOSTBYNAME_R_3_ARG
738 ac_precious_vars
='build_alias
749 # Initialize some variables set by options.
751 ac_init_version
=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
761 program_transform_name
=s
,x
,x
,
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir
='${exec_prefix}/bin'
776 sbindir
='${exec_prefix}/sbin'
777 libexecdir
='${exec_prefix}/libexec'
778 datarootdir
='${prefix}/share'
779 datadir
='${datarootdir}'
780 sysconfdir
='${prefix}/etc'
781 sharedstatedir
='${prefix}/com'
782 localstatedir
='${prefix}/var'
783 includedir
='${prefix}/include'
784 oldincludedir
='/usr/include'
785 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir
='${datarootdir}/info'
791 libdir
='${exec_prefix}/lib'
792 localedir
='${datarootdir}/locale'
793 mandir
='${datarootdir}/man'
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\
$ac_option
807 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
817 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
819 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
822 -build |
--build |
--buil |
--bui |
--bu)
823 ac_prev
=build_alias
;;
824 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
825 build_alias
=$ac_optarg ;;
827 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
828 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
829 ac_prev
=cache_file
;;
830 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
831 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
832 cache_file
=$ac_optarg ;;
835 cache_file
=config.cache
;;
837 -datadir |
--datadir |
--datadi |
--datad)
839 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
840 datadir
=$ac_optarg ;;
842 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
843 |
--dataroo |
--dataro |
--datar)
844 ac_prev
=datarootdir
;;
845 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
846 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
847 datarootdir
=$ac_optarg ;;
849 -disable-* |
--disable-*)
850 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_
$ac_feature=no
;;
858 -docdir |
--docdir |
--docdi |
--doc |
--do)
860 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
863 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
865 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
868 -enable-* |
--enable-*)
869 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_
$ac_feature=\
$ac_optarg ;;
877 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
878 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
879 |
--exec |
--exe |
--ex)
880 ac_prev
=exec_prefix
;;
881 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
882 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
883 |
--exec=* |
--exe=* |
--ex=*)
884 exec_prefix
=$ac_optarg ;;
886 -gas |
--gas |
--ga |
--g)
887 # Obsolete; use --with-gas.
890 -help |
--help |
--hel |
--he |
-h)
892 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
893 ac_init_help
=recursive
;;
894 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
895 ac_init_help
=short
;;
897 -host |
--host |
--hos |
--ho)
898 ac_prev
=host_alias
;;
899 -host=* |
--host=* |
--hos=* |
--ho=*)
900 host_alias
=$ac_optarg ;;
902 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
904 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
906 htmldir
=$ac_optarg ;;
908 -includedir |
--includedir |
--includedi |
--included |
--include \
909 |
--includ |
--inclu |
--incl |
--inc)
910 ac_prev
=includedir
;;
911 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
912 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
913 includedir
=$ac_optarg ;;
915 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
917 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
918 infodir
=$ac_optarg ;;
920 -libdir |
--libdir |
--libdi |
--libd)
922 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
925 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
926 |
--libexe |
--libex |
--libe)
927 ac_prev
=libexecdir
;;
928 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
929 |
--libexe=* |
--libex=* |
--libe=*)
930 libexecdir
=$ac_optarg ;;
932 -localedir |
--localedir |
--localedi |
--localed |
--locale)
934 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
935 localedir
=$ac_optarg ;;
937 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
938 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
939 ac_prev
=localstatedir
;;
940 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
941 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
942 localstatedir
=$ac_optarg ;;
944 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
946 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
950 # Obsolete; use --without-fp.
953 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
954 |
--no-cr |
--no-c |
-n)
957 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
958 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
961 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
962 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
963 |
--oldin |
--oldi |
--old |
--ol |
--o)
964 ac_prev
=oldincludedir
;;
965 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
966 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
967 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
968 oldincludedir
=$ac_optarg ;;
970 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
972 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
975 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
976 |
--program-pre |
--program-pr |
--program-p)
977 ac_prev
=program_prefix
;;
978 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
979 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
980 program_prefix
=$ac_optarg ;;
982 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
983 |
--program-suf |
--program-su |
--program-s)
984 ac_prev
=program_suffix
;;
985 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
986 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
987 program_suffix
=$ac_optarg ;;
989 -program-transform-name |
--program-transform-name \
990 |
--program-transform-nam |
--program-transform-na \
991 |
--program-transform-n |
--program-transform- \
992 |
--program-transform |
--program-transfor \
993 |
--program-transfo |
--program-transf \
994 |
--program-trans |
--program-tran \
995 |
--progr-tra |
--program-tr |
--program-t)
996 ac_prev
=program_transform_name
;;
997 -program-transform-name=* |
--program-transform-name=* \
998 |
--program-transform-nam=* |
--program-transform-na=* \
999 |
--program-transform-n=* |
--program-transform-=* \
1000 |
--program-transform=* |
--program-transfor=* \
1001 |
--program-transfo=* |
--program-transf=* \
1002 |
--program-trans=* |
--program-tran=* \
1003 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1004 program_transform_name
=$ac_optarg ;;
1006 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1008 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1009 pdfdir
=$ac_optarg ;;
1011 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1013 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1016 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1017 |
-silent |
--silent |
--silen |
--sile |
--sil)
1020 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1022 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1024 sbindir
=$ac_optarg ;;
1026 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1027 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1028 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1030 ac_prev
=sharedstatedir
;;
1031 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1032 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1033 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1035 sharedstatedir
=$ac_optarg ;;
1037 -site |
--site |
--sit)
1039 -site=* |
--site=* |
--sit=*)
1042 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1044 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1045 srcdir
=$ac_optarg ;;
1047 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1048 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1049 ac_prev
=sysconfdir
;;
1050 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1051 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1052 sysconfdir
=$ac_optarg ;;
1054 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1055 ac_prev
=target_alias
;;
1056 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1057 target_alias
=$ac_optarg ;;
1059 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1062 -version |
--version |
--versio |
--versi |
--vers |
-V)
1063 ac_init_version
=: ;;
1066 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_
$ac_package=\
$ac_optarg ;;
1074 -without-* |
--without-*)
1075 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_
$ac_package=no
;;
1084 # Obsolete; use --with-x.
1087 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1088 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1089 ac_prev
=x_includes
;;
1090 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1091 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1092 x_includes
=$ac_optarg ;;
1094 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1095 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1096 ac_prev
=x_libraries
;;
1097 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1098 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1099 x_libraries
=$ac_optarg ;;
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102 Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1107 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\
$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 if test -n "$ac_prev"; then
1127 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1132 # Be sure to have absolute directory names.
1133 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val
=\$
$ac_var
1140 [\\/$
]* | ?
:[\\/]* ) continue;;
1141 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1152 target
=$target_alias
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x
; then
1156 if test "x$build_alias" = x
; then
1157 cross_compiling
=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1166 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1168 test "$silent" = yes && exec 6>/dev
/null
1171 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di
=`ls -di .` &&
1173 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted
=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir
=`$as_dirname -- "$0" ||
1186 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1213 ac_srcdir_defaulted
=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1220 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1233 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 for ac_var
in $ac_precious_vars; do
1236 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1238 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1243 # Report the --help message.
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1249 \`configure' configures python 2.6 to adapt to many kinds of systems.
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1256 Defaults for the options are specified in brackets.
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1280 For better control, use the options below.
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive
) echo "Configuration of python 2.6:";;
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-universalsdk[=SDKDIR
]
1318 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1319 --enable-framework[=INSTALLDIR
]
1320 Build
(MacOSX|Darwin
) framework
1321 --enable-shared disable
/enable building shared python library
1322 --enable-profiling enable C-level code profiling
1323 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1324 --enable-ipv6 Enable ipv6
(with ipv4
) support
1325 --disable-ipv6 Disable ipv6 support
1326 --enable-unicode[=ucs
[24]]
1327 Enable Unicode
strings (default is
yes)
1330 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1331 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1332 --with-universal-archs=ARCH
1333 select architectures
for universal build
("32-bit",
1335 --with-framework-name=FRAMEWORK
1336 specify an alternate name of the framework built
1337 with
--enable-framework
1338 --without-gcc never use gcc
1339 --with-cxx-main=<compiler
>
1340 compile main
() and link python executable with C
++
1342 --with-suffix=.exe
set executable suffix
1343 --with-pydebug build with Py_DEBUG defined
1344 --with-libs='lib1 ...' link against additional libs
1345 --with-system-ffi build _ctypes module using an installed ffi library
1346 --with-signal-module disable
/enable signal module
1347 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1348 --with(out
)-threads[=DIRECTORY
]
1349 disable
/enable thread support
1350 --with(out
)-thread[=DIRECTORY
]
1351 deprecated
; use
--with(out
)-threads
1352 --with-pth use GNU pth threading libraries
1353 --with(out
)-doc-strings disable
/enable documentation
strings
1354 --with(out
)-tsc enable
/disable timestamp counter profile
1355 --with(out
)-pymalloc disable
/enable specialized mallocs
1356 --with-wctype-functions use wctype.h functions
1357 --with-fpectl enable SIGFPE catching
1358 --with-libm=STRING math library
1359 --with-libc=STRING C library
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1371 Use these variables to override the choices made by
`configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to <http://www.python.org/python-bugs>.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1435 python configure 2.6
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by python $as_me 2.6, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_must_keep_next=false
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 -* ) ac_must_keep_next=true ;;
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1569 eval ac_val=\$$ac_var
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1607 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 echo "$ac_var='\''$ac_val'\''"
1613 if test -n "$ac_subst_files"; then
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1631 if test -s confdefs.h; then
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1722 # Check that the precious variables saved in the cache have kept the same
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1733 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1737 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1744 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1745 echo "$as_me: former value
: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1747 echo "$as_me: current value
: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 if $ac_cache_corrupted; then
1764 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1765 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1766 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1767 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1768 { (exit 1); exit 1; }; }
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 ac_config_headers="$ac_config_headers pyconfig.h"
1811 # We don't use PACKAGE_ variables, and they cause conflicts
1812 # with other autoconf-based packages that include Python.h
1813 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1815 mv confdefs.h.new confdefs.h
1823 # The later defininition of _XOPEN_SOURCE disables certain features
1824 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1826 cat >>confdefs.h <<\_ACEOF
1827 #define _GNU_SOURCE 1
1831 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1832 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1835 cat >>confdefs.h <<\_ACEOF
1836 #define _NETBSD_SOURCE 1
1840 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1841 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1844 cat >>confdefs.h <<\_ACEOF
1845 #define __BSD_VISIBLE 1
1849 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1850 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1852 cat >>confdefs.h <<\_ACEOF
1853 #define _BSD_TYPES 1
1857 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1858 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1861 cat >>confdefs.h <<\_ACEOF
1862 #define _DARWIN_C_SOURCE 1
1867 define_xopen_source=yes
1869 # Arguments passed to configure.
1871 CONFIG_ARGS="$ac_configure_args"
1873 # Check whether --enable-universalsdk was given.
1874 if test "${enable_universalsdk+set}" = set; then
1875 enableval=$enable_universalsdk;
1878 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1884 enable_universalsdk=
1887 UNIVERSALSDK=$enableval
1894 enable_universalsdk=
1900 UNIVERSAL_ARCHS="32-bit"
1901 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1902 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1904 # Check whether --with-universal-archs was given.
1905 if test "${with_universal_archs+set}" = set; then
1906 withval=$with_universal_archs;
1907 { echo "$as_me:$LINENO: result: $withval" >&5
1908 echo "${ECHO_T}$withval" >&6; }
1909 UNIVERSAL_ARCHS="$withval"
1913 { echo "$as_me:$LINENO: result: 32-bit" >&5
1914 echo "${ECHO_T}32-bit" >&6; }
1922 # Check whether --with-framework-name was given.
1923 if test "${with_framework_name+set}" = set; then
1924 withval=$with_framework_name;
1925 PYTHONFRAMEWORK=${withval}
1926 PYTHONFRAMEWORKDIR=${withval}.framework
1927 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1931 PYTHONFRAMEWORK=Python
1932 PYTHONFRAMEWORKDIR=Python.framework
1933 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1937 # Check whether --enable-framework was given.
1938 if test "${enable_framework+set}" = set; then
1939 enableval=$enable_framework;
1942 enableval=/Library/Frameworks
1947 PYTHONFRAMEWORKDIR=no-framework
1948 PYTHONFRAMEWORKPREFIX=
1949 PYTHONFRAMEWORKINSTALLDIR=
1950 FRAMEWORKINSTALLFIRST=
1951 FRAMEWORKINSTALLLAST=
1952 FRAMEWORKALTINSTALLFIRST=
1953 FRAMEWORKALTINSTALLLAST=
1954 if test "x${prefix}" = "xNONE"; then
1955 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1957 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1962 PYTHONFRAMEWORKPREFIX=$enableval
1963 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1964 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1965 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1966 if test "$UNIVERSAL_ARCHS" = "all"
1968 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1970 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1973 if test "x${prefix}" = "xNONE" ; then
1974 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1976 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1978 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1980 # Add files for Mac specific code to the list of output
1982 ac_config_files="$ac_config_files Mac/Makefile"
1984 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1986 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1988 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1990 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1997 PYTHONFRAMEWORKDIR=no-framework
1998 PYTHONFRAMEWORKPREFIX=
1999 PYTHONFRAMEWORKINSTALLDIR=
2000 FRAMEWORKINSTALLFIRST=
2001 FRAMEWORKINSTALLLAST=
2002 FRAMEWORKALTINSTALLFIRST=
2003 FRAMEWORKALTINSTALLLAST=
2004 if test "x${prefix}" = "xNONE" ; then
2005 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2007 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2011 if test "$UNIVERSAL_ARCHS" = "all"
2013 FRAMEWORKINSTALLLAST=update4wayuniversal
2014 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2031 ## AC_HELP_STRING(--with-dyld,
2032 ## Use (OpenStep|Rhapsody) dynamic linker))
2034 # Set name for machine-dependent library files
2036 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2037 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2038 if test -z "$MACHDEP"
2040 ac_sys_system=`uname
-s`
2041 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2042 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2043 ac_sys_release=`uname
-v`
2045 ac_sys_release=`uname
-r`
2047 ac_md_system=`echo $ac_sys_system |
2048 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2049 ac_md_release=`echo $ac_sys_release |
2050 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2051 MACHDEP="$ac_md_system$ac_md_release"
2054 cygwin*) MACHDEP="cygwin";;
2055 darwin*) MACHDEP="darwin";;
2056 atheos*) MACHDEP="atheos";;
2057 irix646) MACHDEP="irix6";;
2058 '') MACHDEP="unknown";;
2062 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2063 # disable features if it is defined, without any means to access these
2064 # features as extensions. For these systems, we skip the definition of
2065 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2066 # some feature, make sure there is no alternative way to access this
2067 # feature. Also, when using wildcards, make sure you have verified the
2068 # need for not defining _XOPEN_SOURCE on all systems matching the
2069 # wildcard, and that the wildcard does not include future systems
2070 # (which may remove their limitations).
2071 case $ac_sys_system/$ac_sys_release in
2072 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2073 # even though select is a POSIX function. Reported by J. Ribbens.
2074 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2075 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2076 define_xopen_source=no
2077 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2078 # also defined. This can be overridden by defining _BSD_SOURCE
2079 # As this has a different meaning on Linux, only define it on OpenBSD
2081 cat >>confdefs.h <<\_ACEOF
2082 #define _BSD_SOURCE 1
2086 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2087 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2089 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2090 define_xopen_source=no;;
2091 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2092 # of union __?sigval. Reported by Stuart Bishop.
2094 define_xopen_source=no;;
2095 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2096 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2097 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2098 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2099 define_xopen_source=no;;
2100 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2101 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2103 define_xopen_source=no;;
2104 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2105 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2106 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2107 # This should hopefully be fixed in FreeBSD 4.9
2108 FreeBSD/4.8* | Darwin/6* )
2109 define_xopen_source=no;;
2110 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2111 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2112 # or has another value. By not (re)defining it, the defaults come in place.
2114 define_xopen_source=no;;
2116 if test `uname
-r` -eq 1; then
2117 define_xopen_source=no
2120 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2121 # disables platform specific features beyond repair.
2122 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2123 # has no effect, don't bother defining them
2125 define_xopen_source=no
2127 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2128 # defining NI_NUMERICHOST.
2130 define_xopen_source=no
2135 if test $define_xopen_source = yes
2137 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2138 # defined precisely as g++ defines it
2139 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2141 case $ac_sys_system/$ac_sys_release in
2142 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2144 cat >>confdefs.h <<\_ACEOF
2145 #define _XOPEN_SOURCE 500
2151 cat >>confdefs.h <<\_ACEOF
2152 #define _XOPEN_SOURCE 600
2158 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2159 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2160 # several APIs are not declared. Since this is also needed in some
2161 # cases for HP-UX, we define it globally.
2162 # except for Solaris 10, where it must not be defined,
2163 # as it implies XPG4.2
2164 case $ac_sys_system/$ac_sys_release in
2169 cat >>confdefs.h <<\_ACEOF
2170 #define _XOPEN_SOURCE_EXTENDED 1
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _POSIX_C_SOURCE 200112L
2185 # SGI compilers allow the specification of the both the ABI and the
2186 # ISA on the command line. Depending on the values of these switches,
2187 # different and often incompatable code will be generated.
2189 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2190 # thus supply support for various ABI/ISA combinations. The MACHDEP
2191 # variable is also adjusted.
2194 if test ! -z "$SGI_ABI"
2197 LDFLAGS="$SGI_ABI $LDFLAGS"
2198 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2200 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2201 echo "${ECHO_T}$MACHDEP" >&6; }
2203 # And add extra plat-mac for darwin
2206 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2207 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2208 if test -z "$EXTRAPLATDIR"
2212 EXTRAPLATDIR="\$(PLATMACDIRS)"
2213 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2221 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2222 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2224 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2225 # it may influence the way we can build extensions, so distutils
2229 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2230 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2232 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2233 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2234 ac_sys_machine=`uname
-m`
2235 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2236 echo "${ECHO_T}$ac_sys_machine" >&6; }
2238 # checks for alternative programs
2240 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2241 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2242 # just to get things to compile and link. Users are free to override OPT
2243 # when running configure or make. The build should not break if they do.
2244 # BASECFLAGS should generally not be messed with, however.
2246 # XXX shouldn't some/most/all of this code be merged with the stuff later
2247 # on that fiddles with OPT and BASECFLAGS?
2248 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2249 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2251 # Check whether --with-gcc was given.
2252 if test "${with_gcc+set}" = set; then
2260 without_gcc=$withval;;
2264 case $ac_sys_system in
2268 case $BE_HOST_CPU in
2272 BASECFLAGS="$BASECFLAGS -export pragma"
2274 LDFLAGS="$LDFLAGS -nodup"
2282 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2283 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2284 { (exit 1); exit 1; }; }
2287 AR="\$(srcdir)/Modules/ar_beos"
2297 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2298 echo "${ECHO_T}$without_gcc" >&6; }
2300 # If the user switches compilers, we can't believe the cache
2301 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2303 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2304 (it is also a good idea to do 'make clean' before compiling)" >&5
2305 echo "$as_me: error: cached CC is different -- throw away $cache_file
2306 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2307 { (exit 1); exit 1; }; }
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2354 if test -z "$ac_cv_prog_CC"; then
2356 # Extract the first word of "gcc", so it can be a program name with args.
2357 set dummy gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$ac_ct_CC"; then
2364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_ac_ct_CC="gcc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2384 if test -n "$ac_ct_CC"; then
2385 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2386 echo "${ECHO_T}$ac_ct_CC" >&6; }
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2392 if test "x$ac_ct_CC" = x; then
2395 case $cross_compiling:$ac_tool_warned in
2397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2398 whose name does not start with the host triplet. If you think this
2399 configuration is useful to you, please write to autoconf@gnu.org." >&5
2400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2401 whose name does not start with the host triplet. If you think this
2402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2403 ac_tool_warned=yes ;;
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}cc; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC="${ac_tool_prefix}cc"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 { echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6; }
2445 { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2452 if test -z "$CC"; then
2453 # Extract the first word of "cc", so it can be a program name with args.
2454 set dummy cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2472 ac_prog_rejected=yes
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 if test $ac_prog_rejected = yes; then
2484 # We found a bogon in the path, so make sure we never use it.
2485 set dummy $ac_cv_prog_CC
2487 if test $# != 0; then
2488 # We chose a different compiler from the bogus one.
2489 # However, it has the same basename, so the bogon will be chosen
2490 # first if we set CC to just the basename; use the full file name.
2492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2498 if test -n "$CC"; then
2499 { echo "$as_me:$LINENO: result: $CC" >&5
2500 echo "${ECHO_T}$CC" >&6; }
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2508 if test -z "$CC"; then
2509 if test -n "$ac_tool_prefix"; then
2510 for ac_prog in cl.exe
2512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$CC"; then
2541 { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2549 test -n "$CC" && break
2552 if test -z "$CC"; then
2554 for ac_prog in cl.exe
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$ac_ct_CC"; then
2564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_CC="$ac_prog"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584 if test -n "$ac_ct_CC"; then
2585 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2586 echo "${ECHO_T}$ac_ct_CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2593 test -n "$ac_ct_CC" && break
2596 if test "x$ac_ct_CC" = x; then
2599 case $cross_compiling:$ac_tool_warned in
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet. If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet. If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2617 See \`config.log
' for more details." >&5
2618 echo "$as_me: error: no acceptable C compiler found in \$PATH
2619 See \`config.log' for more details.
" >&2;}
2620 { (exit 1); exit 1; }; }
2622 # Provide some information about the compiler.
2623 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2624 ac_compiler=`set X $ac_compile; echo $2`
2625 { (ac_try="$ac_compiler --version >&5"
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_compiler --version >&5") 2>&5
2633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2634 (exit $ac_status); }
2635 { (ac_try="$ac_compiler -v >&5"
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compiler -v >&5") 2>&5
2643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2644 (exit $ac_status); }
2645 { (ac_try="$ac_compiler -V >&5"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compiler -V >&5") 2>&5
2653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2654 (exit $ac_status); }
2656 cat >conftest.$ac_ext <<_ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2671 ac_clean_files_save=$ac_clean_files
2672 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2673 # Try to create an executable without -o first, disregard a.out.
2674 # It will help us diagnose broken compilers, and finding out an intuition
2676 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2677 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2678 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2680 # List of possible output files, starting from the most likely.
2681 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2682 # only as a last resort. b.out is created by i960 compilers.
2683 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2685 # The IRIX 6 linker writes into existing files which may not be
2686 # executable, retaining their permissions. Remove them first so a
2687 # subsequent execution test works.
2689 for ac_file in $ac_files
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2693 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2698 if { (ac_try="$ac_link_default"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_link_default") 2>&5
2706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2707 (exit $ac_status); }; then
2708 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2709 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2710 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2711 # so that the user can short-circuit this test for compilers unknown to
2713 for ac_file in $ac_files ''
2715 test -f "$ac_file" || continue
2717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2720 # We found the default executable, but exeext='' is most
2724 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2726 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2728 # We set ac_cv_exeext here because the later test for it is not
2729 # safe: cross compilers may not add the suffix if given an `-o'
2730 # argument, so we may need to know it at that point already.
2731 # Even if this section looks crufty: it has the advantage of
2738 test "$ac_cv_exeext" = no && ac_cv_exeext=
2744 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2745 echo "${ECHO_T}$ac_file" >&6; }
2746 if test -z "$ac_file"; then
2747 echo "$as_me: failed program was
:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2750 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2751 See \
`config.log' for more details." >&5
2752 echo "$as_me: error: C compiler cannot create executables
2753 See \`config.log
' for more details." >&2;}
2754 { (exit 77); exit 77; }; }
2757 ac_exeext=$ac_cv_exeext
2759 # Check that the compiler produces executables we can run. If not, either
2760 # the compiler is broken, or we cross compile.
2761 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2762 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2763 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2764 # If not cross compiling, check that we can run a simple program.
2765 if test "$cross_compiling" != yes; then
2766 if { ac_try='.
/$ac_file'
2767 { (case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_try") 2>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2778 if test "$cross_compiling" = maybe; then
2781 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2782 If you meant to cross compile, use \`--host'.
2783 See \
`config.log' for more details." >&5
2784 echo "$as_me: error: cannot run C compiled programs.
2785 If you meant to cross compile, use \`--host'.
2786 See \`config.log' for more details.
" >&2;}
2787 { (exit 1); exit 1; }; }
2791 { echo "$as_me:$LINENO: result
: yes" >&5
2792 echo "${ECHO_T}yes" >&6; }
2794 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2795 ac_clean_files=$ac_clean_files_save
2796 # Check that the compiler produces executables we can run. If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2799 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2800 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2801 echo "${ECHO_T}$cross_compiling" >&6; }
2803 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2804 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2805 if { (ac_try="$ac_link"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link") 2>&5
2813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2816 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2817 # work properly (i.e., refer to `conftest.exe'), while it won't with
2819 for ac_file in conftest.exe conftest conftest.*; do
2820 test -f "$ac_file" || continue
2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2829 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2830 See \
`config.log' for more details." >&5
2831 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2832 See \`config.log
' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2836 rm -f conftest$ac_cv_exeext
2837 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2838 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2840 rm -f conftest.$ac_ext
2841 EXEEXT=$ac_cv_exeext
2843 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2844 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2845 if test "${ac_cv_objext+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2863 rm -f conftest.o conftest.obj
2864 if { (ac_try="$ac_compile"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compile") 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; then
2874 for ac_file in conftest.o conftest.obj conftest.*; do
2875 test -f "$ac_file" || continue;
2877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2878 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2883 echo "$as_me: failed program was:" >&5
2884 sed 's
/^
/|
/' conftest.$ac_ext >&5
2886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2887 See \`config.log' for more details.
" >&5
2888 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2889 See \
`config.log' for more details." >&2;}
2890 { (exit 1); exit 1; }; }
2893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2895 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2896 echo "${ECHO_T}$ac_cv_objext" >&6; }
2897 OBJEXT=$ac_cv_objext
2899 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2900 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2901 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2922 rm -f conftest.$ac_objext
2923 if { (ac_try="$ac_compile"
2925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2926 *) ac_try_echo
=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_compile") 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } && {
2936 test -z "$ac_c_werror_flag" ||
2937 test ! -s conftest.err
2938 } && test -s conftest.
$ac_objext; then
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.
$ac_ext >&5
2947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2948 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2951 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2953 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2954 ac_test_CFLAGS
=${CFLAGS+set}
2955 ac_save_CFLAGS
=$CFLAGS
2956 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2957 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2958 if test "${ac_cv_prog_cc_g+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 ac_save_c_werror_flag
=$ac_c_werror_flag
2962 ac_c_werror_flag
=yes
2965 cat >conftest.
$ac_ext <<_ACEOF
2968 cat confdefs.h
>>conftest.
$ac_ext
2969 cat >>conftest.
$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2980 rm -f conftest.
$ac_objext
2981 if { (ac_try
="$ac_compile"
2983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3022 *) ac_try_echo
=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1
>conftest.err
3029 cat conftest.err
>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest.
$ac_objext; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.
$ac_ext >&5
3040 ac_c_werror_flag
=$ac_save_c_werror_flag
3042 cat >conftest.
$ac_ext <<_ACEOF
3045 cat confdefs.h
>>conftest.
$ac_ext
3046 cat >>conftest.
$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.
$ac_objext
3058 if { (ac_try
="$ac_compile"
3060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && {
3071 test -z "$ac_c_werror_flag" ||
3072 test ! -s conftest.err
3073 } && test -s conftest.$ac_objext; then
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_c_werror_flag=$ac_save_c_werror_flag
3091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3092 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3093 if test "$ac_test_CFLAGS" = set; then
3094 CFLAGS=$ac_save_CFLAGS
3095 elif test $ac_cv_prog_cc_g = yes; then
3096 if test "$GCC" = yes; then
3102 if test "$GCC" = yes; then
3108 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3109 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3110 if test "${ac_cv_prog_cc_c89+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 ac_cv_prog_cc_c89=no
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3123 #include <sys/types.h>
3124 #include <sys/stat.h>
3125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3126 struct buf { int x; };
3127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3128 static char *e (p, i)
3134 static char *f (char * (*g) (char **, int), char **p, ...)
3139 s = g (p, va_arg (v,int));
3144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3145 function prototypes and stuff, but not '\xHH' hex character constants.
3146 These don't provoke an error unfortunately, instead are silently treated
3147 as 'x'. The following induces an error, until -std is added to get
3148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3149 array size at least. It's necessary to write '\x00'==0 to get something
3150 that's true only with -std. */
3151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3154 inside strings and character constants. */
3156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3158 int test (int i, double x);
3159 struct s1 {int (*f) (int a);};
3160 struct s2 {int (*f) (double a);};
3161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3175 CC="$ac_save_CC $ac_arg"
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3180 *) ac_try_echo
=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1
>conftest.err
3187 cat conftest.err
>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.
$ac_objext; then
3193 ac_cv_prog_cc_c89
=$ac_arg
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.
$ac_ext >&5
3201 rm -f core conftest.err conftest.
$ac_objext
3202 test "x$ac_cv_prog_cc_c89" != "xno" && break
3204 rm -f conftest.
$ac_ext
3209 case "x$ac_cv_prog_cc_c89" in
3211 { echo "$as_me:$LINENO: result: none needed" >&5
3212 echo "${ECHO_T}none needed" >&6; } ;;
3214 { echo "$as_me:$LINENO: result: unsupported" >&5
3215 echo "${ECHO_T}unsupported" >&6; } ;;
3217 CC
="$CC $ac_cv_prog_cc_c89"
3218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3224 ac_cpp
='$CPP $CPPFLAGS'
3225 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3232 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3233 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3235 # Check whether --with-cxx_main was given.
3236 if test "${with_cxx_main+set}" = set; then
3237 withval
=$with_cxx_main;
3240 no
) with_cxx_main
=no
3242 yes) with_cxx_main
=yes
3244 *) with_cxx_main
=yes
3258 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3259 echo "${ECHO_T}$with_cxx_main" >&6; }
3265 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3266 set dummy g
++; ac_word
=$2
3267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3269 if test "${ac_cv_path_CXX+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3278 for as_dir
in notfound
3281 test -z "$as_dir" && as_dir
=.
3282 for ac_exec_ext
in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3297 if test -n "$CXX"; then
3298 { echo "$as_me:$LINENO: result: $CXX" >&5
3299 echo "${ECHO_T}$CXX" >&6; }
3301 { echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6; }
3306 cc
) # Extract the first word of "c++", so it can be a program name with args.
3307 set dummy c
++; ac_word
=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_path_CXX+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3319 for as_dir
in notfound
3322 test -z "$as_dir" && as_dir
=.
3323 for ac_exec_ext
in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3338 if test -n "$CXX"; then
3339 { echo "$as_me:$LINENO: result: $CXX" >&5
3340 echo "${ECHO_T}$CXX" >&6; }
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3348 if test "$CXX" = "notfound"
3355 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy
$ac_prog; ac_word
=$2
3359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_CXX+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 if test -n "$CXX"; then
3365 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir
=.
3372 for ac_exec_ext
in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374 ac_cv_prog_CXX
="$ac_prog"
3375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 if test -n "$CXX"; then
3386 { echo "$as_me:$LINENO: result: $CXX" >&5
3387 echo "${ECHO_T}$CXX" >&6; }
3389 { echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6; }
3394 test -n "$CXX" && break
3396 test -n "$CXX" || CXX
="notfound"
3398 if test "$CXX" = "notfound"
3403 if test "$preset_cxx" != "$CXX"
3405 { echo "$as_me:$LINENO: WARNING:
3407 By default, distutils will build C++ extension modules with \"$CXX\".
3408 If this is not intended, then set CXX on the configure command line.
3410 echo "$as_me: WARNING:
3412 By default, distutils will build C++ extension modules with \"$CXX\".
3413 If this is not intended, then set CXX on the configure command line.
3418 # checks for UNIX variants that set C preprocessor variables
3421 ac_cpp
='$CPP $CPPFLAGS'
3422 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3425 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3426 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3427 # On Suns, sometimes $CPP names a directory.
3428 if test -n "$CPP" && test -d "$CPP"; then
3431 if test -z "$CPP"; then
3432 if test "${ac_cv_prog_CPP+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 # Double quotes because CPP needs to be expanded
3436 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3439 for ac_c_preproc_warn_flag
in '' yes
3441 # Use a header file that comes with gcc, so configuring glibc
3442 # with a fresh cross-compiler works.
3443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3444 # <limits.h> exists even on freestanding compilers.
3445 # On the NeXT, cc -E runs the code through the compiler's parser,
3446 # not just through cpp. "Syntax error" is here to catch this case.
3447 cat >conftest.
$ac_ext <<_ACEOF
3450 cat confdefs.h
>>conftest.
$ac_ext
3451 cat >>conftest.
$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3454 # include <limits.h>
3456 # include <assert.h>
3460 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null && {
3473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 # Broken: fails on valid input.
3485 rm -f conftest.err conftest.$ac_ext
3487 # OK, works on sane cases. Now check whether nonexistent headers
3488 # can be detected and how.
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <ac_nonexistent.h>
3497 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3500 *) ac_try_echo
=$ac_try;;
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505 grep -v '^ *+' conftest.er1
>conftest.err
3507 cat conftest.err
>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev
/null
&& {
3510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3513 # Broken: success on invalid input.
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.
$ac_ext >&5
3519 # Passes both tests.
3524 rm -f conftest.err conftest.
$ac_ext
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.
$ac_ext
3529 if $ac_preproc_ok; then
3541 { echo "$as_me:$LINENO: result: $CPP" >&5
3542 echo "${ECHO_T}$CPP" >&6; }
3544 for ac_c_preproc_warn_flag
in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.
$ac_ext <<_ACEOF
3555 cat confdefs.h
>>conftest.
$ac_ext
3556 cat >>conftest.
$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3559 # include <limits.h>
3561 # include <assert.h>
3565 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null && {
3578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 # Broken: fails on valid input.
3590 rm -f conftest.err conftest.$ac_ext
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <ac_nonexistent.h>
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3605 *) ac_try_echo
=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1
>conftest.err
3612 cat conftest.err
>&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } >/dev
/null
&& {
3615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3618 # Broken: success on invalid input.
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.
$ac_ext >&5
3624 # Passes both tests.
3629 rm -f conftest.err conftest.
$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.
$ac_ext
3634 if $ac_preproc_ok; then
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3645 ac_cpp
='$CPP $CPPFLAGS'
3646 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy
grep ggrep
; ac_prog_name
=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_path_GREP_found
=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3665 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3668 test -z "$as_dir" && as_dir
=.
3669 for ac_prog
in grep ggrep
; do
3670 for ac_exec_ext
in '' $ac_executable_extensions; do
3671 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3677 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3688 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3689 ac_count
=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP
="$ac_path_GREP"
3693 ac_path_GREP_max
=$ac_count
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3698 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3702 $ac_path_GREP_found && break 3
3712 GREP
="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3720 ac_cv_path_GREP
=$GREP
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP
="$ac_cv_path_GREP"
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3736 then ac_cv_path_EGREP
="$GREP -E"
3738 # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy
egrep; ac_prog_name
=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 ac_path_EGREP_found
=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3747 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3750 test -z "$as_dir" && as_dir
=.
3751 for ac_prog
in egrep; do
3752 for ac_exec_ext
in '' $ac_executable_extensions; do
3753 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3759 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3770 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3771 ac_count
=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP
="$ac_path_EGREP"
3775 ac_path_EGREP_max
=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3780 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3784 $ac_path_EGREP_found && break 3
3794 EGREP
="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3802 ac_cv_path_EGREP
=$EGREP
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP
="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for AIX" >&5
3815 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3816 cat >conftest.
$ac_ext <<_ACEOF
3819 cat confdefs.h
>>conftest.
$ac_ext
3820 cat >>conftest.
$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3828 $EGREP "yes" >/dev
/null
2>&1; then
3829 { echo "$as_me:$LINENO: result: yes" >&5
3830 echo "${ECHO_T}yes" >&6; }
3831 cat >>confdefs.h
<<\_ACEOF
3832 #define _ALL_SOURCE 1
3836 { echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6; }
3843 # Check for unsupported systems
3844 case $ac_sys_system/$ac_sys_release in
3846 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3847 echo See README
for details.
3852 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3853 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3855 # Check whether --with-suffix was given.
3856 if test "${with_suffix+set}" = set; then
3857 withval
=$with_suffix;
3861 *) EXEEXT
=$withval;;
3865 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3866 echo "${ECHO_T}$EXEEXT" >&6; }
3868 # Test whether we're running on a non-case-sensitive system, in which
3869 # case we give a warning if no ext is given
3871 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3872 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3873 if test ! -d CaseSensitiveTestDir
; then
3874 mkdir CaseSensitiveTestDir
3877 if test -d casesensitivetestdir
3879 { echo "$as_me:$LINENO: result: yes" >&5
3880 echo "${ECHO_T}yes" >&6; }
3883 { echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6; }
3887 rmdir CaseSensitiveTestDir
3892 gcc
) CC
="$CC -D_HAVE_BSDI";;
3896 case $ac_sys_system in
3899 cc|
*/cc
) CC
="$CC -Ae";;
3903 cc
) CC
="$CC -Wl,-Bexport";;
3906 # Some functions have a prototype only with that define, e.g. confstr
3908 cat >>confdefs.h
<<\_ACEOF
3909 #define __EXTENSIONS__ 1
3917 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3918 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3919 if test -z "$LIBRARY"
3921 LIBRARY
='libpython$(VERSION).a'
3923 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3924 echo "${ECHO_T}$LIBRARY" >&6; }
3926 # LDLIBRARY is the name of the library to link against (as opposed to the
3927 # name of the library into which to insert object files). BLDLIBRARY is also
3928 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3929 # is blank as the main program is not linked directly against LDLIBRARY.
3930 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3931 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3932 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3933 # DLLLIBRARY is the shared (i.e., DLL) library.
3935 # RUNSHARED is used to run shared python without installed libraries
3937 # INSTSONAME is the name of the shared library that will be use to install
3938 # on the system - some systems like version suffix, others don't
3945 LDLIBRARY
="$LIBRARY"
3946 BLDLIBRARY
='$(LDLIBRARY)'
3947 INSTSONAME
='$(LDLIBRARY)'
3952 # LINKCC is the command that links the python executable -- default is $(CC).
3953 # If CXX is set, and if it is needed to link a main function that was
3954 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3955 # python might then depend on the C++ runtime
3956 # This is altered for AIX in order to build the export list before
3959 { echo "$as_me:$LINENO: checking LINKCC" >&5
3960 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3961 if test -z "$LINKCC"
3963 LINKCC
='$(PURIFY) $(MAINCC)'
3964 case $ac_sys_system in
3967 if test $ac_sys_release -ge 5 -o \
3968 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3971 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3973 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3975 # qcc must be used because the other compilers do not
3980 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3981 echo "${ECHO_T}$LINKCC" >&6; }
3983 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3984 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3985 # Check whether --enable-shared was given.
3986 if test "${enable_shared+set}" = set; then
3987 enableval
=$enable_shared;
3991 if test -z "$enable_shared"
3993 case $ac_sys_system in
3995 enable_shared
="yes";;
3997 enable_shared
="no";;
4000 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4001 echo "${ECHO_T}$enable_shared" >&6; }
4003 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4004 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4005 # Check whether --enable-profiling was given.
4006 if test "${enable_profiling+set}" = set; then
4007 enableval
=$enable_profiling; ac_save_cc
="$CC"
4009 if test "$cross_compiling" = yes; then
4010 ac_enable_profiling
="no"
4012 cat >conftest.
$ac_ext <<_ACEOF
4015 cat confdefs.h
>>conftest.
$ac_ext
4016 cat >>conftest.
$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 int main() { return 0; }
4020 rm -f conftest
$ac_exeext
4021 if { (ac_try
="$ac_link"
4023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_link") 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4031 { (case "(($ac_try" in
4032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4033 *) ac_try_echo
=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_try") 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_enable_profiling
="yes"
4042 echo "$as_me: program exited with status $ac_status" >&5
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.
$ac_ext >&5
4047 ac_enable_profiling
="no"
4049 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4056 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4057 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4059 case "$ac_enable_profiling" in
4061 BASECFLAGS
="-pg $BASECFLAGS"
4062 LDFLAGS
="-pg $LDFLAGS"
4066 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4067 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4069 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4070 # library that we build, but we do not want to link against it (we
4071 # will find it with a -framework option). For this reason there is an
4072 # extra variable BLDLIBRARY against which Python and the extension
4073 # modules are linked, BLDLIBRARY. This is normally the same as
4074 # LDLIBRARY, but empty for MacOSX framework builds.
4075 if test "$enable_framework"
4077 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4078 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4081 BLDLIBRARY
='$(LDLIBRARY)'
4084 # Other platforms follow
4085 if test $enable_shared = "yes"; then
4087 cat >>confdefs.h
<<\_ACEOF
4088 #define Py_ENABLE_SHARED 1
4091 case $ac_sys_system in
4093 LDLIBRARY
='libpython$(VERSION).so'
4096 LDLIBRARY
='libpython$(VERSION).dll.a'
4097 DLLLIBRARY
='libpython$(VERSION).dll'
4100 LDLIBRARY
='libpython$(VERSION).so'
4101 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4102 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4103 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4105 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4106 LDLIBRARY
='libpython$(VERSION).so'
4107 BLDLIBRARY
='-L. -lpython$(VERSION)'
4108 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4109 case $ac_sys_system in
4111 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4114 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4119 LDLIBRARY
='libpython$(VERSION).so'
4122 LDLIBRARY
='libpython$(VERSION).sl'
4125 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4126 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4129 LDLIBRARY
='libpython$(VERSION).so'
4130 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4131 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4134 LDLIBRARY
='libpython$(VERSION).so'
4135 BLDLIBRARY
='-L. -lpython$(VERSION)'
4136 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4139 else # shared is disabled
4140 case $ac_sys_system in
4142 BLDLIBRARY
='$(LIBRARY)'
4143 LDLIBRARY
='libpython$(VERSION).dll.a'
4148 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4149 echo "${ECHO_T}$LDLIBRARY" >&6; }
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4153 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4156 if test "${ac_cv_prog_RANLIB+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$RANLIB"; then
4160 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir
=.
4167 for ac_exec_ext
in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 RANLIB
=$ac_cv_prog_RANLIB
4180 if test -n "$RANLIB"; then
4181 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4182 echo "${ECHO_T}$RANLIB" >&6; }
4184 { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4190 if test -z "$ac_cv_prog_RANLIB"; then
4191 ac_ct_RANLIB
=$RANLIB
4192 # Extract the first word of "ranlib", so it can be a program name with args.
4193 set dummy ranlib
; ac_word
=$2
4194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 if test -n "$ac_ct_RANLIB"; then
4200 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir
=.
4207 for ac_exec_ext
in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4220 if test -n "$ac_ct_RANLIB"; then
4221 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4222 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4224 { echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6; }
4228 if test "x$ac_ct_RANLIB" = x
; then
4231 case $cross_compiling:$ac_tool_warned in
4233 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4234 whose name does not start with the host triplet. If you think this
4235 configuration is useful to you, please write to autoconf@gnu.org." >&5
4236 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4237 whose name does not start with the host triplet. If you think this
4238 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4239 ac_tool_warned
=yes ;;
4241 RANLIB
=$ac_ct_RANLIB
4244 RANLIB
="$ac_cv_prog_RANLIB"
4248 for ac_prog
in ar aal
4250 # Extract the first word of "$ac_prog", so it can be a program name with args.
4251 set dummy
$ac_prog; ac_word
=$2
4252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4254 if test "${ac_cv_prog_AR+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test -n "$AR"; then
4258 ac_cv_prog_AR
="$AR" # Let the user override the test.
4260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir
=.
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 ac_cv_prog_AR
="$ac_prog"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 if test -n "$AR"; then
4279 { echo "$as_me:$LINENO: result: $AR" >&5
4280 echo "${ECHO_T}$AR" >&6; }
4282 { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4287 test -n "$AR" && break
4289 test -n "$AR" || AR
="ar"
4293 # Extract the first word of "svnversion", so it can be a program name with args.
4294 set dummy svnversion
; ac_word
=$2
4295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$SVNVERSION"; then
4301 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir
=.
4308 for ac_exec_ext
in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_SVNVERSION
="found"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4321 SVNVERSION
=$ac_cv_prog_SVNVERSION
4322 if test -n "$SVNVERSION"; then
4323 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4324 echo "${ECHO_T}$SVNVERSION" >&6; }
4326 { echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6; }
4331 if test $SVNVERSION = found
4333 SVNVERSION
="svnversion \$(srcdir)"
4335 SVNVERSION
="echo exported"
4340 # install -d does not work on BSDI or HP-UX
4341 if test -z "$INSTALL"
4343 INSTALL
="${srcdir}/install-sh -c"
4347 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4348 if test -f "$ac_dir/install-sh"; then
4350 ac_install_sh
="$ac_aux_dir/install-sh -c"
4352 elif test -f "$ac_dir/install.sh"; then
4354 ac_install_sh
="$ac_aux_dir/install.sh -c"
4356 elif test -f "$ac_dir/shtool"; then
4358 ac_install_sh
="$ac_aux_dir/shtool install -c"
4362 if test -z "$ac_aux_dir"; then
4363 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4364 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4365 { (exit 1); exit 1; }; }
4368 # These three variables are undocumented and unsupported,
4369 # and are intended to be withdrawn in a future Autoconf release.
4370 # They can cause serious problems if a builder's source tree is in a directory
4371 # whose full name contains unusual characters.
4372 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4373 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4374 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4377 # Find a good install program. We prefer a C program (faster),
4378 # so one script is as good as another. But avoid the broken or
4379 # incompatible versions:
4380 # SysV /etc/install, /usr/sbin/install
4381 # SunOS /usr/etc/install
4382 # IRIX /sbin/install
4384 # AmigaOS /C/install, which installs bootblocks on floppy discs
4385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4388 # OS/2's system install, which has a completely different semantic
4389 # ./install, which can be erroneously created by make from ./install.sh.
4390 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4391 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4392 if test -z "$INSTALL"; then
4393 if test "${ac_cv_path_install+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir
=.
4401 # Account for people who put trailing slashes in PATH elements.
4403 .
/ | .
// |
/cC
/* | \
4404 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4405 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4408 # OSF1 and SCO ODT 3.0 have their own names for install.
4409 # Don't use installbsd from OSF since it installs stuff as root
4411 for ac_prog
in ginstall scoinst
install; do
4412 for ac_exec_ext
in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4414 if test $ac_prog = install &&
4415 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4416 # AIX install. It has an incompatible calling convention.
4418 elif test $ac_prog = install &&
4419 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4420 # program-specific install script used by HP pwplus--don't use.
4423 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4436 if test "${ac_cv_path_install+set}" = set; then
4437 INSTALL
=$ac_cv_path_install
4439 # As a last resort, use the slow shell script. Don't cache a
4440 # value for INSTALL within a source directory, because that will
4441 # break other packages using the cache if that directory is
4442 # removed, or if the value is a relative name.
4443 INSTALL
=$ac_install_sh
4446 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4447 echo "${ECHO_T}$INSTALL" >&6; }
4449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4450 # It thinks the first close brace ends the variable substitution.
4451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4455 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4458 # Not every filesystem supports hard links
4460 if test -z "$LN" ; then
4461 case $ac_sys_system in
4463 CYGWIN
*) LN
="ln -s";;
4464 atheos
*) LN
="ln -s";;
4469 # Check for --with-pydebug
4470 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4471 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4473 # Check whether --with-pydebug was given.
4474 if test "${with_pydebug+set}" = set; then
4475 withval
=$with_pydebug;
4476 if test "$withval" != no
4479 cat >>confdefs.h
<<\_ACEOF
4483 { echo "$as_me:$LINENO: result: yes" >&5
4484 echo "${ECHO_T}yes" >&6; };
4486 else { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4495 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4496 # merged with this chunk of code?
4498 # Optimizer/debugger flags
4499 # ------------------------
4500 # (The following bit of code is complicated enough - please keep things
4501 # indented properly. Just pretend you're editing Python code. ;-)
4503 # There are two parallel sets of case statements below, one that checks to
4504 # see if OPT was set and one that does BASECFLAGS setting based upon
4505 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4508 # tweak OPT based on compiler and platform, only if the user didn't set
4509 # it on the command line
4515 if test "$CC" != 'g++' ; then
4516 STRICT_PROTO
="-Wstrict-prototypes"
4518 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4519 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4522 case $ac_cv_prog_cc_g in
4524 if test "$Py_DEBUG" = 'true' ; then
4525 # Optimization messes up debuggers, so turn it off for
4527 OPT
="-g -Wall $STRICT_PROTO"
4529 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4533 OPT
="-O3 -Wall $STRICT_PROTO"
4536 case $ac_sys_system in
4537 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4547 # The current (beta) Monterey compiler dies with optimizations
4548 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4549 case $ac_sys_system in
4559 # The -arch flags for universal builds on OSX
4560 UNIVERSAL_ARCH_FLAGS
=
4563 # tweak BASECFLAGS based on compiler and platform
4566 # Python violates C99 rules, by casting between incompatible
4567 # pointer types. GCC may generate bad code as a result of that,
4568 # so use -fno-strict-aliasing if supported.
4569 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4570 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4572 CC
="$CC -fno-strict-aliasing"
4573 if test "$cross_compiling" = yes; then
4574 ac_cv_no_strict_aliasing_ok
=no
4576 cat >conftest.
$ac_ext <<_ACEOF
4579 cat confdefs.h
>>conftest.
$ac_ext
4580 cat >>conftest.
$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 int main() { return 0; }
4584 rm -f conftest
$ac_exeext
4585 if { (ac_try
="$ac_link"
4587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_link") 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4597 *) ac_try_echo
=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_try") 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_no_strict_aliasing_ok
=yes
4606 echo "$as_me: program exited with status $ac_status" >&5
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.
$ac_ext >&5
4611 ac_cv_no_strict_aliasing_ok
=no
4613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4618 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4619 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4620 if test $ac_cv_no_strict_aliasing_ok = yes
4622 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4625 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4626 # support. Without this, treatment of subnormals doesn't follow
4628 case $ac_sys_machine in
4630 BASECFLAGS
="$BASECFLAGS -mieee"
4634 case $ac_sys_system in
4636 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4638 # is there any other compiler on Darwin besides gcc?
4640 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4641 # used to be here, but non-Apple gcc doesn't accept them.
4642 if test "${enable_universalsdk}"; then
4643 UNIVERSAL_ARCH_FLAGS
=""
4644 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4645 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4647 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4648 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4650 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4651 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4654 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4655 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4656 { (exit 1); exit 1; }; }
4661 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4662 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4667 BASECFLAGS
="$BASECFLAGS -mieee"
4673 case $ac_sys_system in
4674 OpenUNIX
*|UnixWare
*)
4675 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4678 BASECFLAGS
="$BASECFLAGS -ieee -std"
4681 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4687 if test "$Py_DEBUG" = 'true'; then
4693 if test "$ac_arch_flags"
4695 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4698 # disable check for icc since it seems to pass, but generates a warning
4701 ac_cv_opt_olimit_ok
=no
4704 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4705 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4706 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 CC
="$CC -OPT:Olimit=0"
4711 if test "$cross_compiling" = yes; then
4712 ac_cv_opt_olimit_ok
=no
4714 cat >conftest.
$ac_ext <<_ACEOF
4717 cat confdefs.h
>>conftest.
$ac_ext
4718 cat >>conftest.
$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 int main() { return 0; }
4722 rm -f conftest
$ac_exeext
4723 if { (ac_try
="$ac_link"
4725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_link") 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4733 { (case "(($ac_try" in
4734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4735 *) ac_try_echo
=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_try") 2>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_opt_olimit_ok
=yes
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4749 ac_cv_opt_olimit_ok
=no
4751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4758 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4759 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4760 if test $ac_cv_opt_olimit_ok = yes; then
4761 case $ac_sys_system in
4762 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4763 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4768 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4772 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4773 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4774 if test "${ac_cv_olimit_ok+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 CC
="$CC -Olimit 1500"
4779 if test "$cross_compiling" = yes; then
4782 cat >conftest.
$ac_ext <<_ACEOF
4785 cat confdefs.h
>>conftest.
$ac_ext
4786 cat >>conftest.
$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 int main() { return 0; }
4790 rm -f conftest
$ac_exeext
4791 if { (ac_try
="$ac_link"
4793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797 (eval "$ac_link") 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4801 { (case "(($ac_try" in
4802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4803 *) ac_try_echo
=$ac_try;;
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_try") 2>&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: program exited with status $ac_status" >&5
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.
$ac_ext >&5
4819 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4826 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4827 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4828 if test $ac_cv_olimit_ok = yes; then
4829 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4833 # Check whether GCC supports PyArg_ParseTuple format
4834 if test "$GCC" = "yes"
4836 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4837 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4839 CFLAGS
="$CFLAGS -Werror"
4840 cat >conftest.
$ac_ext <<_ACEOF
4843 cat confdefs.h
>>conftest.
$ac_ext
4844 cat >>conftest.
$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4847 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4857 rm -f conftest.
$ac_objext
4858 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
4866 grep -v '^ *+' conftest.er1 >conftest.err
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && {
4871 test -z "$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4873 } && test -s conftest.$ac_objext; then
4875 cat >>confdefs.h <<\_ACEOF
4876 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4879 { echo "$as_me:$LINENO: result: yes" >&5
4880 echo "${ECHO_T}yes" >&6; }
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 # On some compilers, pthreads are available without further options
4895 # (e.g. MacOS X). On some of these systems, the compiler will not
4896 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4897 # So we have to see first whether pthreads are available without
4898 # options before we can check whether -Kpthread improves anything.
4899 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4900 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4901 if test "${ac_cv_pthread_is_default+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 if test "$cross_compiling" = yes; then
4905 ac_cv_pthread_is_default=no
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4914 #include <pthread.h>
4916 void* routine(void* p){return NULL;}
4920 if(pthread_create(&p,NULL,routine,NULL)!=0)
4922 (void)pthread_detach(p);
4927 rm -f conftest$ac_exeext
4928 if { (ac_try="$ac_link"
4930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4931 *) ac_try_echo
=$ac_try;;
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_link") 2>&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4938 { (case "(($ac_try" in
4939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4948 ac_cv_pthread_is_default=yes
4953 echo "$as_me: program exited with status $ac_status" >&5
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4958 ac_cv_pthread_is_default=no
4960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4967 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4968 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4971 if test $ac_cv_pthread_is_default = yes
4975 # -Kpthread, if available, provides the right #defines
4976 # and linker options to make pthread_create available
4977 # Some compilers won't report that they do not support -Kpthread,
4978 # so we need to run a program to see whether it really made the
4979 # function available.
4980 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4981 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4982 if test "${ac_cv_kpthread+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 if test "$cross_compiling" = yes; then
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 #include <pthread.h>
4999 void* routine(void* p){return NULL;}
5003 if(pthread_create(&p,NULL,routine,NULL)!=0)
5005 (void)pthread_detach(p);
5010 rm -f conftest$ac_exeext
5011 if { (ac_try="$ac_link"
5013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5014 *) ac_try_echo
=$ac_try;;
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_link") 2>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5021 { (case "(($ac_try" in
5022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_try") 2>&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5032 echo "$as_me: program exited with status $ac_status" >&5
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5046 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5047 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5050 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5052 # -Kthread, if available, provides the right #defines
5053 # and linker options to make pthread_create available
5054 # Some compilers won't report that they do not support -Kthread,
5055 # so we need to run a program to see whether it really made the
5056 # function available.
5057 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5058 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5059 if test "${ac_cv_kthread+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 if test "$cross_compiling" = yes; then
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5074 #include <pthread.h>
5076 void* routine(void* p){return NULL;}
5080 if(pthread_create(&p,NULL,routine,NULL)!=0)
5082 (void)pthread_detach(p);
5087 rm -f conftest$ac_exeext
5088 if { (ac_try="$ac_link"
5090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5091 *) ac_try_echo
=$ac_try;;
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_link") 2>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5098 { (case "(($ac_try" in
5099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_try") 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5109 echo "$as_me: program exited with status $ac_status" >&5
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5123 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5124 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5127 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5129 # -pthread, if available, provides the right #defines
5130 # and linker options to make pthread_create available
5131 # Some compilers won't report that they do not support -pthread,
5132 # so we need to run a program to see whether it really made the
5133 # function available.
5134 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5135 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5136 if test "${ac_cv_thread+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 if test "$cross_compiling" = yes; then
5144 cat >conftest.$ac_ext <<_ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5151 #include <pthread.h>
5153 void* routine(void* p){return NULL;}
5157 if(pthread_create(&p,NULL,routine,NULL)!=0)
5159 (void)pthread_detach(p);
5164 rm -f conftest$ac_exeext
5165 if { (ac_try="$ac_link"
5167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5168 *) ac_try_echo
=$ac_try;;
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_link") 2>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5175 { (case "(($ac_try" in
5176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_try") 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5186 echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5200 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5201 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5204 # If we have set a CC compiler flag for thread support then
5205 # check if it works for CXX, too.
5209 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5210 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5213 if test "$ac_cv_kpthread" = "yes"
5215 CXX="$CXX -Kpthread"
5216 ac_cv_cxx_thread=yes
5217 elif test "$ac_cv_kthread" = "yes"
5220 ac_cv_cxx_thread=yes
5221 elif test "$ac_cv_pthread" = "yes"
5224 ac_cv_cxx_thread=yes
5227 if test $ac_cv_cxx_thread = yes
5229 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5230 $CXX -c conftest.$ac_ext 2>&5
5231 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5232 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5234 ac_cv_cxx_thread=yes
5240 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5241 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5246 # checks for header files
5247 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5248 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5249 if test "${ac_cv_header_stdc+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 cat >conftest.$ac_ext <<_ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5271 rm -f conftest.$ac_objext
5272 if { (ac_try="$ac_compile"
5274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5275 *) ac_try_echo
=$ac_try;;
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_compile") 2>conftest.er1
5280 grep -v '^ *+' conftest.er1
>conftest.err
5282 cat conftest.err
>&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } && {
5285 test -z "$ac_c_werror_flag" ||
5286 test ! -s conftest.err
5287 } && test -s conftest.
$ac_objext; then
5288 ac_cv_header_stdc
=yes
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.
$ac_ext >&5
5293 ac_cv_header_stdc
=no
5296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5298 if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat >conftest.
$ac_ext <<_ACEOF
5303 cat confdefs.h
>>conftest.
$ac_ext
5304 cat >>conftest.
$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "memchr" >/dev
/null
2>&1; then
5313 ac_cv_header_stdc
=no
5319 if test $ac_cv_header_stdc = yes; then
5320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "free" >/dev
/null
2>&1; then
5334 ac_cv_header_stdc
=no
5340 if test $ac_cv_header_stdc = yes; then
5341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342 if test "$cross_compiling" = yes; then
5345 cat >conftest.
$ac_ext <<_ACEOF
5348 cat confdefs.h
>>conftest.
$ac_ext
5349 cat >>conftest.
$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5353 #if ((' ' & 0x0FF) == 0x020)
5354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5357 # define ISLOWER(c) \
5358 (('a' <= (c) && (c) <= 'i') \
5359 || ('j' <= (c) && (c) <= 'r') \
5360 || ('s' <= (c) && (c) <= 'z'))
5361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5369 for (i = 0; i < 256; i++)
5370 if (XOR (islower (i), ISLOWER (i))
5371 || toupper (i) != TOUPPER (i))
5376 rm -f conftest
$ac_exeext
5377 if { (ac_try
="$ac_link"
5379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_link") 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5387 { (case "(($ac_try" in
5388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5389 *) ac_try_echo
=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_try") 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5398 echo "$as_me: program exited with status $ac_status" >&5
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.
$ac_ext >&5
5403 ac_cv_header_stdc
=no
5405 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5411 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5412 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5413 if test $ac_cv_header_stdc = yes; then
5415 cat >>confdefs.h
<<\_ACEOF
5416 #define STDC_HEADERS 1
5421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5431 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5432 inttypes.h stdint.h unistd.h
5434 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5437 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 cat >conftest.
$ac_ext <<_ACEOF
5443 cat confdefs.h
>>conftest.
$ac_ext
5444 cat >>conftest.
$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 $ac_includes_default
5448 #include <$ac_header>
5450 rm -f conftest.
$ac_objext
5451 if { (ac_try
="$ac_compile"
5453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_compile") 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && {
5464 test -z "$ac_c_werror_flag" ||
5465 test ! -s conftest.err
5466 } && test -s conftest.$ac_objext; then
5467 eval "$as_ac_Header=yes"
5469 echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5472 eval "$as_ac_Header=no"
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 ac_res=`eval echo '${'$as_ac_Header'}'`
5478 { echo "$as_me:$LINENO: result: $ac_res" >&5
5479 echo "${ECHO_T}$ac_res" >&6; }
5480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5481 cat >>confdefs.h <<_ACEOF
5482 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5544 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5546 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5547 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5549 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5550 sys/lock.h sys/mkdev.h sys/modem.h \
5551 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5552 sys/termio.h sys/time.h \
5553 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5554 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5555 bluetooth/bluetooth.h linux/tipc.h
5557 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_res=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5568 # Is the header compilable?
5569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 $ac_includes_default
5578 #include <$ac_header>
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5584 *) ac_try_echo
=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1
>conftest.err
5591 cat conftest.err
>&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.
$ac_objext; then
5597 ac_header_compiler
=yes
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.
$ac_ext >&5
5602 ac_header_compiler
=no
5605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5607 echo "${ECHO_T}$ac_header_compiler" >&6; }
5609 # Is the header present?
5610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5612 cat >conftest.
$ac_ext <<_ACEOF
5615 cat confdefs.h
>>conftest.
$ac_ext
5616 cat >>conftest.
$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <$ac_header>
5620 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } >/dev/null && {
5633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5636 ac_header_preproc=yes
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ac_header_preproc=no
5644 rm -f conftest.err conftest.$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5646 echo "${ECHO_T}$ac_header_preproc" >&6; }
5648 # So? What about this header?
5649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5655 ac_header_preproc=yes
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5671 ## ------------------------------------------------ ##
5672 ## Report this to http://www.python.org/python-bugs ##
5673 ## ------------------------------------------------ ##
5675 ) | sed "s/^/$as_me: WARNING: /" >&2
5678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 eval "$as_ac_Header=\$ac_header_preproc"
5685 ac_res=`eval echo '${'$as_ac_Header'}'`
5686 { echo "$as_me:$LINENO: result: $ac_res" >&5
5687 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_header" |
$as_tr_cpp` 1
5705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5707 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <sys/types.h>
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5734 *) ac_try_echo
=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5739 grep -v '^ *+' conftest.er1
>conftest.err
5741 cat conftest.err
>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_c_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest.
$ac_objext; then
5747 eval "$as_ac_Header=yes"
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.
$ac_ext >&5
5752 eval "$as_ac_Header=no"
5755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5757 ac_res
=`eval echo '${'$as_ac_Header'}'`
5758 { echo "$as_me:$LINENO: result: $ac_res" >&5
5759 echo "${ECHO_T}$ac_res" >&6; }
5760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5761 cat >>confdefs.h
<<_ACEOF
5762 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5765 ac_header_dirent
=$ac_hdr; break
5769 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5770 if test $ac_header_dirent = dirent.h
; then
5771 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5772 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5773 if test "${ac_cv_search_opendir+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 ac_func_search_save_LIBS
=$LIBS
5777 cat >conftest.
$ac_ext <<_ACEOF
5780 cat confdefs.h
>>conftest.
$ac_ext
5781 cat >>conftest.
$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5784 /* Override any GCC internal prototype to avoid an error.
5785 Use char because int might match the return type of a GCC
5786 builtin and then its argument prototype would still apply. */
5799 for ac_lib
in '' dir
; do
5800 if test -z "$ac_lib"; then
5801 ac_res
="none required"
5804 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5806 rm -f conftest.
$ac_objext conftest
$ac_exeext
5807 if { (ac_try
="$ac_link"
5809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_link") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest$ac_exeext &&
5823 $as_test_x conftest$ac_exeext; then
5824 ac_cv_search_opendir=$ac_res
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5834 if test "${ac_cv_search_opendir+set}" = set; then
5838 if test "${ac_cv_search_opendir+set}" = set; then
5841 ac_cv_search_opendir=no
5844 LIBS=$ac_func_search_save_LIBS
5846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5848 ac_res=$ac_cv_search_opendir
5849 if test "$ac_res" != no; then
5850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5855 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5856 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5857 if test "${ac_cv_search_opendir+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 ac_func_search_save_LIBS=$LIBS
5861 cat >conftest.$ac_ext <<_ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5883 for ac_lib in '' x; do
5884 if test -z "$ac_lib"; then
5885 ac_res="none required"
5888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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_search_opendir
=$ac_res
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.
$ac_ext >&5
5916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5918 if test "${ac_cv_search_opendir+set}" = set; then
5922 if test "${ac_cv_search_opendir+set}" = set; then
5925 ac_cv_search_opendir
=no
5928 LIBS
=$ac_func_search_save_LIBS
5930 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5931 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5932 ac_res
=$ac_cv_search_opendir
5933 if test "$ac_res" != no
; then
5934 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5940 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5941 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5942 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 cat >conftest.
$ac_ext <<_ACEOF
5948 cat confdefs.h
>>conftest.
$ac_ext
5949 cat >>conftest.
$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #include <sys/types.h>
5955 return makedev(0, 0);
5960 rm -f conftest.
$ac_objext conftest
$ac_exeext
5961 if { (ac_try
="$ac_link"
5963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_link") 2>conftest.er1
5969 grep -v '^ *+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest$ac_exeext &&
5977 $as_test_x conftest$ac_exeext; then
5978 ac_cv_header_sys_types_h_makedev=yes
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_cv_header_sys_types_h_makedev=no
5986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5987 conftest$ac_exeext conftest.$ac_ext
5990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5991 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5993 if test $ac_cv_header_sys_types_h_makedev = no; then
5994 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5995 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5996 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5997 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6001 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6003 # Is the header compilable?
6004 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6005 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6006 cat >conftest.$ac_ext <<_ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 $ac_includes_default
6013 #include <sys/mkdev.h>
6015 rm -f conftest.$ac_objext
6016 if { (ac_try="$ac_compile"
6018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6019 *) ac_try_echo
=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1
>conftest.err
6026 cat conftest.err
>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_c_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest.
$ac_objext; then
6032 ac_header_compiler
=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.
$ac_ext >&5
6037 ac_header_compiler
=no
6040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6042 echo "${ECHO_T}$ac_header_compiler" >&6; }
6044 # Is the header present?
6045 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6046 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6047 cat >conftest.
$ac_ext <<_ACEOF
6050 cat confdefs.h
>>conftest.
$ac_ext
6051 cat >>conftest.
$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <sys/mkdev.h>
6055 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null && {
6068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6071 ac_header_preproc=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_header_preproc=no
6079 rm -f conftest.err conftest.$ac_ext
6080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6081 echo "${ECHO_T}$ac_header_preproc" >&6; }
6083 # So? What about this header?
6084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6086 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6087 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6088 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6089 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6090 ac_header_preproc=yes
6093 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6094 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6095 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6096 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6098 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6100 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6102 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6104 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6106 ## ------------------------------------------------ ##
6107 ## Report this to http://www.python.org/python-bugs ##
6108 ## ------------------------------------------------ ##
6110 ) | sed "s/^/$as_me: WARNING: /" >&2
6113 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6114 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6115 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6120 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6121 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6124 if test $ac_cv_header_sys_mkdev_h = yes; then
6126 cat >>confdefs.h <<\_ACEOF
6127 #define MAJOR_IN_MKDEV 1
6134 if test $ac_cv_header_sys_mkdev_h = no; then
6135 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6136 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6137 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6138 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6142 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6144 # Is the header compilable?
6145 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6146 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 $ac_includes_default
6154 #include <sys/sysmacros.h>
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6160 *) ac_try_echo
=$ac_try;;
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
6165 grep -v '^ *+' conftest.er1
>conftest.err
6167 cat conftest.err
>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.
$ac_objext; then
6173 ac_header_compiler
=yes
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.
$ac_ext >&5
6178 ac_header_compiler
=no
6181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6183 echo "${ECHO_T}$ac_header_compiler" >&6; }
6185 # Is the header present?
6186 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6187 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6188 cat >conftest.
$ac_ext <<_ACEOF
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <sys/sysmacros.h>
6196 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6204 grep -v '^ *+' conftest.er1 >conftest.err
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } >/dev/null && {
6209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6212 ac_header_preproc=yes
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6217 ac_header_preproc=no
6220 rm -f conftest.err conftest.$ac_ext
6221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6222 echo "${ECHO_T}$ac_header_preproc" >&6; }
6224 # So? What about this header?
6225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6227 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6228 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6230 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6231 ac_header_preproc=yes
6234 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6235 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6237 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6239 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6241 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6243 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6245 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6247 ## ------------------------------------------------ ##
6248 ## Report this to http://www.python.org/python-bugs ##
6249 ## ------------------------------------------------ ##
6251 ) | sed "s/^/$as_me: WARNING: /" >&2
6254 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6255 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6256 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6262 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6265 if test $ac_cv_header_sys_sysmacros_h = yes; then
6267 cat >>confdefs.h <<\_ACEOF
6268 #define MAJOR_IN_SYSMACROS 1
6278 # On Solaris, term.h requires curses.h
6280 for ac_header in term.h
6282 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6295 #ifdef HAVE_CURSES_H
6300 #include <$ac_header>
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6306 *) ac_try_echo
=$ac_try;;
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compile") 2>conftest.er1
6311 grep -v '^ *+' conftest.er1
>conftest.err
6313 cat conftest.err
>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && {
6316 test -z "$ac_c_werror_flag" ||
6317 test ! -s conftest.err
6318 } && test -s conftest.
$ac_objext; then
6319 eval "$as_ac_Header=yes"
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.
$ac_ext >&5
6324 eval "$as_ac_Header=no"
6327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6329 ac_res
=`eval echo '${'$as_ac_Header'}'`
6330 { echo "$as_me:$LINENO: result: $ac_res" >&5
6331 echo "${ECHO_T}$ac_res" >&6; }
6332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6333 cat >>confdefs.h
<<_ACEOF
6334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6342 # On Linux, netlink.h requires asm/types.h
6344 for ac_header
in linux
/netlink.h
6346 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6349 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 cat >conftest.
$ac_ext <<_ACEOF
6355 cat confdefs.h
>>conftest.
$ac_ext
6356 cat >>conftest.
$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6359 #ifdef HAVE_ASM_TYPES_H
6360 #include <asm/types.h>
6362 #ifdef HAVE_SYS_SOCKET_H
6363 #include <sys/socket.h>
6367 #include <$ac_header>
6369 rm -f conftest.
$ac_objext
6370 if { (ac_try
="$ac_compile"
6372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376 (eval "$ac_compile") 2>conftest.er1
6378 grep -v '^ *+' conftest.er1 >conftest.err
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } && {
6383 test -z "$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6385 } && test -s conftest.$ac_objext; then
6386 eval "$as_ac_Header=yes"
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 eval "$as_ac_Header=no"
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 ac_res=`eval echo '${'$as_ac_Header'}'`
6397 { echo "$as_me:$LINENO: result: $ac_res" >&5
6398 echo "${ECHO_T}$ac_res" >&6; }
6399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6400 cat >>confdefs.h <<_ACEOF
6401 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6409 # checks for typedefs
6411 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6412 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 $EGREP "clock_t" >/dev/null 2>&1; then
6428 cat >>confdefs.h <<\_ACEOF
6429 #define clock_t long
6436 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6437 echo "${ECHO_T}$was_it_defined" >&6; }
6439 # Check whether using makedev requires defining _OSF_SOURCE
6440 { echo "$as_me:$LINENO: checking for makedev" >&5
6441 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6442 cat >conftest.$ac_ext <<_ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6448 #include <sys/types.h>
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6461 *) ac_try_echo
=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_link") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1
>conftest.err
6468 cat conftest.err
>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest
$ac_exeext &&
6474 $as_test_x conftest
$ac_exeext; then
6475 ac_cv_has_makedev
=yes
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.
$ac_ext >&5
6480 ac_cv_has_makedev
=no
6483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6484 conftest
$ac_exeext conftest.
$ac_ext
6485 if test "$ac_cv_has_makedev" = "no"; then
6486 # we didn't link, try if _OSF_SOURCE will allow us to link
6487 cat >conftest.
$ac_ext <<_ACEOF
6490 cat confdefs.h
>>conftest.
$ac_ext
6491 cat >>conftest.
$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6494 #define _OSF_SOURCE 1
6495 #include <sys/types.h>
6505 rm -f conftest.
$ac_objext conftest
$ac_exeext
6506 if { (ac_try
="$ac_link"
6508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_link") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest$ac_exeext &&
6522 $as_test_x conftest$ac_exeext; then
6523 ac_cv_has_makedev=yes
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 ac_cv_has_makedev=no
6531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532 conftest$ac_exeext conftest.$ac_ext
6533 if test "$ac_cv_has_makedev" = "yes"; then
6535 cat >>confdefs.h <<\_ACEOF
6536 #define _OSF_SOURCE 1
6541 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6542 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6543 if test "$ac_cv_has_makedev" = "yes"; then
6545 cat >>confdefs.h <<\_ACEOF
6546 #define HAVE_MAKEDEV 1
6551 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6552 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6553 # defined, but the compiler does not support pragma redefine_extname,
6554 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6555 # structures (such as rlimit64) without declaring them. As a
6556 # work-around, disable LFS on such configurations
6559 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6560 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6568 #define _LARGEFILE_SOURCE 1
6569 #define _FILE_OFFSET_BITS 64
6570 #include <sys/resource.h>
6580 rm -f conftest.$ac_objext
6581 if { (ac_try="$ac_compile"
6583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6584 *) ac_try_echo
=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1
>conftest.err
6591 cat conftest.err
>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.
$ac_objext; then
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.
$ac_ext >&5
6605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6606 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6607 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6608 if test "$sol_lfs_bug" = "yes"; then
6612 if test "$use_lfs" = "yes"; then
6613 # Two defines needed to enable largefile support on various platforms
6614 # These may affect some typedefs
6616 cat >>confdefs.h
<<\_ACEOF
6617 #define _LARGEFILE_SOURCE 1
6621 cat >>confdefs.h
<<\_ACEOF
6622 #define _FILE_OFFSET_BITS 64
6627 # Add some code to confdefs.h so that the test for off_t works on SCO
6628 cat >> confdefs.h
<<\EOF
6634 # Type availability checks
6635 { echo "$as_me:$LINENO: checking for mode_t" >&5
6636 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6637 if test "${ac_cv_type_mode_t+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 cat >conftest.
$ac_ext <<_ACEOF
6643 cat confdefs.h
>>conftest.
$ac_ext
6644 cat >>conftest.
$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 $ac_includes_default
6647 typedef mode_t ac__type_new_;
6651 if ((ac__type_new_ *) 0)
6653 if (sizeof (ac__type_new_))
6659 rm -f conftest.
$ac_objext
6660 if { (ac_try
="$ac_compile"
6662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 ac_cv_type_mode_t=yes
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 ac_cv_type_mode_t=no
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6687 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6688 if test $ac_cv_type_mode_t = yes; then
6692 cat >>confdefs.h <<_ACEOF
6698 { echo "$as_me:$LINENO: checking for off_t" >&5
6699 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6700 if test "${ac_cv_type_off_t+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 cat >conftest.$ac_ext <<_ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 $ac_includes_default
6710 typedef off_t ac__type_new_;
6714 if ((ac__type_new_ *) 0)
6716 if (sizeof (ac__type_new_))
6722 rm -f conftest.$ac_objext
6723 if { (ac_try="$ac_compile"
6725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6726 *) ac_try_echo
=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_compile") 2>conftest.er1
6731 grep -v '^ *+' conftest.er1
>conftest.err
6733 cat conftest.err
>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest.
$ac_objext; then
6739 ac_cv_type_off_t
=yes
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.
$ac_ext >&5
6747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6749 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6750 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6751 if test $ac_cv_type_off_t = yes; then
6755 cat >>confdefs.h
<<_ACEOF
6756 #define off_t long int
6761 { echo "$as_me:$LINENO: checking for pid_t" >&5
6762 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6763 if test "${ac_cv_type_pid_t+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 cat >conftest.
$ac_ext <<_ACEOF
6769 cat confdefs.h
>>conftest.
$ac_ext
6770 cat >>conftest.
$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 $ac_includes_default
6773 typedef pid_t ac__type_new_;
6777 if ((ac__type_new_ *) 0)
6779 if (sizeof (ac__type_new_))
6785 rm -f conftest.
$ac_objext
6786 if { (ac_try
="$ac_compile"
6788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6794 grep -v '^ *+' conftest.er1 >conftest.err
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6802 ac_cv_type_pid_t=yes
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6813 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6814 if test $ac_cv_type_pid_t = yes; then
6818 cat >>confdefs.h <<_ACEOF
6824 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6825 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6826 if test "${ac_cv_type_signal+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <sys/types.h>
6841 return *(signal (0, 0)) (0) == 1;
6846 rm -f conftest.$ac_objext
6847 if { (ac_try="$ac_compile"
6849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6850 *) ac_try_echo
=$ac_try;;
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_compile") 2>conftest.er1
6855 grep -v '^ *+' conftest.er1
>conftest.err
6857 cat conftest.err
>&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest.
$ac_objext; then
6863 ac_cv_type_signal
=int
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.
$ac_ext >&5
6868 ac_cv_type_signal
=void
6871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6873 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6874 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6876 cat >>confdefs.h
<<_ACEOF
6877 #define RETSIGTYPE $ac_cv_type_signal
6881 { echo "$as_me:$LINENO: checking for size_t" >&5
6882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6883 if test "${ac_cv_type_size_t+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 cat >conftest.
$ac_ext <<_ACEOF
6889 cat confdefs.h
>>conftest.
$ac_ext
6890 cat >>conftest.
$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6893 typedef size_t ac__type_new_;
6897 if ((ac__type_new_ *) 0)
6899 if (sizeof (ac__type_new_))
6905 rm -f conftest.
$ac_objext
6906 if { (ac_try
="$ac_compile"
6908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_compile") 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest.$ac_objext; then
6922 ac_cv_type_size_t=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_cv_type_size_t=no
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6934 if test $ac_cv_type_size_t = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define size_t unsigned int
6944 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6945 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6946 if test "${ac_cv_type_uid_t+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <sys/types.h>
6958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959 $EGREP "uid_t" >/dev/null 2>&1; then
6960 ac_cv_type_uid_t=yes
6967 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6968 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6969 if test $ac_cv_type_uid_t = no; then
6971 cat >>confdefs.h <<\_ACEOF
6976 cat >>confdefs.h <<\_ACEOF
6982 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6983 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6984 if test "${ac_cv_type_ssize_t+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 typedef ssize_t ac__type_new_;
6998 if ((ac__type_new_ *) 0)
7000 if (sizeof (ac__type_new_))
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7010 *) ac_try_echo
=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1
>conftest.err
7017 cat conftest.err
>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.
$ac_objext; then
7023 ac_cv_type_ssize_t
=yes
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.
$ac_ext >&5
7028 ac_cv_type_ssize_t
=no
7031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7034 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7035 if test $ac_cv_type_ssize_t = yes; then
7037 cat >>confdefs.h
<<\_ACEOF
7038 #define HAVE_SSIZE_T 1
7044 # Sizes of various common basic types
7045 # ANSI C requires sizeof(char) == 1, so no need to check it
7046 { echo "$as_me:$LINENO: checking for int" >&5
7047 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_int+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.
$ac_ext <<_ACEOF
7054 cat confdefs.h
>>conftest.
$ac_ext
7055 cat >>conftest.
$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 $ac_includes_default
7058 typedef int ac__type_new_;
7062 if ((ac__type_new_ *) 0)
7064 if (sizeof (ac__type_new_))
7070 rm -f conftest.
$ac_objext
7071 if { (ac_try
="$ac_compile"
7073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_compile") 2>conftest.er1
7079 grep -v '^ *+' conftest.er1 >conftest.err
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest.$ac_objext; then
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7098 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7100 # The cast to long int works around a bug in the HP C Compiler
7101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7102 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7103 # This bug is HP SR number 8606223364.
7104 { echo "$as_me:$LINENO: checking size of int" >&5
7105 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7106 if test "${ac_cv_sizeof_int+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 if test "$cross_compiling" = yes; then
7110 # Depending upon the size, compute the lo and hi bounds.
7111 cat >conftest.$ac_ext <<_ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 $ac_includes_default
7118 typedef int ac__type_sizeof_;
7122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7129 rm -f conftest.$ac_objext
7130 if { (ac_try="$ac_compile"
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7138 grep -v '^
*+' conftest.er1 >conftest.err
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7155 typedef int ac__type_sizeof_;
7159 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7166 rm -f conftest.$ac_objext
7167 if { (ac_try="$ac_compile"
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7175 grep -v '^
*+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.$ac_objext; then
7183 ac_hi=$ac_mid; break
7185 echo "$as_me: failed program was:" >&5
7186 sed 's
/^
/|
/' conftest.$ac_ext >&5
7188 ac_lo=`expr $ac_mid + 1`
7189 if test $ac_lo -le $ac_mid; then
7193 ac_mid=`expr 2 '*' $ac_mid + 1`
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 echo "$as_me: failed program was:" >&5
7200 sed 's
/^
/|
/' conftest.$ac_ext >&5
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7209 typedef int ac__type_sizeof_;
7213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7220 rm -f conftest.$ac_objext
7221 if { (ac_try="$ac_compile"
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7227 (eval "$ac_compile") 2>conftest.er1
7229 grep -v '^
*+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest.$ac_objext; then
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7246 typedef int ac__type_sizeof_;
7250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7266 grep -v '^
*+' conftest.er1 >conftest.err
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 ac_lo=$ac_mid; break
7276 echo "$as_me: failed program was:" >&5
7277 sed 's
/^
/|
/' conftest.$ac_ext >&5
7279 ac_hi=`expr '(' $ac_mid ')' - 1`
7280 if test $ac_mid -le $ac_hi; then
7284 ac_mid=`expr 2 '*' $ac_mid`
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 echo "$as_me: failed program was:" >&5
7291 sed 's
/^
/|
/' conftest.$ac_ext >&5
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 # Binary search between lo and hi bounds.
7301 while test "x$ac_lo" != "x$ac_hi"; do
7302 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 typedef int ac__type_sizeof_;
7314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7330 grep -v '^
*+' conftest.er1 >conftest.err
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.$ac_objext; then
7340 echo "$as_me: failed program was:" >&5
7341 sed 's
/^
/|
/' conftest.$ac_ext >&5
7343 ac_lo=`expr '(' $ac_mid ')' + 1`
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 ?*) ac_cv_sizeof_int=$ac_lo;;
7350 '') if test "$ac_cv_type_int" = yes; then
7351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7352 See \`config.log' for more details.
" >&5
7353 echo "$as_me: error
: cannot compute sizeof
(int
)
7354 See \
`config.log' for more details." >&2;}
7355 { (exit 77); exit 77; }; }
7361 cat >conftest.$ac_ext <<_ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 $ac_includes_default
7368 typedef int ac__type_sizeof_;
7369 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7370 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7377 FILE *f = fopen ("conftest.val", "w");
7380 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7382 long int i = longval ();
7383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7385 fprintf (f, "%ld\n", i);
7389 unsigned long int i = ulongval ();
7390 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7392 fprintf (f, "%lu\n", i);
7394 return ferror (f) || fclose (f) != 0;
7400 rm -f conftest$ac_exeext
7401 if { (ac_try="$ac_link"
7403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7404 *) ac_try_echo
=$ac_try;;
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_link") 2>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7411 { (case "(($ac_try" in
7412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_try") 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_cv_sizeof_int=`cat conftest.val
`
7422 echo "$as_me: program exited with status $ac_status" >&5
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7427 if test "$ac_cv_type_int" = yes; then
7428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7429 See \`config.log
' for more details." >&5
7430 echo "$as_me: error: cannot compute sizeof (int)
7431 See \`config.log' for more details.
" >&2;}
7432 { (exit 77); exit 77; }; }
7437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7441 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7442 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7446 cat >>confdefs.h <<_ACEOF
7447 #define SIZEOF_INT $ac_cv_sizeof_int
7451 { echo "$as_me:$LINENO: checking
for long
" >&5
7452 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7453 if test "${ac_cv_type_long+set}" = set; then
7454 echo $ECHO_N "(cached
) $ECHO_C" >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 $ac_includes_default
7463 typedef long ac__type_new_;
7467 if ((ac__type_new_ *) 0)
7469 if (sizeof (ac__type_new_))
7475 rm -f conftest.$ac_objext
7476 if { (ac_try="$ac_compile"
7478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7494 echo "$as_me: failed program was
:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7503 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7505 # The cast to long int works around a bug in the HP C Compiler
7506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7508 # This bug is HP SR number 8606223364.
7509 { echo "$as_me:$LINENO: checking size of long
" >&5
7510 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7511 if test "${ac_cv_sizeof_long+set}" = set; then
7512 echo $ECHO_N "(cached
) $ECHO_C" >&6
7514 if test "$cross_compiling" = yes; then
7515 # Depending upon the size, compute the lo and hi bounds.
7516 cat >conftest.$ac_ext <<_ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 $ac_includes_default
7523 typedef long ac__type_sizeof_;
7527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7553 cat >conftest.$ac_ext <<_ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 $ac_includes_default
7560 typedef long ac__type_sizeof_;
7564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7571 rm -f conftest.$ac_objext
7572 if { (ac_try="$ac_compile"
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_compile") 2>conftest.er1
7580 grep -v '^ *+' conftest.er1 >conftest.err
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7584 (exit $ac_status); } && {
7585 test -z "$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7587 } && test -s conftest.$ac_objext; then
7588 ac_hi=$ac_mid; break
7590 echo "$as_me: failed program was
:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_lo=`expr $ac_mid + 1`
7594 if test $ac_lo -le $ac_mid; then
7598 ac_mid=`expr 2 '*' $ac_mid + 1`
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 echo "$as_me: failed program was
:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 cat >conftest.$ac_ext <<_ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7614 typedef long ac__type_sizeof_;
7618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_compile") 2>conftest.er1
7634 grep -v '^ *+' conftest.er1 >conftest.err
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.$ac_objext; then
7644 cat >conftest.$ac_ext <<_ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 $ac_includes_default
7651 typedef long ac__type_sizeof_;
7655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 ac_lo=$ac_mid; break
7681 echo "$as_me: failed program was
:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_hi=`expr '(' $ac_mid ')' - 1`
7685 if test $ac_mid -le $ac_hi; then
7689 ac_mid=`expr 2 '*' $ac_mid`
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 echo "$as_me: failed program was
:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 # Binary search between lo and hi bounds.
7706 while test "x
$ac_lo" != "x
$ac_hi"; do
7707 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 $ac_includes_default
7715 typedef long ac__type_sizeof_;
7719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7745 echo "$as_me: failed program was
:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 ac_lo=`expr '(' $ac_mid ')' + 1`
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 ?*) ac_cv_sizeof_long=$ac_lo;;
7755 '') if test "$ac_cv_type_long" = yes; then
7756 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7757 See \
`config.log' for more details." >&5
7758 echo "$as_me: error: cannot compute sizeof (long)
7759 See \`config.log
' for more details." >&2;}
7760 { (exit 77); exit 77; }; }
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 $ac_includes_default
7773 typedef long ac__type_sizeof_;
7774 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7775 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7782 FILE *f = fopen ("conftest.val", "w");
7785 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7787 long int i = longval ();
7788 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7790 fprintf (f, "%ld\n", i);
7794 unsigned long int i = ulongval ();
7795 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7797 fprintf (f, "%lu\n", i);
7799 return ferror (f) || fclose (f) != 0;
7805 rm -f conftest$ac_exeext
7806 if { (ac_try="$ac_link"
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_link") 2>&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7816 { (case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_try") 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_sizeof_long=`cat conftest.val`
7827 echo "$as_me: program exited with status $ac_status" >&5
7828 echo "$as_me: failed program was:" >&5
7829 sed 's
/^
/|
/' conftest.$ac_ext >&5
7832 if test "$ac_cv_type_long" = yes; then
7833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7834 See \`config.log' for more details.
" >&5
7835 echo "$as_me: error
: cannot compute sizeof
(long
)
7836 See \
`config.log' for more details." >&2;}
7837 { (exit 77); exit 77; }; }
7842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7846 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7847 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7851 cat >>confdefs.h <<_ACEOF
7852 #define SIZEOF_LONG $ac_cv_sizeof_long
7856 { echo "$as_me:$LINENO: checking for void *" >&5
7857 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7858 if test "${ac_cv_type_void_p+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 $ac_includes_default
7868 typedef void * ac__type_new_;
7872 if ((ac__type_new_ *) 0)
7874 if (sizeof (ac__type_new_))
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7884 *) ac_try_echo
=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7889 grep -v '^ *+' conftest.er1
>conftest.err
7891 cat conftest.err
>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.
$ac_objext; then
7897 ac_cv_type_void_p
=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.
$ac_ext >&5
7902 ac_cv_type_void_p
=no
7905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7907 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7908 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7910 # The cast to long int works around a bug in the HP C Compiler
7911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7913 # This bug is HP SR number 8606223364.
7914 { echo "$as_me:$LINENO: checking size of void *" >&5
7915 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7916 if test "${ac_cv_sizeof_void_p+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 if test "$cross_compiling" = yes; then
7920 # Depending upon the size, compute the lo and hi bounds.
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 $ac_includes_default
7928 typedef void * ac__type_sizeof_;
7932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7939 rm -f conftest.
$ac_objext
7940 if { (ac_try
="$ac_compile"
7942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 $ac_includes_default
7965 typedef void * ac__type_sizeof_;
7969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7976 rm -f conftest.$ac_objext
7977 if { (ac_try="$ac_compile"
7979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7980 *) ac_try_echo
=$ac_try;;
7982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 (eval "$ac_compile") 2>conftest.er1
7985 grep -v '^ *+' conftest.er1
>conftest.err
7987 cat conftest.err
>&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } && {
7990 test -z "$ac_c_werror_flag" ||
7991 test ! -s conftest.err
7992 } && test -s conftest.
$ac_objext; then
7993 ac_hi
=$ac_mid; break
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.
$ac_ext >&5
7998 ac_lo
=`expr $ac_mid + 1`
7999 if test $ac_lo -le $ac_mid; then
8003 ac_mid
=`expr 2 '*' $ac_mid + 1`
8006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.
$ac_ext >&5
8012 cat >conftest.
$ac_ext <<_ACEOF
8015 cat confdefs.h
>>conftest.
$ac_ext
8016 cat >>conftest.
$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 typedef void * ac__type_sizeof_;
8023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8030 rm -f conftest.
$ac_objext
8031 if { (ac_try
="$ac_compile"
8033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_compile") 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest.$ac_objext; then
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 $ac_includes_default
8056 typedef void * ac__type_sizeof_;
8060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8071 *) ac_try_echo
=$ac_try;;
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
8076 grep -v '^ *+' conftest.er1
>conftest.err
8078 cat conftest.err
>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest.
$ac_objext; then
8084 ac_lo
=$ac_mid; break
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.
$ac_ext >&5
8089 ac_hi
=`expr '(' $ac_mid ')' - 1`
8090 if test $ac_mid -le $ac_hi; then
8094 ac_mid
=`expr 2 '*' $ac_mid`
8097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.
$ac_ext >&5
8106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8110 # Binary search between lo and hi bounds.
8111 while test "x$ac_lo" != "x$ac_hi"; do
8112 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8113 cat >conftest.
$ac_ext <<_ACEOF
8116 cat confdefs.h
>>conftest.
$ac_ext
8117 cat >>conftest.
$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8120 typedef void * ac__type_sizeof_;
8124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8131 rm -f conftest.
$ac_objext
8132 if { (ac_try
="$ac_compile"
8134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_lo=`expr '(' $ac_mid ')' + 1`
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8160 '') if test "$ac_cv_type_void_p" = yes; then
8161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8162 See \`config.log
' for more details." >&5
8163 echo "$as_me: error: cannot compute sizeof (void *)
8164 See \`config.log' for more details.
" >&2;}
8165 { (exit 77); exit 77; }; }
8167 ac_cv_sizeof_void_p=0
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 typedef void * ac__type_sizeof_;
8179 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8180 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8187 FILE *f = fopen ("conftest.val
", "w
");
8190 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8192 long int i = longval ();
8193 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8195 fprintf (f, "%ld
\n", i);
8199 unsigned long int i = ulongval ();
8200 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8202 fprintf (f, "%lu
\n", i);
8204 return ferror (f) || fclose (f) != 0;
8210 rm -f conftest$ac_exeext
8211 if { (ac_try="$ac_link"
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_link") 2>&5
8219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_sizeof_void_p=`cat conftest.val`
8232 echo "$as_me: program exited with status
$ac_status" >&5
8233 echo "$as_me: failed program was
:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8237 if test "$ac_cv_type_void_p" = yes; then
8238 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8239 See \
`config.log' for more details." >&5
8240 echo "$as_me: error: cannot compute sizeof (void *)
8241 See \`config.log
' for more details." >&2;}
8242 { (exit 77); exit 77; }; }
8244 ac_cv_sizeof_void_p=0
8247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8251 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8252 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8256 cat >>confdefs.h <<_ACEOF
8257 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8261 { echo "$as_me:$LINENO: checking for short" >&5
8262 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8263 if test "${ac_cv_type_short+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 typedef short ac__type_new_;
8277 if ((ac__type_new_ *) 0)
8279 if (sizeof (ac__type_new_))
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^
*+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.$ac_objext; then
8302 ac_cv_type_short=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's
/^
/|
/' conftest.$ac_ext >&5
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8313 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8315 # The cast to long int works around a bug in the HP C Compiler
8316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8318 # This bug is HP SR number 8606223364.
8319 { echo "$as_me:$LINENO: checking size of short" >&5
8320 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8321 if test "${ac_cv_sizeof_short+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 if test "$cross_compiling" = yes; then
8325 # Depending upon the size, compute the lo and hi bounds.
8326 cat >conftest.
$ac_ext <<_ACEOF
8329 cat confdefs.h
>>conftest.
$ac_ext
8330 cat >>conftest.
$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 $ac_includes_default
8333 typedef short ac__type_sizeof_;
8337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8344 rm -f conftest.
$ac_objext
8345 if { (ac_try
="$ac_compile"
8347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } && {
8358 test -z "$ac_c_werror_flag" ||
8359 test ! -s conftest.err
8360 } && test -s conftest.$ac_objext; then
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 $ac_includes_default
8370 typedef short ac__type_sizeof_;
8374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8381 rm -f conftest.$ac_objext
8382 if { (ac_try="$ac_compile"
8384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8385 *) ac_try_echo
=$ac_try;;
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_compile") 2>conftest.er1
8390 grep -v '^ *+' conftest.er1
>conftest.err
8392 cat conftest.err
>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && {
8395 test -z "$ac_c_werror_flag" ||
8396 test ! -s conftest.err
8397 } && test -s conftest.
$ac_objext; then
8398 ac_hi
=$ac_mid; break
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.
$ac_ext >&5
8403 ac_lo
=`expr $ac_mid + 1`
8404 if test $ac_lo -le $ac_mid; then
8408 ac_mid
=`expr 2 '*' $ac_mid + 1`
8411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.
$ac_ext >&5
8417 cat >conftest.
$ac_ext <<_ACEOF
8420 cat confdefs.h
>>conftest.
$ac_ext
8421 cat >>conftest.
$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 $ac_includes_default
8424 typedef short ac__type_sizeof_;
8428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8435 rm -f conftest.
$ac_objext
8436 if { (ac_try
="$ac_compile"
8438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 $ac_includes_default
8461 typedef short ac__type_sizeof_;
8465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8472 rm -f conftest.$ac_objext
8473 if { (ac_try="$ac_compile"
8475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8476 *) ac_try_echo
=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1
>conftest.err
8483 cat conftest.err
>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.
$ac_objext; then
8489 ac_lo
=$ac_mid; break
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.
$ac_ext >&5
8494 ac_hi
=`expr '(' $ac_mid ')' - 1`
8495 if test $ac_mid -le $ac_hi; then
8499 ac_mid
=`expr 2 '*' $ac_mid`
8502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.
$ac_ext >&5
8511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8515 # Binary search between lo and hi bounds.
8516 while test "x$ac_lo" != "x$ac_hi"; do
8517 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8518 cat >conftest.
$ac_ext <<_ACEOF
8521 cat confdefs.h
>>conftest.
$ac_ext
8522 cat >>conftest.
$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 $ac_includes_default
8525 typedef short ac__type_sizeof_;
8529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8536 rm -f conftest.
$ac_objext
8537 if { (ac_try
="$ac_compile"
8539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_compile") 2>conftest.er1
8545 grep -v '^ *+' conftest.er1 >conftest.err
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } && {
8550 test -z "$ac_c_werror_flag" ||
8551 test ! -s conftest.err
8552 } && test -s conftest.$ac_objext; then
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 ac_lo=`expr '(' $ac_mid ')' + 1`
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 ?*) ac_cv_sizeof_short=$ac_lo;;
8565 '') if test "$ac_cv_type_short" = yes; then
8566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8567 See \`config.log
' for more details." >&5
8568 echo "$as_me: error: cannot compute sizeof (short)
8569 See \`config.log' for more details.
" >&2;}
8570 { (exit 77); exit 77; }; }
8572 ac_cv_sizeof_short=0
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 typedef short ac__type_sizeof_;
8584 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8585 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8592 FILE *f = fopen ("conftest.val
", "w
");
8595 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8597 long int i = longval ();
8598 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8600 fprintf (f, "%ld
\n", i);
8604 unsigned long int i = ulongval ();
8605 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8607 fprintf (f, "%lu
\n", i);
8609 return ferror (f) || fclose (f) != 0;
8615 rm -f conftest$ac_exeext
8616 if { (ac_try="$ac_link"
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_link") 2>&5
8624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_sizeof_short=`cat conftest.val`
8637 echo "$as_me: program exited with status
$ac_status" >&5
8638 echo "$as_me: failed program was
:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8642 if test "$ac_cv_type_short" = yes; then
8643 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8644 See \
`config.log' for more details." >&5
8645 echo "$as_me: error: cannot compute sizeof (short)
8646 See \`config.log
' for more details." >&2;}
8647 { (exit 77); exit 77; }; }
8649 ac_cv_sizeof_short=0
8652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8656 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8657 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8661 cat >>confdefs.h <<_ACEOF
8662 #define SIZEOF_SHORT $ac_cv_sizeof_short
8666 { echo "$as_me:$LINENO: checking for float" >&5
8667 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8668 if test "${ac_cv_type_float+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 $ac_includes_default
8678 typedef float ac__type_new_;
8682 if ((ac__type_new_ *) 0)
8684 if (sizeof (ac__type_new_))
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_compile") 2>conftest.er1
8699 grep -v '^
*+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } && {
8704 test -z "$ac_c_werror_flag" ||
8705 test ! -s conftest.err
8706 } && test -s conftest.$ac_objext; then
8707 ac_cv_type_float=yes
8709 echo "$as_me: failed program was:" >&5
8710 sed 's
/^
/|
/' conftest.$ac_ext >&5
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8718 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8720 # The cast to long int works around a bug in the HP C Compiler
8721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8723 # This bug is HP SR number 8606223364.
8724 { echo "$as_me:$LINENO: checking size of float" >&5
8725 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8726 if test "${ac_cv_sizeof_float+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 if test "$cross_compiling" = yes; then
8730 # Depending upon the size, compute the lo and hi bounds.
8731 cat >conftest.
$ac_ext <<_ACEOF
8734 cat confdefs.h
>>conftest.
$ac_ext
8735 cat >>conftest.
$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 $ac_includes_default
8738 typedef float ac__type_sizeof_;
8742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8749 rm -f conftest.
$ac_objext
8750 if { (ac_try
="$ac_compile"
8752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8758 grep -v '^ *+' conftest.er1 >conftest.err
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.$ac_objext; then
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 typedef float ac__type_sizeof_;
8779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8786 rm -f conftest.$ac_objext
8787 if { (ac_try="$ac_compile"
8789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8790 *) ac_try_echo
=$ac_try;;
8792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8793 (eval "$ac_compile") 2>conftest.er1
8795 grep -v '^ *+' conftest.er1
>conftest.err
8797 cat conftest.err
>&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && {
8800 test -z "$ac_c_werror_flag" ||
8801 test ! -s conftest.err
8802 } && test -s conftest.
$ac_objext; then
8803 ac_hi
=$ac_mid; break
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.
$ac_ext >&5
8808 ac_lo
=`expr $ac_mid + 1`
8809 if test $ac_lo -le $ac_mid; then
8813 ac_mid
=`expr 2 '*' $ac_mid + 1`
8816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.
$ac_ext >&5
8822 cat >conftest.
$ac_ext <<_ACEOF
8825 cat confdefs.h
>>conftest.
$ac_ext
8826 cat >>conftest.
$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 $ac_includes_default
8829 typedef float ac__type_sizeof_;
8833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8840 rm -f conftest.
$ac_objext
8841 if { (ac_try
="$ac_compile"
8843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_compile") 2>conftest.er1
8849 grep -v '^ *+' conftest.er1 >conftest.err
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && {
8854 test -z "$ac_c_werror_flag" ||
8855 test ! -s conftest.err
8856 } && test -s conftest.$ac_objext; then
8859 cat >conftest.$ac_ext <<_ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 typedef float ac__type_sizeof_;
8870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8881 *) ac_try_echo
=$ac_try;;
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1
>conftest.err
8888 cat conftest.err
>&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_c_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.
$ac_objext; then
8894 ac_lo
=$ac_mid; break
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.
$ac_ext >&5
8899 ac_hi
=`expr '(' $ac_mid ')' - 1`
8900 if test $ac_mid -le $ac_hi; then
8904 ac_mid
=`expr 2 '*' $ac_mid`
8907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.
$ac_ext >&5
8916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8920 # Binary search between lo and hi bounds.
8921 while test "x$ac_lo" != "x$ac_hi"; do
8922 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8923 cat >conftest.
$ac_ext <<_ACEOF
8926 cat confdefs.h
>>conftest.
$ac_ext
8927 cat >>conftest.
$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8930 typedef float ac__type_sizeof_;
8934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8941 rm -f conftest.
$ac_objext
8942 if { (ac_try
="$ac_compile"
8944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 ac_lo=`expr '(' $ac_mid ')' + 1`
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 ?*) ac_cv_sizeof_float=$ac_lo;;
8970 '') if test "$ac_cv_type_float" = yes; then
8971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8972 See \`config.log
' for more details." >&5
8973 echo "$as_me: error: cannot compute sizeof (float)
8974 See \`config.log' for more details.
" >&2;}
8975 { (exit 77); exit 77; }; }
8977 ac_cv_sizeof_float=0
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 $ac_includes_default
8988 typedef float ac__type_sizeof_;
8989 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8990 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8997 FILE *f = fopen ("conftest.val
", "w
");
9000 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9002 long int i = longval ();
9003 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9005 fprintf (f, "%ld
\n", i);
9009 unsigned long int i = ulongval ();
9010 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9012 fprintf (f, "%lu
\n", i);
9014 return ferror (f) || fclose (f) != 0;
9020 rm -f conftest$ac_exeext
9021 if { (ac_try="$ac_link"
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_link") 2>&5
9029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_cv_sizeof_float=`cat conftest.val`
9042 echo "$as_me: program exited with status
$ac_status" >&5
9043 echo "$as_me: failed program was
:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9047 if test "$ac_cv_type_float" = yes; then
9048 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9049 See \
`config.log' for more details." >&5
9050 echo "$as_me: error: cannot compute sizeof (float)
9051 See \`config.log
' for more details." >&2;}
9052 { (exit 77); exit 77; }; }
9054 ac_cv_sizeof_float=0
9057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9062 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9066 cat >>confdefs.h <<_ACEOF
9067 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9071 { echo "$as_me:$LINENO: checking for double" >&5
9072 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9073 if test "${ac_cv_type_double+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 cat >conftest.$ac_ext <<_ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082 $ac_includes_default
9083 typedef double ac__type_new_;
9087 if ((ac__type_new_ *) 0)
9089 if (sizeof (ac__type_new_))
9095 rm -f conftest.$ac_objext
9096 if { (ac_try="$ac_compile"
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_compile") 2>conftest.er1
9104 grep -v '^
*+' conftest.er1 >conftest.err
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } && {
9109 test -z "$ac_c_werror_flag" ||
9110 test ! -s conftest.err
9111 } && test -s conftest.$ac_objext; then
9112 ac_cv_type_double=yes
9114 echo "$as_me: failed program was:" >&5
9115 sed 's
/^
/|
/' conftest.$ac_ext >&5
9117 ac_cv_type_double=no
9120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9123 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9125 # The cast to long int works around a bug in the HP C Compiler
9126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9128 # This bug is HP SR number 8606223364.
9129 { echo "$as_me:$LINENO: checking size of double" >&5
9130 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9131 if test "${ac_cv_sizeof_double+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 if test "$cross_compiling" = yes; then
9135 # Depending upon the size, compute the lo and hi bounds.
9136 cat >conftest.
$ac_ext <<_ACEOF
9139 cat confdefs.h
>>conftest.
$ac_ext
9140 cat >>conftest.
$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 $ac_includes_default
9143 typedef double ac__type_sizeof_;
9147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9154 rm -f conftest.
$ac_objext
9155 if { (ac_try
="$ac_compile"
9157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_compile") 2>conftest.er1
9163 grep -v '^ *+' conftest.er1 >conftest.err
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest.$ac_objext; then
9173 cat >conftest.$ac_ext <<_ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9179 $ac_includes_default
9180 typedef double ac__type_sizeof_;
9184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9191 rm -f conftest.$ac_objext
9192 if { (ac_try="$ac_compile"
9194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9195 *) ac_try_echo
=$ac_try;;
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198 (eval "$ac_compile") 2>conftest.er1
9200 grep -v '^ *+' conftest.er1
>conftest.err
9202 cat conftest.err
>&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && {
9205 test -z "$ac_c_werror_flag" ||
9206 test ! -s conftest.err
9207 } && test -s conftest.
$ac_objext; then
9208 ac_hi
=$ac_mid; break
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.
$ac_ext >&5
9213 ac_lo
=`expr $ac_mid + 1`
9214 if test $ac_lo -le $ac_mid; then
9218 ac_mid
=`expr 2 '*' $ac_mid + 1`
9221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.
$ac_ext >&5
9227 cat >conftest.
$ac_ext <<_ACEOF
9230 cat confdefs.h
>>conftest.
$ac_ext
9231 cat >>conftest.
$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 $ac_includes_default
9234 typedef double ac__type_sizeof_;
9238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9245 rm -f conftest.
$ac_objext
9246 if { (ac_try
="$ac_compile"
9248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_c_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9264 cat >conftest.$ac_ext <<_ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9271 typedef double ac__type_sizeof_;
9275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9282 rm -f conftest.$ac_objext
9283 if { (ac_try="$ac_compile"
9285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9286 *) ac_try_echo
=$ac_try;;
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9291 grep -v '^ *+' conftest.er1
>conftest.err
9293 cat conftest.err
>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.
$ac_objext; then
9299 ac_lo
=$ac_mid; break
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.
$ac_ext >&5
9304 ac_hi
=`expr '(' $ac_mid ')' - 1`
9305 if test $ac_mid -le $ac_hi; then
9309 ac_mid
=`expr 2 '*' $ac_mid`
9312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.
$ac_ext >&5
9321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9325 # Binary search between lo and hi bounds.
9326 while test "x$ac_lo" != "x$ac_hi"; do
9327 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9335 typedef double ac__type_sizeof_;
9339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9346 rm -f conftest.
$ac_objext
9347 if { (ac_try
="$ac_compile"
9349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_compile") 2>conftest.er1
9355 grep -v '^ *+' conftest.er1 >conftest.err
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest.$ac_objext; then
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 ac_lo=`expr '(' $ac_mid ')' + 1`
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 ?*) ac_cv_sizeof_double=$ac_lo;;
9375 '') if test "$ac_cv_type_double" = yes; then
9376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9377 See \`config.log
' for more details." >&5
9378 echo "$as_me: error: cannot compute sizeof (double)
9379 See \`config.log' for more details.
" >&2;}
9380 { (exit 77); exit 77; }; }
9382 ac_cv_sizeof_double=0
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 $ac_includes_default
9393 typedef double ac__type_sizeof_;
9394 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9395 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9402 FILE *f = fopen ("conftest.val
", "w
");
9405 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9407 long int i = longval ();
9408 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9410 fprintf (f, "%ld
\n", i);
9414 unsigned long int i = ulongval ();
9415 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9417 fprintf (f, "%lu
\n", i);
9419 return ferror (f) || fclose (f) != 0;
9425 rm -f conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_link") 2>&5
9434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9436 { (case "(($ac_try" in
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_try") 2>&5
9443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_cv_sizeof_double=`cat conftest.val`
9447 echo "$as_me: program exited with status
$ac_status" >&5
9448 echo "$as_me: failed program was
:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9452 if test "$ac_cv_type_double" = yes; then
9453 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9454 See \
`config.log' for more details." >&5
9455 echo "$as_me: error: cannot compute sizeof (double)
9456 See \`config.log
' for more details." >&2;}
9457 { (exit 77); exit 77; }; }
9459 ac_cv_sizeof_double=0
9462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9466 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9467 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9471 cat >>confdefs.h <<_ACEOF
9472 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9476 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9477 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9478 if test "${ac_cv_type_fpos_t+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 cat >conftest.$ac_ext <<_ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 $ac_includes_default
9488 typedef fpos_t ac__type_new_;
9492 if ((ac__type_new_ *) 0)
9494 if (sizeof (ac__type_new_))
9500 rm -f conftest.$ac_objext
9501 if { (ac_try="$ac_compile"
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_compile") 2>conftest.er1
9509 grep -v '^
*+' conftest.er1 >conftest.err
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } && {
9514 test -z "$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 } && test -s conftest.$ac_objext; then
9517 ac_cv_type_fpos_t=yes
9519 echo "$as_me: failed program was:" >&5
9520 sed 's
/^
/|
/' conftest.$ac_ext >&5
9522 ac_cv_type_fpos_t=no
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9528 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9530 # The cast to long int works around a bug in the HP C Compiler
9531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9533 # This bug is HP SR number 8606223364.
9534 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9535 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9536 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 if test "$cross_compiling" = yes; then
9540 # Depending upon the size, compute the lo and hi bounds.
9541 cat >conftest.
$ac_ext <<_ACEOF
9544 cat confdefs.h
>>conftest.
$ac_ext
9545 cat >>conftest.
$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 typedef fpos_t ac__type_sizeof_;
9552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9559 rm -f conftest.
$ac_objext
9560 if { (ac_try
="$ac_compile"
9562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_compile") 2>conftest.er1
9568 grep -v '^ *+' conftest.er1 >conftest.err
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest.$ac_objext; then
9578 cat >conftest.$ac_ext <<_ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9584 $ac_includes_default
9585 typedef fpos_t ac__type_sizeof_;
9589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9596 rm -f conftest.$ac_objext
9597 if { (ac_try="$ac_compile"
9599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9600 *) ac_try_echo
=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_compile") 2>conftest.er1
9605 grep -v '^ *+' conftest.er1
>conftest.err
9607 cat conftest.err
>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest.
$ac_objext; then
9613 ac_hi
=$ac_mid; break
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.
$ac_ext >&5
9618 ac_lo
=`expr $ac_mid + 1`
9619 if test $ac_lo -le $ac_mid; then
9623 ac_mid
=`expr 2 '*' $ac_mid + 1`
9626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.
$ac_ext >&5
9632 cat >conftest.
$ac_ext <<_ACEOF
9635 cat confdefs.h
>>conftest.
$ac_ext
9636 cat >>conftest.
$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638 $ac_includes_default
9639 typedef fpos_t ac__type_sizeof_;
9643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9650 rm -f conftest.
$ac_objext
9651 if { (ac_try
="$ac_compile"
9653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_compile") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest.$ac_objext; then
9669 cat >conftest.$ac_ext <<_ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9675 $ac_includes_default
9676 typedef fpos_t ac__type_sizeof_;
9680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9687 rm -f conftest.$ac_objext
9688 if { (ac_try="$ac_compile"
9690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9691 *) ac_try_echo
=$ac_try;;
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_compile") 2>conftest.er1
9696 grep -v '^ *+' conftest.er1
>conftest.err
9698 cat conftest.err
>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest.
$ac_objext; then
9704 ac_lo
=$ac_mid; break
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.
$ac_ext >&5
9709 ac_hi
=`expr '(' $ac_mid ')' - 1`
9710 if test $ac_mid -le $ac_hi; then
9714 ac_mid
=`expr 2 '*' $ac_mid`
9717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.
$ac_ext >&5
9726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9730 # Binary search between lo and hi bounds.
9731 while test "x$ac_lo" != "x$ac_hi"; do
9732 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9733 cat >conftest.
$ac_ext <<_ACEOF
9736 cat confdefs.h
>>conftest.
$ac_ext
9737 cat >>conftest.
$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 $ac_includes_default
9740 typedef fpos_t ac__type_sizeof_;
9744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9751 rm -f conftest.
$ac_objext
9752 if { (ac_try
="$ac_compile"
9754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_compile") 2>conftest.er1
9760 grep -v '^ *+' conftest.er1 >conftest.err
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest.$ac_objext; then
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_lo=`expr '(' $ac_mid ')' + 1`
9776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9780 '') if test "$ac_cv_type_fpos_t" = yes; then
9781 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9782 See \`config.log
' for more details." >&5
9783 echo "$as_me: error: cannot compute sizeof (fpos_t)
9784 See \`config.log' for more details.
" >&2;}
9785 { (exit 77); exit 77; }; }
9787 ac_cv_sizeof_fpos_t=0
9791 cat >conftest.$ac_ext <<_ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 $ac_includes_default
9798 typedef fpos_t ac__type_sizeof_;
9799 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9800 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9807 FILE *f = fopen ("conftest.val
", "w
");
9810 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9812 long int i = longval ();
9813 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9815 fprintf (f, "%ld
\n", i);
9819 unsigned long int i = ulongval ();
9820 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9822 fprintf (f, "%lu
\n", i);
9824 return ferror (f) || fclose (f) != 0;
9830 rm -f conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>&5
9839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_sizeof_fpos_t=`cat conftest.val`
9852 echo "$as_me: program exited with status
$ac_status" >&5
9853 echo "$as_me: failed program was
:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9857 if test "$ac_cv_type_fpos_t" = yes; then
9858 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9859 See \
`config.log' for more details." >&5
9860 echo "$as_me: error: cannot compute sizeof (fpos_t)
9861 See \`config.log
' for more details." >&2;}
9862 { (exit 77); exit 77; }; }
9864 ac_cv_sizeof_fpos_t=0
9867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9871 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9872 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9876 cat >>confdefs.h <<_ACEOF
9877 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9881 { echo "$as_me:$LINENO: checking for size_t" >&5
9882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9883 if test "${ac_cv_type_size_t+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 cat >conftest.$ac_ext <<_ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 $ac_includes_default
9893 typedef size_t ac__type_new_;
9897 if ((ac__type_new_ *) 0)
9899 if (sizeof (ac__type_new_))
9905 rm -f conftest.$ac_objext
9906 if { (ac_try="$ac_compile"
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_compile") 2>conftest.er1
9914 grep -v '^
*+' conftest.er1 >conftest.err
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && {
9919 test -z "$ac_c_werror_flag" ||
9920 test ! -s conftest.err
9921 } && test -s conftest.$ac_objext; then
9922 ac_cv_type_size_t=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's
/^
/|
/' conftest.$ac_ext >&5
9927 ac_cv_type_size_t=no
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9935 # The cast to long int works around a bug in the HP C Compiler
9936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9938 # This bug is HP SR number 8606223364.
9939 { echo "$as_me:$LINENO: checking size of size_t" >&5
9940 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9941 if test "${ac_cv_sizeof_size_t+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 if test "$cross_compiling" = yes; then
9945 # Depending upon the size, compute the lo and hi bounds.
9946 cat >conftest.
$ac_ext <<_ACEOF
9949 cat confdefs.h
>>conftest.
$ac_ext
9950 cat >>conftest.
$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9953 typedef size_t ac__type_sizeof_;
9957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9964 rm -f conftest.
$ac_objext
9965 if { (ac_try
="$ac_compile"
9967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9973 grep -v '^ *+' conftest.er1 >conftest.err
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 typedef size_t ac__type_sizeof_;
9994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10001 rm -f conftest.$ac_objext
10002 if { (ac_try="$ac_compile"
10003 case "(($ac_try" in
10004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10005 *) ac_try_echo
=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_compile") 2>conftest.er1
10010 grep -v '^ *+' conftest.er1
>conftest.err
10012 cat conftest.err
>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest.
$ac_objext; then
10018 ac_hi
=$ac_mid; break
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.
$ac_ext >&5
10023 ac_lo
=`expr $ac_mid + 1`
10024 if test $ac_lo -le $ac_mid; then
10028 ac_mid
=`expr 2 '*' $ac_mid + 1`
10031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.
$ac_ext >&5
10037 cat >conftest.
$ac_ext <<_ACEOF
10040 cat confdefs.h
>>conftest.
$ac_ext
10041 cat >>conftest.
$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 $ac_includes_default
10044 typedef size_t ac__type_sizeof_;
10048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10055 rm -f conftest.
$ac_objext
10056 if { (ac_try
="$ac_compile"
10057 case "(($ac_try" in
10058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_compile") 2>conftest.er1
10064 grep -v '^ *+' conftest.er1 >conftest.err
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && {
10069 test -z "$ac_c_werror_flag" ||
10070 test ! -s conftest.err
10071 } && test -s conftest.$ac_objext; then
10074 cat >conftest.$ac_ext <<_ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 typedef size_t ac__type_sizeof_;
10085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10092 rm -f conftest.$ac_objext
10093 if { (ac_try="$ac_compile"
10094 case "(($ac_try" in
10095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10096 *) ac_try_echo
=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_compile") 2>conftest.er1
10101 grep -v '^ *+' conftest.er1
>conftest.err
10103 cat conftest.err
>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest.
$ac_objext; then
10109 ac_lo
=$ac_mid; break
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.
$ac_ext >&5
10114 ac_hi
=`expr '(' $ac_mid ')' - 1`
10115 if test $ac_mid -le $ac_hi; then
10119 ac_mid
=`expr 2 '*' $ac_mid`
10122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.
$ac_ext >&5
10131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10135 # Binary search between lo and hi bounds.
10136 while test "x$ac_lo" != "x$ac_hi"; do
10137 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10138 cat >conftest.
$ac_ext <<_ACEOF
10141 cat confdefs.h
>>conftest.
$ac_ext
10142 cat >>conftest.
$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10145 typedef size_t ac__type_sizeof_;
10149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10156 rm -f conftest.
$ac_objext
10157 if { (ac_try
="$ac_compile"
10158 case "(($ac_try" in
10159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_compile") 2>conftest.er1
10165 grep -v '^ *+' conftest.er1 >conftest.err
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && {
10170 test -z "$ac_c_werror_flag" ||
10171 test ! -s conftest.err
10172 } && test -s conftest.$ac_objext; then
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ac_lo=`expr '(' $ac_mid ')' + 1`
10181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10185 '') if test "$ac_cv_type_size_t" = yes; then
10186 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10187 See \`config.log
' for more details." >&5
10188 echo "$as_me: error: cannot compute sizeof (size_t)
10189 See \`config.log' for more details.
" >&2;}
10190 { (exit 77); exit 77; }; }
10192 ac_cv_sizeof_size_t=0
10196 cat >conftest.$ac_ext <<_ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 $ac_includes_default
10203 typedef size_t ac__type_sizeof_;
10204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10207 #include <stdlib.h>
10212 FILE *f = fopen ("conftest.val
", "w
");
10215 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10217 long int i = longval ();
10218 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10220 fprintf (f, "%ld
\n", i);
10224 unsigned long int i = ulongval ();
10225 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10227 fprintf (f, "%lu
\n", i);
10229 return ferror (f) || fclose (f) != 0;
10235 rm -f conftest$ac_exeext
10236 if { (ac_try="$ac_link"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>&5
10244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
10253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_sizeof_size_t=`cat conftest.val`
10257 echo "$as_me: program exited with status
$ac_status" >&5
10258 echo "$as_me: failed program was
:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ( exit $ac_status )
10262 if test "$ac_cv_type_size_t" = yes; then
10263 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10264 See \
`config.log' for more details." >&5
10265 echo "$as_me: error: cannot compute sizeof (size_t)
10266 See \`config.log
' for more details." >&2;}
10267 { (exit 77); exit 77; }; }
10269 ac_cv_sizeof_size_t=0
10272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10276 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10277 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10281 cat >>confdefs.h <<_ACEOF
10282 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10286 { echo "$as_me:$LINENO: checking for pid_t" >&5
10287 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10288 if test "${ac_cv_type_pid_t+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 $ac_includes_default
10298 typedef pid_t ac__type_new_;
10302 if ((ac__type_new_ *) 0)
10304 if (sizeof (ac__type_new_))
10310 rm -f conftest.$ac_objext
10311 if { (ac_try="$ac_compile"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_compile") 2>conftest.er1
10319 grep -v '^
*+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest.$ac_objext; then
10327 ac_cv_type_pid_t=yes
10329 echo "$as_me: failed program was:" >&5
10330 sed 's
/^
/|
/' conftest.$ac_ext >&5
10332 ac_cv_type_pid_t=no
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10340 # The cast to long int works around a bug in the HP C Compiler
10341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10343 # This bug is HP SR number 8606223364.
10344 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10345 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10346 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 if test "$cross_compiling" = yes; then
10350 # Depending upon the size, compute the lo and hi bounds.
10351 cat >conftest.
$ac_ext <<_ACEOF
10354 cat confdefs.h
>>conftest.
$ac_ext
10355 cat >>conftest.
$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef pid_t ac__type_sizeof_;
10362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10369 rm -f conftest.
$ac_objext
10370 if { (ac_try
="$ac_compile"
10371 case "(($ac_try" in
10372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_compile") 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest.$ac_objext; then
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 typedef pid_t ac__type_sizeof_;
10399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10410 *) ac_try_echo
=$ac_try;;
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_compile") 2>conftest.er1
10415 grep -v '^ *+' conftest.er1
>conftest.err
10417 cat conftest.err
>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest.
$ac_objext; then
10423 ac_hi
=$ac_mid; break
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.
$ac_ext >&5
10428 ac_lo
=`expr $ac_mid + 1`
10429 if test $ac_lo -le $ac_mid; then
10433 ac_mid
=`expr 2 '*' $ac_mid + 1`
10436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.
$ac_ext >&5
10442 cat >conftest.
$ac_ext <<_ACEOF
10445 cat confdefs.h
>>conftest.
$ac_ext
10446 cat >>conftest.
$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10448 $ac_includes_default
10449 typedef pid_t ac__type_sizeof_;
10453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10460 rm -f conftest.
$ac_objext
10461 if { (ac_try
="$ac_compile"
10462 case "(($ac_try" in
10463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_compile") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest.$ac_objext; then
10479 cat >conftest.$ac_ext <<_ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 $ac_includes_default
10486 typedef pid_t ac__type_sizeof_;
10490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10497 rm -f conftest.$ac_objext
10498 if { (ac_try="$ac_compile"
10499 case "(($ac_try" in
10500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10501 *) ac_try_echo
=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_compile") 2>conftest.er1
10506 grep -v '^ *+' conftest.er1
>conftest.err
10508 cat conftest.err
>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest.
$ac_objext; then
10514 ac_lo
=$ac_mid; break
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.
$ac_ext >&5
10519 ac_hi
=`expr '(' $ac_mid ')' - 1`
10520 if test $ac_mid -le $ac_hi; then
10524 ac_mid
=`expr 2 '*' $ac_mid`
10527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.
$ac_ext >&5
10536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10540 # Binary search between lo and hi bounds.
10541 while test "x$ac_lo" != "x$ac_hi"; do
10542 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10543 cat >conftest.
$ac_ext <<_ACEOF
10546 cat confdefs.h
>>conftest.
$ac_ext
10547 cat >>conftest.
$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 $ac_includes_default
10550 typedef pid_t ac__type_sizeof_;
10554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10561 rm -f conftest.
$ac_objext
10562 if { (ac_try
="$ac_compile"
10563 case "(($ac_try" in
10564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_compile") 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } && {
10575 test -z "$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 } && test -s conftest.$ac_objext; then
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10583 ac_lo=`expr '(' $ac_mid ')' + 1`
10586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10590 '') if test "$ac_cv_type_pid_t" = yes; then
10591 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10592 See \`config.log
' for more details." >&5
10593 echo "$as_me: error: cannot compute sizeof (pid_t)
10594 See \`config.log' for more details.
" >&2;}
10595 { (exit 77); exit 77; }; }
10597 ac_cv_sizeof_pid_t=0
10601 cat >conftest.$ac_ext <<_ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 $ac_includes_default
10608 typedef pid_t ac__type_sizeof_;
10609 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10610 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10612 #include <stdlib.h>
10617 FILE *f = fopen ("conftest.val
", "w
");
10620 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10622 long int i = longval ();
10623 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10625 fprintf (f, "%ld
\n", i);
10629 unsigned long int i = ulongval ();
10630 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10632 fprintf (f, "%lu
\n", i);
10634 return ferror (f) || fclose (f) != 0;
10640 rm -f conftest$ac_exeext
10641 if { (ac_try="$ac_link"
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_link") 2>&5
10649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10651 { (case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_try") 2>&5
10658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_sizeof_pid_t=`cat conftest.val`
10662 echo "$as_me: program exited with status
$ac_status" >&5
10663 echo "$as_me: failed program was
:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ( exit $ac_status )
10667 if test "$ac_cv_type_pid_t" = yes; then
10668 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10669 See \
`config.log' for more details." >&5
10670 echo "$as_me: error: cannot compute sizeof (pid_t)
10671 See \`config.log
' for more details." >&2;}
10672 { (exit 77); exit 77; }; }
10674 ac_cv_sizeof_pid_t=0
10677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10681 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10682 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10686 cat >>confdefs.h <<_ACEOF
10687 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10692 { echo "$as_me:$LINENO: checking for long long support" >&5
10693 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10695 cat >conftest.$ac_ext <<_ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10705 long long x; x = (long long)0;
10710 rm -f conftest.$ac_objext
10711 if { (ac_try="$ac_compile"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_compile") 2>conftest.er1
10719 grep -v '^
*+' conftest.er1 >conftest.err
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest.$ac_objext; then
10729 cat >>confdefs.h <<\_ACEOF
10730 #define HAVE_LONG_LONG 1
10736 echo "$as_me: failed program was:" >&5
10737 sed 's
/^
/|
/' conftest.$ac_ext >&5
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10744 echo "${ECHO_T}$have_long_long" >&6; }
10745 if test "$have_long_long" = yes ; then
10746 { echo "$as_me:$LINENO: checking for long long" >&5
10747 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10748 if test "${ac_cv_type_long_long+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 $ac_includes_default
10758 typedef long long ac__type_new_;
10762 if ((ac__type_new_ *) 0)
10764 if (sizeof (ac__type_new_))
10770 rm -f conftest.$ac_objext
10771 if { (ac_try="$ac_compile"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_compile") 2>conftest.er1
10779 grep -v '^
*+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest.$ac_objext; then
10787 ac_cv_type_long_long=yes
10789 echo "$as_me: failed program was:" >&5
10790 sed 's
/^
/|
/' conftest.$ac_ext >&5
10792 ac_cv_type_long_long=no
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10798 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10800 # The cast to long int works around a bug in the HP C Compiler
10801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10803 # This bug is HP SR number 8606223364.
10804 { echo "$as_me:$LINENO: checking size of long long" >&5
10805 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10806 if test "${ac_cv_sizeof_long_long+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 if test "$cross_compiling" = yes; then
10810 # Depending upon the size, compute the lo and hi bounds.
10811 cat >conftest.
$ac_ext <<_ACEOF
10814 cat confdefs.h
>>conftest.
$ac_ext
10815 cat >>conftest.
$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 $ac_includes_default
10818 typedef long long ac__type_sizeof_;
10822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10829 rm -f conftest.
$ac_objext
10830 if { (ac_try
="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest.$ac_objext; then
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 $ac_includes_default
10855 typedef long long ac__type_sizeof_;
10859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10870 *) ac_try_echo
=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1
>conftest.err
10877 cat conftest.err
>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest.
$ac_objext; then
10883 ac_hi
=$ac_mid; break
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.
$ac_ext >&5
10888 ac_lo
=`expr $ac_mid + 1`
10889 if test $ac_lo -le $ac_mid; then
10893 ac_mid
=`expr 2 '*' $ac_mid + 1`
10896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.
$ac_ext >&5
10902 cat >conftest.
$ac_ext <<_ACEOF
10905 cat confdefs.h
>>conftest.
$ac_ext
10906 cat >>conftest.
$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 $ac_includes_default
10909 typedef long long ac__type_sizeof_;
10913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10920 rm -f conftest.
$ac_objext
10921 if { (ac_try
="$ac_compile"
10922 case "(($ac_try" in
10923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_compile") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest.$ac_objext; then
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 $ac_includes_default
10946 typedef long long ac__type_sizeof_;
10950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10957 rm -f conftest.$ac_objext
10958 if { (ac_try="$ac_compile"
10959 case "(($ac_try" in
10960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10961 *) ac_try_echo
=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_compile") 2>conftest.er1
10966 grep -v '^ *+' conftest.er1
>conftest.err
10968 cat conftest.err
>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && {
10971 test -z "$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 } && test -s conftest.
$ac_objext; then
10974 ac_lo
=$ac_mid; break
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.
$ac_ext >&5
10979 ac_hi
=`expr '(' $ac_mid ')' - 1`
10980 if test $ac_mid -le $ac_hi; then
10984 ac_mid
=`expr 2 '*' $ac_mid`
10987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.
$ac_ext >&5
10996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11000 # Binary search between lo and hi bounds.
11001 while test "x$ac_lo" != "x$ac_hi"; do
11002 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11003 cat >conftest.
$ac_ext <<_ACEOF
11006 cat confdefs.h
>>conftest.
$ac_ext
11007 cat >>conftest.
$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 $ac_includes_default
11010 typedef long long ac__type_sizeof_;
11014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11021 rm -f conftest.
$ac_objext
11022 if { (ac_try
="$ac_compile"
11023 case "(($ac_try" in
11024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_compile") 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } && {
11035 test -z "$ac_c_werror_flag" ||
11036 test ! -s conftest.err
11037 } && test -s conftest.$ac_objext; then
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 ac_lo=`expr '(' $ac_mid ')' + 1`
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11050 '') if test "$ac_cv_type_long_long" = yes; then
11051 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11052 See \`config.log
' for more details." >&5
11053 echo "$as_me: error: cannot compute sizeof (long long)
11054 See \`config.log' for more details.
" >&2;}
11055 { (exit 77); exit 77; }; }
11057 ac_cv_sizeof_long_long=0
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 $ac_includes_default
11068 typedef long long ac__type_sizeof_;
11069 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11070 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11072 #include <stdlib.h>
11077 FILE *f = fopen ("conftest.val
", "w
");
11080 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11082 long int i = longval ();
11083 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11085 fprintf (f, "%ld
\n", i);
11089 unsigned long int i = ulongval ();
11090 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11092 fprintf (f, "%lu
\n", i);
11094 return ferror (f) || fclose (f) != 0;
11100 rm -f conftest$ac_exeext
11101 if { (ac_try="$ac_link"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_link") 2>&5
11109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11111 { (case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_try") 2>&5
11118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11119 (exit $ac_status); }; }; then
11120 ac_cv_sizeof_long_long=`cat conftest.val`
11122 echo "$as_me: program exited with status
$ac_status" >&5
11123 echo "$as_me: failed program was
:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 ( exit $ac_status )
11127 if test "$ac_cv_type_long_long" = yes; then
11128 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11129 See \
`config.log' for more details." >&5
11130 echo "$as_me: error: cannot compute sizeof (long long)
11131 See \`config.log
' for more details." >&2;}
11132 { (exit 77); exit 77; }; }
11134 ac_cv_sizeof_long_long=0
11137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11141 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11142 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11146 cat >>confdefs.h <<_ACEOF
11147 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11153 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11154 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11156 cat >conftest.$ac_ext <<_ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11166 _Bool x; x = (_Bool)0;
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11180 grep -v '^
*+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11190 cat >>confdefs.h <<\_ACEOF
11191 #define HAVE_C99_BOOL 1
11197 echo "$as_me: failed program was:" >&5
11198 sed 's
/^
/|
/' conftest.$ac_ext >&5
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11205 echo "${ECHO_T}$have_c99_bool" >&6; }
11206 if test "$have_c99_bool" = yes ; then
11207 { echo "$as_me:$LINENO: checking for _Bool" >&5
11208 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11209 if test "${ac_cv_type__Bool+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 $ac_includes_default
11219 typedef _Bool ac__type_new_;
11223 if ((ac__type_new_ *) 0)
11225 if (sizeof (ac__type_new_))
11231 rm -f conftest.$ac_objext
11232 if { (ac_try="$ac_compile"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_compile") 2>conftest.er1
11240 grep -v '^
*+' conftest.er1 >conftest.err
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest.$ac_objext; then
11248 ac_cv_type__Bool=yes
11250 echo "$as_me: failed program was:" >&5
11251 sed 's
/^
/|
/' conftest.$ac_ext >&5
11253 ac_cv_type__Bool=no
11256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11259 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11261 # The cast to long int works around a bug in the HP C Compiler
11262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11264 # This bug is HP SR number 8606223364.
11265 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11266 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11267 if test "${ac_cv_sizeof__Bool+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 if test "$cross_compiling" = yes; then
11271 # Depending upon the size, compute the lo and hi bounds.
11272 cat >conftest.
$ac_ext <<_ACEOF
11275 cat confdefs.h
>>conftest.
$ac_ext
11276 cat >>conftest.
$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11279 typedef _Bool ac__type_sizeof_;
11283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11290 rm -f conftest.
$ac_objext
11291 if { (ac_try
="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest.$ac_objext; then
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11316 typedef _Bool ac__type_sizeof_;
11320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11331 *) ac_try_echo
=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1
>conftest.err
11338 cat conftest.err
>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.
$ac_objext; then
11344 ac_hi
=$ac_mid; break
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.
$ac_ext >&5
11349 ac_lo
=`expr $ac_mid + 1`
11350 if test $ac_lo -le $ac_mid; then
11354 ac_mid
=`expr 2 '*' $ac_mid + 1`
11357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.
$ac_ext >&5
11363 cat >conftest.
$ac_ext <<_ACEOF
11366 cat confdefs.h
>>conftest.
$ac_ext
11367 cat >>conftest.
$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 $ac_includes_default
11370 typedef _Bool ac__type_sizeof_;
11374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11381 rm -f conftest.
$ac_objext
11382 if { (ac_try
="$ac_compile"
11383 case "(($ac_try" in
11384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_compile") 2>conftest.er1
11390 grep -v '^ *+' conftest.er1 >conftest.err
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } && {
11395 test -z "$ac_c_werror_flag" ||
11396 test ! -s conftest.err
11397 } && test -s conftest.$ac_objext; then
11400 cat >conftest.$ac_ext <<_ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 $ac_includes_default
11407 typedef _Bool ac__type_sizeof_;
11411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11422 *) ac_try_echo
=$ac_try;;
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_compile") 2>conftest.er1
11427 grep -v '^ *+' conftest.er1
>conftest.err
11429 cat conftest.err
>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } && {
11432 test -z "$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 } && test -s conftest.
$ac_objext; then
11435 ac_lo
=$ac_mid; break
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.
$ac_ext >&5
11440 ac_hi
=`expr '(' $ac_mid ')' - 1`
11441 if test $ac_mid -le $ac_hi; then
11445 ac_mid
=`expr 2 '*' $ac_mid`
11448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.
$ac_ext >&5
11457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11461 # Binary search between lo and hi bounds.
11462 while test "x$ac_lo" != "x$ac_hi"; do
11463 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11464 cat >conftest.
$ac_ext <<_ACEOF
11467 cat confdefs.h
>>conftest.
$ac_ext
11468 cat >>conftest.
$ac_ext <<_ACEOF
11469 /* end confdefs.h. */
11470 $ac_includes_default
11471 typedef _Bool ac__type_sizeof_;
11475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11482 rm -f conftest.
$ac_objext
11483 if { (ac_try
="$ac_compile"
11484 case "(($ac_try" in
11485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_compile") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest.$ac_objext; then
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ac_lo=`expr '(' $ac_mid ')' + 1`
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11510 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11511 '') if test "$ac_cv_type__Bool" = yes; then
11512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11513 See \`config.log
' for more details." >&5
11514 echo "$as_me: error: cannot compute sizeof (_Bool)
11515 See \`config.log' for more details.
" >&2;}
11516 { (exit 77); exit 77; }; }
11518 ac_cv_sizeof__Bool=0
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 $ac_includes_default
11529 typedef _Bool ac__type_sizeof_;
11530 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11531 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11533 #include <stdlib.h>
11538 FILE *f = fopen ("conftest.val
", "w
");
11541 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11543 long int i = longval ();
11544 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11546 fprintf (f, "%ld
\n", i);
11550 unsigned long int i = ulongval ();
11551 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11553 fprintf (f, "%lu
\n", i);
11555 return ferror (f) || fclose (f) != 0;
11561 rm -f conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_link") 2>&5
11570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11572 { (case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_try") 2>&5
11579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 ac_cv_sizeof__Bool=`cat conftest.val`
11583 echo "$as_me: program exited with status
$ac_status" >&5
11584 echo "$as_me: failed program was
:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ( exit $ac_status )
11588 if test "$ac_cv_type__Bool" = yes; then
11589 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
11590 See \
`config.log' for more details." >&5
11591 echo "$as_me: error: cannot compute sizeof (_Bool)
11592 See \`config.log
' for more details." >&2;}
11593 { (exit 77); exit 77; }; }
11595 ac_cv_sizeof__Bool=0
11598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11602 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11603 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11607 cat >>confdefs.h <<_ACEOF
11608 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11614 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11615 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11616 if test "${ac_cv_type_uintptr_t+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 #ifdef HAVE_STDINT_H
11626 #include <stdint.h>
11629 typedef uintptr_t ac__type_new_;
11633 if ((ac__type_new_ *) 0)
11635 if (sizeof (ac__type_new_))
11641 rm -f conftest.$ac_objext
11642 if { (ac_try="$ac_compile"
11643 case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_compile") 2>conftest.er1
11650 grep -v '^
*+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } && {
11655 test -z "$ac_c_werror_flag" ||
11656 test ! -s conftest.err
11657 } && test -s conftest.$ac_objext; then
11658 ac_cv_type_uintptr_t=yes
11660 echo "$as_me: failed program was:" >&5
11661 sed 's
/^
/|
/' conftest.$ac_ext >&5
11663 ac_cv_type_uintptr_t=no
11666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11669 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11670 if test $ac_cv_type_uintptr_t = yes; then
11672 cat >>confdefs.h <<_ACEOF
11673 #define HAVE_UINTPTR_T 1
11676 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11677 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11678 if test "${ac_cv_type_uintptr_t+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 $ac_includes_default
11688 typedef uintptr_t ac__type_new_;
11692 if ((ac__type_new_ *) 0)
11694 if (sizeof (ac__type_new_))
11700 rm -f conftest.$ac_objext
11701 if { (ac_try="$ac_compile"
11702 case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_compile") 2>conftest.er1
11709 grep -v '^
*+' conftest.er1 >conftest.err
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } && {
11714 test -z "$ac_c_werror_flag" ||
11715 test ! -s conftest.err
11716 } && test -s conftest.$ac_objext; then
11717 ac_cv_type_uintptr_t=yes
11719 echo "$as_me: failed program was:" >&5
11720 sed 's
/^
/|
/' conftest.$ac_ext >&5
11722 ac_cv_type_uintptr_t=no
11725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11728 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11730 # The cast to long int works around a bug in the HP C Compiler
11731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11733 # This bug is HP SR number 8606223364.
11734 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11735 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11736 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 if test "$cross_compiling" = yes; then
11740 # Depending upon the size, compute the lo and hi bounds.
11741 cat >conftest.
$ac_ext <<_ACEOF
11744 cat confdefs.h
>>conftest.
$ac_ext
11745 cat >>conftest.
$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11748 typedef uintptr_t ac__type_sizeof_;
11752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11759 rm -f conftest.
$ac_objext
11760 if { (ac_try
="$ac_compile"
11761 case "(($ac_try" in
11762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11768 grep -v '^ *+' conftest.er1 >conftest.err
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest.$ac_objext; then
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 $ac_includes_default
11785 typedef uintptr_t ac__type_sizeof_;
11789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11796 rm -f conftest.$ac_objext
11797 if { (ac_try="$ac_compile"
11798 case "(($ac_try" in
11799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11800 *) ac_try_echo
=$ac_try;;
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_compile") 2>conftest.er1
11805 grep -v '^ *+' conftest.er1
>conftest.err
11807 cat conftest.err
>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } && {
11810 test -z "$ac_c_werror_flag" ||
11811 test ! -s conftest.err
11812 } && test -s conftest.
$ac_objext; then
11813 ac_hi
=$ac_mid; break
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.
$ac_ext >&5
11818 ac_lo
=`expr $ac_mid + 1`
11819 if test $ac_lo -le $ac_mid; then
11823 ac_mid
=`expr 2 '*' $ac_mid + 1`
11826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11832 cat >conftest.
$ac_ext <<_ACEOF
11835 cat confdefs.h
>>conftest.
$ac_ext
11836 cat >>conftest.
$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 $ac_includes_default
11839 typedef uintptr_t ac__type_sizeof_;
11843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11850 rm -f conftest.
$ac_objext
11851 if { (ac_try
="$ac_compile"
11852 case "(($ac_try" in
11853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_compile") 2>conftest.er1
11859 grep -v '^ *+' conftest.er1 >conftest.err
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && {
11864 test -z "$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 } && test -s conftest.$ac_objext; then
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 $ac_includes_default
11876 typedef uintptr_t ac__type_sizeof_;
11880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11887 rm -f conftest.$ac_objext
11888 if { (ac_try="$ac_compile"
11889 case "(($ac_try" in
11890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11891 *) ac_try_echo
=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_compile") 2>conftest.er1
11896 grep -v '^ *+' conftest.er1
>conftest.err
11898 cat conftest.err
>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } && {
11901 test -z "$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11903 } && test -s conftest.
$ac_objext; then
11904 ac_lo
=$ac_mid; break
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.
$ac_ext >&5
11909 ac_hi
=`expr '(' $ac_mid ')' - 1`
11910 if test $ac_mid -le $ac_hi; then
11914 ac_mid
=`expr 2 '*' $ac_mid`
11917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.
$ac_ext >&5
11926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11930 # Binary search between lo and hi bounds.
11931 while test "x$ac_lo" != "x$ac_hi"; do
11932 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11933 cat >conftest.
$ac_ext <<_ACEOF
11936 cat confdefs.h
>>conftest.
$ac_ext
11937 cat >>conftest.
$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 $ac_includes_default
11940 typedef uintptr_t ac__type_sizeof_;
11944 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11951 rm -f conftest.
$ac_objext
11952 if { (ac_try
="$ac_compile"
11953 case "(($ac_try" in
11954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest.$ac_objext; then
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_lo=`expr '(' $ac_mid ')' + 1`
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11980 '') if test "$ac_cv_type_uintptr_t" = yes; then
11981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11982 See \`config.log
' for more details." >&5
11983 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11984 See \`config.log' for more details.
" >&2;}
11985 { (exit 77); exit 77; }; }
11987 ac_cv_sizeof_uintptr_t=0
11991 cat >conftest.$ac_ext <<_ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11998 typedef uintptr_t ac__type_sizeof_;
11999 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12000 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12002 #include <stdlib.h>
12007 FILE *f = fopen ("conftest.val
", "w
");
12010 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12012 long int i = longval ();
12013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12015 fprintf (f, "%ld
\n", i);
12019 unsigned long int i = ulongval ();
12020 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12022 fprintf (f, "%lu
\n", i);
12024 return ferror (f) || fclose (f) != 0;
12030 rm -f conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_link") 2>&5
12039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12041 { (case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_try") 2>&5
12048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12052 echo "$as_me: program exited with status
$ac_status" >&5
12053 echo "$as_me: failed program was
:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 ( exit $ac_status )
12057 if test "$ac_cv_type_uintptr_t" = yes; then
12058 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12059 See \
`config.log' for more details." >&5
12060 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12061 See \`config.log
' for more details." >&2;}
12062 { (exit 77); exit 77; }; }
12064 ac_cv_sizeof_uintptr_t=0
12067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12071 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12072 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12076 cat >>confdefs.h <<_ACEOF
12077 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12085 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12086 { echo "$as_me:$LINENO: checking size of off_t" >&5
12087 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12088 if test "${ac_cv_sizeof_off_t+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 if test "$cross_compiling" = yes; then
12092 ac_cv_sizeof_off_t
=4
12094 cat >conftest.
$ac_ext <<_ACEOF
12097 cat confdefs.h
>>conftest.
$ac_ext
12098 cat >>conftest.
$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12101 #include <sys/types.h>
12104 FILE *f=fopen("conftestval", "w");
12106 fprintf(f, "%d\n", sizeof(off_t));
12110 rm -f conftest
$ac_exeext
12111 if { (ac_try
="$ac_link"
12112 case "(($ac_try" in
12113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_link") 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12123 *) ac_try_echo
=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_sizeof_off_t
=`cat conftestval`
12132 echo "$as_me: program exited with status $ac_status" >&5
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.
$ac_ext >&5
12136 ( exit $ac_status )
12137 ac_cv_sizeof_off_t
=0
12139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12147 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12149 cat >>confdefs.h
<<_ACEOF
12150 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12154 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12155 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12156 if test "$have_long_long" = yes -a \
12157 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12158 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12160 cat >>confdefs.h
<<\_ACEOF
12161 #define HAVE_LARGEFILE_SUPPORT 1
12164 { echo "$as_me:$LINENO: result: yes" >&5
12165 echo "${ECHO_T}yes" >&6; }
12167 { echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6; }
12171 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12172 { echo "$as_me:$LINENO: checking size of time_t" >&5
12173 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12174 if test "${ac_cv_sizeof_time_t+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 if test "$cross_compiling" = yes; then
12178 ac_cv_sizeof_time_t
=4
12180 cat >conftest.
$ac_ext <<_ACEOF
12183 cat confdefs.h
>>conftest.
$ac_ext
12184 cat >>conftest.
$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12190 FILE *f=fopen("conftestval", "w");
12192 fprintf(f, "%d\n", sizeof(time_t));
12196 rm -f conftest
$ac_exeext
12197 if { (ac_try
="$ac_link"
12198 case "(($ac_try" in
12199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12209 *) ac_try_echo
=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_sizeof_time_t
=`cat conftestval`
12218 echo "$as_me: program exited with status $ac_status" >&5
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.
$ac_ext >&5
12222 ( exit $ac_status )
12223 ac_cv_sizeof_time_t
=0
12225 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12232 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12233 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12235 cat >>confdefs.h
<<_ACEOF
12236 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12241 # if have pthread_t then define SIZEOF_PTHREAD_T
12243 if test "$ac_cv_kpthread" = "yes"
12244 then CC
="$CC -Kpthread"
12245 elif test "$ac_cv_kthread" = "yes"
12246 then CC
="$CC -Kthread"
12247 elif test "$ac_cv_pthread" = "yes"
12248 then CC
="$CC -pthread"
12250 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12251 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12253 cat >conftest.
$ac_ext <<_ACEOF
12256 cat confdefs.h
>>conftest.
$ac_ext
12257 cat >>conftest.
$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 #include <pthread.h>
12263 pthread_t x; x = *(pthread_t*)0;
12268 rm -f conftest.
$ac_objext
12269 if { (ac_try
="$ac_compile"
12270 case "(($ac_try" in
12271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_compile") 2>conftest.er1
12277 grep -v '^ *+' conftest.er1 >conftest.err
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest.$ac_objext; then
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12295 echo "${ECHO_T}$have_pthread_t" >&6; }
12296 if test "$have_pthread_t" = yes ; then
12297 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12298 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12299 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12300 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 if test "$cross_compiling" = yes; then
12304 ac_cv_sizeof_pthread_t=4
12306 cat >conftest.$ac_ext <<_ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 #include <pthread.h>
12316 FILE *f=fopen("conftestval", "w");
12318 fprintf(f, "%d\n", sizeof(pthread_t));
12322 rm -f conftest$ac_exeext
12323 if { (ac_try="$ac_link"
12324 case "(($ac_try" in
12325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12326 *) ac_try_echo
=$ac_try;;
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_link") 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12333 { (case "(($ac_try" in
12334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_sizeof_pthread_t=`cat conftestval
`
12344 echo "$as_me: program exited with status $ac_status" >&5
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ( exit $ac_status )
12349 ac_cv_sizeof_pthread_t=0
12351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12358 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12359 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12361 cat >>confdefs.h <<_ACEOF
12362 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12368 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12369 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12370 # Check whether --enable-toolbox-glue was given.
12371 if test "${enable_toolbox_glue+set}" = set; then
12372 enableval=$enable_toolbox_glue;
12376 if test -z "$enable_toolbox_glue"
12378 case $ac_sys_system/$ac_sys_release in
12380 enable_toolbox_glue="yes";;
12382 enable_toolbox_glue="no";;
12385 case "$enable_toolbox_glue" in
12387 extra_machdep_objs="Python/mactoolboxglue.o"
12388 extra_undefs="-u _PyMac_Error"
12390 cat >>confdefs.h <<\_ACEOF
12391 #define USE_TOOLBOX_OBJECT_GLUE 1
12396 extra_machdep_objs=""
12400 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12401 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12405 case $ac_sys_system/$ac_sys_release in
12406 Darwin/[01567]\..*)
12407 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12410 OTHER_LIBTOOL_OPT=""
12415 case $ac_sys_system/$ac_sys_release in
12416 Darwin/[01567]\..*)
12417 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12418 if test "${enable_universalsdk}"; then
12421 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12423 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12424 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12426 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12427 if test ${gcc_version} '<' 4.0
12429 LIBTOOL_CRUFT="-lcc_dynamic"
12433 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12434 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12435 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12438 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12439 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12440 if test "$enable_framework"
12442 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12443 # -F. is needed to allow linking to the framework while
12444 # in the build location.
12446 cat >>confdefs.h <<\_ACEOF
12447 #define WITH_NEXT_FRAMEWORK 1
12450 { echo "$as_me:$LINENO: result: yes" >&5
12451 echo "${ECHO_T}yes" >&6; }
12453 { echo "$as_me:$LINENO: result: no" >&5
12454 echo "${ECHO_T}no" >&6; }
12457 { echo "$as_me:$LINENO: checking for dyld" >&5
12458 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12459 case $ac_sys_system/$ac_sys_release in
12462 cat >>confdefs.h <<\_ACEOF
12463 #define WITH_DYLD 1
12466 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12467 echo "${ECHO_T}always on for Darwin" >&6; }
12470 { echo "$as_me:$LINENO: result: no" >&5
12471 echo "${ECHO_T}no" >&6; }
12475 # Set info about shared libraries.
12481 # SO is the extension of shared libraries `(including the dot
!)
12482 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12483 { echo "$as_me:$LINENO: checking SO" >&5
12484 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12487 case $ac_sys_system in
12498 # this might also be a termcap variable, see #610332
12500 echo '====================================================================='
12502 echo '+ WARNING: You have set SO in your environment. +'
12503 echo '+ Do you really mean to change the extension for shared libraries? +'
12504 echo '+ Continuing in 10 seconds to let you to ponder. +'
12506 echo '====================================================================='
12509 { echo "$as_me:$LINENO: result: $SO" >&5
12510 echo "${ECHO_T}$SO" >&6; }
12512 cat >>confdefs.h
<<_ACEOF
12513 #define SHLIB_EXT "$SO"
12516 # LDSHARED is the ld *command* used to create shared library
12517 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12518 # (Shared libraries in this instance are shared modules to be loaded into
12519 # Python, as opposed to building Python itself as a shared library.)
12520 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12521 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12522 if test -z "$LDSHARED"
12524 case $ac_sys_system/$ac_sys_release in
12526 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12527 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12530 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12531 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12533 IRIX
/5*) LDSHARED
="ld -shared";;
12534 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
12536 if test "$GCC" = "yes"
12537 then LDSHARED
='$(CC) -shared'
12538 else LDSHARED
='$(CC) -G';
12541 if test "$GCC" = "yes"
12542 then LDSHARED
='$(CC) -shared'
12543 else LDSHARED
='ld -b';
12545 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
12547 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12548 if test "$enable_framework" ; then
12549 # Link against the framework. All externals should be defined.
12550 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12551 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12553 # No framework. Ignore undefined symbols, assuming they come from Python
12554 LDSHARED
="$LDSHARED -undefined suppress"
12556 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12557 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12558 if test "$enable_framework" ; then
12559 # Link against the framework. All externals should be defined.
12560 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12561 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12563 # No framework, use the Python app as bundle-loader
12564 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12565 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12568 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12569 # This allows an extension to be used in any Python
12570 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12571 if test ${cur_target} '>' 10.2; then
12574 if test "${UNIVERSAL_ARCHS}" = "all"; then
12575 # Ensure that the default platform for a 4-way
12576 # universal build is OSX 10.5, that's the first
12577 # OS release where 4-way builds make sense.
12580 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12582 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12583 # environment with a value that is the same as what we'll use
12584 # in the Makefile to ensure that we'll get the same compiler
12585 # environment during configure and build time.
12586 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12587 export MACOSX_DEPLOYMENT_TARGET
12589 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
12590 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
12592 if test "${enable_universalsdk}"; then
12593 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12595 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12596 BLDSHARED
="$LDSHARED"
12598 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12599 if test "$enable_framework" ; then
12600 # Link against the framework. All externals should be defined.
12601 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12602 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12604 # No framework, use the Python app as bundle-loader
12605 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12606 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12610 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
12611 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
12613 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12615 LDSHARED
="$CC -shared ${LDFLAGS}"
12617 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12620 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12622 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12625 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12626 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12629 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12633 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
12634 OpenUNIX
*|UnixWare
*)
12635 if test "$GCC" = "yes"
12636 then LDSHARED
='$(CC) -shared'
12637 else LDSHARED
='$(CC) -G'
12639 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
12640 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12641 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
12642 atheos
*) LDSHARED
="gcc -shared";;
12646 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12647 echo "${ECHO_T}$LDSHARED" >&6; }
12648 BLDSHARED
=${BLDSHARED-$LDSHARED}
12649 # CCSHARED are the C *flags* used to create objects to go into a shared
12650 # library (module) -- this is only needed for a few systems
12651 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12652 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12653 if test -z "$CCSHARED"
12655 case $ac_sys_system/$ac_sys_release in
12656 SunOS
*) if test "$GCC" = yes;
12657 then CCSHARED
="-fPIC";
12658 elif test `uname -p` = sparc
;
12659 then CCSHARED
="-xcode=pic32";
12660 else CCSHARED
="-Kpic";
12662 hp
*|HP
*) if test "$GCC" = yes;
12663 then CCSHARED
="-fPIC";
12664 else CCSHARED
="+z";
12666 Linux
*|GNU
*) CCSHARED
="-fPIC";;
12667 BSD
/OS
*/4*) CCSHARED
="-fpic";;
12668 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
12669 OpenUNIX
*|UnixWare
*)
12670 if test "$GCC" = "yes"
12671 then CCSHARED
="-fPIC"
12672 else CCSHARED
="-KPIC"
12675 if test "$GCC" = "yes"
12676 then CCSHARED
="-fPIC"
12677 else CCSHARED
="-Kpic -belf"
12679 Monterey
*) CCSHARED
="-G";;
12680 IRIX
*/6*) case $CC in
12681 *gcc
*) CCSHARED
="-shared";;
12684 atheos
*) CCSHARED
="-fPIC";;
12687 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12688 echo "${ECHO_T}$CCSHARED" >&6; }
12689 # LINKFORSHARED are the flags passed to the $(CC) command that links
12690 # the python executable -- this is only needed for a few systems
12691 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12692 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12693 if test -z "$LINKFORSHARED"
12695 case $ac_sys_system/$ac_sys_release in
12696 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
12698 LINKFORSHARED
="-Wl,-E -Wl,+s";;
12699 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12700 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12701 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12702 # -u libsys_s pulls in all symbols in libsys
12704 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12706 # not used by the core itself but which needs to be in the core so
12707 # that dynamically loaded extension modules have access to it.
12708 # -prebind is no longer used, because it actually seems to give a
12709 # slowdown in stead of a speedup, maybe due to the large number of
12710 # dynamic loads Python does.
12712 LINKFORSHARED
="$extra_undefs"
12713 if test "$enable_framework"
12715 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12717 LINKFORSHARED
="$LINKFORSHARED";;
12718 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
12719 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
12720 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
12721 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
12722 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12724 LINKFORSHARED
="-Wl,--export-dynamic"
12726 SunOS
/5*) case $CC in
12728 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
12730 LINKFORSHARED
="-Xlinker --export-dynamic"
12734 if test $enable_shared = "no"
12736 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
12739 # -Wl,-E causes the symbols to be added to the dynamic
12740 # symbol table so that they can be found when a module
12741 # is loaded. -N 2048K causes the stack size to be set
12742 # to 2048 kilobytes so that the stack doesn't overflow
12743 # when running test_compile.py.
12744 LINKFORSHARED
='-Wl,-E -N 2048K';;
12747 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12748 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12752 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12753 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12754 if test ! "$LIBRARY" = "$LDLIBRARY"
12756 case $ac_sys_system in
12758 # Cygwin needs CCSHARED when building extension DLLs
12759 # but not when building the interpreter DLL.
12760 CFLAGSFORSHARED
='';;
12762 CFLAGSFORSHARED
='$(CCSHARED)'
12765 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12766 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12768 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12769 # library (with --enable-shared).
12770 # For platforms on which shared libraries are not allowed to have unresolved
12771 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12772 # if it is not required, since it creates a dependency of the shared library
12773 # to LIBS. This, in turn, means that applications linking the shared libpython
12774 # don't need to link LIBS explicitly. The default should be only changed
12775 # on systems where this approach causes problems.
12777 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12778 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12779 case "$ac_sys_system" in
12783 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12784 echo "${ECHO_T}$SHLIBS" >&6; }
12787 # checks for libraries
12789 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12794 ac_check_lib_save_LIBS
=$LIBS
12796 cat >conftest.
$ac_ext <<_ACEOF
12799 cat confdefs.h
>>conftest.
$ac_ext
12800 cat >>conftest.
$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12818 rm -f conftest.
$ac_objext conftest
$ac_exeext
12819 if { (ac_try
="$ac_link"
12820 case "(($ac_try" in
12821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>conftest.er1
12827 grep -v '^ *+' conftest.er1 >conftest.err
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && {
12832 test -z "$ac_c_werror_flag" ||
12833 test ! -s conftest.err
12834 } && test -s conftest$ac_exeext &&
12835 $as_test_x conftest$ac_exeext; then
12836 ac_cv_lib_dl_dlopen=yes
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 ac_cv_lib_dl_dlopen=no
12844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12845 conftest$ac_exeext conftest.$ac_ext
12846 LIBS=$ac_check_lib_save_LIBS
12848 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12850 if test $ac_cv_lib_dl_dlopen = yes; then
12851 cat >>confdefs.h <<_ACEOF
12852 #define HAVE_LIBDL 1
12858 # Dynamic linking for SunOS/Solaris and SYSV
12860 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12861 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12862 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 ac_check_lib_save_LIBS=$LIBS
12867 cat >conftest.$ac_ext <<_ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12884 return shl_load ();
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12893 *) ac_try_echo
=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1
>conftest.err
12900 cat conftest.err
>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest
$ac_exeext &&
12906 $as_test_x conftest
$ac_exeext; then
12907 ac_cv_lib_dld_shl_load
=yes
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.
$ac_ext >&5
12912 ac_cv_lib_dld_shl_load
=no
12915 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12916 conftest
$ac_exeext conftest.
$ac_ext
12917 LIBS
=$ac_check_lib_save_LIBS
12919 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12920 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12921 if test $ac_cv_lib_dld_shl_load = yes; then
12922 cat >>confdefs.h
<<_ACEOF
12923 #define HAVE_LIBDLD 1
12929 # Dynamic linking for HP-UX
12931 # only check for sem_ini if thread support is requested
12932 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12933 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12934 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12935 if test "${ac_cv_search_sem_init+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 ac_func_search_save_LIBS
=$LIBS
12939 cat >conftest.
$ac_ext <<_ACEOF
12942 cat confdefs.h
>>conftest.
$ac_ext
12943 cat >>conftest.
$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12956 return sem_init ();
12961 for ac_lib
in '' pthread rt posix4
; do
12962 if test -z "$ac_lib"; then
12963 ac_res
="none required"
12966 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12968 rm -f conftest.
$ac_objext conftest
$ac_exeext
12969 if { (ac_try
="$ac_link"
12970 case "(($ac_try" in
12971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>conftest.er1
12977 grep -v '^ *+' conftest.er1 >conftest.err
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest$ac_exeext &&
12985 $as_test_x conftest$ac_exeext; then
12986 ac_cv_search_sem_init=$ac_res
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12996 if test "${ac_cv_search_sem_init+set}" = set; then
13000 if test "${ac_cv_search_sem_init+set}" = set; then
13003 ac_cv_search_sem_init=no
13005 rm conftest.$ac_ext
13006 LIBS=$ac_func_search_save_LIBS
13008 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13009 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13010 ac_res=$ac_cv_search_sem_init
13011 if test "$ac_res" != no; then
13012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13015 # 'Real Time' functions on Solaris
13016 # posix4 on Solaris 2.6
13017 # pthread (first!) on Linux
13020 # check if we need libintl for locale functions
13021 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13022 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13023 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 ac_check_lib_save_LIBS=$LIBS
13027 LIBS="-lintl $LIBS"
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13041 char textdomain ();
13045 return textdomain ();
13050 rm -f conftest.$ac_objext conftest$ac_exeext
13051 if { (ac_try="$ac_link"
13052 case "(($ac_try" in
13053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13054 *) ac_try_echo
=$ac_try;;
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_link") 2>conftest.er1
13059 grep -v '^ *+' conftest.er1
>conftest.err
13061 cat conftest.err
>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest
$ac_exeext &&
13067 $as_test_x conftest
$ac_exeext; then
13068 ac_cv_lib_intl_textdomain
=yes
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.
$ac_ext >&5
13073 ac_cv_lib_intl_textdomain
=no
13076 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13077 conftest
$ac_exeext conftest.
$ac_ext
13078 LIBS
=$ac_check_lib_save_LIBS
13080 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13081 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13082 if test $ac_cv_lib_intl_textdomain = yes; then
13084 cat >>confdefs.h
<<\_ACEOF
13085 #define WITH_LIBINTL 1
13091 # checks for system dependent C++ extensions support
13092 case "$ac_sys_system" in
13093 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13094 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13095 cat >conftest.
$ac_ext <<_ACEOF
13098 cat confdefs.h
>>conftest.
$ac_ext
13099 cat >>conftest.
$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 #include "/usr/lpp/xlC/include/load.h"
13105 loadAndInit("", 0, "")
13110 rm -f conftest.
$ac_objext conftest
$ac_exeext
13111 if { (ac_try
="$ac_link"
13112 case "(($ac_try" in
13113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_link") 2>conftest.er1
13119 grep -v '^ *+' conftest.er1 >conftest.err
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } && {
13124 test -z "$ac_c_werror_flag" ||
13125 test ! -s conftest.err
13126 } && test -s conftest$ac_exeext &&
13127 $as_test_x conftest$ac_exeext; then
13129 cat >>confdefs.h <<\_ACEOF
13130 #define AIX_GENUINE_CPLUSPLUS 1
13133 { echo "$as_me:$LINENO: result: yes" >&5
13134 echo "${ECHO_T}yes" >&6; }
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13139 { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13144 conftest$ac_exeext conftest.$ac_ext;;
13148 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13149 # BeOS' sockets are stashed in libnet.
13150 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13151 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13152 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 ac_check_lib_save_LIBS=$LIBS
13157 cat >conftest.$ac_ext <<_ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13179 rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (ac_try="$ac_link"
13181 case "(($ac_try" in
13182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13183 *) ac_try_echo
=$ac_try;;
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_link") 2>conftest.er1
13188 grep -v '^ *+' conftest.er1
>conftest.err
13190 cat conftest.err
>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } && {
13193 test -z "$ac_c_werror_flag" ||
13194 test ! -s conftest.err
13195 } && test -s conftest
$ac_exeext &&
13196 $as_test_x conftest
$ac_exeext; then
13197 ac_cv_lib_nsl_t_open
=yes
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.
$ac_ext >&5
13202 ac_cv_lib_nsl_t_open
=no
13205 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13206 conftest
$ac_exeext conftest.
$ac_ext
13207 LIBS
=$ac_check_lib_save_LIBS
13209 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13210 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13211 if test $ac_cv_lib_nsl_t_open = yes; then
13215 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13216 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13217 if test "${ac_cv_lib_socket_socket+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_check_lib_save_LIBS
=$LIBS
13221 LIBS
="-lsocket $LIBS $LIBS"
13222 cat >conftest.
$ac_ext <<_ACEOF
13225 cat confdefs.h
>>conftest.
$ac_ext
13226 cat >>conftest.
$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13229 /* Override any GCC internal prototype to avoid an error.
13230 Use char because int might match the return type of a GCC
13231 builtin and then its argument prototype would still apply. */
13244 rm -f conftest.
$ac_objext conftest
$ac_exeext
13245 if { (ac_try
="$ac_link"
13246 case "(($ac_try" in
13247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_link") 2>conftest.er1
13253 grep -v '^ *+' conftest.er1 >conftest.err
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest$ac_exeext &&
13261 $as_test_x conftest$ac_exeext; then
13262 ac_cv_lib_socket_socket=yes
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_cv_lib_socket_socket=no
13270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13274 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13275 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13276 if test $ac_cv_lib_socket_socket = yes; then
13277 LIBS="-lsocket $LIBS"
13281 case "$ac_sys_system" in
13283 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13284 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13285 if test "${ac_cv_lib_net_socket+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 ac_check_lib_save_LIBS=$LIBS
13289 LIBS="-lnet $LIBS $LIBS"
13290 cat >conftest.$ac_ext <<_ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13297 /* Override any GCC internal prototype to avoid an error.
13298 Use char because int might match the return type of a GCC
13299 builtin and then its argument prototype would still apply. */
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13316 *) ac_try_echo
=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1
>conftest.err
13323 cat conftest.err
>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && {
13326 test -z "$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 } && test -s conftest
$ac_exeext &&
13329 $as_test_x conftest
$ac_exeext; then
13330 ac_cv_lib_net_socket
=yes
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.
$ac_ext >&5
13335 ac_cv_lib_net_socket
=no
13338 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13339 conftest
$ac_exeext conftest.
$ac_ext
13340 LIBS
=$ac_check_lib_save_LIBS
13342 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13343 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13344 if test $ac_cv_lib_net_socket = yes; then
13351 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13352 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13354 # Check whether --with-libs was given.
13355 if test "${with_libs+set}" = set; then
13356 withval
=$with_libs;
13357 { echo "$as_me:$LINENO: result: $withval" >&5
13358 echo "${ECHO_T}$withval" >&6; }
13359 LIBS
="$withval $LIBS"
13362 { echo "$as_me:$LINENO: result: no" >&5
13363 echo "${ECHO_T}no" >&6; }
13367 # Check for use of the system libffi library
13368 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13369 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13371 # Check whether --with-system_ffi was given.
13372 if test "${with_system_ffi+set}" = set; then
13373 withval
=$with_system_ffi;
13377 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13378 echo "${ECHO_T}$with_system_ffi" >&6; }
13380 # Determine if signalmodule should be used.
13383 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13384 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13386 # Check whether --with-signal-module was given.
13387 if test "${with_signal_module+set}" = set; then
13388 withval
=$with_signal_module;
13392 if test -z "$with_signal_module"
13393 then with_signal_module
="yes"
13395 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13396 echo "${ECHO_T}$with_signal_module" >&6; }
13398 if test "${with_signal_module}" = "yes"; then
13399 USE_SIGNAL_MODULE
=""
13402 USE_SIGNAL_MODULE
="#"
13403 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13406 # This is used to generate Setup.config
13408 USE_THREAD_MODULE
=""
13410 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13411 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13414 # Check whether --with-dec-threads was given.
13415 if test "${with_dec_threads+set}" = set; then
13416 withval
=$with_dec_threads;
13417 { echo "$as_me:$LINENO: result: $withval" >&5
13418 echo "${ECHO_T}$withval" >&6; }
13420 if test "${with_thread+set}" != set; then
13421 with_thread
="$withval";
13424 { echo "$as_me:$LINENO: result: no" >&5
13425 echo "${ECHO_T}no" >&6; }
13429 # Templates for things AC_DEFINEd more than once.
13430 # For a single AC_DEFINE, no template is needed.
13438 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13439 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13441 # Check whether --with-threads was given.
13442 if test "${with_threads+set}" = set; then
13443 withval
=$with_threads;
13447 # --with-thread is deprecated, but check for it anyway
13449 # Check whether --with-thread was given.
13450 if test "${with_thread+set}" = set; then
13451 withval
=$with_thread; with_threads
=$with_thread
13455 if test -z "$with_threads"
13456 then with_threads
="yes"
13458 { echo "$as_me:$LINENO: result: $with_threads" >&5
13459 echo "${ECHO_T}$with_threads" >&6; }
13462 if test "$with_threads" = "no"
13464 USE_THREAD_MODULE
="#"
13465 elif test "$ac_cv_pthread_is_default" = yes
13467 cat >>confdefs.h
<<\_ACEOF
13468 #define WITH_THREAD 1
13471 # Defining _REENTRANT on system with POSIX threads should not hurt.
13472 cat >>confdefs.h
<<\_ACEOF
13473 #define _REENTRANT 1
13477 THREADOBJ
="Python/thread.o"
13478 elif test "$ac_cv_kpthread" = "yes"
13481 if test "$ac_cv_cxx_thread" = "yes"; then
13482 CXX
="$CXX -Kpthread"
13484 cat >>confdefs.h
<<\_ACEOF
13485 #define WITH_THREAD 1
13489 THREADOBJ
="Python/thread.o"
13490 elif test "$ac_cv_kthread" = "yes"
13493 if test "$ac_cv_cxx_thread" = "yes"; then
13494 CXX
="$CXX -Kthread"
13496 cat >>confdefs.h
<<\_ACEOF
13497 #define WITH_THREAD 1
13501 THREADOBJ
="Python/thread.o"
13502 elif test "$ac_cv_pthread" = "yes"
13505 if test "$ac_cv_cxx_thread" = "yes"; then
13506 CXX
="$CXX -pthread"
13508 cat >>confdefs.h
<<\_ACEOF
13509 #define WITH_THREAD 1
13513 THREADOBJ
="Python/thread.o"
13515 if test ! -z "$with_threads" -a -d "$with_threads"
13516 then LDFLAGS
="$LDFLAGS -L$with_threads"
13518 if test ! -z "$withval" -a -d "$withval"
13519 then LDFLAGS
="$LDFLAGS -L$withval"
13522 # According to the POSIX spec, a pthreads implementation must
13523 # define _POSIX_THREADS in unistd.h. Some apparently don't
13524 # (e.g. gnu pth with pthread emulation)
13525 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13526 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13527 cat >conftest.
$ac_ext <<_ACEOF
13530 cat confdefs.h
>>conftest.
$ac_ext
13531 cat >>conftest.
$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13534 #include <unistd.h>
13535 #ifdef _POSIX_THREADS
13540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13541 $EGREP "yes" >/dev
/null
2>&1; then
13542 unistd_defines_pthreads
=yes
13544 unistd_defines_pthreads
=no
13548 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13549 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13551 cat >>confdefs.h
<<\_ACEOF
13552 #define _REENTRANT 1
13555 if test "${ac_cv_header_cthreads_h+set}" = set; then
13556 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13557 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13558 if test "${ac_cv_header_cthreads_h+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13562 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13564 # Is the header compilable?
13565 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13566 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13567 cat >conftest.
$ac_ext <<_ACEOF
13570 cat confdefs.h
>>conftest.
$ac_ext
13571 cat >>conftest.
$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13573 $ac_includes_default
13574 #include <cthreads.h>
13576 rm -f conftest.
$ac_objext
13577 if { (ac_try
="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compile") 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.$ac_objext; then
13593 ac_header_compiler=yes
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 ac_header_compiler=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13603 echo "${ECHO_T}$ac_header_compiler" >&6; }
13605 # Is the header present?
13606 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13607 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 #include <cthreads.h>
13616 if { (ac_try="$ac_cpp conftest.$ac_ext"
13617 case "(($ac_try" in
13618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13619 *) ac_try_echo
=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1
>conftest.err
13626 cat conftest.err
>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } >/dev
/null
&& {
13629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13632 ac_header_preproc
=yes
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.
$ac_ext >&5
13637 ac_header_preproc
=no
13640 rm -f conftest.err conftest.
$ac_ext
13641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13642 echo "${ECHO_T}$ac_header_preproc" >&6; }
13644 # So? What about this header?
13645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13647 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13648 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13650 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13651 ac_header_preproc
=yes
13654 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13655 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13657 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13659 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13661 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13663 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13665 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13667 ## ------------------------------------------------ ##
13668 ## Report this to http://www.python.org/python-bugs ##
13669 ## ------------------------------------------------ ##
13671 ) |
sed "s/^/$as_me: WARNING: /" >&2
13674 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13675 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13676 if test "${ac_cv_header_cthreads_h+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 ac_cv_header_cthreads_h
=$ac_header_preproc
13681 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13682 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13685 if test $ac_cv_header_cthreads_h = yes; then
13686 cat >>confdefs.h
<<\_ACEOF
13687 #define WITH_THREAD 1
13690 cat >>confdefs.h
<<\_ACEOF
13691 #define C_THREADS 1
13695 cat >>confdefs.h
<<\_ACEOF
13696 #define HURD_C_THREADS 1
13699 LIBS
="$LIBS -lthreads"
13700 THREADOBJ
="Python/thread.o"
13703 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13704 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13705 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13706 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13710 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13712 # Is the header compilable?
13713 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13714 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13715 cat >conftest.
$ac_ext <<_ACEOF
13718 cat confdefs.h
>>conftest.
$ac_ext
13719 cat >>conftest.
$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13722 #include <mach/cthreads.h>
13724 rm -f conftest.
$ac_objext
13725 if { (ac_try
="$ac_compile"
13726 case "(($ac_try" in
13727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_compile") 2>conftest.er1
13733 grep -v '^ *+' conftest.er1 >conftest.err
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } && {
13738 test -z "$ac_c_werror_flag" ||
13739 test ! -s conftest.err
13740 } && test -s conftest.$ac_objext; then
13741 ac_header_compiler=yes
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13746 ac_header_compiler=no
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13751 echo "${ECHO_T}$ac_header_compiler" >&6; }
13753 # Is the header present?
13754 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13755 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13762 #include <mach/cthreads.h>
13764 if { (ac_try="$ac_cpp conftest.$ac_ext"
13765 case "(($ac_try" in
13766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13767 *) ac_try_echo
=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13772 grep -v '^ *+' conftest.er1
>conftest.err
13774 cat conftest.err
>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } >/dev
/null
&& {
13777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13780 ac_header_preproc
=yes
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.
$ac_ext >&5
13785 ac_header_preproc
=no
13788 rm -f conftest.err conftest.
$ac_ext
13789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13790 echo "${ECHO_T}$ac_header_preproc" >&6; }
13792 # So? What about this header?
13793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13795 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13796 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13798 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13799 ac_header_preproc
=yes
13802 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13803 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13805 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13807 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13809 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13811 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13813 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13815 ## ------------------------------------------------ ##
13816 ## Report this to http://www.python.org/python-bugs ##
13817 ## ------------------------------------------------ ##
13819 ) |
sed "s/^/$as_me: WARNING: /" >&2
13822 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13823 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13824 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
13829 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13830 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13833 if test $ac_cv_header_mach_cthreads_h = yes; then
13834 cat >>confdefs.h
<<\_ACEOF
13835 #define WITH_THREAD 1
13838 cat >>confdefs.h
<<\_ACEOF
13839 #define C_THREADS 1
13843 cat >>confdefs.h
<<\_ACEOF
13844 #define MACH_C_THREADS 1
13847 THREADOBJ
="Python/thread.o"
13850 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13851 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13853 # Check whether --with-pth was given.
13854 if test "${with_pth+set}" = set; then
13855 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13856 echo "${ECHO_T}$withval" >&6; }
13857 cat >>confdefs.h
<<\_ACEOF
13858 #define WITH_THREAD 1
13862 cat >>confdefs.h
<<\_ACEOF
13867 THREADOBJ
="Python/thread.o"
13869 { echo "$as_me:$LINENO: result: no" >&5
13870 echo "${ECHO_T}no" >&6; }
13872 # Just looking for pthread_create in libpthread is not enough:
13873 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13874 # So we really have to include pthread.h, and then link.
13876 LIBS
="$LIBS -lpthread"
13877 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13878 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13879 cat >conftest.
$ac_ext <<_ACEOF
13882 cat confdefs.h
>>conftest.
$ac_ext
13883 cat >>conftest.
$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 #include <pthread.h>
13887 void * start_routine (void *arg) { exit (0); }
13892 pthread_create (NULL, NULL, start_routine, NULL)
13897 rm -f conftest.
$ac_objext conftest
$ac_exeext
13898 if { (ac_try
="$ac_link"
13899 case "(($ac_try" in
13900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest$ac_exeext &&
13914 $as_test_x conftest$ac_exeext; then
13916 { echo "$as_me:$LINENO: result: yes" >&5
13917 echo "${ECHO_T}yes" >&6; }
13918 cat >>confdefs.h <<\_ACEOF
13919 #define WITH_THREAD 1
13923 THREADOBJ="Python/thread.o"
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13930 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13931 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13932 if test "${ac_cv_func_pthread_detach+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13943 #define pthread_detach innocuous_pthread_detach
13945 /* System header to define __stub macros and hopefully few prototypes,
13946 which can conflict with char pthread_detach (); below.
13947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13948 <limits.h> exists even on freestanding compilers. */
13951 # include <limits.h>
13953 # include <assert.h>
13956 #undef pthread_detach
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13964 char pthread_detach ();
13965 /* The GNU C library defines this for functions which it implements
13966 to always fail with ENOSYS. Some functions are actually named
13967 something starting with __ and the normal name is an alias. */
13968 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13975 return pthread_detach ();
13980 rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13984 *) ac_try_echo
=$ac_try;;
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_link") 2>conftest.er1
13989 grep -v '^ *+' conftest.er1
>conftest.err
13991 cat conftest.err
>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } && {
13994 test -z "$ac_c_werror_flag" ||
13995 test ! -s conftest.err
13996 } && test -s conftest
$ac_exeext &&
13997 $as_test_x conftest
$ac_exeext; then
13998 ac_cv_func_pthread_detach
=yes
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.
$ac_ext >&5
14003 ac_cv_func_pthread_detach
=no
14006 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14007 conftest
$ac_exeext conftest.
$ac_ext
14009 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14010 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14011 if test $ac_cv_func_pthread_detach = yes; then
14012 cat >>confdefs.h
<<\_ACEOF
14013 #define WITH_THREAD 1
14017 THREADOBJ
="Python/thread.o"
14020 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14021 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14022 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14023 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14027 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14029 # Is the header compilable?
14030 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14031 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14032 cat >conftest.
$ac_ext <<_ACEOF
14035 cat confdefs.h
>>conftest.
$ac_ext
14036 cat >>conftest.
$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 $ac_includes_default
14039 #include <atheos/threads.h>
14041 rm -f conftest.
$ac_objext
14042 if { (ac_try
="$ac_compile"
14043 case "(($ac_try" in
14044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_compile") 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } && {
14055 test -z "$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14057 } && test -s conftest.$ac_objext; then
14058 ac_header_compiler=yes
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 ac_header_compiler=no
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14068 echo "${ECHO_T}$ac_header_compiler" >&6; }
14070 # Is the header present?
14071 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14072 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14073 cat >conftest.$ac_ext <<_ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #include <atheos/threads.h>
14081 if { (ac_try="$ac_cpp conftest.$ac_ext"
14082 case "(($ac_try" in
14083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14084 *) ac_try_echo
=$ac_try;;
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14089 grep -v '^ *+' conftest.er1
>conftest.err
14091 cat conftest.err
>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } >/dev
/null
&& {
14094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14097 ac_header_preproc
=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.
$ac_ext >&5
14102 ac_header_preproc
=no
14105 rm -f conftest.err conftest.
$ac_ext
14106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14107 echo "${ECHO_T}$ac_header_preproc" >&6; }
14109 # So? What about this header?
14110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14112 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14113 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14115 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14116 ac_header_preproc
=yes
14119 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14120 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14122 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14124 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14126 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14128 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14130 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14132 ## ------------------------------------------------ ##
14133 ## Report this to http://www.python.org/python-bugs ##
14134 ## ------------------------------------------------ ##
14136 ) |
sed "s/^/$as_me: WARNING: /" >&2
14139 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14140 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14141 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 ac_cv_header_atheos_threads_h
=$ac_header_preproc
14146 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14147 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14150 if test $ac_cv_header_atheos_threads_h = yes; then
14151 cat >>confdefs.h
<<\_ACEOF
14152 #define WITH_THREAD 1
14156 cat >>confdefs.h
<<\_ACEOF
14157 #define ATHEOS_THREADS 1
14160 THREADOBJ
="Python/thread.o"
14163 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14164 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14165 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14166 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14170 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14172 # Is the header compilable?
14173 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14174 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14175 cat >conftest.
$ac_ext <<_ACEOF
14178 cat confdefs.h
>>conftest.
$ac_ext
14179 cat >>conftest.
$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 $ac_includes_default
14182 #include <kernel/OS.h>
14184 rm -f conftest.
$ac_objext
14185 if { (ac_try
="$ac_compile"
14186 case "(($ac_try" in
14187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_compile") 2>conftest.er1
14193 grep -v '^ *+' conftest.er1 >conftest.err
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } && {
14198 test -z "$ac_c_werror_flag" ||
14199 test ! -s conftest.err
14200 } && test -s conftest.$ac_objext; then
14201 ac_header_compiler=yes
14203 echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14206 ac_header_compiler=no
14209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14211 echo "${ECHO_T}$ac_header_compiler" >&6; }
14213 # Is the header present?
14214 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14215 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14216 cat >conftest.$ac_ext <<_ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14222 #include <kernel/OS.h>
14224 if { (ac_try="$ac_cpp conftest.$ac_ext"
14225 case "(($ac_try" in
14226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14227 *) ac_try_echo
=$ac_try;;
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14232 grep -v '^ *+' conftest.er1
>conftest.err
14234 cat conftest.err
>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } >/dev
/null
&& {
14237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14238 test ! -s conftest.err
14240 ac_header_preproc
=yes
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.
$ac_ext >&5
14245 ac_header_preproc
=no
14248 rm -f conftest.err conftest.
$ac_ext
14249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14250 echo "${ECHO_T}$ac_header_preproc" >&6; }
14252 # So? What about this header?
14253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14255 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14256 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14258 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14259 ac_header_preproc
=yes
14262 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14263 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14264 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14265 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14266 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14267 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14269 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14270 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14271 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14272 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14273 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14275 ## ------------------------------------------------ ##
14276 ## Report this to http://www.python.org/python-bugs ##
14277 ## ------------------------------------------------ ##
14279 ) |
sed "s/^/$as_me: WARNING: /" >&2
14282 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14283 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14284 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 ac_cv_header_kernel_OS_h
=$ac_header_preproc
14289 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14290 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14293 if test $ac_cv_header_kernel_OS_h = yes; then
14294 cat >>confdefs.h
<<\_ACEOF
14295 #define WITH_THREAD 1
14299 cat >>confdefs.h
<<\_ACEOF
14300 #define BEOS_THREADS 1
14303 THREADOBJ
="Python/thread.o"
14306 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14307 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14308 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 ac_check_lib_save_LIBS
=$LIBS
14312 LIBS
="-lpthreads $LIBS"
14313 cat >conftest.
$ac_ext <<_ACEOF
14316 cat confdefs.h
>>conftest.
$ac_ext
14317 cat >>conftest.
$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14320 /* Override any GCC internal prototype to avoid an error.
14321 Use char because int might match the return type of a GCC
14322 builtin and then its argument prototype would still apply. */
14326 char pthread_create ();
14330 return pthread_create ();
14335 rm -f conftest.
$ac_objext conftest
$ac_exeext
14336 if { (ac_try
="$ac_link"
14337 case "(($ac_try" in
14338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_link") 2>conftest.er1
14344 grep -v '^ *+' conftest.er1 >conftest.err
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest$ac_exeext &&
14352 $as_test_x conftest$ac_exeext; then
14353 ac_cv_lib_pthreads_pthread_create=yes
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 ac_cv_lib_pthreads_pthread_create=no
14361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LIBS=$ac_check_lib_save_LIBS
14365 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14366 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14367 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14368 cat >>confdefs.h <<\_ACEOF
14369 #define WITH_THREAD 1
14373 LIBS="$LIBS -lpthreads"
14374 THREADOBJ="Python/thread.o"
14377 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14378 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14379 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 ac_check_lib_save_LIBS=$LIBS
14384 cat >conftest.$ac_ext <<_ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14397 char pthread_create ();
14401 return pthread_create ();
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (ac_try="$ac_link"
14408 case "(($ac_try" in
14409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14410 *) ac_try_echo
=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_link") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1
>conftest.err
14417 cat conftest.err
>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest
$ac_exeext &&
14423 $as_test_x conftest
$ac_exeext; then
14424 ac_cv_lib_c_r_pthread_create
=yes
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.
$ac_ext >&5
14429 ac_cv_lib_c_r_pthread_create
=no
14432 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14433 conftest
$ac_exeext conftest.
$ac_ext
14434 LIBS
=$ac_check_lib_save_LIBS
14436 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14437 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14438 if test $ac_cv_lib_c_r_pthread_create = yes; then
14439 cat >>confdefs.h
<<\_ACEOF
14440 #define WITH_THREAD 1
14445 THREADOBJ
="Python/thread.o"
14448 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14449 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14450 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 ac_check_lib_save_LIBS
=$LIBS
14454 LIBS
="-lpthread $LIBS"
14455 cat >conftest.
$ac_ext <<_ACEOF
14458 cat confdefs.h
>>conftest.
$ac_ext
14459 cat >>conftest.
$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14462 /* Override any GCC internal prototype to avoid an error.
14463 Use char because int might match the return type of a GCC
14464 builtin and then its argument prototype would still apply. */
14468 char __pthread_create_system ();
14472 return __pthread_create_system ();
14477 rm -f conftest.
$ac_objext conftest
$ac_exeext
14478 if { (ac_try
="$ac_link"
14479 case "(($ac_try" in
14480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_link") 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } && {
14491 test -z "$ac_c_werror_flag" ||
14492 test ! -s conftest.err
14493 } && test -s conftest$ac_exeext &&
14494 $as_test_x conftest$ac_exeext; then
14495 ac_cv_lib_pthread___pthread_create_system=yes
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_cv_lib_pthread___pthread_create_system=no
14503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14504 conftest$ac_exeext conftest.$ac_ext
14505 LIBS=$ac_check_lib_save_LIBS
14507 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14508 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14509 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14510 cat >>confdefs.h <<\_ACEOF
14511 #define WITH_THREAD 1
14515 LIBS="$LIBS -lpthread"
14516 THREADOBJ="Python/thread.o"
14519 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14520 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14521 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 ac_check_lib_save_LIBS=$LIBS
14526 cat >conftest.$ac_ext <<_ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14533 /* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14539 char pthread_create ();
14543 return pthread_create ();
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14552 *) ac_try_echo
=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14557 grep -v '^ *+' conftest.er1
>conftest.err
14559 cat conftest.err
>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest
$ac_exeext &&
14565 $as_test_x conftest
$ac_exeext; then
14566 ac_cv_lib_cma_pthread_create
=yes
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.
$ac_ext >&5
14571 ac_cv_lib_cma_pthread_create
=no
14574 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14575 conftest
$ac_exeext conftest.
$ac_ext
14576 LIBS
=$ac_check_lib_save_LIBS
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14579 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14580 if test $ac_cv_lib_cma_pthread_create = yes; then
14581 cat >>confdefs.h
<<\_ACEOF
14582 #define WITH_THREAD 1
14587 THREADOBJ
="Python/thread.o"
14590 USE_THREAD_MODULE
="#"
14610 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14611 conftest
$ac_exeext conftest.
$ac_ext
14621 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14622 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14623 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 ac_check_lib_save_LIBS
=$LIBS
14628 cat >conftest.
$ac_ext <<_ACEOF
14631 cat confdefs.h
>>conftest.
$ac_ext
14632 cat >>conftest.
$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14635 /* Override any GCC internal prototype to avoid an error.
14636 Use char because int might match the return type of a GCC
14637 builtin and then its argument prototype would still apply. */
14645 return usconfig ();
14650 rm -f conftest.
$ac_objext conftest
$ac_exeext
14651 if { (ac_try
="$ac_link"
14652 case "(($ac_try" in
14653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_link") 2>conftest.er1
14659 grep -v '^ *+' conftest.er1 >conftest.err
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } && {
14664 test -z "$ac_c_werror_flag" ||
14665 test ! -s conftest.err
14666 } && test -s conftest$ac_exeext &&
14667 $as_test_x conftest$ac_exeext; then
14668 ac_cv_lib_mpc_usconfig=yes
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_cv_lib_mpc_usconfig=no
14676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14677 conftest$ac_exeext conftest.$ac_ext
14678 LIBS=$ac_check_lib_save_LIBS
14680 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14681 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14682 if test $ac_cv_lib_mpc_usconfig = yes; then
14683 cat >>confdefs.h <<\_ACEOF
14684 #define WITH_THREAD 1
14688 THREADOBJ="Python/thread.o"
14689 USE_THREAD_MODULE=""
14693 if test "$posix_threads" != "yes"; then
14694 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14695 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14696 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 ac_check_lib_save_LIBS=$LIBS
14700 LIBS="-lthread $LIBS"
14701 cat >conftest.$ac_ext <<_ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14714 char thr_create ();
14718 return thr_create ();
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14727 *) ac_try_echo
=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_link") 2>conftest.er1
14732 grep -v '^ *+' conftest.er1
>conftest.err
14734 cat conftest.err
>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && {
14737 test -z "$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 } && test -s conftest
$ac_exeext &&
14740 $as_test_x conftest
$ac_exeext; then
14741 ac_cv_lib_thread_thr_create
=yes
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.
$ac_ext >&5
14746 ac_cv_lib_thread_thr_create
=no
14749 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14750 conftest
$ac_exeext conftest.
$ac_ext
14751 LIBS
=$ac_check_lib_save_LIBS
14753 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14754 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14755 if test $ac_cv_lib_thread_thr_create = yes; then
14756 cat >>confdefs.h
<<\_ACEOF
14757 #define WITH_THREAD 1
14760 LIBS
="$LIBS -lthread"
14761 THREADOBJ
="Python/thread.o"
14762 USE_THREAD_MODULE
=""
14767 if test "$USE_THREAD_MODULE" != "#"
14769 # If the above checks didn't disable threads, (at least) OSF1
14770 # needs this '-threads' argument during linking.
14771 case $ac_sys_system in
14772 OSF1
) LDLAST
=-threads;;
14777 if test "$posix_threads" = "yes"; then
14778 if test "$unistd_defines_pthreads" = "no"; then
14780 cat >>confdefs.h
<<\_ACEOF
14781 #define _POSIX_THREADS 1
14786 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14787 case $ac_sys_system/$ac_sys_release in
14789 cat >>confdefs.h
<<\_ACEOF
14790 #define HAVE_PTHREAD_DESTRUCTOR 1
14795 cat >>confdefs.h
<<\_ACEOF
14796 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14801 cat >>confdefs.h
<<\_ACEOF
14802 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14808 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14809 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14810 if test "${ac_cv_pthread_system_supported+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 if test "$cross_compiling" = yes; then
14814 ac_cv_pthread_system_supported
=no
14816 cat >conftest.
$ac_ext <<_ACEOF
14819 cat confdefs.h
>>conftest.
$ac_ext
14820 cat >>conftest.
$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 #include <pthread.h>
14823 void *foo(void *parm) {
14827 pthread_attr_t attr;
14829 if (pthread_attr_init(&attr)) exit(-1);
14830 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14831 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14835 rm -f conftest
$ac_exeext
14836 if { (ac_try
="$ac_link"
14837 case "(($ac_try" in
14838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_link") 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14846 { (case "(($ac_try" in
14847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14848 *) ac_try_echo
=$ac_try;;
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_try") 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_cv_pthread_system_supported
=yes
14857 echo "$as_me: program exited with status $ac_status" >&5
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.
$ac_ext >&5
14861 ( exit $ac_status )
14862 ac_cv_pthread_system_supported
=no
14864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14871 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14872 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14873 if test "$ac_cv_pthread_system_supported" = "yes"; then
14875 cat >>confdefs.h
<<\_ACEOF
14876 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14881 for ac_func
in pthread_sigmask
14883 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14886 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 cat >conftest.
$ac_ext <<_ACEOF
14892 cat confdefs.h
>>conftest.
$ac_ext
14893 cat >>conftest.
$ac_ext <<_ACEOF
14894 /* end confdefs.h. */
14895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14897 #define $ac_func innocuous_$ac_func
14899 /* System header to define __stub macros and hopefully few prototypes,
14900 which can conflict with char $ac_func (); below.
14901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14902 <limits.h> exists even on freestanding compilers. */
14905 # include <limits.h>
14907 # include <assert.h>
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14919 /* The GNU C library defines this for functions which it implements
14920 to always fail with ENOSYS. Some functions are actually named
14921 something starting with __ and the normal name is an alias. */
14922 #if defined __stub_$ac_func || defined __stub___$ac_func
14929 return $ac_func ();
14934 rm -f conftest.
$ac_objext conftest
$ac_exeext
14935 if { (ac_try
="$ac_link"
14936 case "(($ac_try" in
14937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_link") 2>conftest.er1
14943 grep -v '^ *+' conftest.er1 >conftest.err
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } && {
14948 test -z "$ac_c_werror_flag" ||
14949 test ! -s conftest.err
14950 } && test -s conftest$ac_exeext &&
14951 $as_test_x conftest$ac_exeext; then
14952 eval "$as_ac_var=yes"
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 eval "$as_ac_var=no"
14960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14961 conftest$ac_exeext conftest.$ac_ext
14963 ac_res=`eval echo '${'$as_ac_var'}'`
14964 { echo "$as_me:$LINENO: result: $ac_res" >&5
14965 echo "${ECHO_T}$ac_res" >&6; }
14966 if test `eval echo '${'$as_ac_var'}'` = yes; then
14967 cat >>confdefs.h <<_ACEOF
14968 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14970 case $ac_sys_system in
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14985 # Check for enable-ipv6
14988 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14989 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14990 # Check whether --enable-ipv6 was given.
14991 if test "${enable_ipv6+set}" = set; then
14992 enableval=$enable_ipv6; case "$enableval" in
14994 { echo "$as_me:$LINENO: result: no" >&5
14995 echo "${ECHO_T}no" >&6; }
14998 *) { echo "$as_me:$LINENO: result: yes" >&5
14999 echo "${ECHO_T}yes" >&6; }
15000 cat >>confdefs.h <<\_ACEOF
15001 #define ENABLE_IPV6 1
15009 if test "$cross_compiling" = yes; then
15010 { echo "$as_me:$LINENO: result: no" >&5
15011 echo "${ECHO_T}no" >&6; }
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15021 /* AF_INET6 available check */
15022 #include <sys/types.h>
15023 #include <sys/socket.h>
15026 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15033 rm -f conftest$ac_exeext
15034 if { (ac_try="$ac_link"
15035 case "(($ac_try" in
15036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15037 *) ac_try_echo
=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_link") 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15044 { (case "(($ac_try" in
15045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_try") 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 { echo "$as_me:$LINENO: result: yes" >&5
15054 echo "${ECHO_T}yes" >&6; }
15057 echo "$as_me: program exited with status $ac_status" >&5
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ( exit $ac_status )
15062 { echo "$as_me:$LINENO: result: no" >&5
15063 echo "${ECHO_T}no" >&6; }
15066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15071 if test "$ipv6" = "yes"; then
15072 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15073 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <sys/types.h>
15081 #include <netinet/in.h>
15085 struct sockaddr_in6 x;
15091 rm -f conftest.$ac_objext
15092 if { (ac_try="$ac_compile"
15093 case "(($ac_try" in
15094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15095 *) ac_try_echo
=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_compile") 2>conftest.er1
15100 grep -v '^ *+' conftest.er1
>conftest.err
15102 cat conftest.err
>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } && {
15105 test -z "$ac_c_werror_flag" ||
15106 test ! -s conftest.err
15107 } && test -s conftest.
$ac_objext; then
15108 { echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6; }
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.
$ac_ext >&5
15115 { echo "$as_me:$LINENO: result: no" >&5
15116 echo "${ECHO_T}no" >&6; }
15120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15123 if test "$ipv6" = "yes"; then
15124 cat >>confdefs.h
<<\_ACEOF
15125 #define ENABLE_IPV6 1
15137 if test "$ipv6" = "yes"; then
15138 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15139 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15140 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
15144 cat >conftest.
$ac_ext <<_ACEOF
15147 cat confdefs.h
>>conftest.
$ac_ext
15148 cat >>conftest.
$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 #include <netinet/in.h>
15152 #ifdef IPV6_INRIA_VERSION
15156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15157 $EGREP "yes" >/dev
/null
2>&1; then
15164 cat >conftest.
$ac_ext <<_ACEOF
15167 cat confdefs.h
>>conftest.
$ac_ext
15168 cat >>conftest.
$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15171 #include <netinet/in.h>
15176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15177 $EGREP "yes" >/dev
/null
2>&1; then
15180 ipv6libdir
=/usr
/local
/v
6/lib
15187 cat >conftest.
$ac_ext <<_ACEOF
15190 cat confdefs.h
>>conftest.
$ac_ext
15191 cat >>conftest.
$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 #include <features.h>
15195 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15200 $EGREP "yes" >/dev
/null
2>&1; then
15208 if test -d /usr
/inet6
; then
15211 ipv6libdir
=/usr
/inet
6/lib
15212 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
15216 if test -f /etc
/netconfig
; then
15217 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
15224 cat >conftest.
$ac_ext <<_ACEOF
15227 cat confdefs.h
>>conftest.
$ac_ext
15228 cat >>conftest.
$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15231 #include <sys/param.h>
15232 #ifdef _TOSHIBA_INET6
15236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15237 $EGREP "yes" >/dev
/null
2>&1; then
15240 ipv6libdir
=/usr
/local
/v
6/lib
15246 cat >conftest.
$ac_ext <<_ACEOF
15249 cat confdefs.h
>>conftest.
$ac_ext
15250 cat >>conftest.
$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15253 #include </usr/local/v6/include/sys/v6config.h>
15258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15259 $EGREP "yes" >/dev
/null
2>&1; then
15262 ipv6libdir
=/usr
/local
/v
6/lib
;
15263 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
15269 cat >conftest.
$ac_ext <<_ACEOF
15272 cat confdefs.h
>>conftest.
$ac_ext
15273 cat >>conftest.
$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15276 #include <sys/param.h>
15277 #ifdef _ZETA_MINAMI_INET6
15281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15282 $EGREP "yes" >/dev
/null
2>&1; then
15285 ipv6libdir
=/usr
/local
/v
6/lib
15291 if test "$ipv6type" != "unknown"; then
15295 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15296 echo "${ECHO_T}$ipv6type" >&6; }
15299 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15300 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
15301 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
15302 echo "using lib$ipv6lib"
15304 if test $ipv6trylibc = "yes"; then
15307 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15308 echo "You need to fetch lib$ipv6lib.a from appropriate"
15309 echo 'ipv6 kit and compile beforehand.'
15315 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15316 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15317 cat >conftest.
$ac_ext <<_ACEOF
15320 cat confdefs.h
>>conftest.
$ac_ext
15321 cat >>conftest.
$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 #include <Carbon/Carbon.h>
15327 FSIORefNum fRef = 0
15332 rm -f conftest.
$ac_objext
15333 if { (ac_try
="$ac_compile"
15334 case "(($ac_try" in
15335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_compile") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest.$ac_objext; then
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE_OSX105_SDK 1
15354 { echo "$as_me:$LINENO: result: yes" >&5
15355 echo "${ECHO_T}yes" >&6; }
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 { echo "$as_me:$LINENO: result: no" >&5
15361 echo "${ECHO_T}no" >&6; }
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 # Check for --with-doc-strings
15368 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15369 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15371 # Check whether --with-doc-strings was given.
15372 if test "${with_doc_strings+set}" = set; then
15373 withval=$with_doc_strings;
15377 if test -z "$with_doc_strings"
15378 then with_doc_strings="yes"
15380 if test "$with_doc_strings" != "no"
15383 cat >>confdefs.h <<\_ACEOF
15384 #define WITH_DOC_STRINGS 1
15388 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15389 echo "${ECHO_T}$with_doc_strings" >&6; }
15391 # Check for Python-specific malloc support
15392 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15393 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15395 # Check whether --with-tsc was given.
15396 if test "${with_tsc+set}" = set; then
15398 if test "$withval" != no
15401 cat >>confdefs.h <<\_ACEOF
15405 { echo "$as_me:$LINENO: result: yes" >&5
15406 echo "${ECHO_T}yes" >&6; }
15407 else { echo "$as_me:$LINENO: result: no" >&5
15408 echo "${ECHO_T}no" >&6; }
15411 { echo "$as_me:$LINENO: result: no" >&5
15412 echo "${ECHO_T}no" >&6; }
15416 # Check for Python-specific malloc support
15417 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15418 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15420 # Check whether --with-pymalloc was given.
15421 if test "${with_pymalloc+set}" = set; then
15422 withval=$with_pymalloc;
15426 if test -z "$with_pymalloc"
15427 then with_pymalloc="yes"
15429 if test "$with_pymalloc" != "no"
15432 cat >>confdefs.h <<\_ACEOF
15433 #define WITH_PYMALLOC 1
15437 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15438 echo "${ECHO_T}$with_pymalloc" >&6; }
15440 # Check for --with-wctype-functions
15441 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15442 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15444 # Check whether --with-wctype-functions was given.
15445 if test "${with_wctype_functions+set}" = set; then
15446 withval=$with_wctype_functions;
15447 if test "$withval" != no
15450 cat >>confdefs.h <<\_ACEOF
15451 #define WANT_WCTYPE_FUNCTIONS 1
15454 { echo "$as_me:$LINENO: result: yes" >&5
15455 echo "${ECHO_T}yes" >&6; }
15456 else { echo "$as_me:$LINENO: result: no" >&5
15457 echo "${ECHO_T}no" >&6; }
15460 { echo "$as_me:$LINENO: result: no" >&5
15461 echo "${ECHO_T}no" >&6; }
15465 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15469 # the dlopen() function means we might want to use dynload_shlib.o. some
15470 # platforms, such as AIX, have dlopen(), but don't want to use it.
15472 for ac_func in dlopen
15474 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 cat >conftest.$ac_ext <<_ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15488 #define $ac_func innocuous_$ac_func
15490 /* System header to define __stub macros and hopefully few prototypes,
15491 which can conflict with char $ac_func (); below.
15492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15493 <limits.h> exists even on freestanding compilers. */
15496 # include <limits.h>
15498 # include <assert.h>
15503 /* Override any GCC internal prototype to avoid an error.
15504 Use char because int might match the return type of a GCC
15505 builtin and then its argument prototype would still apply. */
15510 /* The GNU C library defines this for functions which it implements
15511 to always fail with ENOSYS. Some functions are actually named
15512 something starting with __ and the normal name is an alias. */
15513 #if defined __stub_$ac_func || defined __stub___$ac_func
15520 return $ac_func ();
15525 rm -f conftest.$ac_objext conftest$ac_exeext
15526 if { (ac_try="$ac_link"
15527 case "(($ac_try" in
15528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15529 *) ac_try_echo
=$ac_try;;
15531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532 (eval "$ac_link") 2>conftest.er1
15534 grep -v '^ *+' conftest.er1
>conftest.err
15536 cat conftest.err
>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } && {
15539 test -z "$ac_c_werror_flag" ||
15540 test ! -s conftest.err
15541 } && test -s conftest
$ac_exeext &&
15542 $as_test_x conftest
$ac_exeext; then
15543 eval "$as_ac_var=yes"
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.
$ac_ext >&5
15548 eval "$as_ac_var=no"
15551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15552 conftest
$ac_exeext conftest.
$ac_ext
15554 ac_res
=`eval echo '${'$as_ac_var'}'`
15555 { echo "$as_me:$LINENO: result: $ac_res" >&5
15556 echo "${ECHO_T}$ac_res" >&6; }
15557 if test `eval echo '${'$as_ac_var'}'` = yes; then
15558 cat >>confdefs.h
<<_ACEOF
15559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15566 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15567 # loading of modules.
15569 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15570 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15571 if test -z "$DYNLOADFILE"
15573 case $ac_sys_system/$ac_sys_release in
15574 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15575 if test "$ac_cv_func_dlopen" = yes
15576 then DYNLOADFILE
="dynload_shlib.o"
15577 else DYNLOADFILE
="dynload_aix.o"
15580 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
15581 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
15582 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15583 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
15584 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
15586 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15587 # out any dynamic loading
15588 if test "$ac_cv_func_dlopen" = yes
15589 then DYNLOADFILE
="dynload_shlib.o"
15590 else DYNLOADFILE
="dynload_stub.o"
15595 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15596 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15597 if test "$DYNLOADFILE" != "dynload_stub.o"
15600 cat >>confdefs.h
<<\_ACEOF
15601 #define HAVE_DYNAMIC_LOADING 1
15606 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15609 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15610 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15611 if test -z "$MACHDEP_OBJS"
15613 MACHDEP_OBJS
=$extra_machdep_objs
15615 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
15617 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15618 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15620 # checks for library functions
15702 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
15703 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15704 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15705 getpriority getpwent getspnam getspent getsid getwd \
15706 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
15707 mremap nice pathconf pause plock poll pthread_init \
15708 putenv readlink realpath \
15709 select setegid seteuid setgid \
15710 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15711 sigaction siginterrupt sigrelse strftime \
15712 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
15713 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15715 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15718 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 cat >conftest.
$ac_ext <<_ACEOF
15724 cat confdefs.h
>>conftest.
$ac_ext
15725 cat >>conftest.
$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15729 #define $ac_func innocuous_$ac_func
15731 /* System header to define __stub macros and hopefully few prototypes,
15732 which can conflict with char $ac_func (); below.
15733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15734 <limits.h> exists even on freestanding compilers. */
15737 # include <limits.h>
15739 # include <assert.h>
15744 /* Override any GCC internal prototype to avoid an error.
15745 Use char because int might match the return type of a GCC
15746 builtin and then its argument prototype would still apply. */
15751 /* The GNU C library defines this for functions which it implements
15752 to always fail with ENOSYS. Some functions are actually named
15753 something starting with __ and the normal name is an alias. */
15754 #if defined __stub_$ac_func || defined __stub___$ac_func
15761 return $ac_func ();
15766 rm -f conftest.
$ac_objext conftest
$ac_exeext
15767 if { (ac_try
="$ac_link"
15768 case "(($ac_try" in
15769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_link") 2>conftest.er1
15775 grep -v '^ *+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest$ac_exeext &&
15783 $as_test_x conftest$ac_exeext; then
15784 eval "$as_ac_var=yes"
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 eval "$as_ac_var=no"
15792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15793 conftest$ac_exeext conftest.$ac_ext
15795 ac_res=`eval echo '${'$as_ac_var'}'`
15796 { echo "$as_me:$LINENO: result: $ac_res" >&5
15797 echo "${ECHO_T}$ac_res" >&6; }
15798 if test `eval echo '${'$as_ac_var'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15807 # For some functions, having a definition is not sufficient, since
15808 # we want to take their address.
15809 { echo "$as_me:$LINENO: checking for chroot" >&5
15810 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15811 cat >conftest.$ac_ext <<_ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h. */
15817 #include <unistd.h>
15826 rm -f conftest.$ac_objext
15827 if { (ac_try="$ac_compile"
15828 case "(($ac_try" in
15829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15830 *) ac_try_echo
=$ac_try;;
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_compile") 2>conftest.er1
15835 grep -v '^ *+' conftest.er1
>conftest.err
15837 cat conftest.err
>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } && {
15840 test -z "$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15842 } && test -s conftest.
$ac_objext; then
15844 cat >>confdefs.h
<<\_ACEOF
15845 #define HAVE_CHROOT 1
15848 { echo "$as_me:$LINENO: result: yes" >&5
15849 echo "${ECHO_T}yes" >&6; }
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.
$ac_ext >&5
15854 { echo "$as_me:$LINENO: result: no" >&5
15855 echo "${ECHO_T}no" >&6; }
15859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15860 { echo "$as_me:$LINENO: checking for link" >&5
15861 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15862 cat >conftest.
$ac_ext <<_ACEOF
15865 cat confdefs.h
>>conftest.
$ac_ext
15866 cat >>conftest.
$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15868 #include <unistd.h>
15877 rm -f conftest.
$ac_objext
15878 if { (ac_try
="$ac_compile"
15879 case "(($ac_try" in
15880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_compile") 2>conftest.er1
15886 grep -v '^ *+' conftest.er1 >conftest.err
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } && {
15891 test -z "$ac_c_werror_flag" ||
15892 test ! -s conftest.err
15893 } && test -s conftest.$ac_objext; then
15895 cat >>confdefs.h <<\_ACEOF
15896 #define HAVE_LINK 1
15899 { echo "$as_me:$LINENO: result: yes" >&5
15900 echo "${ECHO_T}yes" >&6; }
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 { echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6; }
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911 { echo "$as_me:$LINENO: checking for symlink" >&5
15912 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15913 cat >conftest.$ac_ext <<_ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <unistd.h>
15928 rm -f conftest.$ac_objext
15929 if { (ac_try="$ac_compile"
15930 case "(($ac_try" in
15931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15932 *) ac_try_echo
=$ac_try;;
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_compile") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1
>conftest.err
15939 cat conftest.err
>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest.
$ac_objext; then
15946 cat >>confdefs.h
<<\_ACEOF
15947 #define HAVE_SYMLINK 1
15950 { echo "$as_me:$LINENO: result: yes" >&5
15951 echo "${ECHO_T}yes" >&6; }
15953 echo "$as_me: failed program was:" >&5
15954 sed 's/^/| /' conftest.
$ac_ext >&5
15956 { echo "$as_me:$LINENO: result: no" >&5
15957 echo "${ECHO_T}no" >&6; }
15961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15962 { echo "$as_me:$LINENO: checking for fchdir" >&5
15963 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15964 cat >conftest.
$ac_ext <<_ACEOF
15967 cat confdefs.h
>>conftest.
$ac_ext
15968 cat >>conftest.
$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15970 #include <unistd.h>
15979 rm -f conftest.
$ac_objext
15980 if { (ac_try
="$ac_compile"
15981 case "(($ac_try" in
15982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest.$ac_objext; then
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE_FCHDIR 1
16001 { echo "$as_me:$LINENO: result: yes" >&5
16002 echo "${ECHO_T}yes" >&6; }
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 { echo "$as_me:$LINENO: result: no" >&5
16008 echo "${ECHO_T}no" >&6; }
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16013 { echo "$as_me:$LINENO: checking for fsync" >&5
16014 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16015 cat >conftest.$ac_ext <<_ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 #include <unistd.h>
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16034 *) ac_try_echo
=$ac_try;;
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_compile") 2>conftest.er1
16039 grep -v '^ *+' conftest.er1
>conftest.err
16041 cat conftest.err
>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && {
16044 test -z "$ac_c_werror_flag" ||
16045 test ! -s conftest.err
16046 } && test -s conftest.
$ac_objext; then
16048 cat >>confdefs.h
<<\_ACEOF
16049 #define HAVE_FSYNC 1
16052 { echo "$as_me:$LINENO: result: yes" >&5
16053 echo "${ECHO_T}yes" >&6; }
16055 echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.
$ac_ext >&5
16058 { echo "$as_me:$LINENO: result: no" >&5
16059 echo "${ECHO_T}no" >&6; }
16063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16064 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16065 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16066 cat >conftest.
$ac_ext <<_ACEOF
16069 cat confdefs.h
>>conftest.
$ac_ext
16070 cat >>conftest.
$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 #include <unistd.h>
16081 rm -f conftest.
$ac_objext
16082 if { (ac_try
="$ac_compile"
16083 case "(($ac_try" in
16084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_compile") 2>conftest.er1
16090 grep -v '^ *+' conftest.er1 >conftest.err
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } && {
16095 test -z "$ac_c_werror_flag" ||
16096 test ! -s conftest.err
16097 } && test -s conftest.$ac_objext; then
16099 cat >>confdefs.h <<\_ACEOF
16100 #define HAVE_FDATASYNC 1
16103 { echo "$as_me:$LINENO: result: yes" >&5
16104 echo "${ECHO_T}yes" >&6; }
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 { echo "$as_me:$LINENO: result: no" >&5
16110 echo "${ECHO_T}no" >&6; }
16114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115 { echo "$as_me:$LINENO: checking for epoll" >&5
16116 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 #include <sys/epoll.h>
16127 void *x=epoll_create
16132 rm -f conftest.$ac_objext
16133 if { (ac_try="$ac_compile"
16134 case "(($ac_try" in
16135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16136 *) ac_try_echo
=$ac_try;;
16138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_compile") 2>conftest.er1
16141 grep -v '^ *+' conftest.er1
>conftest.err
16143 cat conftest.err
>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && {
16146 test -z "$ac_c_werror_flag" ||
16147 test ! -s conftest.err
16148 } && test -s conftest.
$ac_objext; then
16150 cat >>confdefs.h
<<\_ACEOF
16151 #define HAVE_EPOLL 1
16154 { echo "$as_me:$LINENO: result: yes" >&5
16155 echo "${ECHO_T}yes" >&6; }
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.
$ac_ext >&5
16160 { echo "$as_me:$LINENO: result: no" >&5
16161 echo "${ECHO_T}no" >&6; }
16165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16166 { echo "$as_me:$LINENO: checking for kqueue" >&5
16167 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16168 cat >conftest.
$ac_ext <<_ACEOF
16171 cat confdefs.h
>>conftest.
$ac_ext
16172 cat >>conftest.
$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16175 #include <sys/types.h>
16176 #include <sys/event.h>
16186 rm -f conftest.
$ac_objext
16187 if { (ac_try
="$ac_compile"
16188 case "(($ac_try" in
16189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_compile") 2>conftest.er1
16195 grep -v '^ *+' conftest.er1 >conftest.err
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest.$ac_objext; then
16204 cat >>confdefs.h <<\_ACEOF
16205 #define HAVE_KQUEUE 1
16208 { echo "$as_me:$LINENO: result: yes" >&5
16209 echo "${ECHO_T}yes" >&6; }
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 { echo "$as_me:$LINENO: result: no" >&5
16215 echo "${ECHO_T}no" >&6; }
16219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220 # On some systems (eg. FreeBSD 5), we would find a definition of the
16221 # functions ctermid_r, setgroups in the library, but no prototype
16222 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16223 # address to avoid compiler warnings and potential miscompilations
16224 # because of the missing prototypes.
16226 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16227 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16235 #include "confdefs.h"
16241 void* p = ctermid_r
16246 rm -f conftest.$ac_objext
16247 if { (ac_try="$ac_compile"
16248 case "(($ac_try" in
16249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16250 *) ac_try_echo
=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_compile") 2>conftest.er1
16255 grep -v '^ *+' conftest.er1
>conftest.err
16257 cat conftest.err
>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } && {
16260 test -z "$ac_c_werror_flag" ||
16261 test ! -s conftest.err
16262 } && test -s conftest.
$ac_objext; then
16264 cat >>confdefs.h
<<\_ACEOF
16265 #define HAVE_CTERMID_R 1
16268 { echo "$as_me:$LINENO: result: yes" >&5
16269 echo "${ECHO_T}yes" >&6; }
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.
$ac_ext >&5
16274 { echo "$as_me:$LINENO: result: no" >&5
16275 echo "${ECHO_T}no" >&6; }
16279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16281 { echo "$as_me:$LINENO: checking for flock" >&5
16282 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16283 cat >conftest.
$ac_ext <<_ACEOF
16286 cat confdefs.h
>>conftest.
$ac_ext
16287 cat >>conftest.
$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16290 #include "confdefs.h"
16291 #include <sys/file.h>
16301 rm -f conftest.
$ac_objext
16302 if { (ac_try
="$ac_compile"
16303 case "(($ac_try" in
16304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_compile") 2>conftest.er1
16310 grep -v '^ *+' conftest.er1 >conftest.err
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest.$ac_objext; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_FLOCK 1
16323 { echo "$as_me:$LINENO: result: yes" >&5
16324 echo "${ECHO_T}yes" >&6; }
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 { echo "$as_me:$LINENO: result: no" >&5
16330 echo "${ECHO_T}no" >&6; }
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16337 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16345 #include "confdefs.h"
16346 #include <unistd.h>
16351 void* p = getpagesize
16356 rm -f conftest.$ac_objext
16357 if { (ac_try="$ac_compile"
16358 case "(($ac_try" in
16359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16360 *) ac_try_echo
=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_compile") 2>conftest.er1
16365 grep -v '^ *+' conftest.er1
>conftest.err
16367 cat conftest.err
>&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } && {
16370 test -z "$ac_c_werror_flag" ||
16371 test ! -s conftest.err
16372 } && test -s conftest.
$ac_objext; then
16374 cat >>confdefs.h
<<\_ACEOF
16375 #define HAVE_GETPAGESIZE 1
16378 { echo "$as_me:$LINENO: result: yes" >&5
16379 echo "${ECHO_T}yes" >&6; }
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.
$ac_ext >&5
16384 { echo "$as_me:$LINENO: result: no" >&5
16385 echo "${ECHO_T}no" >&6; }
16389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16391 for ac_prog
in true
16393 # Extract the first word of "$ac_prog", so it can be a program name with args.
16394 set dummy
$ac_prog; ac_word
=$2
16395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16397 if test "${ac_cv_prog_TRUE+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 if test -n "$TRUE"; then
16401 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
16403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16404 for as_dir
in $PATH
16407 test -z "$as_dir" && as_dir
=.
16408 for ac_exec_ext
in '' $ac_executable_extensions; do
16409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16410 ac_cv_prog_TRUE
="$ac_prog"
16411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16420 TRUE
=$ac_cv_prog_TRUE
16421 if test -n "$TRUE"; then
16422 { echo "$as_me:$LINENO: result: $TRUE" >&5
16423 echo "${ECHO_T}$TRUE" >&6; }
16425 { echo "$as_me:$LINENO: result: no" >&5
16426 echo "${ECHO_T}no" >&6; }
16430 test -n "$TRUE" && break
16432 test -n "$TRUE" || TRUE
="/bin/true"
16435 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16436 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16437 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 ac_check_lib_save_LIBS
=$LIBS
16442 cat >conftest.
$ac_ext <<_ACEOF
16445 cat confdefs.h
>>conftest.
$ac_ext
16446 cat >>conftest.
$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16449 /* Override any GCC internal prototype to avoid an error.
16450 Use char because int might match the return type of a GCC
16451 builtin and then its argument prototype would still apply. */
16459 return inet_aton ();
16464 rm -f conftest.
$ac_objext conftest
$ac_exeext
16465 if { (ac_try
="$ac_link"
16466 case "(($ac_try" in
16467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_link") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && {
16478 test -z "$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 } && test -s conftest$ac_exeext &&
16481 $as_test_x conftest$ac_exeext; then
16482 ac_cv_lib_c_inet_aton=yes
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_cv_lib_c_inet_aton=no
16490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16491 conftest$ac_exeext conftest.$ac_ext
16492 LIBS=$ac_check_lib_save_LIBS
16494 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16495 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16496 if test $ac_cv_lib_c_inet_aton = yes; then
16500 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16501 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16502 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lresolv $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16514 /* Override any GCC internal prototype to avoid an error.
16515 Use char because int might match the return type of a GCC
16516 builtin and then its argument prototype would still apply. */
16524 return inet_aton ();
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16533 *) ac_try_echo
=$ac_try;;
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_link") 2>conftest.er1
16538 grep -v '^ *+' conftest.er1
>conftest.err
16540 cat conftest.err
>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest
$ac_exeext &&
16546 $as_test_x conftest
$ac_exeext; then
16547 ac_cv_lib_resolv_inet_aton
=yes
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.
$ac_ext >&5
16552 ac_cv_lib_resolv_inet_aton
=no
16555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16556 conftest
$ac_exeext conftest.
$ac_ext
16557 LIBS
=$ac_check_lib_save_LIBS
16559 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16560 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16561 if test $ac_cv_lib_resolv_inet_aton = yes; then
16562 cat >>confdefs.h
<<_ACEOF
16563 #define HAVE_LIBRESOLV 1
16566 LIBS
="-lresolv $LIBS"
16574 # On Tru64, chflags seems to be present, but calling it will
16576 { echo "$as_me:$LINENO: checking for chflags" >&5
16577 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16578 if test "$cross_compiling" = yes; then
16579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16580 See \`config.log' for more details." >&5
16581 echo "$as_me: error: cannot run test program while cross compiling
16582 See \`config.log' for more details." >&2;}
16583 { (exit 1); exit 1; }; }
16585 cat >conftest.
$ac_ext <<_ACEOF
16588 cat confdefs.h
>>conftest.
$ac_ext
16589 cat >>conftest.
$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16592 #include <sys/stat.h>
16593 #include <unistd.h>
16594 int main(int argc, char*argv[])
16596 if(chflags(argv[0], 0) != 0)
16602 rm -f conftest
$ac_exeext
16603 if { (ac_try
="$ac_link"
16604 case "(($ac_try" in
16605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_link") 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16613 { (case "(($ac_try" in
16614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16615 *) ac_try_echo
=$ac_try;;
16617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618 (eval "$ac_try") 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16623 cat >>confdefs.h
<<\_ACEOF
16624 #define HAVE_CHFLAGS 1
16627 { echo "$as_me:$LINENO: result: yes" >&5
16628 echo "${ECHO_T}yes" >&6; }
16630 echo "$as_me: program exited with status $ac_status" >&5
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.
$ac_ext >&5
16634 ( exit $ac_status )
16635 { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16644 { echo "$as_me:$LINENO: checking for lchflags" >&5
16645 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16646 if test "$cross_compiling" = yes; then
16647 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16648 See \`config.log' for more details." >&5
16649 echo "$as_me: error: cannot run test program while cross compiling
16650 See \`config.log' for more details." >&2;}
16651 { (exit 1); exit 1; }; }
16653 cat >conftest.
$ac_ext <<_ACEOF
16656 cat confdefs.h
>>conftest.
$ac_ext
16657 cat >>conftest.
$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16660 #include <sys/stat.h>
16661 #include <unistd.h>
16662 int main(int argc, char*argv[])
16664 if(lchflags(argv[0], 0) != 0)
16670 rm -f conftest
$ac_exeext
16671 if { (ac_try
="$ac_link"
16672 case "(($ac_try" in
16673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_link") 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16683 *) ac_try_echo
=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16691 cat >>confdefs.h
<<\_ACEOF
16692 #define HAVE_LCHFLAGS 1
16695 { echo "$as_me:$LINENO: result: yes" >&5
16696 echo "${ECHO_T}yes" >&6; }
16698 echo "$as_me: program exited with status $ac_status" >&5
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.
$ac_ext >&5
16702 ( exit $ac_status )
16703 { echo "$as_me:$LINENO: result: no" >&5
16704 echo "${ECHO_T}no" >&6; }
16707 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16712 case $ac_sys_system/$ac_sys_release in
16714 _CUR_CFLAGS
="${CFLAGS}"
16715 _CUR_LDFLAGS
="${LDFLAGS}"
16716 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
16717 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16721 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16722 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16723 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16726 ac_check_lib_save_LIBS
=$LIBS
16728 cat >conftest.
$ac_ext <<_ACEOF
16731 cat confdefs.h
>>conftest.
$ac_ext
16732 cat >>conftest.
$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16735 /* Override any GCC internal prototype to avoid an error.
16736 Use char because int might match the return type of a GCC
16737 builtin and then its argument prototype would still apply. */
16741 char inflateCopy ();
16745 return inflateCopy ();
16750 rm -f conftest.
$ac_objext conftest
$ac_exeext
16751 if { (ac_try
="$ac_link"
16752 case "(($ac_try" in
16753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_link") 2>conftest.er1
16759 grep -v '^ *+' conftest.er1 >conftest.err
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } && {
16764 test -z "$ac_c_werror_flag" ||
16765 test ! -s conftest.err
16766 } && test -s conftest$ac_exeext &&
16767 $as_test_x conftest$ac_exeext; then
16768 ac_cv_lib_z_inflateCopy=yes
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_cv_lib_z_inflateCopy=no
16776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16777 conftest$ac_exeext conftest.$ac_ext
16778 LIBS=$ac_check_lib_save_LIBS
16780 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16781 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16782 if test $ac_cv_lib_z_inflateCopy = yes; then
16784 cat >>confdefs.h <<\_ACEOF
16785 #define HAVE_ZLIB_COPY 1
16791 case $ac_sys_system/$ac_sys_release in
16793 CFLAGS="${_CUR_CFLAGS}"
16794 LDFLAGS="${_CUR_LDFLAGS}"
16798 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16799 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16807 #include "confdefs.h"
16813 void* p = hstrerror; hstrerror(0)
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16822 *) ac_try_echo
=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_link") 2>conftest.er1
16827 grep -v '^ *+' conftest.er1
>conftest.err
16829 cat conftest.err
>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && {
16832 test -z "$ac_c_werror_flag" ||
16833 test ! -s conftest.err
16834 } && test -s conftest
$ac_exeext &&
16835 $as_test_x conftest
$ac_exeext; then
16837 cat >>confdefs.h
<<\_ACEOF
16838 #define HAVE_HSTRERROR 1
16841 { echo "$as_me:$LINENO: result: yes" >&5
16842 echo "${ECHO_T}yes" >&6; }
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.
$ac_ext >&5
16847 { echo "$as_me:$LINENO: result: no" >&5
16848 echo "${ECHO_T}no" >&6; }
16852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16853 conftest
$ac_exeext conftest.
$ac_ext
16855 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16856 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16857 cat >conftest.
$ac_ext <<_ACEOF
16860 cat confdefs.h
>>conftest.
$ac_ext
16861 cat >>conftest.
$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16864 #include "confdefs.h"
16865 #include <sys/types.h>
16866 #include <sys/socket.h>
16867 #include <netinet/in.h>
16868 #include <arpa/inet.h>
16873 void* p = inet_aton;inet_aton(0,0)
16878 rm -f conftest.
$ac_objext conftest
$ac_exeext
16879 if { (ac_try
="$ac_link"
16880 case "(($ac_try" in
16881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
16887 grep -v '^ *+' conftest.er1 >conftest.err
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext &&
16895 $as_test_x conftest$ac_exeext; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_INET_ATON 1
16901 { echo "$as_me:$LINENO: result: yes" >&5
16902 echo "${ECHO_T}yes" >&6; }
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 { echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6; }
16912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16913 conftest$ac_exeext conftest.$ac_ext
16915 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16916 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16917 cat >conftest.$ac_ext <<_ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16924 #include "confdefs.h"
16925 #include <sys/types.h>
16926 #include <sys/socket.h>
16927 #include <netinet/in.h>
16928 #include <arpa/inet.h>
16933 void* p = inet_pton
16938 rm -f conftest.$ac_objext
16939 if { (ac_try="$ac_compile"
16940 case "(($ac_try" in
16941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16942 *) ac_try_echo
=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_compile") 2>conftest.er1
16947 grep -v '^ *+' conftest.er1
>conftest.err
16949 cat conftest.err
>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } && {
16952 test -z "$ac_c_werror_flag" ||
16953 test ! -s conftest.err
16954 } && test -s conftest.
$ac_objext; then
16956 cat >>confdefs.h
<<\_ACEOF
16957 #define HAVE_INET_PTON 1
16960 { echo "$as_me:$LINENO: result: yes" >&5
16961 echo "${ECHO_T}yes" >&6; }
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.
$ac_ext >&5
16966 { echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6; }
16971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16973 # On some systems, setgroups is in unistd.h, on others, in grp.h
16974 { echo "$as_me:$LINENO: checking for setgroups" >&5
16975 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16976 cat >conftest.
$ac_ext <<_ACEOF
16979 cat confdefs.h
>>conftest.
$ac_ext
16980 cat >>conftest.
$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16983 #include "confdefs.h"
16984 #include <unistd.h>
16992 void* p = setgroups
16997 rm -f conftest.
$ac_objext
16998 if { (ac_try
="$ac_compile"
16999 case "(($ac_try" in
17000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_compile") 2>conftest.er1
17006 grep -v '^ *+' conftest.er1 >conftest.err
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } && {
17011 test -z "$ac_c_werror_flag" ||
17012 test ! -s conftest.err
17013 } && test -s conftest.$ac_objext; then
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_SETGROUPS 1
17019 { echo "$as_me:$LINENO: result: yes" >&5
17020 echo "${ECHO_T}yes" >&6; }
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 { echo "$as_me:$LINENO: result: no" >&5
17026 echo "${ECHO_T}no" >&6; }
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 # check for openpty and forkpty
17035 for ac_func in openpty
17037 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17043 cat >conftest.$ac_ext <<_ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17051 #define $ac_func innocuous_$ac_func
17053 /* System header to define __stub macros and hopefully few prototypes,
17054 which can conflict with char $ac_func (); below.
17055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17056 <limits.h> exists even on freestanding compilers. */
17059 # include <limits.h>
17061 # include <assert.h>
17066 /* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
17073 /* The GNU C library defines this for functions which it implements
17074 to always fail with ENOSYS. Some functions are actually named
17075 something starting with __ and the normal name is an alias. */
17076 #if defined __stub_$ac_func || defined __stub___$ac_func
17083 return $ac_func ();
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17092 *) ac_try_echo
=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_link") 2>conftest.er1
17097 grep -v '^ *+' conftest.er1
>conftest.err
17099 cat conftest.err
>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest
$ac_exeext &&
17105 $as_test_x conftest
$ac_exeext; then
17106 eval "$as_ac_var=yes"
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.
$ac_ext >&5
17111 eval "$as_ac_var=no"
17114 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17115 conftest
$ac_exeext conftest.
$ac_ext
17117 ac_res
=`eval echo '${'$as_ac_var'}'`
17118 { echo "$as_me:$LINENO: result: $ac_res" >&5
17119 echo "${ECHO_T}$ac_res" >&6; }
17120 if test `eval echo '${'$as_ac_var'}'` = yes; then
17121 cat >>confdefs.h
<<_ACEOF
17122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17126 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17127 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17128 if test "${ac_cv_lib_util_openpty+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 ac_check_lib_save_LIBS
=$LIBS
17132 LIBS
="-lutil $LIBS"
17133 cat >conftest.
$ac_ext <<_ACEOF
17136 cat confdefs.h
>>conftest.
$ac_ext
17137 cat >>conftest.
$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17140 /* Override any GCC internal prototype to avoid an error.
17141 Use char because int might match the return type of a GCC
17142 builtin and then its argument prototype would still apply. */
17155 rm -f conftest.
$ac_objext conftest
$ac_exeext
17156 if { (ac_try
="$ac_link"
17157 case "(($ac_try" in
17158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest$ac_exeext &&
17172 $as_test_x conftest$ac_exeext; then
17173 ac_cv_lib_util_openpty=yes
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 ac_cv_lib_util_openpty=no
17181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17182 conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17185 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17186 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17187 if test $ac_cv_lib_util_openpty = yes; then
17188 cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_OPENPTY 1
17191 LIBS="$LIBS -lutil"
17193 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17194 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17195 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 ac_check_lib_save_LIBS=$LIBS
17200 cat >conftest.$ac_ext <<_ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (ac_try="$ac_link"
17224 case "(($ac_try" in
17225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17226 *) ac_try_echo
=$ac_try;;
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_link") 2>conftest.er1
17231 grep -v '^ *+' conftest.er1
>conftest.err
17233 cat conftest.err
>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } && {
17236 test -z "$ac_c_werror_flag" ||
17237 test ! -s conftest.err
17238 } && test -s conftest
$ac_exeext &&
17239 $as_test_x conftest
$ac_exeext; then
17240 ac_cv_lib_bsd_openpty
=yes
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.
$ac_ext >&5
17245 ac_cv_lib_bsd_openpty
=no
17248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17249 conftest
$ac_exeext conftest.
$ac_ext
17250 LIBS
=$ac_check_lib_save_LIBS
17252 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17253 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17254 if test $ac_cv_lib_bsd_openpty = yes; then
17255 cat >>confdefs.h
<<\_ACEOF
17256 #define HAVE_OPENPTY 1
17269 for ac_func
in forkpty
17271 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17274 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 cat >conftest.
$ac_ext <<_ACEOF
17280 cat confdefs.h
>>conftest.
$ac_ext
17281 cat >>conftest.
$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17285 #define $ac_func innocuous_$ac_func
17287 /* System header to define __stub macros and hopefully few prototypes,
17288 which can conflict with char $ac_func (); below.
17289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17290 <limits.h> exists even on freestanding compilers. */
17293 # include <limits.h>
17295 # include <assert.h>
17300 /* Override any GCC internal prototype to avoid an error.
17301 Use char because int might match the return type of a GCC
17302 builtin and then its argument prototype would still apply. */
17307 /* The GNU C library defines this for functions which it implements
17308 to always fail with ENOSYS. Some functions are actually named
17309 something starting with __ and the normal name is an alias. */
17310 #if defined __stub_$ac_func || defined __stub___$ac_func
17317 return $ac_func ();
17322 rm -f conftest.
$ac_objext conftest
$ac_exeext
17323 if { (ac_try
="$ac_link"
17324 case "(($ac_try" in
17325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_link") 2>conftest.er1
17331 grep -v '^ *+' conftest.er1 >conftest.err
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest$ac_exeext &&
17339 $as_test_x conftest$ac_exeext; then
17340 eval "$as_ac_var=yes"
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 eval "$as_ac_var=no"
17348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17349 conftest$ac_exeext conftest.$ac_ext
17351 ac_res=`eval echo '${'$as_ac_var'}'`
17352 { echo "$as_me:$LINENO: result: $ac_res" >&5
17353 echo "${ECHO_T}$ac_res" >&6; }
17354 if test `eval echo '${'$as_ac_var'}'` = yes; then
17355 cat >>confdefs.h <<_ACEOF
17356 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17360 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17361 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17362 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 ac_check_lib_save_LIBS=$LIBS
17366 LIBS="-lutil $LIBS"
17367 cat >conftest.$ac_ext <<_ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17374 /* Override any GCC internal prototype to avoid an error.
17375 Use char because int might match the return type of a GCC
17376 builtin and then its argument prototype would still apply. */
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17393 *) ac_try_echo
=$ac_try;;
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>conftest.er1
17398 grep -v '^ *+' conftest.er1
>conftest.err
17400 cat conftest.err
>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && {
17403 test -z "$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 } && test -s conftest
$ac_exeext &&
17406 $as_test_x conftest
$ac_exeext; then
17407 ac_cv_lib_util_forkpty
=yes
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.
$ac_ext >&5
17412 ac_cv_lib_util_forkpty
=no
17415 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17416 conftest
$ac_exeext conftest.
$ac_ext
17417 LIBS
=$ac_check_lib_save_LIBS
17419 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17420 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17421 if test $ac_cv_lib_util_forkpty = yes; then
17422 cat >>confdefs.h
<<\_ACEOF
17423 #define HAVE_FORKPTY 1
17425 LIBS
="$LIBS -lutil"
17427 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17428 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17429 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 ac_check_lib_save_LIBS
=$LIBS
17434 cat >conftest.
$ac_ext <<_ACEOF
17437 cat confdefs.h
>>conftest.
$ac_ext
17438 cat >>conftest.
$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17441 /* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17456 rm -f conftest.
$ac_objext conftest
$ac_exeext
17457 if { (ac_try
="$ac_link"
17458 case "(($ac_try" in
17459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_link") 2>conftest.er1
17465 grep -v '^ *+' conftest.er1 >conftest.err
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } && {
17470 test -z "$ac_c_werror_flag" ||
17471 test ! -s conftest.err
17472 } && test -s conftest$ac_exeext &&
17473 $as_test_x conftest$ac_exeext; then
17474 ac_cv_lib_bsd_forkpty=yes
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_cv_lib_bsd_forkpty=no
17482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17483 conftest$ac_exeext conftest.$ac_ext
17484 LIBS=$ac_check_lib_save_LIBS
17486 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17487 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17488 if test $ac_cv_lib_bsd_forkpty = yes; then
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_FORKPTY 1
17505 for ac_func in memmove
17507 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 cat >conftest.$ac_ext <<_ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17521 #define $ac_func innocuous_$ac_func
17523 /* System header to define __stub macros and hopefully few prototypes,
17524 which can conflict with char $ac_func (); below.
17525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17526 <limits.h> exists even on freestanding compilers. */
17529 # include <limits.h>
17531 # include <assert.h>
17536 /* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17543 /* The GNU C library defines this for functions which it implements
17544 to always fail with ENOSYS. Some functions are actually named
17545 something starting with __ and the normal name is an alias. */
17546 #if defined __stub_$ac_func || defined __stub___$ac_func
17553 return $ac_func ();
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (ac_try="$ac_link"
17560 case "(($ac_try" in
17561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17562 *) ac_try_echo
=$ac_try;;
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_link") 2>conftest.er1
17567 grep -v '^ *+' conftest.er1
>conftest.err
17569 cat conftest.err
>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } && {
17572 test -z "$ac_c_werror_flag" ||
17573 test ! -s conftest.err
17574 } && test -s conftest
$ac_exeext &&
17575 $as_test_x conftest
$ac_exeext; then
17576 eval "$as_ac_var=yes"
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.
$ac_ext >&5
17581 eval "$as_ac_var=no"
17584 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17585 conftest
$ac_exeext conftest.
$ac_ext
17587 ac_res
=`eval echo '${'$as_ac_var'}'`
17588 { echo "$as_me:$LINENO: result: $ac_res" >&5
17589 echo "${ECHO_T}$ac_res" >&6; }
17590 if test `eval echo '${'$as_ac_var'}'` = yes; then
17591 cat >>confdefs.h
<<_ACEOF
17592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17599 # check for long file support functions
17606 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17608 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17611 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 cat >conftest.
$ac_ext <<_ACEOF
17617 cat confdefs.h
>>conftest.
$ac_ext
17618 cat >>conftest.
$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17622 #define $ac_func innocuous_$ac_func
17624 /* System header to define __stub macros and hopefully few prototypes,
17625 which can conflict with char $ac_func (); below.
17626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17627 <limits.h> exists even on freestanding compilers. */
17630 # include <limits.h>
17632 # include <assert.h>
17637 /* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17644 /* The GNU C library defines this for functions which it implements
17645 to always fail with ENOSYS. Some functions are actually named
17646 something starting with __ and the normal name is an alias. */
17647 #if defined __stub_$ac_func || defined __stub___$ac_func
17654 return $ac_func ();
17659 rm -f conftest.
$ac_objext conftest
$ac_exeext
17660 if { (ac_try
="$ac_link"
17661 case "(($ac_try" in
17662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } && {
17673 test -z "$ac_c_werror_flag" ||
17674 test ! -s conftest.err
17675 } && test -s conftest$ac_exeext &&
17676 $as_test_x conftest$ac_exeext; then
17677 eval "$as_ac_var=yes"
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 eval "$as_ac_var=no"
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17688 ac_res=`eval echo '${'$as_ac_var'}'`
17689 { echo "$as_me:$LINENO: result: $ac_res" >&5
17690 echo "${ECHO_T}$ac_res" >&6; }
17691 if test `eval echo '${'$as_ac_var'}'` = yes; then
17692 cat >>confdefs.h <<_ACEOF
17693 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17703 for ac_func in dup2 getcwd strdup
17705 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 cat >conftest.$ac_ext <<_ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17719 #define $ac_func innocuous_$ac_func
17721 /* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char $ac_func (); below.
17723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724 <limits.h> exists even on freestanding compilers. */
17727 # include <limits.h>
17729 # include <assert.h>
17734 /* Override any GCC internal prototype to avoid an error.
17735 Use char because int might match the return type of a GCC
17736 builtin and then its argument prototype would still apply. */
17741 /* The GNU C library defines this for functions which it implements
17742 to always fail with ENOSYS. Some functions are actually named
17743 something starting with __ and the normal name is an alias. */
17744 #if defined __stub_$ac_func || defined __stub___$ac_func
17751 return $ac_func ();
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (ac_try="$ac_link"
17758 case "(($ac_try" in
17759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17760 *) ac_try_echo
=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_link") 2>conftest.er1
17765 grep -v '^ *+' conftest.er1
>conftest.err
17767 cat conftest.err
>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } && {
17770 test -z "$ac_c_werror_flag" ||
17771 test ! -s conftest.err
17772 } && test -s conftest
$ac_exeext &&
17773 $as_test_x conftest
$ac_exeext; then
17774 eval "$as_ac_var=yes"
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.
$ac_ext >&5
17779 eval "$as_ac_var=no"
17782 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17783 conftest
$ac_exeext conftest.
$ac_ext
17785 ac_res
=`eval echo '${'$as_ac_var'}'`
17786 { echo "$as_me:$LINENO: result: $ac_res" >&5
17787 echo "${ECHO_T}$ac_res" >&6; }
17788 if test `eval echo '${'$as_ac_var'}'` = yes; then
17789 cat >>confdefs.h
<<_ACEOF
17790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17794 case " $LIBOBJS " in
17795 *" $ac_func.$ac_objext "* ) ;;
17796 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17805 for ac_func
in getpgrp
17807 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17810 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 cat >conftest.
$ac_ext <<_ACEOF
17816 cat confdefs.h
>>conftest.
$ac_ext
17817 cat >>conftest.
$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17821 #define $ac_func innocuous_$ac_func
17823 /* System header to define __stub macros and hopefully few prototypes,
17824 which can conflict with char $ac_func (); below.
17825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17826 <limits.h> exists even on freestanding compilers. */
17829 # include <limits.h>
17831 # include <assert.h>
17836 /* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17843 /* The GNU C library defines this for functions which it implements
17844 to always fail with ENOSYS. Some functions are actually named
17845 something starting with __ and the normal name is an alias. */
17846 #if defined __stub_$ac_func || defined __stub___$ac_func
17853 return $ac_func ();
17858 rm -f conftest.
$ac_objext conftest
$ac_exeext
17859 if { (ac_try
="$ac_link"
17860 case "(($ac_try" in
17861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_link") 2>conftest.er1
17867 grep -v '^ *+' conftest.er1 >conftest.err
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } && {
17872 test -z "$ac_c_werror_flag" ||
17873 test ! -s conftest.err
17874 } && test -s conftest$ac_exeext &&
17875 $as_test_x conftest$ac_exeext; then
17876 eval "$as_ac_var=yes"
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 eval "$as_ac_var=no"
17884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885 conftest$ac_exeext conftest.$ac_ext
17887 ac_res=`eval echo '${'$as_ac_var'}'`
17888 { echo "$as_me:$LINENO: result: $ac_res" >&5
17889 echo "${ECHO_T}$ac_res" >&6; }
17890 if test `eval echo '${'$as_ac_var'}'` = yes; then
17891 cat >>confdefs.h <<_ACEOF
17892 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 #include <unistd.h>
17909 rm -f conftest.$ac_objext
17910 if { (ac_try="$ac_compile"
17911 case "(($ac_try" in
17912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17913 *) ac_try_echo
=$ac_try;;
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_compile") 2>conftest.er1
17918 grep -v '^ *+' conftest.er1
>conftest.err
17920 cat conftest.err
>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } && {
17923 test -z "$ac_c_werror_flag" ||
17924 test ! -s conftest.err
17925 } && test -s conftest.
$ac_objext; then
17927 cat >>confdefs.h
<<\_ACEOF
17928 #define GETPGRP_HAVE_ARG 1
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.
$ac_ext >&5
17939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17945 for ac_func
in setpgrp
17947 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17950 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 cat >conftest.
$ac_ext <<_ACEOF
17956 cat confdefs.h
>>conftest.
$ac_ext
17957 cat >>conftest.
$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17961 #define $ac_func innocuous_$ac_func
17963 /* System header to define __stub macros and hopefully few prototypes,
17964 which can conflict with char $ac_func (); below.
17965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17966 <limits.h> exists even on freestanding compilers. */
17969 # include <limits.h>
17971 # include <assert.h>
17976 /* Override any GCC internal prototype to avoid an error.
17977 Use char because int might match the return type of a GCC
17978 builtin and then its argument prototype would still apply. */
17983 /* The GNU C library defines this for functions which it implements
17984 to always fail with ENOSYS. Some functions are actually named
17985 something starting with __ and the normal name is an alias. */
17986 #if defined __stub_$ac_func || defined __stub___$ac_func
17993 return $ac_func ();
17998 rm -f conftest.
$ac_objext conftest
$ac_exeext
17999 if { (ac_try
="$ac_link"
18000 case "(($ac_try" in
18001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_link") 2>conftest.er1
18007 grep -v '^ *+' conftest.er1 >conftest.err
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } && {
18012 test -z "$ac_c_werror_flag" ||
18013 test ! -s conftest.err
18014 } && test -s conftest$ac_exeext &&
18015 $as_test_x conftest$ac_exeext; then
18016 eval "$as_ac_var=yes"
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 eval "$as_ac_var=no"
18024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18025 conftest$ac_exeext conftest.$ac_ext
18027 ac_res=`eval echo '${'$as_ac_var'}'`
18028 { echo "$as_me:$LINENO: result: $ac_res" >&5
18029 echo "${ECHO_T}$ac_res" >&6; }
18030 if test `eval echo '${'$as_ac_var'}'` = yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18034 cat >conftest.$ac_ext <<_ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 #include <unistd.h>
18049 rm -f conftest.$ac_objext
18050 if { (ac_try="$ac_compile"
18051 case "(($ac_try" in
18052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18053 *) ac_try_echo
=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1
>conftest.err
18060 cat conftest.err
>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.
$ac_objext; then
18067 cat >>confdefs.h
<<\_ACEOF
18068 #define SETPGRP_HAVE_ARG 1
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.
$ac_ext >&5
18079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18085 for ac_func
in gettimeofday
18087 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18090 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 cat >conftest.
$ac_ext <<_ACEOF
18096 cat confdefs.h
>>conftest.
$ac_ext
18097 cat >>conftest.
$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18101 #define $ac_func innocuous_$ac_func
18103 /* System header to define __stub macros and hopefully few prototypes,
18104 which can conflict with char $ac_func (); below.
18105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18106 <limits.h> exists even on freestanding compilers. */
18109 # include <limits.h>
18111 # include <assert.h>
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18123 /* The GNU C library defines this for functions which it implements
18124 to always fail with ENOSYS. Some functions are actually named
18125 something starting with __ and the normal name is an alias. */
18126 #if defined __stub_$ac_func || defined __stub___$ac_func
18133 return $ac_func ();
18138 rm -f conftest.
$ac_objext conftest
$ac_exeext
18139 if { (ac_try
="$ac_link"
18140 case "(($ac_try" in
18141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_link") 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest$ac_exeext &&
18155 $as_test_x conftest$ac_exeext; then
18156 eval "$as_ac_var=yes"
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 eval "$as_ac_var=no"
18164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18165 conftest$ac_exeext conftest.$ac_ext
18167 ac_res=`eval echo '${'$as_ac_var'}'`
18168 { echo "$as_me:$LINENO: result: $ac_res" >&5
18169 echo "${ECHO_T}$ac_res" >&6; }
18170 if test `eval echo '${'$as_ac_var'}'` = yes; then
18171 cat >>confdefs.h <<_ACEOF
18172 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18174 cat >conftest.$ac_ext <<_ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <sys/time.h>
18184 gettimeofday((struct timeval*)0,(struct timezone*)0);
18189 rm -f conftest.$ac_objext
18190 if { (ac_try="$ac_compile"
18191 case "(($ac_try" in
18192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18193 *) ac_try_echo
=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_compile") 2>conftest.er1
18198 grep -v '^ *+' conftest.er1
>conftest.err
18200 cat conftest.err
>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest.
$ac_objext; then
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.
$ac_ext >&5
18212 cat >>confdefs.h
<<\_ACEOF
18213 #define GETTIMEOFDAY_NO_TZ 1
18219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18225 { echo "$as_me:$LINENO: checking for major" >&5
18226 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18227 cat >conftest.
$ac_ext <<_ACEOF
18230 cat confdefs.h
>>conftest.
$ac_ext
18231 cat >>conftest.
$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18234 #if defined(MAJOR_IN_MKDEV)
18235 #include <sys/mkdev.h>
18236 #elif defined(MAJOR_IN_SYSMACROS)
18237 #include <sys/sysmacros.h>
18239 #include <sys/types.h>
18246 makedev(major(0),minor(0));
18252 rm -f conftest.
$ac_objext conftest
$ac_exeext
18253 if { (ac_try
="$ac_link"
18254 case "(($ac_try" in
18255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_link") 2>conftest.er1
18261 grep -v '^ *+' conftest.er1 >conftest.err
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } && {
18266 test -z "$ac_c_werror_flag" ||
18267 test ! -s conftest.err
18268 } && test -s conftest$ac_exeext &&
18269 $as_test_x conftest$ac_exeext; then
18272 cat >>confdefs.h <<\_ACEOF
18273 #define HAVE_DEVICE_MACROS 1
18276 { echo "$as_me:$LINENO: result: yes" >&5
18277 echo "${ECHO_T}yes" >&6; }
18280 echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18284 { echo "$as_me:$LINENO: result: no" >&5
18285 echo "${ECHO_T}no" >&6; }
18289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18290 conftest$ac_exeext conftest.$ac_ext
18292 # On OSF/1 V5.1, getaddrinfo is available, but a define
18293 # for [no]getaddrinfo in netdb.h.
18294 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18295 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18303 #include <sys/types.h>
18304 #include <sys/socket.h>
18312 getaddrinfo(NULL, NULL, NULL, NULL);
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18322 *) ac_try_echo
=$ac_try;;
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18327 grep -v '^ *+' conftest.er1
>conftest.err
18329 cat conftest.err
>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest
$ac_exeext &&
18335 $as_test_x conftest
$ac_exeext; then
18337 { echo "$as_me:$LINENO: result: yes" >&5
18338 echo "${ECHO_T}yes" >&6; }
18339 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18340 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18341 if test "$cross_compiling" = yes; then
18342 { echo "$as_me:$LINENO: result: buggy" >&5
18343 echo "${ECHO_T}buggy" >&6; }
18344 buggygetaddrinfo
=yes
18346 cat >conftest.
$ac_ext <<_ACEOF
18349 cat confdefs.h
>>conftest.
$ac_ext
18350 cat >>conftest.
$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18353 #include <sys/types.h>
18355 #include <string.h>
18356 #include <sys/socket.h>
18357 #include <netinet/in.h>
18361 int passive, gaierr, inet4 = 0, inet6 = 0;
18362 struct addrinfo hints, *ai, *aitop;
18363 char straddr[INET6_ADDRSTRLEN], strport[16];
18365 for (passive = 0; passive <= 1; passive++) {
18366 memset(&hints, 0, sizeof(hints));
18367 hints.ai_family = AF_UNSPEC;
18368 hints.ai_flags = passive ? AI_PASSIVE : 0;
18369 hints.ai_socktype = SOCK_STREAM;
18370 hints.ai_protocol = IPPROTO_TCP;
18371 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18372 (void)gai_strerror(gaierr);
18375 for (ai = aitop; ai; ai = ai->ai_next) {
18376 if (ai->ai_addr == NULL ||
18377 ai->ai_addrlen == 0 ||
18378 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18379 straddr, sizeof(straddr), strport, sizeof(strport),
18380 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18383 switch (ai->ai_family) {
18385 if (strcmp(strport, "54321") != 0) {
18389 if (strcmp(straddr, "0.0.0.0") != 0) {
18393 if (strcmp(straddr, "127.0.0.1") != 0) {
18400 if (strcmp(strport, "54321") != 0) {
18404 if (strcmp(straddr, "::") != 0) {
18408 if (strcmp(straddr, "::1") != 0) {
18418 /* another family support? */
18424 if (!(inet4 == 0 || inet4 == 2))
18426 if (!(inet6 == 0 || inet6 == 2))
18430 freeaddrinfo(aitop);
18435 freeaddrinfo(aitop);
18440 rm -f conftest
$ac_exeext
18441 if { (ac_try
="$ac_link"
18442 case "(($ac_try" in
18443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18451 { (case "(($ac_try" in
18452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18453 *) ac_try_echo
=$ac_try;;
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_try") 2>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; }; then
18460 { echo "$as_me:$LINENO: result: good" >&5
18461 echo "${ECHO_T}good" >&6; }
18462 buggygetaddrinfo
=no
18464 echo "$as_me: program exited with status $ac_status" >&5
18465 echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.
$ac_ext >&5
18468 ( exit $ac_status )
18469 { echo "$as_me:$LINENO: result: buggy" >&5
18470 echo "${ECHO_T}buggy" >&6; }
18471 buggygetaddrinfo
=yes
18473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.
$ac_ext >&5
18482 { echo "$as_me:$LINENO: result: no" >&5
18483 echo "${ECHO_T}no" >&6; }
18484 buggygetaddrinfo
=yes
18488 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18489 conftest
$ac_exeext conftest.
$ac_ext
18491 if test "$buggygetaddrinfo" = "yes"; then
18492 if test "$ipv6" = "yes"; then
18493 echo 'Fatal: You must get working getaddrinfo() function.'
18494 echo ' or you can specify "--disable-ipv6"'.
18499 cat >>confdefs.h
<<\_ACEOF
18500 #define HAVE_GETADDRINFO 1
18505 for ac_func
in getnameinfo
18507 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18510 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 cat >conftest.
$ac_ext <<_ACEOF
18516 cat confdefs.h
>>conftest.
$ac_ext
18517 cat >>conftest.
$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18521 #define $ac_func innocuous_$ac_func
18523 /* System header to define __stub macros and hopefully few prototypes,
18524 which can conflict with char $ac_func (); below.
18525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18526 <limits.h> exists even on freestanding compilers. */
18529 # include <limits.h>
18531 # include <assert.h>
18536 /* Override any GCC internal prototype to avoid an error.
18537 Use char because int might match the return type of a GCC
18538 builtin and then its argument prototype would still apply. */
18543 /* The GNU C library defines this for functions which it implements
18544 to always fail with ENOSYS. Some functions are actually named
18545 something starting with __ and the normal name is an alias. */
18546 #if defined __stub_$ac_func || defined __stub___$ac_func
18553 return $ac_func ();
18558 rm -f conftest.
$ac_objext conftest
$ac_exeext
18559 if { (ac_try
="$ac_link"
18560 case "(($ac_try" in
18561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_link") 2>conftest.er1
18567 grep -v '^ *+' conftest.er1 >conftest.err
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } && {
18572 test -z "$ac_c_werror_flag" ||
18573 test ! -s conftest.err
18574 } && test -s conftest$ac_exeext &&
18575 $as_test_x conftest$ac_exeext; then
18576 eval "$as_ac_var=yes"
18578 echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.$ac_ext >&5
18581 eval "$as_ac_var=no"
18584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18585 conftest$ac_exeext conftest.$ac_ext
18587 ac_res=`eval echo '${'$as_ac_var'}'`
18588 { echo "$as_me:$LINENO: result: $ac_res" >&5
18589 echo "${ECHO_T}$ac_res" >&6; }
18590 if test `eval echo '${'$as_ac_var'}'` = yes; then
18591 cat >>confdefs.h <<_ACEOF
18592 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18599 # checks for structures
18600 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18601 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18602 if test "${ac_cv_header_time+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 cat >conftest.$ac_ext <<_ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 #include <sys/types.h>
18612 #include <sys/time.h>
18618 if ((struct tm *) 0)
18624 rm -f conftest.$ac_objext
18625 if { (ac_try="$ac_compile"
18626 case "(($ac_try" in
18627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18628 *) ac_try_echo
=$ac_try;;
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_compile") 2>conftest.er1
18633 grep -v '^ *+' conftest.er1
>conftest.err
18635 cat conftest.err
>&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest.
$ac_objext; then
18641 ac_cv_header_time
=yes
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.
$ac_ext >&5
18646 ac_cv_header_time
=no
18649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18651 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18652 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18653 if test $ac_cv_header_time = yes; then
18655 cat >>confdefs.h
<<\_ACEOF
18656 #define TIME_WITH_SYS_TIME 1
18661 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18662 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18663 if test "${ac_cv_struct_tm+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 cat >conftest.
$ac_ext <<_ACEOF
18669 cat confdefs.h
>>conftest.
$ac_ext
18670 cat >>conftest.
$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 #include <sys/types.h>
18679 int *p = &tm.tm_sec;
18685 rm -f conftest.
$ac_objext
18686 if { (ac_try
="$ac_compile"
18687 case "(($ac_try" in
18688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692 (eval "$ac_compile") 2>conftest.er1
18694 grep -v '^ *+' conftest.er1 >conftest.err
18696 cat conftest.err >&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } && {
18699 test -z "$ac_c_werror_flag" ||
18700 test ! -s conftest.err
18701 } && test -s conftest.$ac_objext; then
18702 ac_cv_struct_tm=time.h
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_struct_tm=sys/time.h
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18712 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18713 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18714 if test $ac_cv_struct_tm = sys/time.h; then
18716 cat >>confdefs.h <<\_ACEOF
18717 #define TM_IN_SYS_TIME 1
18722 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18723 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18724 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 cat >conftest.$ac_ext <<_ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <sys/types.h>
18734 #include <$ac_cv_struct_tm>
18740 static struct tm ac_aggr;
18741 if (ac_aggr.tm_zone)
18747 rm -f conftest.$ac_objext
18748 if { (ac_try="$ac_compile"
18749 case "(($ac_try" in
18750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18751 *) ac_try_echo
=$ac_try;;
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_compile") 2>conftest.er1
18756 grep -v '^ *+' conftest.er1
>conftest.err
18758 cat conftest.err
>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } && {
18761 test -z "$ac_c_werror_flag" ||
18762 test ! -s conftest.err
18763 } && test -s conftest.
$ac_objext; then
18764 ac_cv_member_struct_tm_tm_zone
=yes
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.
$ac_ext >&5
18769 cat >conftest.
$ac_ext <<_ACEOF
18772 cat confdefs.h
>>conftest.
$ac_ext
18773 cat >>conftest.
$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18775 #include <sys/types.h>
18776 #include <$ac_cv_struct_tm>
18782 static struct tm ac_aggr;
18783 if (sizeof ac_aggr.tm_zone)
18789 rm -f conftest.
$ac_objext
18790 if { (ac_try
="$ac_compile"
18791 case "(($ac_try" in
18792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_compile") 2>conftest.er1
18798 grep -v '^ *+' conftest.er1 >conftest.err
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest.$ac_objext; then
18806 ac_cv_member_struct_tm_tm_zone=yes
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ac_cv_member_struct_tm_tm_zone=no
18814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18819 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18820 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18821 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18823 cat >>confdefs.h <<_ACEOF
18824 #define HAVE_STRUCT_TM_TM_ZONE 1
18830 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define HAVE_TM_ZONE 1
18837 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18838 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18839 if test "${ac_cv_have_decl_tzname+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18861 rm -f conftest.$ac_objext
18862 if { (ac_try="$ac_compile"
18863 case "(($ac_try" in
18864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18865 *) ac_try_echo
=$ac_try;;
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_compile") 2>conftest.er1
18870 grep -v '^ *+' conftest.er1
>conftest.err
18872 cat conftest.err
>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } && {
18875 test -z "$ac_c_werror_flag" ||
18876 test ! -s conftest.err
18877 } && test -s conftest.
$ac_objext; then
18878 ac_cv_have_decl_tzname
=yes
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.
$ac_ext >&5
18883 ac_cv_have_decl_tzname
=no
18886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18888 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18889 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18890 if test $ac_cv_have_decl_tzname = yes; then
18892 cat >>confdefs.h
<<_ACEOF
18893 #define HAVE_DECL_TZNAME 1
18898 cat >>confdefs.h
<<_ACEOF
18899 #define HAVE_DECL_TZNAME 0
18906 { echo "$as_me:$LINENO: checking for tzname" >&5
18907 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18908 if test "${ac_cv_var_tzname+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18911 cat >conftest.
$ac_ext <<_ACEOF
18914 cat confdefs.h
>>conftest.
$ac_ext
18915 cat >>conftest.
$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18918 #if !HAVE_DECL_TZNAME
18919 extern char *tzname[];
18925 return tzname[0][0];
18930 rm -f conftest.
$ac_objext conftest
$ac_exeext
18931 if { (ac_try
="$ac_link"
18932 case "(($ac_try" in
18933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } && {
18944 test -z "$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 } && test -s conftest$ac_exeext &&
18947 $as_test_x conftest$ac_exeext; then
18948 ac_cv_var_tzname=yes
18950 echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18953 ac_cv_var_tzname=no
18956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18957 conftest$ac_exeext conftest.$ac_ext
18959 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18960 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18961 if test $ac_cv_var_tzname = yes; then
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE_TZNAME 1
18970 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18971 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18972 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 cat >conftest.$ac_ext <<_ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 $ac_includes_default
18985 static struct stat ac_aggr;
18986 if (ac_aggr.st_rdev)
18992 rm -f conftest.$ac_objext
18993 if { (ac_try="$ac_compile"
18994 case "(($ac_try" in
18995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18996 *) ac_try_echo
=$ac_try;;
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_compile") 2>conftest.er1
19001 grep -v '^ *+' conftest.er1
>conftest.err
19003 cat conftest.err
>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest.
$ac_objext; then
19009 ac_cv_member_struct_stat_st_rdev
=yes
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.
$ac_ext >&5
19014 cat >conftest.
$ac_ext <<_ACEOF
19017 cat confdefs.h
>>conftest.
$ac_ext
19018 cat >>conftest.
$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 $ac_includes_default
19024 static struct stat ac_aggr;
19025 if (sizeof ac_aggr.st_rdev)
19031 rm -f conftest.
$ac_objext
19032 if { (ac_try
="$ac_compile"
19033 case "(($ac_try" in
19034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_compile") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1 >conftest.err
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest.$ac_objext; then
19048 ac_cv_member_struct_stat_st_rdev=yes
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 ac_cv_member_struct_stat_st_rdev=no
19056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19062 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19063 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19065 cat >>confdefs.h <<_ACEOF
19066 #define HAVE_STRUCT_STAT_ST_RDEV 1
19072 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19073 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19074 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 cat >conftest.$ac_ext <<_ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 $ac_includes_default
19087 static struct stat ac_aggr;
19088 if (ac_aggr.st_blksize)
19094 rm -f conftest.$ac_objext
19095 if { (ac_try="$ac_compile"
19096 case "(($ac_try" in
19097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19098 *) ac_try_echo
=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_compile") 2>conftest.er1
19103 grep -v '^ *+' conftest.er1
>conftest.err
19105 cat conftest.err
>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && {
19108 test -z "$ac_c_werror_flag" ||
19109 test ! -s conftest.err
19110 } && test -s conftest.
$ac_objext; then
19111 ac_cv_member_struct_stat_st_blksize
=yes
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.
$ac_ext >&5
19116 cat >conftest.
$ac_ext <<_ACEOF
19119 cat confdefs.h
>>conftest.
$ac_ext
19120 cat >>conftest.
$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19122 $ac_includes_default
19126 static struct stat ac_aggr;
19127 if (sizeof ac_aggr.st_blksize)
19133 rm -f conftest.
$ac_objext
19134 if { (ac_try
="$ac_compile"
19135 case "(($ac_try" in
19136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_compile") 2>conftest.er1
19142 grep -v '^ *+' conftest.er1 >conftest.err
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } && {
19147 test -z "$ac_c_werror_flag" ||
19148 test ! -s conftest.err
19149 } && test -s conftest.$ac_objext; then
19150 ac_cv_member_struct_stat_st_blksize=yes
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_cv_member_struct_stat_st_blksize=no
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19164 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19165 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19167 cat >>confdefs.h <<_ACEOF
19168 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19174 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19175 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19176 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 $ac_includes_default
19189 static struct stat ac_aggr;
19190 if (ac_aggr.st_flags)
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19200 *) ac_try_echo
=$ac_try;;
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_compile") 2>conftest.er1
19205 grep -v '^ *+' conftest.er1
>conftest.err
19207 cat conftest.err
>&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } && {
19210 test -z "$ac_c_werror_flag" ||
19211 test ! -s conftest.err
19212 } && test -s conftest.
$ac_objext; then
19213 ac_cv_member_struct_stat_st_flags
=yes
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.
$ac_ext >&5
19218 cat >conftest.
$ac_ext <<_ACEOF
19221 cat confdefs.h
>>conftest.
$ac_ext
19222 cat >>conftest.
$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 $ac_includes_default
19228 static struct stat ac_aggr;
19229 if (sizeof ac_aggr.st_flags)
19235 rm -f conftest.
$ac_objext
19236 if { (ac_try
="$ac_compile"
19237 case "(($ac_try" in
19238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_compile") 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } && {
19249 test -z "$ac_c_werror_flag" ||
19250 test ! -s conftest.err
19251 } && test -s conftest.$ac_objext; then
19252 ac_cv_member_struct_stat_st_flags=yes
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19257 ac_cv_member_struct_stat_st_flags=no
19260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19266 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19267 if test $ac_cv_member_struct_stat_st_flags = yes; then
19269 cat >>confdefs.h <<_ACEOF
19270 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19276 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19277 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19278 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 $ac_includes_default
19291 static struct stat ac_aggr;
19292 if (ac_aggr.st_gen)
19298 rm -f conftest.$ac_objext
19299 if { (ac_try="$ac_compile"
19300 case "(($ac_try" in
19301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19302 *) ac_try_echo
=$ac_try;;
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_compile") 2>conftest.er1
19307 grep -v '^ *+' conftest.er1
>conftest.err
19309 cat conftest.err
>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } && {
19312 test -z "$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 } && test -s conftest.
$ac_objext; then
19315 ac_cv_member_struct_stat_st_gen
=yes
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.
$ac_ext >&5
19320 cat >conftest.
$ac_ext <<_ACEOF
19323 cat confdefs.h
>>conftest.
$ac_ext
19324 cat >>conftest.
$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19326 $ac_includes_default
19330 static struct stat ac_aggr;
19331 if (sizeof ac_aggr.st_gen)
19337 rm -f conftest.
$ac_objext
19338 if { (ac_try
="$ac_compile"
19339 case "(($ac_try" in
19340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_compile") 2>conftest.er1
19346 grep -v '^ *+' conftest.er1 >conftest.err
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } && {
19351 test -z "$ac_c_werror_flag" ||
19352 test ! -s conftest.err
19353 } && test -s conftest.$ac_objext; then
19354 ac_cv_member_struct_stat_st_gen=yes
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 ac_cv_member_struct_stat_st_gen=no
19362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19367 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19368 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19369 if test $ac_cv_member_struct_stat_st_gen = yes; then
19371 cat >>confdefs.h <<_ACEOF
19372 #define HAVE_STRUCT_STAT_ST_GEN 1
19378 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19379 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19380 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 $ac_includes_default
19393 static struct stat ac_aggr;
19394 if (ac_aggr.st_birthtime)
19400 rm -f conftest.$ac_objext
19401 if { (ac_try="$ac_compile"
19402 case "(($ac_try" in
19403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19404 *) ac_try_echo
=$ac_try;;
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19409 grep -v '^ *+' conftest.er1
>conftest.err
19411 cat conftest.err
>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.
$ac_objext; then
19417 ac_cv_member_struct_stat_st_birthtime
=yes
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.
$ac_ext >&5
19422 cat >conftest.
$ac_ext <<_ACEOF
19425 cat confdefs.h
>>conftest.
$ac_ext
19426 cat >>conftest.
$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428 $ac_includes_default
19432 static struct stat ac_aggr;
19433 if (sizeof ac_aggr.st_birthtime)
19439 rm -f conftest.
$ac_objext
19440 if { (ac_try
="$ac_compile"
19441 case "(($ac_try" in
19442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_compile") 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest.$ac_objext; then
19456 ac_cv_member_struct_stat_st_birthtime=yes
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 ac_cv_member_struct_stat_st_birthtime=no
19464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19470 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19471 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19480 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19481 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19482 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 cat >conftest.$ac_ext <<_ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 $ac_includes_default
19495 static struct stat ac_aggr;
19496 if (ac_aggr.st_blocks)
19502 rm -f conftest.$ac_objext
19503 if { (ac_try="$ac_compile"
19504 case "(($ac_try" in
19505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19506 *) ac_try_echo
=$ac_try;;
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_compile") 2>conftest.er1
19511 grep -v '^ *+' conftest.er1
>conftest.err
19513 cat conftest.err
>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } && {
19516 test -z "$ac_c_werror_flag" ||
19517 test ! -s conftest.err
19518 } && test -s conftest.
$ac_objext; then
19519 ac_cv_member_struct_stat_st_blocks
=yes
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.
$ac_ext >&5
19524 cat >conftest.
$ac_ext <<_ACEOF
19527 cat confdefs.h
>>conftest.
$ac_ext
19528 cat >>conftest.
$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19530 $ac_includes_default
19534 static struct stat ac_aggr;
19535 if (sizeof ac_aggr.st_blocks)
19541 rm -f conftest.
$ac_objext
19542 if { (ac_try
="$ac_compile"
19543 case "(($ac_try" in
19544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_compile") 2>conftest.er1
19550 grep -v '^ *+' conftest.er1 >conftest.err
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } && {
19555 test -z "$ac_c_werror_flag" ||
19556 test ! -s conftest.err
19557 } && test -s conftest.$ac_objext; then
19558 ac_cv_member_struct_stat_st_blocks=yes
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_cv_member_struct_stat_st_blocks=no
19566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19572 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19573 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19575 cat >>confdefs.h <<_ACEOF
19576 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_ST_BLOCKS 1
19585 case " $LIBOBJS " in
19586 *" fileblocks.$ac_objext "* ) ;;
19587 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19595 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19596 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19597 if test "${ac_cv_header_time_altzone+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19619 *) ac_try_echo
=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1
>conftest.err
19626 cat conftest.err
>&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest.
$ac_objext; then
19632 ac_cv_header_time_altzone
=yes
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.
$ac_ext >&5
19637 ac_cv_header_time_altzone
=no
19640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19643 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19644 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19645 if test $ac_cv_header_time_altzone = yes; then
19647 cat >>confdefs.h
<<\_ACEOF
19648 #define HAVE_ALTZONE 1
19654 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19655 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19656 cat >conftest.
$ac_ext <<_ACEOF
19659 cat confdefs.h
>>conftest.
$ac_ext
19660 cat >>conftest.
$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19663 #include <sys/types.h>
19664 #include <sys/select.h>
19665 #include <sys/time.h>
19675 rm -f conftest.
$ac_objext
19676 if { (ac_try
="$ac_compile"
19677 case "(($ac_try" in
19678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19684 grep -v '^ *+' conftest.er1 >conftest.err
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } && {
19689 test -z "$ac_c_werror_flag" ||
19690 test ! -s conftest.err
19691 } && test -s conftest.$ac_objext; then
19694 cat >>confdefs.h <<\_ACEOF
19695 #define SYS_SELECT_WITH_SYS_TIME 1
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19709 echo "${ECHO_T}$was_it_defined" >&6; }
19711 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19712 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19713 if test "${ac_cv_struct_addrinfo+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19723 # include <netdb.h>
19732 rm -f conftest.$ac_objext
19733 if { (ac_try="$ac_compile"
19734 case "(($ac_try" in
19735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19736 *) ac_try_echo
=$ac_try;;
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_compile") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1
>conftest.err
19743 cat conftest.err
>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest.
$ac_objext; then
19749 ac_cv_struct_addrinfo
=yes
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.
$ac_ext >&5
19754 ac_cv_struct_addrinfo
=no
19757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19760 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19761 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19762 if test $ac_cv_struct_addrinfo = yes; then
19764 cat >>confdefs.h
<<\_ACEOF
19765 #define HAVE_ADDRINFO 1
19770 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19771 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19772 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 cat >conftest.
$ac_ext <<_ACEOF
19778 cat confdefs.h
>>conftest.
$ac_ext
19779 cat >>conftest.
$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19782 # include <sys/types.h>
19783 # include <sys/socket.h>
19787 struct sockaddr_storage s
19792 rm -f conftest.
$ac_objext
19793 if { (ac_try
="$ac_compile"
19794 case "(($ac_try" in
19795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_compile") 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } && {
19806 test -z "$ac_c_werror_flag" ||
19807 test ! -s conftest.err
19808 } && test -s conftest.$ac_objext; then
19809 ac_cv_struct_sockaddr_storage=yes
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 ac_cv_struct_sockaddr_storage=no
19817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19821 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19822 if test $ac_cv_struct_sockaddr_storage = yes; then
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_SOCKADDR_STORAGE 1
19830 # checks for compiler characteristics
19833 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19834 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19835 if test "${ac_cv_c_char_unsigned+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 $ac_includes_default
19848 static int test_array [1 - 2 * !(((char) -1) < 0)];
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19859 *) ac_try_echo
=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_compile") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1
>conftest.err
19866 cat conftest.err
>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest.
$ac_objext; then
19872 ac_cv_c_char_unsigned
=no
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.
$ac_ext >&5
19877 ac_cv_c_char_unsigned
=yes
19880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19882 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19883 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19884 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19885 cat >>confdefs.h
<<\_ACEOF
19886 #define __CHAR_UNSIGNED__ 1
19891 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19892 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19893 if test "${ac_cv_c_const+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 cat >conftest.
$ac_ext <<_ACEOF
19899 cat confdefs.h
>>conftest.
$ac_ext
19900 cat >>conftest.
$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19906 /* FIXME: Include the comments suggested by Paul. */
19907 #ifndef __cplusplus
19908 /* Ultrix mips cc rejects this. */
19909 typedef int charset[2];
19911 /* SunOS 4.1.1 cc rejects this. */
19912 char const *const *pcpcc;
19914 /* NEC SVR4.0.2 mips cc rejects this. */
19915 struct point {int x, y;};
19916 static struct point const zero = {0,0};
19917 /* AIX XL C 1.02.0.0 rejects this.
19918 It does not let you subtract one const X* pointer from another in
19919 an arm of an if-expression whose if-part is not a constant
19921 const char *g = "string";
19922 pcpcc = &g + (g ? g-g : 0);
19923 /* HPUX 7.0 cc rejects these. */
19925 ppc = (char**) pcpcc;
19926 pcpcc = (char const *const *) ppc;
19927 { /* SCO 3.2v4 cc rejects this. */
19929 char const *s = 0 ? (char *) 0 : (char const *) 0;
19934 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19935 int x[] = {25, 17};
19936 const int *foo = &x[0];
19939 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19940 typedef const int *iptr;
19944 { /* AIX XL C 1.02.0.0 rejects this saying
19945 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19946 struct s { int j; const int *ap[3]; };
19947 struct s *b; b->j = 5;
19949 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19950 const int foo = 10;
19951 if (!foo) return 0;
19953 return !cs[0] && !zero.x;
19960 rm -f conftest.
$ac_objext
19961 if { (ac_try
="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19987 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19988 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19989 if test $ac_cv_c_const = no; then
19991 cat >>confdefs.h <<\_ACEOF
19999 { echo "$as_me:$LINENO: checking for working volatile" >&5
20000 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20011 volatile int x; x = 0;
20016 rm -f conftest.$ac_objext
20017 if { (ac_try="$ac_compile"
20018 case "(($ac_try" in
20019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20020 *) ac_try_echo
=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_compile") 2>conftest.er1
20025 grep -v '^ *+' conftest.er1
>conftest.err
20027 cat conftest.err
>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } && {
20030 test -z "$ac_c_werror_flag" ||
20031 test ! -s conftest.err
20032 } && test -s conftest.
$ac_objext; then
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.
$ac_ext >&5
20039 cat >>confdefs.h
<<\_ACEOF
20046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20047 { echo "$as_me:$LINENO: result: $works" >&5
20048 echo "${ECHO_T}$works" >&6; }
20051 { echo "$as_me:$LINENO: checking for working signed char" >&5
20052 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20053 cat >conftest.
$ac_ext <<_ACEOF
20056 cat confdefs.h
>>conftest.
$ac_ext
20057 cat >>conftest.
$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20068 rm -f conftest.
$ac_objext
20069 if { (ac_try
="$ac_compile"
20070 case "(($ac_try" in
20071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_compile") 2>conftest.er1
20077 grep -v '^ *+' conftest.er1 >conftest.err
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } && {
20082 test -z "$ac_c_werror_flag" ||
20083 test ! -s conftest.err
20084 } && test -s conftest.$ac_objext; then
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20091 cat >>confdefs.h <<\_ACEOF
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20099 { echo "$as_me:$LINENO: result: $works" >&5
20100 echo "${ECHO_T}$works" >&6; }
20103 { echo "$as_me:$LINENO: checking for prototypes" >&5
20104 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 int foo(int x) { return 0; }
20120 rm -f conftest.$ac_objext
20121 if { (ac_try="$ac_compile"
20122 case "(($ac_try" in
20123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20124 *) ac_try_echo
=$ac_try;;
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_compile") 2>conftest.er1
20129 grep -v '^ *+' conftest.er1
>conftest.err
20131 cat conftest.err
>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
20136 } && test -s conftest.
$ac_objext; then
20139 cat >>confdefs.h
<<\_ACEOF
20140 #define HAVE_PROTOTYPES 1
20143 have_prototypes
=yes
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.
$ac_ext >&5
20152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20153 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20154 echo "${ECHO_T}$have_prototypes" >&6; }
20157 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20158 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20159 cat >conftest.
$ac_ext <<_ACEOF
20162 cat confdefs.h
>>conftest.
$ac_ext
20163 cat >>conftest.
$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20166 #include <stdarg.h>
20167 int foo(int x, ...) {
20171 va_arg(va, char *);
20172 va_arg(va, double);
20179 return foo(10, "", 3.14);
20184 rm -f conftest.
$ac_objext
20185 if { (ac_try
="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_compile") 2>conftest.er1
20193 grep -v '^ *+' conftest.er1 >conftest.err
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest.$ac_objext; then
20203 cat >>confdefs.h <<\_ACEOF
20204 #define HAVE_STDARG_PROTOTYPES 1
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20217 { echo "$as_me:$LINENO: result: $works" >&5
20218 echo "${ECHO_T}$works" >&6; }
20220 # check for socketpair
20221 { echo "$as_me:$LINENO: checking for socketpair" >&5
20222 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20223 cat >conftest.$ac_ext <<_ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20230 #include <sys/types.h>
20231 #include <sys/socket.h>
20241 rm -f conftest.$ac_objext
20242 if { (ac_try="$ac_compile"
20243 case "(($ac_try" in
20244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20245 *) ac_try_echo
=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_compile") 2>conftest.er1
20250 grep -v '^ *+' conftest.er1
>conftest.err
20252 cat conftest.err
>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest.
$ac_objext; then
20259 cat >>confdefs.h
<<\_ACEOF
20260 #define HAVE_SOCKETPAIR 1
20263 { echo "$as_me:$LINENO: result: yes" >&5
20264 echo "${ECHO_T}yes" >&6; }
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.
$ac_ext >&5
20269 { echo "$as_me:$LINENO: result: no" >&5
20270 echo "${ECHO_T}no" >&6; }
20274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20276 # check if sockaddr has sa_len member
20277 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20278 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20279 cat >conftest.
$ac_ext <<_ACEOF
20282 cat confdefs.h
>>conftest.
$ac_ext
20283 cat >>conftest.
$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 #include <sys/types.h>
20286 #include <sys/socket.h>
20296 rm -f conftest.
$ac_objext
20297 if { (ac_try
="$ac_compile"
20298 case "(($ac_try" in
20299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_compile") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest.$ac_objext; then
20313 { echo "$as_me:$LINENO: result: yes" >&5
20314 echo "${ECHO_T}yes" >&6; }
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_SOCKADDR_SA_LEN 1
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 { echo "$as_me:$LINENO: result: no" >&5
20325 echo "${ECHO_T}no" >&6; }
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 va_list_is_array=no
20331 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20332 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20333 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20340 #ifdef HAVE_STDARG_PROTOTYPES
20341 #include <stdarg.h>
20343 #include <varargs.h>
20349 va_list list1, list2; list1 = list2;
20354 rm -f conftest.$ac_objext
20355 if { (ac_try="$ac_compile"
20356 case "(($ac_try" in
20357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20358 *) ac_try_echo
=$ac_try;;
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_compile") 2>conftest.er1
20363 grep -v '^ *+' conftest.er1
>conftest.err
20365 cat conftest.err
>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest.
$ac_objext; then
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.
$ac_ext >&5
20378 cat >>confdefs.h
<<\_ACEOF
20379 #define VA_LIST_IS_ARRAY 1
20382 va_list_is_array
=yes
20386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20387 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20388 echo "${ECHO_T}$va_list_is_array" >&6; }
20390 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20394 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20395 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20396 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 cat >conftest.
$ac_ext <<_ACEOF
20402 cat confdefs.h
>>conftest.
$ac_ext
20403 cat >>conftest.
$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20407 #define gethostbyname_r innocuous_gethostbyname_r
20409 /* System header to define __stub macros and hopefully few prototypes,
20410 which can conflict with char gethostbyname_r (); below.
20411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412 <limits.h> exists even on freestanding compilers. */
20415 # include <limits.h>
20417 # include <assert.h>
20420 #undef gethostbyname_r
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20428 char gethostbyname_r ();
20429 /* The GNU C library defines this for functions which it implements
20430 to always fail with ENOSYS. Some functions are actually named
20431 something starting with __ and the normal name is an alias. */
20432 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20439 return gethostbyname_r ();
20444 rm -f conftest.
$ac_objext conftest
$ac_exeext
20445 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
20461 $as_test_x conftest$ac_exeext; then
20462 ac_cv_func_gethostbyname_r=yes
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_func_gethostbyname_r=no
20470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20471 conftest$ac_exeext conftest.$ac_ext
20473 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20474 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20475 if test $ac_cv_func_gethostbyname_r = yes; then
20477 cat >>confdefs.h <<\_ACEOF
20478 #define HAVE_GETHOSTBYNAME_R 1
20481 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20482 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20484 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20492 # include <netdb.h>
20499 struct hostent *he, *res;
20504 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20514 *) ac_try_echo
=$ac_try;;
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20519 grep -v '^ *+' conftest.er1
>conftest.err
20521 cat conftest.err
>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && {
20524 test -z "$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 } && test -s conftest.
$ac_objext; then
20528 cat >>confdefs.h
<<\_ACEOF
20529 #define HAVE_GETHOSTBYNAME_R 1
20533 cat >>confdefs.h
<<\_ACEOF
20534 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20537 { echo "$as_me:$LINENO: result: yes" >&5
20538 echo "${ECHO_T}yes" >&6; }
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.
$ac_ext >&5
20545 { echo "$as_me:$LINENO: result: no" >&5
20546 echo "${ECHO_T}no" >&6; }
20547 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20548 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20549 cat >conftest.
$ac_ext <<_ACEOF
20552 cat confdefs.h
>>conftest.
$ac_ext
20553 cat >>conftest.
$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 # include <netdb.h>
20563 struct hostent *he;
20568 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20574 rm -f conftest.
$ac_objext
20575 if { (ac_try
="$ac_compile"
20576 case "(($ac_try" in
20577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_compile") 2>conftest.er1
20583 grep -v '^ *+' conftest.er1 >conftest.err
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } && {
20588 test -z "$ac_c_werror_flag" ||
20589 test ! -s conftest.err
20590 } && test -s conftest.$ac_objext; then
20592 cat >>confdefs.h <<\_ACEOF
20593 #define HAVE_GETHOSTBYNAME_R 1
20597 cat >>confdefs.h <<\_ACEOF
20598 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20601 { echo "$as_me:$LINENO: result: yes" >&5
20602 echo "${ECHO_T}yes" >&6; }
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20609 { echo "$as_me:$LINENO: result: no" >&5
20610 echo "${ECHO_T}no" >&6; }
20611 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20612 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20613 cat >conftest.$ac_ext <<_ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20620 # include <netdb.h>
20627 struct hostent *he;
20628 struct hostent_data data;
20630 (void) gethostbyname_r(name, he, &data);
20636 rm -f conftest.$ac_objext
20637 if { (ac_try="$ac_compile"
20638 case "(($ac_try" in
20639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20640 *) ac_try_echo
=$ac_try;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_compile") 2>conftest.er1
20645 grep -v '^ *+' conftest.er1
>conftest.err
20647 cat conftest.err
>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } && {
20650 test -z "$ac_c_werror_flag" ||
20651 test ! -s conftest.err
20652 } && test -s conftest.
$ac_objext; then
20654 cat >>confdefs.h
<<\_ACEOF
20655 #define HAVE_GETHOSTBYNAME_R 1
20659 cat >>confdefs.h
<<\_ACEOF
20660 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20663 { echo "$as_me:$LINENO: result: yes" >&5
20664 echo "${ECHO_T}yes" >&6; }
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.
$ac_ext >&5
20671 { echo "$as_me:$LINENO: result: no" >&5
20672 echo "${ECHO_T}no" >&6; }
20676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20690 for ac_func
in gethostbyname
20692 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20695 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 cat >conftest.
$ac_ext <<_ACEOF
20701 cat confdefs.h
>>conftest.
$ac_ext
20702 cat >>conftest.
$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20706 #define $ac_func innocuous_$ac_func
20708 /* System header to define __stub macros and hopefully few prototypes,
20709 which can conflict with char $ac_func (); below.
20710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711 <limits.h> exists even on freestanding compilers. */
20714 # include <limits.h>
20716 # include <assert.h>
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20728 /* The GNU C library defines this for functions which it implements
20729 to always fail with ENOSYS. Some functions are actually named
20730 something starting with __ and the normal name is an alias. */
20731 #if defined __stub_$ac_func || defined __stub___$ac_func
20738 return $ac_func ();
20743 rm -f conftest.
$ac_objext conftest
$ac_exeext
20744 if { (ac_try
="$ac_link"
20745 case "(($ac_try" in
20746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_link") 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest$ac_exeext &&
20760 $as_test_x conftest$ac_exeext; then
20761 eval "$as_ac_var=yes"
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 eval "$as_ac_var=no"
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20772 ac_res=`eval echo '${'$as_ac_var'}'`
20773 { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20775 if test `eval echo '${'$as_ac_var'}'` = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20792 # checks for system services
20795 # Linux requires this for correct f.p. operations
20796 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20797 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20798 if test "${ac_cv_func___fpu_control+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20809 #define __fpu_control innocuous___fpu_control
20811 /* System header to define __stub macros and hopefully few prototypes,
20812 which can conflict with char __fpu_control (); below.
20813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20814 <limits.h> exists even on freestanding compilers. */
20817 # include <limits.h>
20819 # include <assert.h>
20822 #undef __fpu_control
20824 /* Override any GCC internal prototype to avoid an error.
20825 Use char because int might match the return type of a GCC
20826 builtin and then its argument prototype would still apply. */
20830 char __fpu_control ();
20831 /* The GNU C library defines this for functions which it implements
20832 to always fail with ENOSYS. Some functions are actually named
20833 something starting with __ and the normal name is an alias. */
20834 #if defined __stub___fpu_control || defined __stub_____fpu_control
20841 return __fpu_control ();
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (ac_try="$ac_link"
20848 case "(($ac_try" in
20849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20850 *) ac_try_echo
=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_link") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1
>conftest.err
20857 cat conftest.err
>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest
$ac_exeext &&
20863 $as_test_x conftest
$ac_exeext; then
20864 ac_cv_func___fpu_control
=yes
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.
$ac_ext >&5
20869 ac_cv_func___fpu_control
=no
20872 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20873 conftest
$ac_exeext conftest.
$ac_ext
20875 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20876 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20877 if test $ac_cv_func___fpu_control = yes; then
20881 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20882 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20883 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 ac_check_lib_save_LIBS
=$LIBS
20887 LIBS
="-lieee $LIBS"
20888 cat >conftest.
$ac_ext <<_ACEOF
20891 cat confdefs.h
>>conftest.
$ac_ext
20892 cat >>conftest.
$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20895 /* Override any GCC internal prototype to avoid an error.
20896 Use char because int might match the return type of a GCC
20897 builtin and then its argument prototype would still apply. */
20901 char __fpu_control ();
20905 return __fpu_control ();
20910 rm -f conftest.
$ac_objext conftest
$ac_exeext
20911 if { (ac_try
="$ac_link"
20912 case "(($ac_try" in
20913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_link") 2>conftest.er1
20919 grep -v '^ *+' conftest.er1 >conftest.err
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } && {
20924 test -z "$ac_c_werror_flag" ||
20925 test ! -s conftest.err
20926 } && test -s conftest$ac_exeext &&
20927 $as_test_x conftest$ac_exeext; then
20928 ac_cv_lib_ieee___fpu_control=yes
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20933 ac_cv_lib_ieee___fpu_control=no
20936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20937 conftest$ac_exeext conftest.$ac_ext
20938 LIBS=$ac_check_lib_save_LIBS
20940 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20941 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20942 if test $ac_cv_lib_ieee___fpu_control = yes; then
20943 cat >>confdefs.h <<_ACEOF
20944 #define HAVE_LIBIEEE 1
20947 LIBS="-lieee $LIBS"
20955 # Check for --with-fpectl
20956 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20957 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20959 # Check whether --with-fpectl was given.
20960 if test "${with_fpectl+set}" = set; then
20961 withval=$with_fpectl;
20962 if test "$withval" != no
20965 cat >>confdefs.h <<\_ACEOF
20966 #define WANT_SIGFPE_HANDLER 1
20969 { echo "$as_me:$LINENO: result: yes" >&5
20970 echo "${ECHO_T}yes" >&6; }
20971 else { echo "$as_me:$LINENO: result: no" >&5
20972 echo "${ECHO_T}no" >&6; }
20975 { echo "$as_me:$LINENO: result: no" >&5
20976 echo "${ECHO_T}no" >&6; }
20980 # check for --with-libm=...
20982 case $ac_sys_system in
20987 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20988 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20990 # Check whether --with-libm was given.
20991 if test "${with_libm+set}" = set; then
20992 withval=$with_libm;
20993 if test "$withval" = no
20995 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20996 echo "${ECHO_T}force LIBM empty" >&6; }
20997 elif test "$withval" != yes
20999 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21000 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21001 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21002 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21003 { (exit 1); exit 1; }; }
21006 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21007 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21011 # check for --with-libc=...
21013 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21014 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21016 # Check whether --with-libc was given.
21017 if test "${with_libc+set}" = set; then
21018 withval=$with_libc;
21019 if test "$withval" = no
21021 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21022 echo "${ECHO_T}force LIBC empty" >&6; }
21023 elif test "$withval" != yes
21025 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21026 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21027 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21028 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21029 { (exit 1); exit 1; }; }
21032 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21033 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21037 # ************************************
21038 # * Check for mathematical functions *
21039 # ************************************
21044 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21045 # -0. on some architectures.
21046 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21047 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21048 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 if test "$cross_compiling" = yes; then
21053 ac_cv_tanh_preserves_zero_sign=no
21055 cat >conftest.$ac_ext <<_ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21063 #include <stdlib.h>
21065 /* return 0 if either negative zeros don't exist
21066 on this platform or if negative zeros exist
21067 and tanh(-0.) == -0. */
21068 if (atan2(0., -1.) == atan2(-0., -1.) ||
21069 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21074 rm -f conftest$ac_exeext
21075 if { (ac_try="$ac_link"
21076 case "(($ac_try" in
21077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21078 *) ac_try_echo
=$ac_try;;
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_link") 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21085 { (case "(($ac_try" in
21086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_try") 2>&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 ac_cv_tanh_preserves_zero_sign=yes
21096 echo "$as_me: program exited with status $ac_status" >&5
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 ( exit $ac_status )
21101 ac_cv_tanh_preserves_zero_sign=no
21103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21109 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21110 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21111 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21114 cat >>confdefs.h <<\_ACEOF
21115 #define TANH_PRESERVES_ZERO_SIGN 1
21121 for ac_func in hypot
21123 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21129 cat >conftest.$ac_ext <<_ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21137 #define $ac_func innocuous_$ac_func
21139 /* System header to define __stub macros and hopefully few prototypes,
21140 which can conflict with char $ac_func (); below.
21141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21142 <limits.h> exists even on freestanding compilers. */
21145 # include <limits.h>
21147 # include <assert.h>
21152 /* Override any GCC internal prototype to avoid an error.
21153 Use char because int might match the return type of a GCC
21154 builtin and then its argument prototype would still apply. */
21159 /* The GNU C library defines this for functions which it implements
21160 to always fail with ENOSYS. Some functions are actually named
21161 something starting with __ and the normal name is an alias. */
21162 #if defined __stub_$ac_func || defined __stub___$ac_func
21169 return $ac_func ();
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (ac_try="$ac_link"
21176 case "(($ac_try" in
21177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21178 *) ac_try_echo
=$ac_try;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_link") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1
>conftest.err
21185 cat conftest.err
>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest
$ac_exeext &&
21191 $as_test_x conftest
$ac_exeext; then
21192 eval "$as_ac_var=yes"
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.
$ac_ext >&5
21197 eval "$as_ac_var=no"
21200 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21201 conftest
$ac_exeext conftest.
$ac_ext
21203 ac_res
=`eval echo '${'$as_ac_var'}'`
21204 { echo "$as_me:$LINENO: result: $ac_res" >&5
21205 echo "${ECHO_T}$ac_res" >&6; }
21206 if test `eval echo '${'$as_ac_var'}'` = yes; then
21207 cat >>confdefs.h
<<_ACEOF
21208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21212 case " $LIBOBJS " in
21213 *" $ac_func.$ac_objext "* ) ;;
21214 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
21232 for ac_func
in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21234 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21237 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21240 cat >conftest.
$ac_ext <<_ACEOF
21243 cat confdefs.h
>>conftest.
$ac_ext
21244 cat >>conftest.
$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21248 #define $ac_func innocuous_$ac_func
21250 /* System header to define __stub macros and hopefully few prototypes,
21251 which can conflict with char $ac_func (); below.
21252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21253 <limits.h> exists even on freestanding compilers. */
21256 # include <limits.h>
21258 # include <assert.h>
21263 /* Override any GCC internal prototype to avoid an error.
21264 Use char because int might match the return type of a GCC
21265 builtin and then its argument prototype would still apply. */
21270 /* The GNU C library defines this for functions which it implements
21271 to always fail with ENOSYS. Some functions are actually named
21272 something starting with __ and the normal name is an alias. */
21273 #if defined __stub_$ac_func || defined __stub___$ac_func
21280 return $ac_func ();
21285 rm -f conftest.
$ac_objext conftest
$ac_exeext
21286 if { (ac_try
="$ac_link"
21287 case "(($ac_try" in
21288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_link") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest$ac_exeext &&
21302 $as_test_x conftest$ac_exeext; then
21303 eval "$as_ac_var=yes"
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 eval "$as_ac_var=no"
21311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21312 conftest$ac_exeext conftest.$ac_ext
21314 ac_res=`eval echo '${'$as_ac_var'}'`
21315 { echo "$as_me:$LINENO: result: $ac_res" >&5
21316 echo "${ECHO_T}$ac_res" >&6; }
21317 if test `eval echo '${'$as_ac_var'}'` = yes; then
21318 cat >>confdefs.h <<_ACEOF
21319 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21328 # check for wchar.h
21329 if test "${ac_cv_header_wchar_h+set}" = set; then
21330 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21331 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21332 if test "${ac_cv_header_wchar_h+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21336 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21338 # Is the header compilable?
21339 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21340 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21341 cat >conftest.$ac_ext <<_ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 $ac_includes_default
21350 rm -f conftest.$ac_objext
21351 if { (ac_try="$ac_compile"
21352 case "(($ac_try" in
21353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21354 *) ac_try_echo
=$ac_try;;
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_compile") 2>conftest.er1
21359 grep -v '^ *+' conftest.er1
>conftest.err
21361 cat conftest.err
>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest.
$ac_objext; then
21367 ac_header_compiler
=yes
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.
$ac_ext >&5
21372 ac_header_compiler
=no
21375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21377 echo "${ECHO_T}$ac_header_compiler" >&6; }
21379 # Is the header present?
21380 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21381 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21382 cat >conftest.
$ac_ext <<_ACEOF
21385 cat confdefs.h
>>conftest.
$ac_ext
21386 cat >>conftest.
$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21390 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21391 case "(($ac_try" in
21392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21398 grep -v '^ *+' conftest.er1 >conftest.err
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } >/dev/null && {
21403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21406 ac_header_preproc=yes
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_header_preproc=no
21414 rm -f conftest.err conftest.$ac_ext
21415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21416 echo "${ECHO_T}$ac_header_preproc" >&6; }
21418 # So? What about this header?
21419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21421 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21422 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21423 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21424 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21425 ac_header_preproc=yes
21428 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21429 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21431 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21433 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21434 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21435 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21436 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21437 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21438 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21439 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21441 ## ------------------------------------------------ ##
21442 ## Report this to http://www.python.org/python-bugs ##
21443 ## ------------------------------------------------ ##
21445 ) | sed "s/^/$as_me: WARNING: /" >&2
21448 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21449 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21450 if test "${ac_cv_header_wchar_h+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 ac_cv_header_wchar_h=$ac_header_preproc
21455 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21456 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21459 if test $ac_cv_header_wchar_h = yes; then
21462 cat >>confdefs.h <<\_ACEOF
21463 #define HAVE_WCHAR_H 1
21475 # determine wchar_t size
21476 if test "$wchar_h" = yes
21478 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21479 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21480 if test "${ac_cv_type_wchar_t+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21483 cat >conftest.$ac_ext <<_ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h. */
21491 typedef wchar_t ac__type_new_;
21495 if ((ac__type_new_ *) 0)
21497 if (sizeof (ac__type_new_))
21503 rm -f conftest.$ac_objext
21504 if { (ac_try="$ac_compile"
21505 case "(($ac_try" in
21506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21507 *) ac_try_echo
=$ac_try;;
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_compile") 2>conftest.er1
21512 grep -v '^ *+' conftest.er1
>conftest.err
21514 cat conftest.err
>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } && {
21517 test -z "$ac_c_werror_flag" ||
21518 test ! -s conftest.err
21519 } && test -s conftest.
$ac_objext; then
21520 ac_cv_type_wchar_t
=yes
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.
$ac_ext >&5
21525 ac_cv_type_wchar_t
=no
21528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21530 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21531 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21533 # The cast to long int works around a bug in the HP C Compiler
21534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21536 # This bug is HP SR number 8606223364.
21537 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21538 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21539 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 if test "$cross_compiling" = yes; then
21543 # Depending upon the size, compute the lo and hi bounds.
21544 cat >conftest.
$ac_ext <<_ACEOF
21547 cat confdefs.h
>>conftest.
$ac_ext
21548 cat >>conftest.
$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21552 typedef wchar_t ac__type_sizeof_;
21556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21563 rm -f conftest.
$ac_objext
21564 if { (ac_try
="$ac_compile"
21565 case "(($ac_try" in
21566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570 (eval "$ac_compile") 2>conftest.er1
21572 grep -v '^ *+' conftest.er1 >conftest.err
21574 cat conftest.err >&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && {
21577 test -z "$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21579 } && test -s conftest.$ac_objext; then
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21590 typedef wchar_t ac__type_sizeof_;
21594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21605 *) ac_try_echo
=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_compile") 2>conftest.er1
21610 grep -v '^ *+' conftest.er1
>conftest.err
21612 cat conftest.err
>&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest.
$ac_objext; then
21618 ac_hi
=$ac_mid; break
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.
$ac_ext >&5
21623 ac_lo
=`expr $ac_mid + 1`
21624 if test $ac_lo -le $ac_mid; then
21628 ac_mid
=`expr 2 '*' $ac_mid + 1`
21631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.
$ac_ext >&5
21637 cat >conftest.
$ac_ext <<_ACEOF
21640 cat confdefs.h
>>conftest.
$ac_ext
21641 cat >>conftest.
$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21645 typedef wchar_t ac__type_sizeof_;
21649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21656 rm -f conftest.
$ac_objext
21657 if { (ac_try
="$ac_compile"
21658 case "(($ac_try" in
21659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_compile") 2>conftest.er1
21665 grep -v '^ *+' conftest.er1 >conftest.err
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } && {
21670 test -z "$ac_c_werror_flag" ||
21671 test ! -s conftest.err
21672 } && test -s conftest.$ac_objext; then
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21683 typedef wchar_t ac__type_sizeof_;
21687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21694 rm -f conftest.$ac_objext
21695 if { (ac_try="$ac_compile"
21696 case "(($ac_try" in
21697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21698 *) ac_try_echo
=$ac_try;;
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21703 grep -v '^ *+' conftest.er1
>conftest.err
21705 cat conftest.err
>&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.
$ac_objext; then
21711 ac_lo
=$ac_mid; break
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.
$ac_ext >&5
21716 ac_hi
=`expr '(' $ac_mid ')' - 1`
21717 if test $ac_mid -le $ac_hi; then
21721 ac_mid
=`expr 2 '*' $ac_mid`
21724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.
$ac_ext >&5
21733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21737 # Binary search between lo and hi bounds.
21738 while test "x$ac_lo" != "x$ac_hi"; do
21739 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21740 cat >conftest.
$ac_ext <<_ACEOF
21743 cat confdefs.h
>>conftest.
$ac_ext
21744 cat >>conftest.
$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21748 typedef wchar_t ac__type_sizeof_;
21752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21759 rm -f conftest.
$ac_objext
21760 if { (ac_try
="$ac_compile"
21761 case "(($ac_try" in
21762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_compile") 2>conftest.er1
21768 grep -v '^ *+' conftest.er1 >conftest.err
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest.$ac_objext; then
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_lo=`expr '(' $ac_mid ')' + 1`
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21788 '') if test "$ac_cv_type_wchar_t" = yes; then
21789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21790 See \`config.log
' for more details." >&5
21791 echo "$as_me: error: cannot compute sizeof (wchar_t)
21792 See \`config.log' for more details.
" >&2;}
21793 { (exit 77); exit 77; }; }
21795 ac_cv_sizeof_wchar_t=0
21799 cat >conftest.$ac_ext <<_ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21807 typedef wchar_t ac__type_sizeof_;
21808 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21809 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21811 #include <stdlib.h>
21816 FILE *f = fopen ("conftest.val
", "w
");
21819 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21821 long int i = longval ();
21822 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21824 fprintf (f, "%ld
\n", i);
21828 unsigned long int i = ulongval ();
21829 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21831 fprintf (f, "%lu
\n", i);
21833 return ferror (f) || fclose (f) != 0;
21839 rm -f conftest$ac_exeext
21840 if { (ac_try="$ac_link"
21841 case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_link") 2>&5
21848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 ac_cv_sizeof_wchar_t=`cat conftest.val`
21861 echo "$as_me: program exited with status
$ac_status" >&5
21862 echo "$as_me: failed program was
:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 ( exit $ac_status )
21866 if test "$ac_cv_type_wchar_t" = yes; then
21867 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
21868 See \
`config.log' for more details." >&5
21869 echo "$as_me: error: cannot compute sizeof (wchar_t)
21870 See \`config.log
' for more details." >&2;}
21871 { (exit 77); exit 77; }; }
21873 ac_cv_sizeof_wchar_t=0
21876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21881 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21885 cat >>confdefs.h <<_ACEOF
21886 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21892 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21893 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21895 cat >conftest.$ac_ext <<_ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21903 #if TCL_UTF_MAX != 6
21904 # error "NOT UCS4_TCL"
21914 rm -f conftest.$ac_objext
21915 if { (ac_try="$ac_compile"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_compile") 2>conftest.er1
21923 grep -v '^
*+' conftest.er1 >conftest.err
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } && {
21928 test -z "$ac_c_werror_flag" ||
21929 test ! -s conftest.err
21930 } && test -s conftest.$ac_objext; then
21933 cat >>confdefs.h <<\_ACEOF
21934 #define HAVE_UCS4_TCL 1
21940 echo "$as_me: failed program was:" >&5
21941 sed 's
/^
/|
/' conftest.$ac_ext >&5
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21948 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21950 # check whether wchar_t is signed or not
21951 if test "$wchar_h" = yes
21953 # check whether wchar_t is signed or not
21954 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21955 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21956 if test "${ac_cv_wchar_t_signed+set}" = set; then
21957 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 if test "$cross_compiling" = yes; then
21961 ac_cv_wchar_t_signed=yes
21963 cat >conftest.$ac_ext <<_ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21973 /* Success: exit code 0 */
21974 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21978 rm -f conftest$ac_exeext
21979 if { (ac_try="$ac_link"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_link") 2>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21989 { (case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994 (eval "$ac_try") 2>&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; }; then
21998 ac_cv_wchar_t_signed=yes
22000 echo "$as_me: program exited with status $ac_status" >&5
22001 echo "$as_me: failed program was:" >&5
22002 sed 's
/^
/|
/' conftest.$ac_ext >&5
22004 ( exit $ac_status )
22005 ac_cv_wchar_t_signed=no
22007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22013 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22014 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22017 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22018 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22019 # Check whether --enable-unicode was given.
22020 if test "${enable_unicode+set}" = set; then
22021 enableval=$enable_unicode;
22027 if test $enable_unicode = yes
22029 # Without any arguments, Py_UNICODE defaults to two-byte mode
22030 case "$have_ucs4_tcl" in
22031 yes) enable_unicode="ucs4"
22033 *) enable_unicode="ucs2"
22040 case "$enable_unicode" in
22041 ucs2) unicode_size="2"
22042 cat >>confdefs.h <<\_ACEOF
22043 #define Py_UNICODE_SIZE 2
22047 ucs4) unicode_size="4"
22048 cat >>confdefs.h <<\_ACEOF
22049 #define Py_UNICODE_SIZE 4
22059 if test "$enable_unicode" = "no"
22062 { echo "$as_me:$LINENO: result: not used" >&5
22063 echo "${ECHO_T}not used" >&6; }
22065 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
22067 cat >>confdefs.h <<\_ACEOF
22068 #define Py_USING_UNICODE 1
22072 # wchar_t is only usable if it maps to an unsigned type
22073 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22074 -a "$ac_cv_wchar_t_signed" = "no"
22076 PY_UNICODE_TYPE="wchar_t"
22078 cat >>confdefs.h <<\_ACEOF
22079 #define HAVE_USABLE_WCHAR_T 1
22082 cat >>confdefs.h <<\_ACEOF
22083 #define PY_UNICODE_TYPE wchar_t
22086 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22088 PY_UNICODE_TYPE="unsigned short"
22089 cat >>confdefs.h <<\_ACEOF
22090 #define PY_UNICODE_TYPE unsigned short
22093 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22095 PY_UNICODE_TYPE="unsigned long"
22096 cat >>confdefs.h <<\_ACEOF
22097 #define PY_UNICODE_TYPE unsigned long
22101 PY_UNICODE_TYPE="no type found"
22103 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22104 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22107 # check for endianness
22108 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22109 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22110 if test "${ac_cv_c_bigendian+set}" = set; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22113 # See if sys/param.h defines the BYTE_ORDER macro.
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 #include <sys/types.h>
22121 #include <sys/param.h>
22126 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22127 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22128 bogus endian macros
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_compile") 2>conftest.er1
22144 grep -v '^
*+' conftest.er1 >conftest.err
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } && {
22149 test -z "$ac_c_werror_flag" ||
22150 test ! -s conftest.err
22151 } && test -s conftest.$ac_objext; then
22152 # It does; now see whether it defined to BIG_ENDIAN or not.
22153 cat >conftest.$ac_ext <<_ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 #include <sys/types.h>
22160 #include <sys/param.h>
22165 #if BYTE_ORDER != BIG_ENDIAN
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_compile") 2>conftest.er1
22182 grep -v '^
*+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && {
22187 test -z "$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 } && test -s conftest.$ac_objext; then
22190 ac_cv_c_bigendian=yes
22192 echo "$as_me: failed program was:" >&5
22193 sed 's
/^
/|
/' conftest.$ac_ext >&5
22195 ac_cv_c_bigendian=no
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 echo "$as_me: failed program was:" >&5
22201 sed 's
/^
/|
/' conftest.$ac_ext >&5
22203 # It does not; compile a test program.
22204 if test "$cross_compiling" = yes; then
22205 # try to guess the endianness by grepping values into an object file
22206 ac_cv_c_bigendian=unknown
22207 cat >conftest.$ac_ext <<_ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22213 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22214 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22215 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22216 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22217 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22218 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22222 _ascii (); _ebcdic ();
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_compile") 2>conftest.er1
22236 grep -v '^
*+' conftest.er1 >conftest.err
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest.$ac_objext; then
22244 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22245 ac_cv_c_bigendian=yes
22247 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22248 if test "$ac_cv_c_bigendian" = unknown; then
22249 ac_cv_c_bigendian=no
22251 # finding both strings is unlikely to happen, but who knows?
22252 ac_cv_c_bigendian=unknown
22256 echo "$as_me: failed program was:" >&5
22257 sed 's
/^
/|
/' conftest.$ac_ext >&5
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 cat >conftest.$ac_ext <<_ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h. */
22270 $ac_includes_default
22275 /* Are we little or big endian? From Harbison&Steele. */
22279 char c[sizeof (long int)];
22282 return u.c[sizeof (long int) - 1] == 1;
22288 rm -f conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22299 { (case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_try") 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_c_bigendian=no
22310 echo "$as_me: program exited with status $ac_status" >&5
22311 echo "$as_me: failed program was:" >&5
22312 sed 's
/^
/|
/' conftest.$ac_ext >&5
22314 ( exit $ac_status )
22315 ac_cv_c_bigendian=yes
22317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22326 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22327 case $ac_cv_c_bigendian in
22330 cat >>confdefs.h <<\_ACEOF
22331 #define WORDS_BIGENDIAN 1
22337 { { echo "$as_me:$LINENO: error: unknown endianness
22338 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22339 echo "$as_me: error: unknown endianness
22340 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22341 { (exit 1); exit 1; }; } ;;
22345 # Check whether right shifting a negative integer extends the sign bit
22346 # or fills with zeros (like the Cray J90, according to Tim Peters).
22347 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22348 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22349 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22353 if test "$cross_compiling" = yes; then
22354 ac_cv_rshift_extends_sign=yes
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22365 exit(((-1)>>3 == -1) ? 0 : 1);
22369 rm -f conftest$ac_exeext
22370 if { (ac_try="$ac_link"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_link") 2>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22380 { (case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_try") 2>&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 ac_cv_rshift_extends_sign=yes
22391 echo "$as_me: program exited with status $ac_status" >&5
22392 echo "$as_me: failed program was:" >&5
22393 sed 's
/^
/|
/' conftest.$ac_ext >&5
22395 ( exit $ac_status )
22396 ac_cv_rshift_extends_sign=no
22398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22404 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22405 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22406 if test "$ac_cv_rshift_extends_sign" = no
22409 cat >>confdefs.h <<\_ACEOF
22410 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22415 # check for getc_unlocked and related locking functions
22416 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22417 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22418 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22422 cat >conftest.$ac_ext <<_ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22433 FILE *f = fopen("/dev/null", "r");
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_link") 2>conftest.er1
22451 grep -v '^
*+' conftest.er1 >conftest.err
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest$ac_exeext &&
22459 $as_test_x conftest$ac_exeext; then
22460 ac_cv_have_getc_unlocked=yes
22462 echo "$as_me: failed program was:" >&5
22463 sed 's
/^
/|
/' conftest.$ac_ext >&5
22465 ac_cv_have_getc_unlocked=no
22468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22469 conftest$ac_exeext conftest.$ac_ext
22472 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22473 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22474 if test "$ac_cv_have_getc_unlocked" = yes
22477 cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_GETC_UNLOCKED 1
22483 # check where readline lives
22484 # save the value of LIBS so we don't actually link Python with readline
22485 LIBS_no_readline
=$LIBS
22487 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22488 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22489 if test "${ac_cv_lib_readline_readline+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 ac_check_lib_save_LIBS
=$LIBS
22493 LIBS
="-lreadline $LIBS"
22494 cat >conftest.
$ac_ext <<_ACEOF
22497 cat confdefs.h
>>conftest.
$ac_ext
22498 cat >>conftest.
$ac_ext <<_ACEOF
22499 /* end confdefs.h. */
22501 /* Override any GCC internal prototype to avoid an error.
22502 Use char because int might match the return type of a GCC
22503 builtin and then its argument prototype would still apply. */
22511 return readline ();
22516 rm -f conftest.
$ac_objext conftest
$ac_exeext
22517 if { (ac_try
="$ac_link"
22518 case "(($ac_try" in
22519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_link") 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } && {
22530 test -z "$ac_c_werror_flag" ||
22531 test ! -s conftest.err
22532 } && test -s conftest$ac_exeext &&
22533 $as_test_x conftest$ac_exeext; then
22534 ac_cv_lib_readline_readline=yes
22536 echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ac_cv_lib_readline_readline=no
22542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22543 conftest$ac_exeext conftest.$ac_ext
22544 LIBS=$ac_check_lib_save_LIBS
22546 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22547 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22548 if test $ac_cv_lib_readline_readline = yes; then
22549 cat >>confdefs.h <<_ACEOF
22550 #define HAVE_LIBREADLINE 1
22553 LIBS="-lreadline $LIBS"
22557 if test "$ac_cv_have_readline_readline" = no
22560 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22561 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22562 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22565 ac_check_lib_save_LIBS=$LIBS
22566 LIBS="-ltermcap $LIBS"
22567 cat >conftest.$ac_ext <<_ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22574 /* Override any GCC internal prototype to avoid an error.
22575 Use char because int might match the return type of a GCC
22576 builtin and then its argument prototype would still apply. */
22584 return readline ();
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22593 *) ac_try_echo
=$ac_try;;
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_link") 2>conftest.er1
22598 grep -v '^ *+' conftest.er1
>conftest.err
22600 cat conftest.err
>&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest
$ac_exeext &&
22606 $as_test_x conftest
$ac_exeext; then
22607 ac_cv_lib_termcap_readline
=yes
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.
$ac_ext >&5
22612 ac_cv_lib_termcap_readline
=no
22615 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22616 conftest
$ac_exeext conftest.
$ac_ext
22617 LIBS
=$ac_check_lib_save_LIBS
22619 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22620 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22621 if test $ac_cv_lib_termcap_readline = yes; then
22622 cat >>confdefs.h
<<_ACEOF
22623 #define HAVE_LIBTERMCAP 1
22626 LIBS
="-ltermcap $LIBS"
22632 # check for readline 2.1
22633 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22634 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22635 if test "${ac_cv_lib_readline_rl_callback_handler_install+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_callback_handler_install ();
22657 return rl_callback_handler_install ();
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_callback_handler_install=yes
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 ac_cv_lib_readline_rl_callback_handler_install=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_callback_handler_install" >&5
22693 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22694 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_RL_CALLBACK 1
22703 # check for readline 2.2
22704 cat >conftest.$ac_ext <<_ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 #include <readline/readline.h>
22712 if { (ac_try="$ac_cpp conftest.$ac_ext"
22713 case "(($ac_try" in
22714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22715 *) ac_try_echo
=$ac_try;;
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1
>conftest.err
22722 cat conftest.err
>&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } >/dev
/null
&& {
22725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.
$ac_ext >&5
22736 rm -f conftest.err conftest.
$ac_ext
22737 if test $have_readline = yes
22739 cat >conftest.
$ac_ext <<_ACEOF
22742 cat confdefs.h
>>conftest.
$ac_ext
22743 cat >>conftest.
$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 #include <readline/readline.h>
22748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22749 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
22751 cat >>confdefs.h
<<\_ACEOF
22752 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22760 # check for readline 4.0
22761 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22762 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22763 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 ac_check_lib_save_LIBS
=$LIBS
22767 LIBS
="-lreadline $LIBS"
22768 cat >conftest.
$ac_ext <<_ACEOF
22771 cat confdefs.h
>>conftest.
$ac_ext
22772 cat >>conftest.
$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22775 /* Override any GCC internal prototype to avoid an error.
22776 Use char because int might match the return type of a GCC
22777 builtin and then its argument prototype would still apply. */
22781 char rl_pre_input_hook ();
22785 return rl_pre_input_hook ();
22790 rm -f conftest.
$ac_objext conftest
$ac_exeext
22791 if { (ac_try
="$ac_link"
22792 case "(($ac_try" in
22793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_link") 2>conftest.er1
22799 grep -v '^ *+' conftest.er1 >conftest.err
22801 cat conftest.err >&5
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } && {
22804 test -z "$ac_c_werror_flag" ||
22805 test ! -s conftest.err
22806 } && test -s conftest$ac_exeext &&
22807 $as_test_x conftest$ac_exeext; then
22808 ac_cv_lib_readline_rl_pre_input_hook=yes
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 ac_cv_lib_readline_rl_pre_input_hook=no
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817 conftest$ac_exeext conftest.$ac_ext
22818 LIBS=$ac_check_lib_save_LIBS
22820 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22821 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22822 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22824 cat >>confdefs.h <<\_ACEOF
22825 #define HAVE_RL_PRE_INPUT_HOOK 1
22832 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22833 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22834 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22837 ac_check_lib_save_LIBS=$LIBS
22838 LIBS="-lreadline $LIBS"
22839 cat >conftest.$ac_ext <<_ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22846 /* Override any GCC internal prototype to avoid an error.
22847 Use char because int might match the return type of a GCC
22848 builtin and then its argument prototype would still apply. */
22852 char rl_completion_display_matches_hook ();
22856 return rl_completion_display_matches_hook ();
22861 rm -f conftest.$ac_objext conftest$ac_exeext
22862 if { (ac_try="$ac_link"
22863 case "(($ac_try" in
22864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22865 *) ac_try_echo
=$ac_try;;
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_link") 2>conftest.er1
22870 grep -v '^ *+' conftest.er1
>conftest.err
22872 cat conftest.err
>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } && {
22875 test -z "$ac_c_werror_flag" ||
22876 test ! -s conftest.err
22877 } && test -s conftest
$ac_exeext &&
22878 $as_test_x conftest
$ac_exeext; then
22879 ac_cv_lib_readline_rl_completion_display_matches_hook
=yes
22881 echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.
$ac_ext >&5
22884 ac_cv_lib_readline_rl_completion_display_matches_hook
=no
22887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22888 conftest
$ac_exeext conftest.
$ac_ext
22889 LIBS
=$ac_check_lib_save_LIBS
22891 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22892 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22893 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22895 cat >>confdefs.h
<<\_ACEOF
22896 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22902 # check for readline 4.2
22903 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22904 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22905 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
22908 ac_check_lib_save_LIBS
=$LIBS
22909 LIBS
="-lreadline $LIBS"
22910 cat >conftest.
$ac_ext <<_ACEOF
22913 cat confdefs.h
>>conftest.
$ac_ext
22914 cat >>conftest.
$ac_ext <<_ACEOF
22915 /* end confdefs.h. */
22917 /* Override any GCC internal prototype to avoid an error.
22918 Use char because int might match the return type of a GCC
22919 builtin and then its argument prototype would still apply. */
22923 char rl_completion_matches ();
22927 return rl_completion_matches ();
22932 rm -f conftest.
$ac_objext conftest
$ac_exeext
22933 if { (ac_try
="$ac_link"
22934 case "(($ac_try" in
22935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_link") 2>conftest.er1
22941 grep -v '^ *+' conftest.er1 >conftest.err
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } && {
22946 test -z "$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 } && test -s conftest$ac_exeext &&
22949 $as_test_x conftest$ac_exeext; then
22950 ac_cv_lib_readline_rl_completion_matches=yes
22952 echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22955 ac_cv_lib_readline_rl_completion_matches=no
22958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22959 conftest$ac_exeext conftest.$ac_ext
22960 LIBS=$ac_check_lib_save_LIBS
22962 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22963 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22964 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22966 cat >>confdefs.h <<\_ACEOF
22967 #define HAVE_RL_COMPLETION_MATCHES 1
22973 # also in readline 4.2
22974 cat >conftest.$ac_ext <<_ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22980 #include <readline/readline.h>
22982 if { (ac_try="$ac_cpp conftest.$ac_ext"
22983 case "(($ac_try" in
22984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22985 *) ac_try_echo
=$ac_try;;
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22990 grep -v '^ *+' conftest.er1
>conftest.err
22992 cat conftest.err
>&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } >/dev
/null
&& {
22995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22996 test ! -s conftest.err
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.
$ac_ext >&5
23006 rm -f conftest.err conftest.
$ac_ext
23007 if test $have_readline = yes
23009 cat >conftest.
$ac_ext <<_ACEOF
23012 cat confdefs.h
>>conftest.
$ac_ext
23013 cat >>conftest.
$ac_ext <<_ACEOF
23014 /* end confdefs.h. */
23015 #include <readline/readline.h>
23018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23019 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
23021 cat >>confdefs.h
<<\_ACEOF
23022 #define HAVE_RL_CATCH_SIGNAL 1
23030 # End of readline checks: restore LIBS
23031 LIBS
=$LIBS_no_readline
23033 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23034 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23035 if test "${ac_cv_broken_nice+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 if test "$cross_compiling" = yes; then
23040 ac_cv_broken_nice
=no
23042 cat >conftest.
$ac_ext <<_ACEOF
23045 cat confdefs.h
>>conftest.
$ac_ext
23046 cat >>conftest.
$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23051 int val1 = nice(1);
23052 if (val1 != -1 && val1 == nice(2))
23058 rm -f conftest
$ac_exeext
23059 if { (ac_try
="$ac_link"
23060 case "(($ac_try" in
23061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_link") 2>&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23069 { (case "(($ac_try" in
23070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23071 *) ac_try_echo
=$ac_try;;
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_try") 2>&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); }; }; then
23078 ac_cv_broken_nice
=yes
23080 echo "$as_me: program exited with status $ac_status" >&5
23081 echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.
$ac_ext >&5
23084 ( exit $ac_status )
23085 ac_cv_broken_nice
=no
23087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23093 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23094 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23095 if test "$ac_cv_broken_nice" = yes
23098 cat >>confdefs.h
<<\_ACEOF
23099 #define HAVE_BROKEN_NICE 1
23104 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23105 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23106 if test "$cross_compiling" = yes; then
23107 ac_cv_broken_poll
=no
23109 cat >conftest.
$ac_ext <<_ACEOF
23112 cat confdefs.h
>>conftest.
$ac_ext
23113 cat >>conftest.
$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23120 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23124 int poll_test = poll (&poll_struct, 1, 0);
23130 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23141 rm -f conftest
$ac_exeext
23142 if { (ac_try
="$ac_link"
23143 case "(($ac_try" in
23144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_link") 2>&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23152 { (case "(($ac_try" in
23153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23154 *) ac_try_echo
=$ac_try;;
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_try") 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; }; then
23161 ac_cv_broken_poll
=yes
23163 echo "$as_me: program exited with status $ac_status" >&5
23164 echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.
$ac_ext >&5
23167 ( exit $ac_status )
23168 ac_cv_broken_poll
=no
23170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23174 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23175 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23176 if test "$ac_cv_broken_poll" = yes
23179 cat >>confdefs.h
<<\_ACEOF
23180 #define HAVE_BROKEN_POLL 1
23185 # Before we can test tzset, we need to check if struct tm has a tm_zone
23186 # (which is not required by ISO C or UNIX spec) and/or if we support
23188 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23189 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23190 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23191 echo $ECHO_N "(cached) $ECHO_C" >&6
23193 cat >conftest.
$ac_ext <<_ACEOF
23196 cat confdefs.h
>>conftest.
$ac_ext
23197 cat >>conftest.
$ac_ext <<_ACEOF
23198 /* end confdefs.h. */
23199 #include <sys/types.h>
23200 #include <$ac_cv_struct_tm>
23206 static struct tm ac_aggr;
23207 if (ac_aggr.tm_zone)
23213 rm -f conftest.
$ac_objext
23214 if { (ac_try
="$ac_compile"
23215 case "(($ac_try" in
23216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220 (eval "$ac_compile") 2>conftest.er1
23222 grep -v '^ *+' conftest.er1 >conftest.err
23224 cat conftest.err >&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } && {
23227 test -z "$ac_c_werror_flag" ||
23228 test ! -s conftest.err
23229 } && test -s conftest.$ac_objext; then
23230 ac_cv_member_struct_tm_tm_zone=yes
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 cat >conftest.$ac_ext <<_ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 #include <sys/types.h>
23242 #include <$ac_cv_struct_tm>
23248 static struct tm ac_aggr;
23249 if (sizeof ac_aggr.tm_zone)
23255 rm -f conftest.$ac_objext
23256 if { (ac_try="$ac_compile"
23257 case "(($ac_try" in
23258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23259 *) ac_try_echo
=$ac_try;;
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23264 grep -v '^ *+' conftest.er1
>conftest.err
23266 cat conftest.err
>&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.
$ac_objext; then
23272 ac_cv_member_struct_tm_tm_zone
=yes
23274 echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.
$ac_ext >&5
23277 ac_cv_member_struct_tm_tm_zone
=no
23280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23285 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23286 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23287 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23289 cat >>confdefs.h
<<_ACEOF
23290 #define HAVE_STRUCT_TM_TM_ZONE 1
23296 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23298 cat >>confdefs.h
<<\_ACEOF
23299 #define HAVE_TM_ZONE 1
23303 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23304 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23305 if test "${ac_cv_have_decl_tzname+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 cat >conftest.
$ac_ext <<_ACEOF
23311 cat confdefs.h
>>conftest.
$ac_ext
23312 cat >>conftest.
$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23327 rm -f conftest.
$ac_objext
23328 if { (ac_try
="$ac_compile"
23329 case "(($ac_try" in
23330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23336 grep -v '^ *+' conftest.er1 >conftest.err
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_have_decl_tzname=yes
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_cv_have_decl_tzname=no
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23355 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23356 if test $ac_cv_have_decl_tzname = yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 #define HAVE_DECL_TZNAME 1
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_DECL_TZNAME 0
23372 { echo "$as_me:$LINENO: checking for tzname" >&5
23373 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23374 if test "${ac_cv_var_tzname+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 cat >conftest.$ac_ext <<_ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23384 #if !HAVE_DECL_TZNAME
23385 extern char *tzname[];
23391 return tzname[0][0];
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (ac_try="$ac_link"
23398 case "(($ac_try" in
23399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23400 *) ac_try_echo
=$ac_try;;
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_link") 2>conftest.er1
23405 grep -v '^ *+' conftest.er1
>conftest.err
23407 cat conftest.err
>&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); } && {
23410 test -z "$ac_c_werror_flag" ||
23411 test ! -s conftest.err
23412 } && test -s conftest
$ac_exeext &&
23413 $as_test_x conftest
$ac_exeext; then
23414 ac_cv_var_tzname
=yes
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.
$ac_ext >&5
23419 ac_cv_var_tzname
=no
23422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23423 conftest
$ac_exeext conftest.
$ac_ext
23425 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23426 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23427 if test $ac_cv_var_tzname = yes; then
23429 cat >>confdefs.h
<<\_ACEOF
23430 #define HAVE_TZNAME 1
23437 # check tzset(3) exists and works like we expect it to
23438 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23439 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23440 if test "${ac_cv_working_tzset+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23444 if test "$cross_compiling" = yes; then
23445 ac_cv_working_tzset
=no
23447 cat >conftest.
$ac_ext <<_ACEOF
23450 cat confdefs.h
>>conftest.
$ac_ext
23451 cat >>conftest.
$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23454 #include <stdlib.h>
23456 #include <string.h>
23459 extern char *tzname[];
23464 /* Note that we need to ensure that not only does tzset(3)
23465 do 'something' with localtime, but it works as documented
23466 in the library reference and as expected by the test suite.
23467 This includes making sure that tzname is set properly if
23468 tm->tm_zone does not exist since it is the alternative way
23469 of getting timezone info.
23471 Red Hat 6.2 doesn't understand the southern hemisphere
23472 after New Year's Day.
23475 time_t groundhogday = 1044144000; /* GMT-based */
23476 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23478 putenv("TZ=UTC+0");
23480 if (localtime(&groundhogday)->tm_hour != 0)
23483 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23484 if (strcmp(tzname[0], "UTC") ||
23485 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23489 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23491 if (localtime(&groundhogday)->tm_hour != 19)
23494 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23498 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23500 if (localtime(&groundhogday)->tm_hour != 11)
23503 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23507 #if HAVE_STRUCT_TM_TM_ZONE
23508 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23510 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23518 rm -f conftest
$ac_exeext
23519 if { (ac_try
="$ac_link"
23520 case "(($ac_try" in
23521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_link") 2>&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23529 { (case "(($ac_try" in
23530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23531 *) ac_try_echo
=$ac_try;;
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534 (eval "$ac_try") 2>&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; }; then
23538 ac_cv_working_tzset
=yes
23540 echo "$as_me: program exited with status $ac_status" >&5
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.
$ac_ext >&5
23544 ( exit $ac_status )
23545 ac_cv_working_tzset
=no
23547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23553 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23554 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23555 if test "$ac_cv_working_tzset" = yes
23558 cat >>confdefs.h
<<\_ACEOF
23559 #define HAVE_WORKING_TZSET 1
23564 # Look for subsecond timestamps in struct stat
23565 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23566 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23567 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23570 cat >conftest.
$ac_ext <<_ACEOF
23573 cat confdefs.h
>>conftest.
$ac_ext
23574 cat >>conftest.
$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23576 #include <sys/stat.h>
23582 st.st_mtim.tv_nsec = 1;
23588 rm -f conftest.
$ac_objext
23589 if { (ac_try
="$ac_compile"
23590 case "(($ac_try" in
23591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_compile") 2>conftest.er1
23597 grep -v '^ *+' conftest.er1 >conftest.err
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } && {
23602 test -z "$ac_c_werror_flag" ||
23603 test ! -s conftest.err
23604 } && test -s conftest.$ac_objext; then
23605 ac_cv_stat_tv_nsec=yes
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ac_cv_stat_tv_nsec=no
23613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23616 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23617 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23618 if test "$ac_cv_stat_tv_nsec" = yes
23621 cat >>confdefs.h <<\_ACEOF
23622 #define HAVE_STAT_TV_NSEC 1
23627 # Look for BSD style subsecond timestamps in struct stat
23628 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23629 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23630 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23633 cat >conftest.$ac_ext <<_ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 #include <sys/stat.h>
23645 st.st_mtimespec.tv_nsec = 1;
23651 rm -f conftest.$ac_objext
23652 if { (ac_try="$ac_compile"
23653 case "(($ac_try" in
23654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23655 *) ac_try_echo
=$ac_try;;
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658 (eval "$ac_compile") 2>conftest.er1
23660 grep -v '^ *+' conftest.er1
>conftest.err
23662 cat conftest.err
>&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } && {
23665 test -z "$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 } && test -s conftest.
$ac_objext; then
23668 ac_cv_stat_tv_nsec2
=yes
23670 echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.
$ac_ext >&5
23673 ac_cv_stat_tv_nsec2
=no
23676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23679 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23680 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23681 if test "$ac_cv_stat_tv_nsec2" = yes
23684 cat >>confdefs.h
<<\_ACEOF
23685 #define HAVE_STAT_TV_NSEC2 1
23690 # On HP/UX 11.0, mvwdelch is a block with a return statement
23691 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23692 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23693 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23696 cat >conftest.
$ac_ext <<_ACEOF
23699 cat confdefs.h
>>conftest.
$ac_ext
23700 cat >>conftest.
$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702 #include <curses.h>
23708 rtn = mvwdelch(0,0,0);
23714 rm -f conftest.
$ac_objext
23715 if { (ac_try
="$ac_compile"
23716 case "(($ac_try" in
23717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_compile") 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } && {
23728 test -z "$ac_c_werror_flag" ||
23729 test ! -s conftest.err
23730 } && test -s conftest.$ac_objext; then
23731 ac_cv_mvwdelch_is_expression=yes
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ac_cv_mvwdelch_is_expression=no
23739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23743 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23745 if test "$ac_cv_mvwdelch_is_expression" = yes
23748 cat >>confdefs.h <<\_ACEOF
23749 #define MVWDELCH_IS_EXPRESSION 1
23754 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23755 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23756 if test "${ac_cv_window_has_flags+set}" = set; then
23757 echo $ECHO_N "(cached) $ECHO_C" >&6
23759 cat >conftest.$ac_ext <<_ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 #include <curses.h>
23777 rm -f conftest.$ac_objext
23778 if { (ac_try="$ac_compile"
23779 case "(($ac_try" in
23780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23781 *) ac_try_echo
=$ac_try;;
23783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23784 (eval "$ac_compile") 2>conftest.er1
23786 grep -v '^ *+' conftest.er1
>conftest.err
23788 cat conftest.err
>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } && {
23791 test -z "$ac_c_werror_flag" ||
23792 test ! -s conftest.err
23793 } && test -s conftest.
$ac_objext; then
23794 ac_cv_window_has_flags
=yes
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.
$ac_ext >&5
23799 ac_cv_window_has_flags
=no
23802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23805 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23806 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23809 if test "$ac_cv_window_has_flags" = yes
23812 cat >>confdefs.h
<<\_ACEOF
23813 #define WINDOW_HAS_FLAGS 1
23818 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23819 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23820 cat >conftest.
$ac_ext <<_ACEOF
23823 cat confdefs.h
>>conftest.
$ac_ext
23824 cat >>conftest.
$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23826 #include <curses.h>
23830 void *x=is_term_resized
23835 rm -f conftest.
$ac_objext
23836 if { (ac_try
="$ac_compile"
23837 case "(($ac_try" in
23838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_compile") 2>conftest.er1
23844 grep -v '^ *+' conftest.er1 >conftest.err
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest.$ac_objext; then
23853 cat >>confdefs.h <<\_ACEOF
23854 #define HAVE_CURSES_IS_TERM_RESIZED 1
23857 { echo "$as_me:$LINENO: result: yes" >&5
23858 echo "${ECHO_T}yes" >&6; }
23860 echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23863 { echo "$as_me:$LINENO: result: no" >&5
23864 echo "${ECHO_T}no" >&6; }
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 { echo "$as_me:$LINENO: checking for resize_term" >&5
23871 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 #include <curses.h>
23882 void *x=resize_term
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23891 *) ac_try_echo
=$ac_try;;
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23896 grep -v '^ *+' conftest.er1
>conftest.err
23898 cat conftest.err
>&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.
$ac_objext; then
23905 cat >>confdefs.h
<<\_ACEOF
23906 #define HAVE_CURSES_RESIZE_TERM 1
23909 { echo "$as_me:$LINENO: result: yes" >&5
23910 echo "${ECHO_T}yes" >&6; }
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.
$ac_ext >&5
23915 { echo "$as_me:$LINENO: result: no" >&5
23916 echo "${ECHO_T}no" >&6; }
23920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23922 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23923 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23924 cat >conftest.
$ac_ext <<_ACEOF
23927 cat confdefs.h
>>conftest.
$ac_ext
23928 cat >>conftest.
$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23930 #include <curses.h>
23939 rm -f conftest.
$ac_objext
23940 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
23948 grep -v '^ *+' conftest.er1 >conftest.err
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } && {
23953 test -z "$ac_c_werror_flag" ||
23954 test ! -s conftest.err
23955 } && test -s conftest.$ac_objext; then
23957 cat >>confdefs.h <<\_ACEOF
23958 #define HAVE_CURSES_RESIZETERM 1
23961 { echo "$as_me:$LINENO: result: yes" >&5
23962 echo "${ECHO_T}yes" >&6; }
23964 echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23967 { echo "$as_me:$LINENO: result: no" >&5
23968 echo "${ECHO_T}no" >&6; }
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23974 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23975 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23977 if test -r /dev/ptmx
23979 { echo "$as_me:$LINENO: result: yes" >&5
23980 echo "${ECHO_T}yes" >&6; }
23982 cat >>confdefs.h <<\_ACEOF
23983 #define HAVE_DEV_PTMX 1
23987 { echo "$as_me:$LINENO: result: no" >&5
23988 echo "${ECHO_T}no" >&6; }
23991 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23992 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23994 if test -r /dev/ptc
23996 { echo "$as_me:$LINENO: result: yes" >&5
23997 echo "${ECHO_T}yes" >&6; }
23999 cat >>confdefs.h <<\_ACEOF
24000 #define HAVE_DEV_PTC 1
24004 { echo "$as_me:$LINENO: result: no" >&5
24005 echo "${ECHO_T}no" >&6; }
24008 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24009 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24010 if test "$cross_compiling" = yes; then
24011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24012 See \`config.log
' for more details." >&5
24013 echo "$as_me: error: cannot run test program while cross compiling
24014 See \`config.log' for more details.
" >&2;}
24015 { (exit 1); exit 1; }; }
24017 cat >conftest.$ac_ext <<_ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24024 #include <stddef.h>
24025 #include <string.h>
24027 #ifdef HAVE_SYS_TYPES_H
24028 #include <sys/types.h>
24031 #ifdef HAVE_SSIZE_T
24032 typedef ssize_t Py_ssize_t;
24033 #elif SIZEOF_VOID_P == SIZEOF_LONG
24034 typedef long Py_ssize_t;
24036 typedef int Py_ssize_t;
24043 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
24046 if (strcmp(buffer, "123"))
24049 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
24052 if (strcmp(buffer, "-123"))
24058 rm -f conftest$ac_exeext
24059 if { (ac_try="$ac_link"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_link") 2>&5
24067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24069 { (case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24074 (eval "$ac_try") 2>&5
24076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24077 (exit $ac_status); }; }; then
24078 { echo "$as_me:$LINENO: result
: yes" >&5
24079 echo "${ECHO_T}yes" >&6; }
24081 cat >>confdefs.h <<\_ACEOF
24082 #define PY_FORMAT_SIZE_T "z
"
24086 echo "$as_me: program exited with status
$ac_status" >&5
24087 echo "$as_me: failed program was
:" >&5
24088 sed 's/^/| /' conftest.$ac_ext >&5
24090 ( exit $ac_status )
24091 { echo "$as_me:$LINENO: result
: no
" >&5
24092 echo "${ECHO_T}no
" >&6; }
24094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24099 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
24100 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
24101 if test "${ac_cv_type_socklen_t+set}" = set; then
24102 echo $ECHO_N "(cached
) $ECHO_C" >&6
24104 cat >conftest.$ac_ext <<_ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h. */
24111 #ifdef HAVE_SYS_TYPES_H
24112 #include <sys/types.h>
24114 #ifdef HAVE_SYS_SOCKET_H
24115 #include <sys/socket.h>
24119 typedef socklen_t ac__type_new_;
24123 if ((ac__type_new_ *) 0)
24125 if (sizeof (ac__type_new_))
24131 rm -f conftest.$ac_objext
24132 if { (ac_try="$ac_compile"
24133 case "(($ac_try" in
24134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135 *) ac_try_echo=$ac_try;;
24137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24138 (eval "$ac_compile") 2>conftest.er1
24140 grep -v '^ *+' conftest.er1 >conftest.err
24142 cat conftest.err >&5
24143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24144 (exit $ac_status); } && {
24145 test -z "$ac_c_werror_flag" ||
24146 test ! -s conftest.err
24147 } && test -s conftest.$ac_objext; then
24148 ac_cv_type_socklen_t=yes
24150 echo "$as_me: failed program was
:" >&5
24151 sed 's/^/| /' conftest.$ac_ext >&5
24153 ac_cv_type_socklen_t=no
24156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
24159 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24160 if test $ac_cv_type_socklen_t = yes; then
24164 cat >>confdefs.h <<\_ACEOF
24165 #define socklen_t int
24173 for h in `(cd $srcdir;echo Python/thread_*.h)`
24175 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
24179 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
24180 { echo "$as_me:$LINENO: checking
for build directories
" >&5
24181 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
24182 for dir in $SRCDIRS; do
24183 if test ! -d $dir; then
24187 { echo "$as_me:$LINENO: result
: done" >&5
24188 echo "${ECHO_T}done" >&6; }
24190 # generate output files
24191 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config
"
24193 cat >confcache <<\_ACEOF
24194 # This file is a shell script that caches the results of configure
24195 # tests run on this system so they can be shared between configure
24196 # scripts and configure runs, see configure's option --config-cache.
24197 # It is not useful on other systems. If it contains results you don't
24198 # want to keep, you may remove or edit it.
24200 # config.status only pays attention to the cache file if you give it
24201 # the --recheck option to rerun configure.
24203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24205 # following values.
24209 # The following way of writing the cache mishandles newlines in values,
24210 # but we know of no workaround that is simple, portable, and efficient.
24211 # So, we kill variables containing newlines.
24212 # Ultrix sh set writes to stderr and can't be redirected directly,
24213 # and sets the high bit in the cache file unless we assign to the vars.
24215 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24216 eval ac_val=\$$ac_var
24220 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24221 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24224 _ | IFS | as_nl) ;; #(
24225 *) $as_unset $ac_var ;;
24231 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24232 *${as_nl}ac_space=\ *)
24233 # `set' does not quote correctly, so add quotes (double-quote
24234 # substitution turns \\\\ into \\, and sed turns \\ into \).
24237 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24240 # `set' quotes correctly as required by POSIX, so do not add quotes.
24241 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24252 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24254 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24255 if test -w "$cache_file"; then
24256 test "x
$cache_file" != "x
/dev
/null
" &&
24257 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24258 echo "$as_me: updating cache
$cache_file" >&6;}
24259 cat confcache >$cache_file
24261 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24262 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24267 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24268 # Let make expand exec_prefix.
24269 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24271 DEFS=-DHAVE_CONFIG_H
24275 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24276 # 1. Remove the extension, and $U if already installed.
24277 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24278 ac_i=`echo "$ac_i" | sed "$ac_script"`
24279 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24280 # will be set to the directory where LIBOBJS objects are built.
24281 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24282 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24284 LIBOBJS=$ac_libobjs
24286 LTLIBOBJS=$ac_ltlibobjs
24290 : ${CONFIG_STATUS=./config.status}
24291 ac_clean_files_save=$ac_clean_files
24292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24293 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24294 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24295 cat >$CONFIG_STATUS <<_ACEOF
24297 # Generated by $as_me.
24298 # Run this file to recreate the current configuration.
24299 # Compiler output produced by configure, useful for debugging
24300 # configure, is in config.log if it exists.
24303 ac_cs_recheck=false
24305 SHELL=\${CONFIG_SHELL-$SHELL}
24308 cat >>$CONFIG_STATUS <<\_ACEOF
24309 ## --------------------- ##
24310 ## M4sh Initialization. ##
24311 ## --------------------- ##
24313 # Be more Bourne compatible
24314 DUALCASE=1; export DUALCASE # for MKS sh
24315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24318 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24319 # is contrary to our usage. Disable this feature.
24320 alias -g '${1+"$@"}'='"$@
"'
24321 setopt NO_GLOB_SUBST
24323 case `(set -o) 2>/dev/null` in
24324 *posix*) set -o posix ;;
24333 # Avoid depending upon Character Ranges.
24334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24337 as_cr_digits='0123456789'
24338 as_cr_alnum=$as_cr_Letters$as_cr_digits
24340 # The user is always right.
24341 if test "${PATH_SEPARATOR+set}" != set; then
24342 echo "#! /bin/sh" >conf$$.sh
24343 echo "exit 0" >>conf$$.sh
24345 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24353 # Support unset when possible.
24354 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24362 # We need space, tab and new line, in precisely that order. Quoting is
24363 # there to prevent editors from complaining about space-tab.
24364 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24365 # splitting by setting IFS to empty value.)
24370 # Find who we are. Look in the path if we contain no directory separator.
24372 *[\\/]* ) as_myself
=$0 ;;
24373 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24374 for as_dir
in $PATH
24377 test -z "$as_dir" && as_dir
=.
24378 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24384 # We did not find ourselves, most probably we were run as `sh COMMAND'
24385 # in which case we are not to be found in the path.
24386 if test "x$as_myself" = x
; then
24389 if test ! -f "$as_myself"; then
24390 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24391 { (exit 1); exit 1; }
24394 # Work around bugs in pre-3.0 UWIN ksh.
24395 for as_var
in ENV MAIL MAILPATH
24396 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24404 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24405 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24406 LC_TELEPHONE LC_TIME
24408 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24409 eval $as_var=C
; export $as_var
24411 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24415 # Required to use basename.
24416 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24417 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24423 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24424 as_basename
=basename
24430 # Name of the executable.
24431 as_me
=`$as_basename -- "$0" ||
24432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24433 X"$0" : 'X\(//\)$' \| \
24434 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24436 sed '/^.*\/\([^/][^/]*\)\/*$/{
24455 as_lineno_1
=$LINENO
24456 as_lineno_2
=$LINENO
24457 test "x$as_lineno_1" != "x$as_lineno_2" &&
24458 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24460 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24461 # uniformly replaced by the line number. The first 'sed' inserts a
24462 # line-number line after each line using $LINENO; the second 'sed'
24463 # does the real work. The second script uses 'N' to pair each
24464 # line-number line with the line containing $LINENO, and appends
24465 # trailing '-' during substitution so that $LINENO is not a special
24466 # case at line end.
24467 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24468 # scripts with optimization help from Paolo Bonzini. Blame Lee
24469 # E. McMahon (1931-1989) for sed's syntax. :-)
24481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24484 ' >$as_me.lineno
&&
24485 chmod +x
"$as_me.lineno" ||
24486 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24487 { (exit 1); exit 1; }; }
24489 # Don't try to exec as it changes $[0], causing all sort of problems
24490 # (the dirname of $[0] is not the place where we might find the
24491 # original and so on. Autoconf is especially sensitive to this).
24492 .
"./$as_me.lineno"
24493 # Exit status is that of the last command.
24498 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24504 ECHO_C
= ECHO_N
= ECHO_T
=
24505 case `echo -n x` in
24507 case `echo 'x\c'` in
24508 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24515 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24516 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24522 rm -f conf$$ conf$$.exe conf$$.
file
24523 if test -d conf$$.dir
; then
24524 rm -f conf$$.dir
/conf$$.
file
24530 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24532 # ... but there are two gotchas:
24533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24535 # In both cases, we have to default to `cp -p'.
24536 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24538 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24543 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24544 rmdir conf$$.dir
2>/dev
/null
24546 if mkdir
-p .
2>/dev
/null
; then
24549 test -d .
/-p && rmdir .
/-p
24553 if test -x / >/dev
/null
2>&1; then
24554 as_test_x
='test -x'
24556 if ls -dL / >/dev
/null
2>&1; then
24563 if test -d "$1"; then
24569 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24570 ???[sx]*):;;*)false;;esac;fi
24574 as_executable_p
=$as_test_x
24576 # Sed expression to map a string onto a valid CPP name.
24577 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24579 # Sed expression to map a string onto a valid variable name.
24580 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24585 # Save the log message, to keep $[0] and so on meaningful, and to
24586 # report actual input values of CONFIG_FILES etc. instead of their
24587 # values after options handling.
24589 This file was extended by python $as_me 2.6, which was
24590 generated by GNU Autoconf 2.61. Invocation command line was
24592 CONFIG_FILES = $CONFIG_FILES
24593 CONFIG_HEADERS = $CONFIG_HEADERS
24594 CONFIG_LINKS = $CONFIG_LINKS
24595 CONFIG_COMMANDS = $CONFIG_COMMANDS
24598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24603 cat >>$CONFIG_STATUS <<_ACEOF
24604 # Files that config.status was made for.
24605 config_files="$ac_config_files"
24606 config_headers="$ac_config_headers"
24610 cat >>$CONFIG_STATUS <<\_ACEOF
24612 \`$as_me' instantiates files from templates according to the
24613 current configuration.
24615 Usage: $0 [OPTIONS] [FILE]...
24617 -h, --help print this help, then exit
24618 -V, --version print version number and configuration settings, then exit
24619 -q, --quiet do not print progress messages
24620 -d, --debug don't remove temporary files
24621 --recheck update $as_me by reconfiguring in the same conditions
24622 --file=FILE[:TEMPLATE]
24623 instantiate the configuration file FILE
24624 --header=FILE[:TEMPLATE]
24625 instantiate the configuration header FILE
24627 Configuration files:
24630 Configuration headers:
24633 Report bugs to <bug-autoconf@gnu.org>."
24636 cat >>$CONFIG_STATUS <<_ACEOF
24638 python config.status 2.6
24639 configured by $0, generated by GNU Autoconf 2.61,
24640 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24642 Copyright (C) 2006 Free Software Foundation, Inc.
24643 This config.status script is free software; the Free Software Foundation
24644 gives unlimited permission to copy, distribute and modify it."
24651 cat >>$CONFIG_STATUS <<\_ACEOF
24652 # If no file are specified by the user, then we need to provide default
24653 # value. By we need to know if files were specified by the user.
24659 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24660 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24671 # Handling of the options.
24672 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24674 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24675 echo "$ac_cs_version"; exit ;;
24676 --debug |
--debu |
--deb |
--de |
--d |
-d )
24678 --file |
--fil |
--fi |
--f )
24680 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24681 ac_need_defaults
=false
;;
24682 --header |
--heade |
--head |
--hea )
24684 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24685 ac_need_defaults
=false
;;
24687 # Conflict between --help and --header
24688 { echo "$as_me: error: ambiguous option: $1
24689 Try \`$0 --help' for more information." >&2
24690 { (exit 1); exit 1; }; };;
24691 --help |
--hel |
-h )
24692 echo "$ac_cs_usage"; exit ;;
24693 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24694 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24697 # This is an error.
24698 -*) { echo "$as_me: error: unrecognized option: $1
24699 Try \`$0 --help' for more information." >&2
24700 { (exit 1); exit 1; }; } ;;
24702 *) ac_config_targets
="$ac_config_targets $1"
24703 ac_need_defaults
=false
;;
24709 ac_configure_extra_args
=
24711 if $ac_cs_silent; then
24713 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24717 cat >>$CONFIG_STATUS <<_ACEOF
24718 if \$ac_cs_recheck; then
24719 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24720 CONFIG_SHELL=$SHELL
24721 export CONFIG_SHELL
24722 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24726 cat >>$CONFIG_STATUS <<\_ACEOF
24730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24731 ## Running $as_me. ##
24737 cat >>$CONFIG_STATUS <<_ACEOF
24740 cat >>$CONFIG_STATUS <<\_ACEOF
24742 # Handling of arguments.
24743 for ac_config_target
in $ac_config_targets
24745 case $ac_config_target in
24746 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
24747 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
24748 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24749 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24750 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24751 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24752 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
24753 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
24755 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24756 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24757 { (exit 1); exit 1; }; };;
24762 # If the user did not use the arguments to specify the items to instantiate,
24763 # then the envvar interface is used. Set only those that are not.
24764 # We use the long form for the default assignment because of an extremely
24765 # bizarre bug on SunOS 4.1.3.
24766 if $ac_need_defaults; then
24767 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24768 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24771 # Have a temporary directory for convenience. Make it in the build tree
24772 # simply because there is no reason against having it here, and in addition,
24773 # creating and moving files from /tmp can sometimes cause problems.
24774 # Hook for its removal unless debugging.
24775 # Note that there is a small window in which the directory will not be cleaned:
24776 # after its creation but before its name has been assigned to `$tmp'.
24780 trap 'exit_status=$?
24781 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24783 trap '{ (exit 1); exit 1; }' 1 2 13 15
24785 # Create a (secure) tmp directory for tmp files.
24788 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24789 test -n "$tmp" && test -d "$tmp"
24792 tmp
=.
/conf$$
-$RANDOM
24793 (umask 077 && mkdir
"$tmp")
24796 echo "$me: cannot create a temporary directory in ." >&2
24797 { (exit 1); exit 1; }
24801 # Set up the sed scripts for CONFIG_FILES section.
24804 # No need to generate the scripts if there are no CONFIG_FILES.
24805 # This happens for instance when ./config.status config.h
24806 if test -n "$CONFIG_FILES"; then
24813 for ac_last_try
in false false false false false
:; do
24814 cat >conf$
$subs.
sed <<_ACEOF
24815 SHELL!$SHELL$ac_delim
24816 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24817 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24818 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24819 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24820 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24821 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24822 exec_prefix!$exec_prefix$ac_delim
24823 prefix!$prefix$ac_delim
24824 program_transform_name!$program_transform_name$ac_delim
24825 bindir!$bindir$ac_delim
24826 sbindir!$sbindir$ac_delim
24827 libexecdir!$libexecdir$ac_delim
24828 datarootdir!$datarootdir$ac_delim
24829 datadir!$datadir$ac_delim
24830 sysconfdir!$sysconfdir$ac_delim
24831 sharedstatedir!$sharedstatedir$ac_delim
24832 localstatedir!$localstatedir$ac_delim
24833 includedir!$includedir$ac_delim
24834 oldincludedir!$oldincludedir$ac_delim
24835 docdir!$docdir$ac_delim
24836 infodir!$infodir$ac_delim
24837 htmldir!$htmldir$ac_delim
24838 dvidir!$dvidir$ac_delim
24839 pdfdir!$pdfdir$ac_delim
24840 psdir!$psdir$ac_delim
24841 libdir!$libdir$ac_delim
24842 localedir!$localedir$ac_delim
24843 mandir!$mandir$ac_delim
24844 DEFS!$DEFS$ac_delim
24845 ECHO_C!$ECHO_C$ac_delim
24846 ECHO_N!$ECHO_N$ac_delim
24847 ECHO_T!$ECHO_T$ac_delim
24848 LIBS!$LIBS$ac_delim
24849 build_alias!$build_alias$ac_delim
24850 host_alias!$host_alias$ac_delim
24851 target_alias!$target_alias$ac_delim
24852 VERSION!$VERSION$ac_delim
24853 SOVERSION!$SOVERSION$ac_delim
24854 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24855 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24856 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24857 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24858 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24859 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24860 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24861 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24862 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24863 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24864 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24865 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24866 MACHDEP!$MACHDEP$ac_delim
24867 SGI_ABI!$SGI_ABI$ac_delim
24868 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24869 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24870 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24871 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24873 CFLAGS!$CFLAGS$ac_delim
24874 LDFLAGS!$LDFLAGS$ac_delim
24875 CPPFLAGS!$CPPFLAGS$ac_delim
24876 ac_ct_CC!$ac_ct_CC$ac_delim
24877 EXEEXT!$EXEEXT$ac_delim
24878 OBJEXT!$OBJEXT$ac_delim
24880 MAINCC!$MAINCC$ac_delim
24882 GREP!$GREP$ac_delim
24883 EGREP!$EGREP$ac_delim
24884 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24885 LIBRARY!$LIBRARY$ac_delim
24886 LDLIBRARY!$LDLIBRARY$ac_delim
24887 DLLLIBRARY!$DLLLIBRARY$ac_delim
24888 BLDLIBRARY!$BLDLIBRARY$ac_delim
24889 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24890 INSTSONAME!$INSTSONAME$ac_delim
24891 RUNSHARED!$RUNSHARED$ac_delim
24892 LINKCC!$LINKCC$ac_delim
24893 RANLIB!$RANLIB$ac_delim
24895 SVNVERSION!$SVNVERSION$ac_delim
24896 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24897 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24898 INSTALL_DATA!$INSTALL_DATA$ac_delim
24901 BASECFLAGS!$BASECFLAGS$ac_delim
24902 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
24903 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24904 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24906 LDSHARED!$LDSHARED$ac_delim
24907 BLDSHARED!$BLDSHARED$ac_delim
24908 CCSHARED!$CCSHARED$ac_delim
24909 LINKFORSHARED!$LINKFORSHARED$ac_delim
24910 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24911 SHLIBS!$SHLIBS$ac_delim
24914 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24916 elif $ac_last_try; then
24917 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24918 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24919 { (exit 1); exit 1; }; }
24921 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24925 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24926 if test -n "$ac_eof"; then
24927 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24928 ac_eof
=`expr $ac_eof + 1`
24931 cat >>$CONFIG_STATUS <<_ACEOF
24932 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24936 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24937 s/^/s,@/; s/!/@,|#_!!_#|/
24940 s/'"$ac_delim"'$/,g/; t
24942 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24943 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24944 rm -f conf$
$subs.
sed
24945 cat >>$CONFIG_STATUS <<_ACEOF
24951 for ac_last_try
in false false false false false
:; do
24952 cat >conf$
$subs.
sed <<_ACEOF
24953 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24954 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24955 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24956 LDLAST!$LDLAST$ac_delim
24957 THREADOBJ!$THREADOBJ$ac_delim
24958 DLINCLDIR!$DLINCLDIR$ac_delim
24959 DYNLOADFILE!$DYNLOADFILE$ac_delim
24960 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24961 TRUE!$TRUE$ac_delim
24962 LIBOBJS!$LIBOBJS$ac_delim
24963 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24964 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24965 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24966 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24967 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24968 LIBM!$LIBM$ac_delim
24969 LIBC!$LIBC$ac_delim
24970 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24971 THREADHEADERS!$THREADHEADERS$ac_delim
24972 SRCDIRS!$SRCDIRS$ac_delim
24973 LTLIBOBJS!$LTLIBOBJS$ac_delim
24976 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
24978 elif $ac_last_try; then
24979 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24980 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24981 { (exit 1); exit 1; }; }
24983 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24987 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24988 if test -n "$ac_eof"; then
24989 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24990 ac_eof
=`expr $ac_eof + 1`
24993 cat >>$CONFIG_STATUS <<_ACEOF
24994 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24998 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24999 s/^/s,@/; s/!/@,|#_!!_#|/
25002 s/'"$ac_delim"'$/,g/; t
25004 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25005 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25006 rm -f conf$
$subs.
sed
25007 cat >>$CONFIG_STATUS <<_ACEOF
25014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25016 # trailing colons and then remove the whole line if VPATH becomes empty
25017 # (actually we leave an empty line to preserve line numbers).
25018 if test "x$srcdir" = x.
; then
25019 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25020 s/:*\$(srcdir):*/:/
25021 s/:*\${srcdir}:*/:/
25023 s/^\([^=]*=[ ]*\):*/\1/
25029 cat >>$CONFIG_STATUS <<\_ACEOF
25030 fi # test -n "$CONFIG_FILES"
25033 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
25036 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25038 case $ac_mode$ac_tag in
25040 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25041 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25042 { (exit 1); exit 1; }; };;
25043 :[FH
]-) ac_tag
=-:-;;
25044 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25061 -) ac_f
="$tmp/stdin";;
25062 *) # Look for the file first in the build tree, then in the source tree
25063 # (if the path is not absolute). The absolute path cannot be DOS-style,
25064 # because $ac_f cannot contain `:'.
25068 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25070 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25071 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25072 { (exit 1); exit 1; }; };;
25074 ac_file_inputs
="$ac_file_inputs $ac_f"
25077 # Let's still pretend it is `configure' which instantiates (i.e., don't
25078 # use $as_me), people would be surprised to read:
25079 # /* config.h. Generated by config.status. */
25080 configure_input
="Generated from "`IFS=:
25081 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25082 if test x
"$ac_file" != x-
; then
25083 configure_input
="$ac_file. $configure_input"
25084 { echo "$as_me:$LINENO: creating $ac_file" >&5
25085 echo "$as_me: creating $ac_file" >&6;}
25089 *:-:* |
*:-) cat >"$tmp/stdin";;
25094 ac_dir
=`$as_dirname -- "$ac_file" ||
25095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25096 X"$ac_file" : 'X\(//\)[^/]' \| \
25097 X"$ac_file" : 'X\(//\)$' \| \
25098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25104 /^X\(\/\/\)[^/].*/{
25119 -*) as_dir
=.
/$as_dir;;
25121 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25125 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25126 *) as_qdir
=$as_dir;;
25128 as_dirs
="'$as_qdir' $as_dirs"
25129 as_dir
=`$as_dirname -- "$as_dir" ||
25130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25131 X"$as_dir" : 'X\(//\)[^/]' \| \
25132 X"$as_dir" : 'X\(//\)$' \| \
25133 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25139 /^X\(\/\/\)[^/].*/{
25152 test -d "$as_dir" && break
25154 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25155 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25156 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25157 { (exit 1); exit 1; }; }; }
25161 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25163 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25164 # A ".." for each directory in $ac_dir_suffix.
25165 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25166 case $ac_top_builddir_sub in
25167 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25168 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25171 ac_abs_top_builddir
=$ac_pwd
25172 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25173 # for backward compatibility:
25174 ac_top_builddir
=$ac_top_build_prefix
25177 .
) # We are building in place.
25179 ac_top_srcdir
=$ac_top_builddir_sub
25180 ac_abs_top_srcdir
=$ac_pwd ;;
25181 [\\/]* | ?
:[\\/]* ) # Absolute name.
25182 ac_srcdir
=$srcdir$ac_dir_suffix;
25183 ac_top_srcdir
=$srcdir
25184 ac_abs_top_srcdir
=$srcdir ;;
25185 *) # Relative name.
25186 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25187 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25188 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25190 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25200 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25201 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25205 cat >>$CONFIG_STATUS <<\_ACEOF
25206 # If the template does not know about datarootdir, expand it.
25207 # FIXME: This hack should be removed a few years after 2.60.
25208 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25210 case `sed -n '/datarootdir/ {
25219 ' $ac_file_inputs` in
25220 *datarootdir
*) ac_datarootdir_seen
=yes;;
25221 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25222 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25223 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25225 cat >>$CONFIG_STATUS <<_ACEOF
25226 ac_datarootdir_hack='
25227 s&@datadir@&$datadir&g
25228 s&@docdir@&$docdir&g
25229 s&@infodir@&$infodir&g
25230 s&@localedir@&$localedir&g
25231 s&@mandir@&$mandir&g
25232 s&\\\${datarootdir}&$datarootdir&g' ;;
25236 # Neutralize VPATH when `$srcdir' = `.'.
25237 # Shell code in configure.ac might set extrasub.
25238 # FIXME: do we really want to maintain this feature?
25239 cat >>$CONFIG_STATUS <<_ACEOF
25243 cat >>$CONFIG_STATUS <<\_ACEOF
25245 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25246 s
&@configure_input@
&$configure_input&;t t
25247 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25248 s
&@srcdir@
&$ac_srcdir&;t t
25249 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25250 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25251 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25252 s
&@builddir@
&$ac_builddir&;t t
25253 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25254 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25255 s
&@INSTALL@
&$ac_INSTALL&;t t
25256 $ac_datarootdir_hack
25257 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25259 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25260 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25262 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25263 which seems to be undefined. Please make sure it is defined." >&5
25264 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25265 which seems to be undefined. Please make sure it is defined." >&2;}
25269 -) cat "$tmp/out"; rm -f "$tmp/out";;
25270 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25279 # Transform confdefs.h into a sed script `conftest.defines', that
25280 # substitutes the proper values into config.h.in to produce config.h.
25281 rm -f conftest.defines conftest.
tail
25282 # First, append a space to every undef/define line, to ease matching.
25283 echo 's/$/ /' >conftest.defines
25284 # Then, protect against being on the right side of a sed subst, or in
25285 # an unquoted here document, in config.status. If some macros were
25286 # called several times there might be several #defines for the same
25287 # symbol, which is useless. But do not sort them, since the last
25288 # AC_DEFINE must be honored.
25289 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25290 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25291 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25292 # PARAMS is the parameter list in the macro definition--in most cases, it's
25293 # just an empty string.
25294 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25295 ac_dB
='\\)[ (].*,\\1define\\2'
25303 s/^[ ]*#[ ]*define[ ][ ]*//
25308 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25309 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25310 ' >>conftest.defines
25312 # Remove the space that was appended to ease matching.
25313 # Then replace #undef with comments. This is necessary, for
25314 # example, in the case of _POSIX_SOURCE, which is predefined and required
25315 # on some systems where configure will not decide to define it.
25316 # (The regexp can be short, since the line contains either #define or #undef.)
25318 s,^[ #]*u.*,/* & */,' >>conftest.defines
25320 # Break up conftest.defines:
25321 ac_max_sed_lines
=50
25323 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25324 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25325 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25327 ac_in
='$ac_file_inputs'
25328 ac_out
='"$tmp/out1"'
25329 ac_nxt
='"$tmp/out2"'
25333 # Write a here document:
25334 cat >>$CONFIG_STATUS <<_ACEOF
25335 # First, check the format of the line:
25336 cat >"\$tmp/defines.sed" <<\\CEOF
25337 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25338 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25342 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25344 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25345 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25346 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25347 grep . conftest.
tail >/dev
/null ||
break
25348 rm -f conftest.defines
25349 mv conftest.
tail conftest.defines
25351 rm -f conftest.defines conftest.
tail
25353 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25354 cat >>$CONFIG_STATUS <<\_ACEOF
25355 if test x
"$ac_file" != x-
; then
25356 echo "/* $configure_input */" >"$tmp/config.h"
25357 cat "$ac_result" >>"$tmp/config.h"
25358 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25359 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25360 echo "$as_me: $ac_file is unchanged" >&6;}
25363 mv "$tmp/config.h" $ac_file
25366 echo "/* $configure_input */"
25378 { (exit 0); exit 0; }
25380 chmod +x
$CONFIG_STATUS
25381 ac_clean_files
=$ac_clean_files_save
25384 # configure is writing to config.log, and then calls config.status.
25385 # config.status does its own redirection, appending to config.log.
25386 # Unfortunately, on DOS this fails, as config.log is still kept open
25387 # by configure, so config.status won't be able to write to it; its
25388 # output is simply discarded. So we exec the FD to /dev/null,
25389 # effectively closing config.log, so it can be properly (re)opened and
25390 # appended to by config.status. When coming back to configure, we
25391 # need to make the FD available again.
25392 if test "$no_create" != yes; then
25394 ac_config_status_args
=
25395 test "$silent" = yes &&
25396 ac_config_status_args
="$ac_config_status_args --quiet"
25398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25401 # would make configure fail if this is the last instruction.
25402 $ac_cs_success ||
{ (exit 1); exit 1; }
25406 echo "creating Modules/Setup"
25407 if test ! -f Modules
/Setup
25409 cp $srcdir/Modules
/Setup.dist Modules
/Setup
25412 echo "creating Modules/Setup.local"
25413 if test ! -f Modules
/Setup.
local
25415 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
25418 echo "creating Makefile"
25419 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
25420 -s Modules Modules
/Setup.config \
25421 Modules
/Setup.
local Modules
/Setup
25423 case $ac_sys_system in
25425 { echo "$as_me:$LINENO: WARNING:
25427 Support for BeOS is deprecated as of Python 2.6.
25428 See PEP 11 for the gory details.
25430 echo "$as_me: WARNING:
25432 Support for BeOS is deprecated as of Python 2.6.
25433 See PEP 11 for the gory details.
25439 mv config.c Modules