2 # From configure.in Revision: 72871 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
56 as_echo_n='/usr
/ucb
/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
69 as_echo_n='sh
-c $as_echo_n_body as_echo
'
72 as_echo='sh
-c $as_echo_body as_echo
'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
99 # Find who we are. Look in the path if we contain no directory separator.
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x
; then
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var
in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
137 # Required to use basename.
138 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
145 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
152 # Name of the executable.
153 as_me
=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
176 if test "x$CONFIG_SHELL" = x
; then
177 if (eval ":") 2>/dev
/null
; then
183 if test $as_have_required = yes && (eval ":
193 as_func_ret_success () {
196 as_func_ret_failure () {
201 if as_func_success; then
205 echo as_func_success failed.
208 if as_func_failure; then
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev
/null
; then
243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
244 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
247 test -z "$as_dir" && as_dir
=.
250 for as_base
in sh bash ksh sh5
; do
251 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
258 for as_shell
in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
280 CONFIG_SHELL
=$as_shell
282 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
291 case `(set -o) 2>/dev/null` in
292 *posix
*) set -o posix
;;
308 as_func_ret_success
() {
311 as_func_ret_failure
() {
316 if as_func_success
; then
320 echo as_func_success failed.
323 if as_func_failure
; then
325 echo as_func_failure succeeded.
328 if as_func_ret_success
; then
332 echo as_func_ret_success failed.
335 if as_func_ret_failure
; then
337 echo as_func_ret_failure succeeded.
340 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
344 echo positional parameters were not saved.
347 test $exitcode = 0) ||
{ (exit 1); exit 1; }
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
364 if test "x$CONFIG_SHELL" != x
; then
365 for as_var
in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no
; then
374 echo This
script requires a shell
more modern than all the
375 echo shells that I found on your system. Please
install a
376 echo modern shell
, or manually run the
script under such a
377 echo shell
if you
do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
397 as_func_ret_success () {
400 as_func_ret_failure () {
405 if as_func_success; then
409 echo as_func_success failed.
412 if as_func_failure; then
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
433 echo positional parameters were not saved.
436 test \$exitcode = 0") ||
{
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system
,
439 echo including any error possibly output before this message.
440 echo This can
help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
476 chmod +x
"$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
484 # Exit status is that of the last command.
489 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
495 ECHO_C
= ECHO_N
= ECHO_T
=
499 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
505 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
512 rm -f conf$$ conf$$.exe conf$$.
file
513 if test -d conf$$.dir
; then
514 rm -f conf$$.dir
/conf$$.
file
517 mkdir conf$$.dir
2>/dev
/null
519 if (echo >conf$$.
file) 2>/dev
/null
; then
520 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
528 elif ln conf$$.
file conf$$
2>/dev
/null
; then
536 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
537 rmdir conf$$.dir
2>/dev
/null
539 if mkdir
-p .
2>/dev
/null
; then
542 test -d .
/-p && rmdir .
/-p
546 if test -x / >/dev
/null
2>&1; then
549 if ls -dL / >/dev
/null
2>&1; then
556 if test -d "$1"; then
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
567 as_executable_p
=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev
/null
6>&1
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
587 ac_default_prefix
=/usr
/local
589 ac_config_libobj_dir
=.
595 SHELL
=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
598 PACKAGE_NAME
='python'
599 PACKAGE_TARNAME
='python'
600 PACKAGE_VERSION
='2.7'
601 PACKAGE_STRING
='python 2.7'
602 PACKAGE_BUGREPORT
='http://bugs.python.org/'
604 ac_unique_file
="Include/object.h"
605 # Factoring default headers for most tests.
606 ac_includes_default
="\
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
618 # ifdef HAVE_STDLIB_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
641 ac_subst_vars
='LTLIBOBJS
649 HAVE_GETHOSTBYNAME_R_3_ARG
650 HAVE_GETHOSTBYNAME_R_5_ARG
651 HAVE_GETHOSTBYNAME_R_6_ARG
704 EXPORT_MACOSX_DEPLOYMENT_TARGET
705 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
710 FRAMEWORKUNIXTOOLSPREFIX
711 FRAMEWORKALTINSTALLLAST
712 FRAMEWORKALTINSTALLFIRST
714 FRAMEWORKINSTALLFIRST
715 PYTHONFRAMEWORKINSTALLDIR
716 PYTHONFRAMEWORKPREFIX
718 PYTHONFRAMEWORKIDENTIFIER
752 program_transform_name
764 enable_option_checking
788 with_wctype_functions
795 ac_precious_vars
='build_alias
806 # Initialize some variables set by options.
808 ac_init_version
=false
809 ac_unrecognized_opts
=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
820 program_transform_name
=s
,x
,x
,
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir
='${exec_prefix}/bin'
835 sbindir
='${exec_prefix}/sbin'
836 libexecdir
='${exec_prefix}/libexec'
837 datarootdir
='${prefix}/share'
838 datadir
='${datarootdir}'
839 sysconfdir
='${prefix}/etc'
840 sharedstatedir
='${prefix}/com'
841 localstatedir
='${prefix}/var'
842 includedir
='${prefix}/include'
843 oldincludedir
='/usr/include'
844 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir
='${datarootdir}/info'
850 libdir
='${exec_prefix}/lib'
851 localedir
='${datarootdir}/locale'
852 mandir
='${datarootdir}/man'
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\
$ac_option
866 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
876 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
878 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
881 -build |
--build |
--buil |
--bui |
--bu)
882 ac_prev
=build_alias
;;
883 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
884 build_alias
=$ac_optarg ;;
886 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
887 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
888 ac_prev
=cache_file
;;
889 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
890 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
891 cache_file
=$ac_optarg ;;
894 cache_file
=config.cache
;;
896 -datadir |
--datadir |
--datadi |
--datad)
898 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
899 datadir
=$ac_optarg ;;
901 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
902 |
--dataroo |
--dataro |
--datar)
903 ac_prev
=datarootdir
;;
904 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
905 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
906 datarootdir
=$ac_optarg ;;
908 -disable-* |
--disable-*)
909 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
912 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
913 { (exit 1); exit 1; }; }
914 ac_useropt_orig
=$ac_useropt
915 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep
=', ';;
923 eval enable_
$ac_useropt=no
;;
925 -docdir |
--docdir |
--docdi |
--doc |
--do)
927 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
930 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
932 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
935 -enable-* |
--enable-*)
936 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
939 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
940 { (exit 1); exit 1; }; }
941 ac_useropt_orig
=$ac_useropt
942 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep
=', ';;
950 eval enable_
$ac_useropt=\
$ac_optarg ;;
952 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
953 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
954 |
--exec |
--exe |
--ex)
955 ac_prev
=exec_prefix
;;
956 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
957 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
958 |
--exec=* |
--exe=* |
--ex=*)
959 exec_prefix
=$ac_optarg ;;
961 -gas |
--gas |
--ga |
--g)
962 # Obsolete; use --with-gas.
965 -help |
--help |
--hel |
--he |
-h)
967 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
968 ac_init_help
=recursive
;;
969 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
970 ac_init_help
=short
;;
972 -host |
--host |
--hos |
--ho)
973 ac_prev
=host_alias
;;
974 -host=* |
--host=* |
--hos=* |
--ho=*)
975 host_alias
=$ac_optarg ;;
977 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
979 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
981 htmldir
=$ac_optarg ;;
983 -includedir |
--includedir |
--includedi |
--included |
--include \
984 |
--includ |
--inclu |
--incl |
--inc)
985 ac_prev
=includedir
;;
986 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
987 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
988 includedir
=$ac_optarg ;;
990 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
992 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
993 infodir
=$ac_optarg ;;
995 -libdir |
--libdir |
--libdi |
--libd)
997 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1000 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1001 |
--libexe |
--libex |
--libe)
1002 ac_prev
=libexecdir
;;
1003 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1004 |
--libexe=* |
--libex=* |
--libe=*)
1005 libexecdir
=$ac_optarg ;;
1007 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1008 ac_prev
=localedir
;;
1009 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1010 localedir
=$ac_optarg ;;
1012 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1013 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1014 ac_prev
=localstatedir
;;
1015 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1016 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1017 localstatedir
=$ac_optarg ;;
1019 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1021 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1022 mandir
=$ac_optarg ;;
1024 -nfp |
--nfp |
--nf)
1025 # Obsolete; use --without-fp.
1028 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1029 |
--no-cr |
--no-c |
-n)
1032 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1033 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1036 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1037 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1038 |
--oldin |
--oldi |
--old |
--ol |
--o)
1039 ac_prev
=oldincludedir
;;
1040 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1041 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1042 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1043 oldincludedir
=$ac_optarg ;;
1045 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1047 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1048 prefix
=$ac_optarg ;;
1050 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1051 |
--program-pre |
--program-pr |
--program-p)
1052 ac_prev
=program_prefix
;;
1053 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1054 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1055 program_prefix
=$ac_optarg ;;
1057 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1058 |
--program-suf |
--program-su |
--program-s)
1059 ac_prev
=program_suffix
;;
1060 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1061 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1062 program_suffix
=$ac_optarg ;;
1064 -program-transform-name |
--program-transform-name \
1065 |
--program-transform-nam |
--program-transform-na \
1066 |
--program-transform-n |
--program-transform- \
1067 |
--program-transform |
--program-transfor \
1068 |
--program-transfo |
--program-transf \
1069 |
--program-trans |
--program-tran \
1070 |
--progr-tra |
--program-tr |
--program-t)
1071 ac_prev
=program_transform_name
;;
1072 -program-transform-name=* |
--program-transform-name=* \
1073 |
--program-transform-nam=* |
--program-transform-na=* \
1074 |
--program-transform-n=* |
--program-transform-=* \
1075 |
--program-transform=* |
--program-transfor=* \
1076 |
--program-transfo=* |
--program-transf=* \
1077 |
--program-trans=* |
--program-tran=* \
1078 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1079 program_transform_name
=$ac_optarg ;;
1081 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1083 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1084 pdfdir
=$ac_optarg ;;
1086 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1088 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1091 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1092 |
-silent |
--silent |
--silen |
--sile |
--sil)
1095 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1097 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1099 sbindir
=$ac_optarg ;;
1101 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1102 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1103 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1105 ac_prev
=sharedstatedir
;;
1106 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1107 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1108 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1110 sharedstatedir
=$ac_optarg ;;
1112 -site |
--site |
--sit)
1114 -site=* |
--site=* |
--sit=*)
1117 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1119 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1120 srcdir
=$ac_optarg ;;
1122 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1123 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1124 ac_prev
=sysconfdir
;;
1125 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1126 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1127 sysconfdir
=$ac_optarg ;;
1129 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1130 ac_prev
=target_alias
;;
1131 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1132 target_alias
=$ac_optarg ;;
1134 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1137 -version |
--version |
--versio |
--versi |
--vers |
-V)
1138 ac_init_version
=: ;;
1141 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1144 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_useropt_orig
=$ac_useropt
1147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep
=', ';;
1155 eval with_
$ac_useropt=\
$ac_optarg ;;
1157 -without-* |
--without-*)
1158 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1161 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_useropt_orig
=$ac_useropt
1164 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep
=', ';;
1172 eval with_
$ac_useropt=no
;;
1175 # Obsolete; use --with-x.
1178 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1179 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1180 ac_prev
=x_includes
;;
1181 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1182 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1183 x_includes
=$ac_optarg ;;
1185 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1186 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1187 ac_prev
=x_libraries
;;
1188 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1189 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1190 x_libraries
=$ac_optarg ;;
1192 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1193 Try \`$0 --help' for more information." >&2
1194 { (exit 1); exit 1; }; }
1198 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1201 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1202 { (exit 1); exit 1; }; }
1203 eval $ac_envvar=\
$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1217 if test -n "$ac_prev"; then
1218 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1219 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1220 { (exit 1); exit 1; }; }
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1226 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1227 { (exit 1); exit 1; }; } ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 # Check all directory arguments for consistency.
1233 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val
=\$
$ac_var
1239 # Remove trailing slashes.
1242 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\
$ac_val;;
1245 # Be sure to have absolute directory names.
1247 [\\/$
]* | ?
:[\\/]* ) continue;;
1248 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1250 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1251 { (exit 1); exit 1; }; }
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1259 target
=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x
; then
1263 if test "x$build_alias" = x
; then
1264 cross_compiling
=maybe
1265 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1266 If a cross compiler is detected then cross compile mode will be used." >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1273 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1275 test "$silent" = yes && exec 6>/dev
/null
1278 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di
=`ls -di .` &&
1280 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1281 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1282 { (exit 1); exit 1; }; }
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1285 { (exit 1); exit 1; }; }
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted
=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir
=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1320 ac_srcdir_defaulted
=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1324 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1325 { (exit 1); exit 1; }; }
1327 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1330 { (exit 1); exit 1; }; }
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1340 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 for ac_var
in $ac_precious_vars; do
1343 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1345 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1356 \`configure' configures python 2.7 to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive
) echo "Configuration of python 2.7:";;
1422 --disable-option-checking ignore unrecognized
--enable/--with options
1423 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1424 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1425 --enable-universalsdk[=SDKDIR
]
1426 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1427 --enable-framework[=INSTALLDIR
]
1428 Build
(MacOSX|Darwin
) framework
1429 --enable-shared disable
/enable building shared python library
1430 --enable-profiling enable C-level code profiling
1431 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1432 --enable-ipv6 Enable ipv6
(with ipv4
) support
1433 --disable-ipv6 Disable ipv6 support
1434 --enable-big-digits[=BITS
]
1435 use big digits
for Python longs
[BITS
=30]
1436 --enable-unicode[=ucs
[24]]
1437 Enable Unicode
strings (default is
yes)
1440 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1441 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1442 --with-universal-archs=ARCH
1443 select architectures
for universal build
("32-bit",
1445 --with-framework-name=FRAMEWORK
1446 specify an alternate name of the framework built
1447 with
--enable-framework
1448 --without-gcc never use gcc
1449 --with-cxx-main=<compiler
>
1450 compile main
() and link python executable with C
++
1452 --with-suffix=.exe
set executable suffix
1453 --with-pydebug build with Py_DEBUG defined
1454 --with-libs='lib1 ...' link against additional libs
1455 --with-system-ffi build _ctypes module using an installed ffi library
1456 --with-dbmliborder=db1
:db2
:...
1457 order to check db backends
for dbm. Valid value is a
1458 colon separated string with the backend names
1459 `ndbm', `gdbm
' and `bdb'.
1460 --with-signal-module disable
/enable signal module
1461 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1462 --with(out
)-threads[=DIRECTORY
]
1463 disable
/enable thread support
1464 --with(out
)-thread[=DIRECTORY
]
1465 deprecated
; use
--with(out
)-threads
1466 --with-pth use GNU pth threading libraries
1467 --with(out
)-doc-strings disable
/enable documentation
strings
1468 --with(out
)-tsc enable
/disable timestamp counter profile
1469 --with(out
)-pymalloc disable
/enable specialized mallocs
1470 --with-wctype-functions use wctype.h functions
1471 --with-fpectl enable SIGFPE catching
1472 --with-libm=STRING math library
1473 --with-libc=STRING C library
1475 Some influential environment variables
:
1476 CC C compiler
command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1479 nonstandard directory
<lib dir
>
1480 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1481 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1482 you have headers
in a nonstandard directory
<include dir
>
1485 Use these variables to override the choices made by
`configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1488 Report bugs to <http://bugs.python.org/>.
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1518 .) # We are building in place.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1551 python configure 2.7
1552 generated by GNU Autoconf 2.63
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1561 cat >config.log <<_ACEOF
1562 This file contains any messages produced by compilers while
1563 running configure, to aid debugging if configure makes a mistake.
1565 It was created by python $as_me 2.7, which was
1566 generated by GNU Autoconf 2.63. Invocation command line was
1578 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1579 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1580 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1581 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1582 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1584 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1585 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1587 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1588 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1589 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1590 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1591 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1592 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1593 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 test -z "$as_dir" && as_dir=.
1602 $as_echo "PATH: $as_dir"
1618 # Keep a trace of the command line.
1619 # Strip out --no-create and --no-recursion so they do not pile up.
1620 # Strip out --silent because we don't want to record it for future runs.
1621 # Also quote any args containing shell meta-characters.
1622 # Make two passes to allow for proper duplicate-argument suppression.
1626 ac_must_keep_next=false
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1637 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643 if test $ac_must_keep_next = true; then
1644 ac_must_keep_next=false # Got value, back to normal.
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655 -* ) ac_must_keep_next=true ;;
1658 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666 # When interrupted or exit'd, cleanup temporary files, and complete
1667 # config.log. We remove comments because anyway the quotes in there
1668 # would cause problems or look ugly.
1669 # WARNING: Use '\'' to represent an apostrophe within the trap.
1670 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1671 trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1677 ## ---------------- ##
1678 ## Cache variables. ##
1679 ## ---------------- ##
1682 # The following way of writing the cache mishandles newlines in values,
1684 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1685 eval ac_val=\$$ac_var
1689 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1693 _ | IFS | as_nl) ;; #(
1694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1695 *) $as_unset $ac_var ;;
1700 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
1703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1715 ## ----------------- ##
1716 ## Output variables. ##
1717 ## ----------------- ##
1720 for ac_var in $ac_subst_vars
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 $as_echo "$ac_var='\''$ac_val'\''"
1730 if test -n "$ac_subst_files"; then
1732 ## ------------------- ##
1733 ## File substitutions. ##
1734 ## ------------------- ##
1737 for ac_var in $ac_subst_files
1739 eval ac_val=\$$ac_var
1741 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 $as_echo "$ac_var='\''$ac_val'\''"
1748 if test -s confdefs.h; then
1758 test "$ac_signal" != 0 &&
1759 $as_echo "$as_me: caught signal $ac_signal"
1760 $as_echo "$as_me: exit $exit_status"
1762 rm -f core *.core core.conftest.* &&
1763 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1766 for ac_signal in 1 2 13 15; do
1767 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1772 rm -f -r conftest* confdefs.h
1774 # Predefined preprocessor variables.
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 # Let the site file select an alternate cache file if it wants to.
1802 # Prefer an explicitly selected file to automatically selected ones.
1805 if test -n "$CONFIG_SITE"; then
1806 ac_site_file1=$CONFIG_SITE
1807 elif test "x$prefix" != xNONE; then
1808 ac_site_file1=$prefix/share/config.site
1809 ac_site_file2=$prefix/etc/config.site
1811 ac_site_file1=$ac_default_prefix/share/config.site
1812 ac_site_file2=$ac_default_prefix/etc/config.site
1814 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1816 test "x$ac_site_file" = xNONE && continue
1817 if test -r "$ac_site_file"; then
1818 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 $as_echo "$as_me: loading cache $cache_file" >&6;}
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1837 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 $as_echo "$as_me: creating cache $cache_file" >&6;}
1842 # Check that the precious variables saved in the cache have kept the same
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1852 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1853 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1856 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1857 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 # differences in whitespace do not lead to failure.
1863 ac_old_val_w=`echo x
$ac_old_val`
1864 ac_new_val_w=`echo x
$ac_new_val`
1865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1866 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1868 ac_cache_corrupted=:
1870 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1872 eval $ac_var=\$ac_old_val
1874 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1875 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1876 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1877 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1883 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 if $ac_cache_corrupted; then
1893 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1895 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1898 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1899 { (exit 1); exit 1; }; }
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 ac_config_headers="$ac_config_headers pyconfig.h
"
1938 if test "$prefix" != "/"; then
1939 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1947 # We don't use PACKAGE_ variables, and they cause conflicts
1948 # with other autoconf-based packages that include Python.h
1949 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1951 mv confdefs.h.new confdefs.h
1959 # The later defininition of _XOPEN_SOURCE disables certain features
1960 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1962 cat >>confdefs.h <<\_ACEOF
1963 #define _GNU_SOURCE 1
1967 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1968 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1971 cat >>confdefs.h <<\_ACEOF
1972 #define _NETBSD_SOURCE 1
1976 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1977 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1980 cat >>confdefs.h <<\_ACEOF
1981 #define __BSD_VISIBLE 1
1985 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1986 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1988 cat >>confdefs.h <<\_ACEOF
1989 #define _BSD_TYPES 1
1993 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1994 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1997 cat >>confdefs.h <<\_ACEOF
1998 #define _DARWIN_C_SOURCE 1
2003 define_xopen_source=yes
2005 # Arguments passed to configure.
2007 CONFIG_ARGS="$ac_configure_args"
2009 # Check whether --enable-universalsdk was given.
2010 if test "${enable_universalsdk+set}" = set; then
2011 enableval=$enable_universalsdk;
2014 enableval=/Developer/SDKs/MacOSX10.4u.sdk
2020 enable_universalsdk=
2023 UNIVERSALSDK=$enableval
2030 enable_universalsdk=
2039 UNIVERSAL_ARCHS="32-bit"
2040 { $as_echo "$as_me:$LINENO: checking
for --with-universal-archs" >&5
2041 $as_echo_n "checking
for --with-universal-archs...
" >&6; }
2043 # Check whether --with-universal-archs was given.
2044 if test "${with_universal_archs+set}" = set; then
2045 withval=$with_universal_archs;
2046 { $as_echo "$as_me:$LINENO: result
: $withval" >&5
2047 $as_echo "$withval" >&6; }
2048 UNIVERSAL_ARCHS="$withval"
2052 { $as_echo "$as_me:$LINENO: result
: 32-bit" >&5
2053 $as_echo "32-bit" >&6; }
2061 # Check whether --with-framework-name was given.
2062 if test "${with_framework_name+set}" = set; then
2063 withval=$with_framework_name;
2064 PYTHONFRAMEWORK=${withval}
2065 PYTHONFRAMEWORKDIR=${withval}.framework
2066 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
2070 PYTHONFRAMEWORK=Python
2071 PYTHONFRAMEWORKDIR=Python.framework
2072 PYTHONFRAMEWORKIDENTIFIER=org.python.python
2076 # Check whether --enable-framework was given.
2077 if test "${enable_framework+set}" = set; then
2078 enableval=$enable_framework;
2081 enableval=/Library/Frameworks
2086 PYTHONFRAMEWORKDIR=no-framework
2087 PYTHONFRAMEWORKPREFIX=
2088 PYTHONFRAMEWORKINSTALLDIR=
2089 FRAMEWORKINSTALLFIRST=
2090 FRAMEWORKINSTALLLAST=
2091 FRAMEWORKALTINSTALLFIRST=
2092 FRAMEWORKALTINSTALLLAST=
2093 if test "x
${prefix}" = "xNONE
"; then
2094 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2096 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2101 PYTHONFRAMEWORKPREFIX=$enableval
2102 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2103 FRAMEWORKINSTALLFIRST="frameworkinstallstructure
"
2104 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall
"
2105 if test "$UNIVERSAL_ARCHS" = "all
"
2107 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way
"
2108 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way
"
2110 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
"
2111 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools
"
2114 if test "x
${prefix}" = "xNONE
" ; then
2115 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2117 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2119 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2121 # Add files for Mac specific code to the list of output
2123 ac_config_files="$ac_config_files Mac
/Makefile
"
2125 ac_config_files="$ac_config_files Mac
/PythonLauncher
/Makefile
"
2127 ac_config_files="$ac_config_files Mac
/IDLE
/Makefile
"
2129 ac_config_files="$ac_config_files Mac
/Resources
/framework
/Info.plist
"
2131 ac_config_files="$ac_config_files Mac
/Resources
/app
/Info.plist
"
2138 PYTHONFRAMEWORKDIR=no-framework
2139 PYTHONFRAMEWORKPREFIX=
2140 PYTHONFRAMEWORKINSTALLDIR=
2141 FRAMEWORKINSTALLFIRST=
2142 FRAMEWORKINSTALLLAST=
2143 FRAMEWORKALTINSTALLFIRST=
2144 FRAMEWORKALTINSTALLLAST=
2145 if test "x
${prefix}" = "xNONE
" ; then
2146 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2148 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2152 if test "$UNIVERSAL_ARCHS" = "all
"
2154 FRAMEWORKINSTALLLAST=update4wayuniversal
2155 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2172 ## AC_HELP_STRING(--with-dyld,
2173 ## Use (OpenStep|Rhapsody) dynamic linker))
2175 # Set name for machine-dependent library files
2177 { $as_echo "$as_me:$LINENO: checking MACHDEP
" >&5
2178 $as_echo_n "checking MACHDEP...
" >&6; }
2179 if test -z "$MACHDEP"
2181 ac_sys_system=`uname -s`
2182 if test "$ac_sys_system" = "AIX
" -o "$ac_sys_system" = "Monterey64
" \
2183 -o "$ac_sys_system" = "UnixWare
" -o "$ac_sys_system" = "OpenUNIX
"; then
2184 ac_sys_release=`uname -v`
2186 ac_sys_release=`uname -r`
2188 ac_md_system=`echo $ac_sys_system |
2189 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2190 ac_md_release=`echo $ac_sys_release |
2191 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2192 MACHDEP="$ac_md_system$ac_md_release"
2195 cygwin*) MACHDEP="cygwin
";;
2196 darwin*) MACHDEP="darwin
";;
2197 atheos*) MACHDEP="atheos
";;
2198 irix646) MACHDEP="irix6
";;
2199 '') MACHDEP="unknown
";;
2203 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2204 # disable features if it is defined, without any means to access these
2205 # features as extensions. For these systems, we skip the definition of
2206 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2207 # some feature, make sure there is no alternative way to access this
2208 # feature. Also, when using wildcards, make sure you have verified the
2209 # need for not defining _XOPEN_SOURCE on all systems matching the
2210 # wildcard, and that the wildcard does not include future systems
2211 # (which may remove their limitations).
2212 case $ac_sys_system/$ac_sys_release in
2213 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2214 # even though select is a POSIX function. Reported by J. Ribbens.
2215 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2216 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2217 define_xopen_source=no
2218 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2219 # also defined. This can be overridden by defining _BSD_SOURCE
2220 # As this has a different meaning on Linux, only define it on OpenBSD
2222 cat >>confdefs.h <<\_ACEOF
2223 #define _BSD_SOURCE 1
2227 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2228 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2230 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2231 define_xopen_source=no;;
2232 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2233 # of union __?sigval. Reported by Stuart Bishop.
2235 define_xopen_source=no;;
2236 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2237 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2238 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2239 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2240 define_xopen_source=no;;
2241 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2242 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2244 define_xopen_source=no;;
2245 # On FreeBSD 4, the math functions C89 does not cover are never defined
2246 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2248 define_xopen_source=no;;
2249 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2250 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2251 # identifies itself as Darwin/7.*
2252 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2253 # disables platform specific features beyond repair.
2254 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2255 # has no effect, don't bother defining them
2257 define_xopen_source=no;;
2258 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2259 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2260 # or has another value. By not (re)defining it, the defaults come in place.
2262 define_xopen_source=no;;
2264 if test `uname -r` -eq 1; then
2265 define_xopen_source=no
2268 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2269 # defining NI_NUMERICHOST.
2271 define_xopen_source=no
2276 if test $define_xopen_source = yes
2278 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2279 # defined precisely as g++ defines it
2280 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2282 case $ac_sys_system/$ac_sys_release in
2283 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2285 cat >>confdefs.h <<\_ACEOF
2286 #define _XOPEN_SOURCE 500
2292 cat >>confdefs.h <<\_ACEOF
2293 #define _XOPEN_SOURCE 600
2299 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2300 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2301 # several APIs are not declared. Since this is also needed in some
2302 # cases for HP-UX, we define it globally.
2303 # except for Solaris 10, where it must not be defined,
2304 # as it implies XPG4.2
2305 case $ac_sys_system/$ac_sys_release in
2310 cat >>confdefs.h <<\_ACEOF
2311 #define _XOPEN_SOURCE_EXTENDED 1
2318 cat >>confdefs.h <<\_ACEOF
2319 #define _POSIX_C_SOURCE 200112L
2326 # SGI compilers allow the specification of the both the ABI and the
2327 # ISA on the command line. Depending on the values of these switches,
2328 # different and often incompatable code will be generated.
2330 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2331 # thus supply support for various ABI/ISA combinations. The MACHDEP
2332 # variable is also adjusted.
2335 if test ! -z "$SGI_ABI"
2338 LDFLAGS="$SGI_ABI $LDFLAGS"
2339 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2341 { $as_echo "$as_me:$LINENO: result
: $MACHDEP" >&5
2342 $as_echo "$MACHDEP" >&6; }
2344 # And add extra plat-mac for darwin
2347 { $as_echo "$as_me:$LINENO: checking EXTRAPLATDIR
" >&5
2348 $as_echo_n "checking EXTRAPLATDIR...
" >&6; }
2349 if test -z "$EXTRAPLATDIR"
2353 EXTRAPLATDIR="\$
(PLATMACDIRS
)"
2354 EXTRAMACHDEPPATH="\$
(PLATMACPATH
)"
2362 { $as_echo "$as_me:$LINENO: result
: $EXTRAPLATDIR" >&5
2363 $as_echo "$EXTRAPLATDIR" >&6; }
2365 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2366 # it may influence the way we can build extensions, so distutils
2370 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2371 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2373 { $as_echo "$as_me:$LINENO: checking machine
type as reported by uname
-m" >&5
2374 $as_echo_n "checking machine
type as reported by uname
-m...
" >&6; }
2375 ac_sys_machine=`uname -m`
2376 { $as_echo "$as_me:$LINENO: result
: $ac_sys_machine" >&5
2377 $as_echo "$ac_sys_machine" >&6; }
2379 # checks for alternative programs
2381 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2382 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2383 # just to get things to compile and link. Users are free to override OPT
2384 # when running configure or make. The build should not break if they do.
2385 # BASECFLAGS should generally not be messed with, however.
2387 # XXX shouldn't some/most/all of this code be merged with the stuff later
2388 # on that fiddles with OPT and BASECFLAGS?
2389 { $as_echo "$as_me:$LINENO: checking
for --without-gcc" >&5
2390 $as_echo_n "checking
for --without-gcc...
" >&6; }
2392 # Check whether --with-gcc was given.
2393 if test "${with_gcc+set}" = set; then
2401 without_gcc=$withval;;
2405 case $ac_sys_system in
2409 case $BE_HOST_CPU in
2413 BASECFLAGS="$BASECFLAGS -export pragma
"
2415 LDFLAGS="$LDFLAGS -nodup"
2423 { { $as_echo "$as_me:$LINENO: error
: Unknown BeOS platform
\"$BE_HOST_CPU\"" >&5
2424 $as_echo "$as_me: error
: Unknown BeOS platform
\"$BE_HOST_CPU\"" >&2;}
2425 { (exit 1); exit 1; }; }
2428 AR="\$
(srcdir
)/Modules
/ar_beos
"
2438 { $as_echo "$as_me:$LINENO: result
: $without_gcc" >&5
2439 $as_echo "$without_gcc" >&6; }
2441 # If the user switches compilers, we can't believe the cache
2442 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2444 { { $as_echo "$as_me:$LINENO: error
: cached CC is different
-- throw away
$cache_file
2445 (it is also a good idea to
do 'make clean' before compiling
)" >&5
2446 $as_echo "$as_me: error
: cached CC is different
-- throw away
$cache_file
2447 (it is also a good idea to
do 'make clean' before compiling
)" >&2;}
2448 { (exit 1); exit 1; }; }
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2459 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2460 $as_echo_n "checking
for $ac_word...
" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 $as_echo_n "(cached
) " >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2475 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$CC"; then
2486 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2487 $as_echo "$CC" >&6; }
2489 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2490 $as_echo "no
" >&6; }
2495 if test -z "$ac_cv_prog_CC"; then
2497 # Extract the first word of "gcc
", so it can be a program name with args.
2498 set dummy gcc; ac_word=$2
2499 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2500 $as_echo_n "checking
for $ac_word...
" >&6; }
2501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502 $as_echo_n "(cached
) " >&6
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_ac_ct_CC="gcc
"
2515 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525 if test -n "$ac_ct_CC"; then
2526 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2527 $as_echo "$ac_ct_CC" >&6; }
2529 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2530 $as_echo "no
" >&6; }
2533 if test "x
$ac_ct_CC" = x; then
2536 case $cross_compiling:$ac_tool_warned in
2538 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2539 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2540 ac_tool_warned=yes ;;
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}cc; ac_word=$2
2552 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2553 $as_echo_n "checking
for $ac_word...
" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 $as_echo_n "(cached
) " >&6
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2568 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2578 if test -n "$CC"; then
2579 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2580 $as_echo "$CC" >&6; }
2582 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2583 $as_echo "no
" >&6; }
2589 if test -z "$CC"; then
2590 # Extract the first word of "cc
", so it can be a program name with args.
2591 set dummy cc; ac_word=$2
2592 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2593 $as_echo_n "checking
for $ac_word...
" >&6; }
2594 if test "${ac_cv_prog_CC+set}" = set; then
2595 $as_echo_n "(cached
) " >&6
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2609 ac_prog_rejected=yes
2613 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2620 if test $ac_prog_rejected = yes; then
2621 # We found a bogon in the path, so make sure we never use it.
2622 set dummy $ac_cv_prog_CC
2624 if test $# != 0; then
2625 # We chose a different compiler from the bogus one.
2626 # However, it has the same basename, so the bogon will be chosen
2627 # first if we set CC to just the basename; use the full file name.
2629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2635 if test -n "$CC"; then
2636 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2637 $as_echo "$CC" >&6; }
2639 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2640 $as_echo "no
" >&6; }
2645 if test -z "$CC"; then
2646 if test -n "$ac_tool_prefix"; then
2647 for ac_prog in cl.exe
2649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2651 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2652 $as_echo_n "checking
for $ac_word...
" >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then
2654 $as_echo_n "(cached
) " >&6
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2667 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2677 if test -n "$CC"; then
2678 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2679 $as_echo "$CC" >&6; }
2681 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2682 $as_echo "no
" >&6; }
2686 test -n "$CC" && break
2689 if test -z "$CC"; then
2691 for ac_prog in cl.exe
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2696 $as_echo_n "checking
for $ac_word...
" >&6; }
2697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2698 $as_echo_n "(cached
) " >&6
2700 if test -n "$ac_ct_CC"; then
2701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_ac_ct_CC="$ac_prog"
2711 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721 if test -n "$ac_ct_CC"; then
2722 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2723 $as_echo "$ac_ct_CC" >&6; }
2725 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2726 $as_echo "no
" >&6; }
2730 test -n "$ac_ct_CC" && break
2733 if test "x
$ac_ct_CC" = x; then
2736 case $cross_compiling:$ac_tool_warned in
2738 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2739 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2740 ac_tool_warned=yes ;;
2749 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2752 See \`config.log' for more details.
" >&5
2753 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2754 See \
`config.log' for more details." >&2;}
2755 { (exit 1); exit 1; }; }; }
2757 # Provide some information about the compiler.
2758 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2761 { (ac_try="$ac_compiler --version >&5"
2763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2764 *) ac_try_echo
=$ac_try;;
2766 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2767 $as_echo "$ac_try_echo") >&5
2768 (eval "$ac_compiler --version >&5") 2>&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2772 { (ac_try
="$ac_compiler -v >&5"
2774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2778 $as_echo "$ac_try_echo") >&5
2779 (eval "$ac_compiler -v >&5") 2>&5
2781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2783 { (ac_try="$ac_compiler -V >&5"
2785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2786 *) ac_try_echo
=$ac_try;;
2788 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2789 $as_echo "$ac_try_echo") >&5
2790 (eval "$ac_compiler -V >&5") 2>&5
2792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }
2795 cat >conftest.
$ac_ext <<_ACEOF
2798 cat confdefs.h
>>conftest.
$ac_ext
2799 cat >>conftest.
$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 ac_clean_files_save
=$ac_clean_files
2811 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2812 # Try to create an executable without -o first, disregard a.out.
2813 # It will help us diagnose broken compilers, and finding out an intuition
2815 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2816 $as_echo_n "checking for C compiler default output file name... " >&6; }
2817 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2819 # The possible output files:
2820 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2823 for ac_file
in $ac_files
2826 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2827 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2832 if { (ac_try
="$ac_link_default"
2834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838 $as_echo "$ac_try_echo") >&5
2839 (eval "$ac_link_default") 2>&5
2841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; then
2843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2844 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2845 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2846 # so that the user can short-circuit this test for compilers unknown to
2848 for ac_file in $ac_files ''
2850 test -f "$ac_file" || continue
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2855 # We found the default executable, but exeext='' is most
2859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2863 # We set ac_cv_exeext here because the later test for it is not
2864 # safe: cross compilers may not add the suffix if given an `-o'
2865 # argument, so we may need to know it at that point already.
2866 # Even if this section looks crufty: it has the advantage of
2873 test "$ac_cv_exeext" = no && ac_cv_exeext=
2879 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2880 $as_echo "$ac_file" >&6; }
2881 if test -z "$ac_file"; then
2882 $as_echo "$as_me: failed program was:" >&5
2883 sed 's
/^
/|
/' conftest.$ac_ext >&5
2885 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2886 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2887 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2888 See \`config.log
' for more details." >&5
2889 $as_echo "$as_me: error: C compiler cannot create executables
2890 See \`config.log' for more details.
" >&2;}
2891 { (exit 77); exit 77; }; }; }
2894 ac_exeext=$ac_cv_exeext
2896 # Check that the compiler produces executables we can run. If not, either
2897 # the compiler is broken, or we cross compile.
2898 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2899 $as_echo_n "checking whether the C compiler works...
" >&6; }
2900 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2901 # If not cross compiling, check that we can run a simple program.
2902 if test "$cross_compiling" != yes; then
2903 if { ac_try='./$ac_file'
2904 { (case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2909 $as_echo "$ac_try_echo") >&5
2910 (eval "$ac_try") 2>&5
2912 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2913 (exit $ac_status); }; }; then
2916 if test "$cross_compiling" = maybe; then
2919 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2922 If you meant to cross compile, use \`--host'.
2923 See \
`config.log' for more details." >&5
2924 $as_echo "$as_me: error: cannot run C compiled programs.
2925 If you meant to cross compile, use \`--host'.
2926 See \`config.log' for more details.
" >&2;}
2927 { (exit 1); exit 1; }; }; }
2931 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2932 $as_echo "yes" >&6; }
2934 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2935 ac_clean_files=$ac_clean_files_save
2936 # Check that the compiler produces executables we can run. If not, either
2937 # the compiler is broken, or we cross compile.
2938 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2939 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2940 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2941 $as_echo "$cross_compiling" >&6; }
2943 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2944 $as_echo_n "checking
for suffix of executables...
" >&6; }
2945 if { (ac_try="$ac_link"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2951 $as_echo "$ac_try_echo") >&5
2952 (eval "$ac_link") 2>&5
2954 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2955 (exit $ac_status); }; then
2956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2958 # work properly (i.e., refer to `conftest.exe'), while it won't with
2960 for ac_file in conftest.exe conftest conftest.*; do
2961 test -f "$ac_file" || continue
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2973 See \`config.log' for more details.
" >&5
2974 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2975 See \
`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }; }
2979 rm -f conftest$ac_cv_exeext
2980 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2981 $as_echo "$ac_cv_exeext" >&6; }
2983 rm -f conftest.$ac_ext
2984 EXEEXT=$ac_cv_exeext
2986 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2987 $as_echo_n "checking for suffix of object files... " >&6; }
2988 if test "${ac_cv_objext+set}" = set; then
2989 $as_echo_n "(cached) " >&6
2991 cat >conftest.$ac_ext <<_ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
3006 rm -f conftest.o conftest.obj
3007 if { (ac_try="$ac_compile"
3009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3010 *) ac_try_echo
=$ac_try;;
3012 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3013 $as_echo "$ac_try_echo") >&5
3014 (eval "$ac_compile") 2>&5
3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; then
3018 for ac_file
in conftest.o conftest.obj conftest.
*; do
3019 test -f "$ac_file" ||
continue;
3021 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3022 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3027 $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.
$ac_ext >&5
3030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3033 See \`config.log' for more details." >&5
3034 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }; }
3039 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3041 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3042 $as_echo "$ac_cv_objext" >&6; }
3043 OBJEXT
=$ac_cv_objext
3045 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3047 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3048 $as_echo_n "(cached) " >&6
3050 cat >conftest.
$ac_ext <<_ACEOF
3053 cat confdefs.h
>>conftest.
$ac_ext
3054 cat >>conftest.
$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3068 rm -f conftest.
$ac_objext
3069 if { (ac_try
="$ac_compile"
3071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
3088 $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3098 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3100 if test $ac_compiler_gnu = yes; then
3105 ac_test_CFLAGS=${CFLAGS+set}
3106 ac_save_CFLAGS=$CFLAGS
3107 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3108 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3109 if test "${ac_cv_prog_cc_g+set}" = set; then
3110 $as_echo_n "(cached) " >&6
3112 ac_save_c_werror_flag=$ac_c_werror_flag
3113 ac_c_werror_flag=yes
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3135 *) ac_try_echo
=$ac_try;;
3137 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3138 $as_echo "$ac_try_echo") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1
>conftest.err
3143 cat conftest.err
>&5
3144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.
$ac_objext; then
3151 $as_echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3155 cat >conftest.
$ac_ext <<_ACEOF
3158 cat confdefs.h
>>conftest.
$ac_ext
3159 cat >>conftest.
$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.
$ac_objext
3171 if { (ac_try
="$ac_compile"
3173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177 $as_echo "$ac_try_echo") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3214 *) ac_try_echo
=$ac_try;;
3216 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3217 $as_echo "$ac_try_echo") >&5
3218 (eval "$ac_compile") 2>conftest.er1
3220 grep -v '^ *+' conftest.er1
>conftest.err
3222 cat conftest.err
>&5
3223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } && {
3225 test -z "$ac_c_werror_flag" ||
3226 test ! -s conftest.err
3227 } && test -s conftest.
$ac_objext; then
3230 $as_echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.
$ac_ext >&5
3236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3243 ac_c_werror_flag
=$ac_save_c_werror_flag
3245 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3246 $as_echo "$ac_cv_prog_cc_g" >&6; }
3247 if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS
=$ac_save_CFLAGS
3249 elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3256 if test "$GCC" = yes; then
3262 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3264 if test "${ac_cv_prog_cc_c89+set}" = set; then
3265 $as_echo_n "(cached) " >&6
3267 ac_cv_prog_cc_c89
=no
3269 cat >conftest.
$ac_ext <<_ACEOF
3272 cat confdefs.h
>>conftest.
$ac_ext
3273 cat >>conftest.
$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3277 #include <sys/types.h>
3278 #include <sys/stat.h>
3279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280 struct buf { int x; };
3281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282 static char *e (p, i)
3288 static char *f (char * (*g) (char **, int), char **p, ...)
3293 s = g (p, va_arg (v,int));
3298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
3301 as 'x'. The following induces an error, until -std is added to get
3302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
3304 that's true only with -std. */
3305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312 int test (int i, double x);
3313 struct s1 {int (*f) (int a);};
3314 struct s2 {int (*f) (double a);};
3315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3326 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3329 CC
="$ac_save_CC $ac_arg"
3330 rm -f conftest.
$ac_objext
3331 if { (ac_try
="$ac_compile"
3333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337 $as_echo "$ac_try_echo") >&5
3338 (eval "$ac_compile") 2>conftest.er1
3340 grep -v '^ *+' conftest.er1 >conftest.err
3342 cat conftest.err >&5
3343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && {
3345 test -z "$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
3348 ac_cv_prog_cc_c89=$ac_arg
3350 $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3356 rm -f core conftest.err conftest.$ac_objext
3357 test "x$ac_cv_prog_cc_c89" != "xno" && break
3359 rm -f conftest.$ac_ext
3364 case "x$ac_cv_prog_cc_c89" in
3366 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3367 $as_echo "none needed" >&6; } ;;
3369 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3370 $as_echo "unsupported" >&6; } ;;
3372 CC="$CC $ac_cv_prog_cc_c89"
3373 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 { $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3388 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
3390 # Check whether --with-cxx_main was given.
3391 if test "${with_cxx_main+set}" = set; then
3392 withval=$with_cxx_main;
3395 no) with_cxx_main=no
3397 yes) with_cxx_main=yes
3399 *) with_cxx_main=yes
3413 { $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3414 $as_echo "$with_cxx_main" >&6; }
3420 gcc) # Extract the first word of "g++", so it can be a program name with args.
3421 set dummy g++; ac_word=$2
3422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_path_CXX+set}" = set; then
3425 $as_echo_n "(cached) " >&6
3429 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in notfound
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3452 if test -n "$CXX"; then
3453 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3454 $as_echo "$CXX" >&6; }
3456 { $as_echo "$as_me:$LINENO: result: no" >&5
3457 $as_echo "no" >&6; }
3461 cc) # Extract the first word of "c++", so it can be a program name with args.
3462 set dummy c++; ac_word=$2
3463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if test "${ac_cv_path_CXX+set}" = set; then
3466 $as_echo_n "(cached) " >&6
3470 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in notfound
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3493 if test -n "$CXX"; then
3494 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3495 $as_echo "$CXX" >&6; }
3497 { $as_echo "$as_me:$LINENO: result: no" >&5
3498 $as_echo "no" >&6; }
3503 if test "$CXX" = "notfound"
3510 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CXX+set}" = set; then
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$CXX"; then
3520 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_CXX="$ac_prog"
3530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 if test -n "$CXX"; then
3541 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3542 $as_echo "$CXX" >&6; }
3544 { $as_echo "$as_me:$LINENO: result: no" >&5
3545 $as_echo "no" >&6; }
3549 test -n "$CXX" && break
3551 test -n "$CXX" || CXX="notfound"
3553 if test "$CXX" = "notfound"
3558 if test "$preset_cxx" != "$CXX"
3560 { $as_echo "$as_me:$LINENO: WARNING:
3562 By default, distutils will build C++ extension modules with \"$CXX\".
3563 If this is not intended, then set CXX on the configure command line.
3565 $as_echo "$as_me: WARNING:
3567 By default, distutils will build C++ extension modules with \"$CXX\".
3568 If this is not intended, then set CXX on the configure command line.
3573 # checks for UNIX variants that set C preprocessor variables
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3581 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3582 # On Suns, sometimes $CPP names a directory.
3583 if test -n "$CPP" && test -d "$CPP"; then
3586 if test -z "$CPP"; then
3587 if test "${ac_cv_prog_CPP+set}" = set; then
3588 $as_echo_n "(cached) " >&6
3590 # Double quotes because CPP needs to be expanded
3591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3594 for ac_c_preproc_warn_flag in '' yes
3596 # Use a header file that comes with gcc, so configuring glibc
3597 # with a fresh cross-compiler works.
3598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599 # <limits.h> exists even on freestanding compilers.
3600 # On the NeXT, cc -E runs the code through the compiler's parser,
3601 # not just through cpp. "Syntax error" is here to catch this case.
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3609 # include <limits.h>
3611 # include <assert.h>
3615 if { (ac_try="$ac_cpp conftest.$ac_ext"
3617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3618 *) ac_try_echo
=$ac_try;;
3620 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3624 grep -v '^ *+' conftest.er1
>conftest.err
3626 cat conftest.err
>&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } >/dev
/null
&& {
3629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.
$ac_ext >&5
3637 # Broken: fails on valid input.
3641 rm -f conftest.err conftest.
$ac_ext
3643 # OK, works on sane cases. Now check whether nonexistent headers
3644 # can be detected and how.
3645 cat >conftest.
$ac_ext <<_ACEOF
3648 cat confdefs.h
>>conftest.
$ac_ext
3649 cat >>conftest.
$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 #include <ac_nonexistent.h>
3653 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } >/dev/null && {
3667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3670 # Broken: success on invalid input.
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 # Passes both tests.
3681 rm -f conftest.err conftest.$ac_ext
3684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685 rm -f conftest.err conftest.
$ac_ext
3686 if $ac_preproc_ok; then
3698 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3699 $as_echo "$CPP" >&6; }
3701 for ac_c_preproc_warn_flag
in '' yes
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.
$ac_ext <<_ACEOF
3712 cat confdefs.h
>>conftest.
$ac_ext
3713 cat >>conftest.
$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3716 # include <limits.h>
3718 # include <assert.h>
3722 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728 $as_echo "$ac_try_echo") >&5
3729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } >/dev/null && {
3736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3741 $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 # Broken: fails on valid input.
3748 rm -f conftest.err conftest.$ac_ext
3750 # OK, works on sane cases. Now check whether nonexistent headers
3751 # can be detected and how.
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3760 if { (ac_try="$ac_cpp conftest.$ac_ext"
3762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3763 *) ac_try_echo
=$ac_try;;
3765 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3769 grep -v '^ *+' conftest.er1
>conftest.err
3771 cat conftest.err
>&5
3772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } >/dev
/null
&& {
3774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3777 # Broken: success on invalid input.
3780 $as_echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.
$ac_ext >&5
3783 # Passes both tests.
3788 rm -f conftest.err conftest.
$ac_ext
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.
$ac_ext
3793 if $ac_preproc_ok; then
3796 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3799 See \`config.log' for more details." >&5
3800 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3801 See \`config.log' for more details." >&2;}
3802 { (exit 1); exit 1; }; }; }
3806 ac_cpp
='$CPP $CPPFLAGS'
3807 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3812 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3813 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3814 if test "${ac_cv_path_GREP+set}" = set; then
3815 $as_echo_n "(cached) " >&6
3817 if test -z "$GREP"; then
3818 ac_path_GREP_found
=false
3819 # Loop through the user's path and test for each of PROGNAME-LIST
3820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3821 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3824 test -z "$as_dir" && as_dir
=.
3825 for ac_prog
in grep ggrep
; do
3826 for ac_exec_ext
in '' $ac_executable_extensions; do
3827 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3828 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3829 # Check for GNU ac_path_GREP and select it if it is found.
3830 # Check for GNU $ac_path_GREP
3831 case `"$ac_path_GREP" --version 2>&1` in
3833 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3836 $as_echo_n 0123456789 >"conftest.in"
3839 cat "conftest.in" "conftest.in" >"conftest.tmp"
3840 mv "conftest.tmp" "conftest.in"
3841 cp "conftest.in" "conftest.nl"
3842 $as_echo 'GREP' >> "conftest.nl"
3843 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3844 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3845 ac_count
=`expr $ac_count + 1`
3846 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3847 # Best one so far, save it but keep looking for a better one
3848 ac_cv_path_GREP
="$ac_path_GREP"
3849 ac_path_GREP_max
=$ac_count
3851 # 10*(2^10) chars as input seems more than enough
3852 test $ac_count -gt 10 && break
3854 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3857 $ac_path_GREP_found && break 3
3862 if test -z "$ac_cv_path_GREP"; then
3863 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3864 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3865 { (exit 1); exit 1; }; }
3868 ac_cv_path_GREP
=$GREP
3872 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3873 $as_echo "$ac_cv_path_GREP" >&6; }
3874 GREP
="$ac_cv_path_GREP"
3877 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3878 $as_echo_n "checking for egrep... " >&6; }
3879 if test "${ac_cv_path_EGREP+set}" = set; then
3880 $as_echo_n "(cached) " >&6
3882 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3883 then ac_cv_path_EGREP
="$GREP -E"
3885 if test -z "$EGREP"; then
3886 ac_path_EGREP_found
=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3889 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3892 test -z "$as_dir" && as_dir
=.
3893 for ac_prog
in egrep; do
3894 for ac_exec_ext
in '' $ac_executable_extensions; do
3895 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3897 # Check for GNU ac_path_EGREP and select it if it is found.
3898 # Check for GNU $ac_path_EGREP
3899 case `"$ac_path_EGREP" --version 2>&1` in
3901 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3904 $as_echo_n 0123456789 >"conftest.in"
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 $as_echo 'EGREP' >> "conftest.nl"
3911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3912 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3913 ac_count
=`expr $ac_count + 1`
3914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_EGREP
="$ac_path_EGREP"
3917 ac_path_EGREP_max
=$ac_count
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3922 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3925 $ac_path_EGREP_found && break 3
3930 if test -z "$ac_cv_path_EGREP"; then
3931 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3933 { (exit 1); exit 1; }; }
3936 ac_cv_path_EGREP
=$EGREP
3941 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942 $as_echo "$ac_cv_path_EGREP" >&6; }
3943 EGREP
="$ac_cv_path_EGREP"
3946 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3947 $as_echo_n "checking for ANSI C header files... " >&6; }
3948 if test "${ac_cv_header_stdc+set}" = set; then
3949 $as_echo_n "(cached) " >&6
3951 cat >conftest.
$ac_ext <<_ACEOF
3954 cat confdefs.h
>>conftest.
$ac_ext
3955 cat >>conftest.
$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3970 rm -f conftest.
$ac_objext
3971 if { (ac_try
="$ac_compile"
3973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977 $as_echo "$ac_try_echo") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 ac_cv_header_stdc=yes
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 ac_cv_header_stdc=no
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 if test $ac_cv_header_stdc = yes; then
3999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "memchr" >/dev/null 2>&1; then
4013 ac_cv_header_stdc=no
4019 if test $ac_cv_header_stdc = yes; then
4020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031 $EGREP "free" >/dev/null 2>&1; then
4034 ac_cv_header_stdc=no
4040 if test $ac_cv_header_stdc = yes; then
4041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4042 if test "$cross_compiling" = yes; then
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4053 #if ((' ' & 0x0FF) == 0x020)
4054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4057 # define ISLOWER(c) \
4058 (('a' <= (c) && (c) <= 'i') \
4059 || ('j' <= (c) && (c) <= 'r') \
4060 || ('s' <= (c) && (c) <= 'z'))
4061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4069 for (i = 0; i < 256; i++)
4070 if (XOR (islower (i), ISLOWER (i))
4071 || toupper (i) != TOUPPER (i))
4076 rm -f conftest$ac_exeext
4077 if { (ac_try="$ac_link"
4079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4080 *) ac_try_echo
=$ac_try;;
4082 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4083 $as_echo "$ac_try_echo") >&5
4084 (eval "$ac_link") 2>&5
4086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4088 { (case "(($ac_try" in
4089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4093 $as_echo "$ac_try_echo") >&5
4094 (eval "$ac_try") 2>&5
4096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4100 $as_echo "$as_me: program exited with status $ac_status" >&5
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4105 ac_cv_header_stdc=no
4107 rm -rf conftest.dSYM
4108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4114 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4115 $as_echo "$ac_cv_header_stdc" >&6; }
4116 if test $ac_cv_header_stdc = yes; then
4118 cat >>confdefs.h <<\_ACEOF
4119 #define STDC_HEADERS 1
4124 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4134 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4135 inttypes.h stdint.h unistd.h
4137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 $as_echo_n "checking for $ac_header... " >&6; }
4140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141 $as_echo_n "(cached) " >&6
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 $ac_includes_default
4151 #include <$ac_header>
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4157 *) ac_try_echo
=$ac_try;;
4159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4160 $as_echo "$ac_try_echo") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4163 grep -v '^ *+' conftest.er1
>conftest.err
4165 cat conftest.err
>&5
4166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && {
4168 test -z "$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 } && test -s conftest.
$ac_objext; then
4171 eval "$as_ac_Header=yes"
4173 $as_echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.
$ac_ext >&5
4176 eval "$as_ac_Header=no"
4179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4181 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4182 $as_echo "$as_val"'`
4183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4184 $as_echo "$ac_res" >&6; }
4185 as_val
=`eval 'as_val=${'$as_ac_Header'}
4186 $as_echo "$as_val"'`
4187 if test "x$as_val" = x
""yes; then
4188 cat >>confdefs.h
<<_ACEOF
4189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4198 if test "${ac_cv_header_minix_config_h+set}" = set; then
4199 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4200 $as_echo_n "checking for minix/config.h... " >&6; }
4201 if test "${ac_cv_header_minix_config_h+set}" = set; then
4202 $as_echo_n "(cached) " >&6
4204 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4205 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4207 # Is the header compilable?
4208 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4209 $as_echo_n "checking minix/config.h usability... " >&6; }
4210 cat >conftest.
$ac_ext <<_ACEOF
4213 cat confdefs.h
>>conftest.
$ac_ext
4214 cat >>conftest.
$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 $ac_includes_default
4217 #include <minix/config.h>
4219 rm -f conftest.
$ac_objext
4220 if { (ac_try
="$ac_compile"
4222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4226 $as_echo "$ac_try_echo") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_header_compiler=yes
4239 $as_echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 ac_header_compiler=no
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4247 $as_echo "$ac_header_compiler" >&6; }
4249 # Is the header present?
4250 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4251 $as_echo_n "checking minix/config.h presence... " >&6; }
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <minix/config.h>
4260 if { (ac_try="$ac_cpp conftest.$ac_ext"
4262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4263 *) ac_try_echo
=$ac_try;;
4265 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4266 $as_echo "$ac_try_echo") >&5
4267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1
>conftest.err
4271 cat conftest.err
>&5
4272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev
/null
&& {
4274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4275 test ! -s conftest.err
4277 ac_header_preproc
=yes
4279 $as_echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.
$ac_ext >&5
4282 ac_header_preproc
=no
4285 rm -f conftest.err conftest.
$ac_ext
4286 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4287 $as_echo "$ac_header_preproc" >&6; }
4289 # So? What about this header?
4290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4292 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4293 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4294 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4295 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4296 ac_header_preproc
=yes
4299 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4300 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4301 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4302 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4303 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4304 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4305 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4306 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4307 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4308 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4309 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4310 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4312 ## -------------------------------------- ##
4313 ## Report this to http://bugs.python.org/ ##
4314 ## -------------------------------------- ##
4316 ) |
sed "s/^/$as_me: WARNING: /" >&2
4319 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4320 $as_echo_n "checking for minix/config.h... " >&6; }
4321 if test "${ac_cv_header_minix_config_h+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4324 ac_cv_header_minix_config_h
=$ac_header_preproc
4326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4327 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4330 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4337 if test "$MINIX" = yes; then
4339 cat >>confdefs.h
<<\_ACEOF
4340 #define _POSIX_SOURCE 1
4344 cat >>confdefs.h
<<\_ACEOF
4345 #define _POSIX_1_SOURCE 2
4349 cat >>confdefs.h
<<\_ACEOF
4357 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4358 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4359 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4360 $as_echo_n "(cached) " >&6
4362 cat >conftest.
$ac_ext <<_ACEOF
4365 cat confdefs.h
>>conftest.
$ac_ext
4366 cat >>conftest.
$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4369 # define __EXTENSIONS__ 1
4370 $ac_includes_default
4379 rm -f conftest.
$ac_objext
4380 if { (ac_try
="$ac_compile"
4382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4386 $as_echo "$ac_try_echo") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4397 ac_cv_safe_to_define___extensions__=yes
4399 $as_echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 ac_cv_safe_to_define___extensions__=no
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4409 test $ac_cv_safe_to_define___extensions__ = yes &&
4410 cat >>confdefs.h <<\_ACEOF
4411 #define __EXTENSIONS__ 1
4414 cat >>confdefs.h <<\_ACEOF
4415 #define _ALL_SOURCE 1
4418 cat >>confdefs.h <<\_ACEOF
4419 #define _GNU_SOURCE 1
4422 cat >>confdefs.h <<\_ACEOF
4423 #define _POSIX_PTHREAD_SEMANTICS 1
4426 cat >>confdefs.h <<\_ACEOF
4427 #define _TANDEM_SOURCE 1
4432 # Check for unsupported systems
4433 case $ac_sys_system/$ac_sys_release in
4435 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
4436 echo See README for details.
4441 { $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5
4442 $as_echo_n "checking for --with-suffix... " >&6; }
4444 # Check whether --with-suffix was given.
4445 if test "${with_suffix+set}" = set; then
4446 withval=$with_suffix;
4450 *) EXEEXT=$withval;;
4454 { $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5
4455 $as_echo "$EXEEXT" >&6; }
4457 # Test whether we're running on a non-case-sensitive system, in which
4458 # case we give a warning if no ext is given
4460 { $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
4461 $as_echo_n "checking for case-insensitive build directory... " >&6; }
4462 if test ! -d CaseSensitiveTestDir; then
4463 mkdir CaseSensitiveTestDir
4466 if test -d casesensitivetestdir
4468 { $as_echo "$as_me:$LINENO: result: yes" >&5
4469 $as_echo "yes" >&6; }
4472 { $as_echo "$as_me:$LINENO: result: no" >&5
4473 $as_echo "no" >&6; }
4476 rmdir CaseSensitiveTestDir
4481 gcc) CC="$CC -D_HAVE_BSDI";;
4485 case $ac_sys_system in
4488 cc|*/cc) CC="$CC -Ae";;
4492 cc) CC="$CC -Wl,-Bexport";;
4495 # Some functions have a prototype only with that define, e.g. confstr
4497 cat >>confdefs.h <<\_ACEOF
4498 #define __EXTENSIONS__ 1
4506 { $as_echo "$as_me:$LINENO: checking LIBRARY" >&5
4507 $as_echo_n "checking LIBRARY... " >&6; }
4508 if test -z "$LIBRARY"
4510 LIBRARY='libpython$(VERSION).a'
4512 { $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5
4513 $as_echo "$LIBRARY" >&6; }
4515 # LDLIBRARY is the name of the library to link against (as opposed to the
4516 # name of the library into which to insert object files). BLDLIBRARY is also
4517 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
4518 # is blank as the main program is not linked directly against LDLIBRARY.
4519 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
4520 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
4521 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
4522 # DLLLIBRARY is the shared (i.e., DLL) library.
4524 # RUNSHARED is used to run shared python without installed libraries
4526 # INSTSONAME is the name of the shared library that will be use to install
4527 # on the system - some systems like version suffix, others don't
4534 LDLIBRARY="$LIBRARY"
4535 BLDLIBRARY='$(LDLIBRARY)'
4536 INSTSONAME='$(LDLIBRARY)'
4541 # LINKCC is the command that links the python executable -- default is $(CC).
4542 # If CXX is set, and if it is needed to link a main function that was
4543 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
4544 # python might then depend on the C++ runtime
4545 # This is altered for AIX in order to build the export list before
4548 { $as_echo "$as_me:$LINENO: checking LINKCC" >&5
4549 $as_echo_n "checking LINKCC... " >&6; }
4550 if test -z "$LINKCC"
4552 LINKCC='$(PURIFY) $(MAINCC)'
4553 case $ac_sys_system in
4556 if test $ac_sys_release -ge 5 -o \
4557 $ac_sys_release -eq 4 -a `uname
-r` -ge 2 ; then
4560 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4562 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
4564 # qcc must be used because the other compilers do not
4569 { $as_echo "$as_me:$LINENO: result: $LINKCC" >&5
4570 $as_echo "$LINKCC" >&6; }
4572 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4573 # make sure we default having it set to "no": this is used by
4574 # distutils.unixccompiler to know if it should add --enable-new-dtags
4575 # to linker command lines, and failing to detect GNU ld simply results
4576 # in the same bahaviour as before.
4578 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4579 $as_echo_n "checking for GNU ld... " >&6; }
4581 if test "$GCC" = yes; then
4582 ac_prog=`$CC -print-prog-name=ld
`
4584 case `"$ac_prog" -V 2>&1 < /dev
/null
` in
4590 { $as_echo "$as_me:$LINENO: result: $GNULD" >&5
4591 $as_echo "$GNULD" >&6; }
4593 { $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5
4594 $as_echo_n "checking for --enable-shared... " >&6; }
4595 # Check whether --enable-shared was given.
4596 if test "${enable_shared+set}" = set; then
4597 enableval=$enable_shared;
4601 if test -z "$enable_shared"
4603 case $ac_sys_system in
4605 enable_shared="yes";;
4607 enable_shared="no";;
4610 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
4611 $as_echo "$enable_shared" >&6; }
4613 { $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4614 $as_echo_n "checking for --enable-profiling... " >&6; }
4615 # Check whether --enable-profiling was given.
4616 if test "${enable_profiling+set}" = set; then
4617 enableval=$enable_profiling; ac_save_cc="$CC"
4619 if test "$cross_compiling" = yes; then
4620 ac_enable_profiling="no"
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 int main() { return 0; }
4630 rm -f conftest$ac_exeext
4631 if { (ac_try="$ac_link"
4633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4634 *) ac_try_echo
=$ac_try;;
4636 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4637 $as_echo "$ac_try_echo") >&5
4638 (eval "$ac_link") 2>&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_try") 2>&5
4650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 ac_enable_profiling="yes"
4654 $as_echo "$as_me: program exited with status $ac_status" >&5
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4659 ac_enable_profiling="no"
4661 rm -rf conftest.dSYM
4662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4669 { $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4670 $as_echo "$ac_enable_profiling" >&6; }
4672 case "$ac_enable_profiling" in
4674 BASECFLAGS="-pg $BASECFLAGS"
4675 LDFLAGS="-pg $LDFLAGS"
4679 { $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4680 $as_echo_n "checking LDLIBRARY... " >&6; }
4682 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4683 # library that we build, but we do not want to link against it (we
4684 # will find it with a -framework option). For this reason there is an
4685 # extra variable BLDLIBRARY against which Python and the extension
4686 # modules are linked, BLDLIBRARY. This is normally the same as
4687 # LDLIBRARY, but empty for MacOSX framework builds.
4688 if test "$enable_framework"
4690 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4691 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4694 BLDLIBRARY='$(LDLIBRARY)'
4697 # Other platforms follow
4698 if test $enable_shared = "yes"; then
4700 cat >>confdefs.h <<\_ACEOF
4701 #define Py_ENABLE_SHARED 1
4704 case $ac_sys_system in
4706 LDLIBRARY='libpython$(VERSION).so'
4709 LDLIBRARY='libpython$(VERSION).dll.a'
4710 DLLLIBRARY='libpython$(VERSION).dll'
4713 LDLIBRARY='libpython$(VERSION).so'
4714 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4715 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4716 INSTSONAME="$LDLIBRARY".$SOVERSION
4718 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4719 LDLIBRARY='libpython$(VERSION).so'
4720 BLDLIBRARY='-L. -lpython$(VERSION)'
4721 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4722 case $ac_sys_system in
4724 SOVERSION=`echo $SOVERSION|cut
-d "." -f 1`
4727 INSTSONAME="$LDLIBRARY".$SOVERSION
4732 LDLIBRARY='libpython$(VERSION).so'
4735 LDLIBRARY='libpython$(VERSION).sl'
4738 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4739 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4742 LDLIBRARY='libpython$(VERSION).so'
4743 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4744 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4747 LDLIBRARY='libpython$(VERSION).so'
4748 BLDLIBRARY='-L. -lpython$(VERSION)'
4749 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4752 LDLIBRARY='libpython$(VERSION).dylib'
4753 BLDLIBRARY='-L. -lpython$(VERSION)'
4754 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4758 else # shared is disabled
4759 case $ac_sys_system in
4761 BLDLIBRARY='$(LIBRARY)'
4762 LDLIBRARY='libpython$(VERSION).dll.a'
4767 { $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4768 $as_echo "$LDLIBRARY" >&6; }
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_RANLIB+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4778 if test -n "$RANLIB"; then
4779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 RANLIB=$ac_cv_prog_RANLIB
4799 if test -n "$RANLIB"; then
4800 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4801 $as_echo "$RANLIB" >&6; }
4803 { $as_echo "$as_me:$LINENO: result: no" >&5
4804 $as_echo "no" >&6; }
4809 if test -z "$ac_cv_prog_RANLIB"; then
4810 ac_ct_RANLIB=$RANLIB
4811 # Extract the first word of "ranlib", so it can be a program name with args.
4812 set dummy ranlib; ac_word=$2
4813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4816 $as_echo_n "(cached) " >&6
4818 if test -n "$ac_ct_RANLIB"; then
4819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_ac_ct_RANLIB="ranlib"
4829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4839 if test -n "$ac_ct_RANLIB"; then
4840 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4841 $as_echo "$ac_ct_RANLIB" >&6; }
4843 { $as_echo "$as_me:$LINENO: result: no" >&5
4844 $as_echo "no" >&6; }
4847 if test "x$ac_ct_RANLIB" = x; then
4850 case $cross_compiling:$ac_tool_warned in
4852 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4854 ac_tool_warned=yes ;;
4856 RANLIB=$ac_ct_RANLIB
4859 RANLIB="$ac_cv_prog_RANLIB"
4863 for ac_prog in ar aal
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_AR+set}" = set; then
4870 $as_echo_n "(cached) " >&6
4872 if test -n "$AR"; then
4873 ac_cv_prog_AR="$AR" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_AR="$ac_prog"
4883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 if test -n "$AR"; then
4894 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4895 $as_echo "$AR" >&6; }
4897 { $as_echo "$as_me:$LINENO: result: no" >&5
4898 $as_echo "no" >&6; }
4902 test -n "$AR" && break
4904 test -n "$AR" || AR="ar"
4907 # tweak ARFLAGS only if the user didn't set it on the command line
4909 if test -z "$ARFLAGS"
4915 # Extract the first word of "svnversion", so it can be a program name with args.
4916 set dummy svnversion; ac_word=$2
4917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4920 $as_echo_n "(cached) " >&6
4922 if test -n "$SVNVERSION"; then
4923 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_SVNVERSION="found"
4933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4943 SVNVERSION=$ac_cv_prog_SVNVERSION
4944 if test -n "$SVNVERSION"; then
4945 { $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4946 $as_echo "$SVNVERSION" >&6; }
4948 { $as_echo "$as_me:$LINENO: result: no" >&5
4949 $as_echo "no" >&6; }
4953 if test $SVNVERSION = found
4955 SVNVERSION="svnversion \$(srcdir)"
4957 SVNVERSION="echo Unversioned directory"
4962 # install -d does not work on BSDI or HP-UX
4963 if test -z "$INSTALL"
4965 INSTALL="${srcdir}/install-sh -c"
4969 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4970 if test -f "$ac_dir/install-sh"; then
4972 ac_install_sh="$ac_aux_dir/install-sh -c"
4974 elif test -f "$ac_dir/install.sh"; then
4976 ac_install_sh="$ac_aux_dir/install.sh -c"
4978 elif test -f "$ac_dir/shtool"; then
4980 ac_install_sh="$ac_aux_dir/shtool install -c"
4984 if test -z "$ac_aux_dir"; then
4985 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4986 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4987 { (exit 1); exit 1; }; }
4990 # These three variables are undocumented and unsupported,
4991 # and are intended to be withdrawn in a future Autoconf release.
4992 # They can cause serious problems if a builder's source tree is in a directory
4993 # whose full name contains unusual characters.
4994 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4995 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4996 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4999 # Find a good install program. We prefer a C program (faster),
5000 # so one script is as good as another. But avoid the broken or
5001 # incompatible versions:
5002 # SysV /etc/install, /usr/sbin/install
5003 # SunOS /usr/etc/install
5004 # IRIX /sbin/install
5006 # AmigaOS /C/install, which installs bootblocks on floppy discs
5007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5010 # OS/2's system install, which has a completely different semantic
5011 # ./install, which can be erroneously created by make from ./install.sh.
5012 # Reject install programs that cannot install multiple files.
5013 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5014 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5015 if test -z "$INSTALL"; then
5016 if test "${ac_cv_path_install+set}" = set; then
5017 $as_echo_n "(cached) " >&6
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 # Account for people who put trailing slashes in PATH elements.
5026 ./ | .// | /cC/* | \
5027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5028 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5031 # OSF1 and SCO ODT 3.0 have their own names for install.
5032 # Don't use installbsd from OSF since it installs stuff as root
5034 for ac_prog in ginstall scoinst install; do
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5037 if test $ac_prog = install &&
5038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5039 # AIX install. It has an incompatible calling convention.
5041 elif test $ac_prog = install &&
5042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5043 # program-specific install script used by HP pwplus--don't use.
5046 rm -rf conftest.one conftest.two conftest.dir
5047 echo one > conftest.one
5048 echo two > conftest.two
5050 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5051 test -s conftest.one && test -s conftest.two &&
5052 test -s conftest.dir/conftest.one &&
5053 test -s conftest.dir/conftest.two
5055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5068 rm -rf conftest.one conftest.two conftest.dir
5071 if test "${ac_cv_path_install+set}" = set; then
5072 INSTALL=$ac_cv_path_install
5074 # As a last resort, use the slow shell script. Don't cache a
5075 # value for INSTALL within a source directory, because that will
5076 # break other packages using the cache if that directory is
5077 # removed, or if the value is a relative name.
5078 INSTALL=$ac_install_sh
5081 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5082 $as_echo "$INSTALL" >&6; }
5084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5085 # It thinks the first close brace ends the variable substitution.
5086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5093 # Not every filesystem supports hard links
5095 if test -z "$LN" ; then
5096 case $ac_sys_system in
5098 CYGWIN*) LN="ln -s";;
5099 atheos*) LN="ln -s";;
5104 # Check for --with-pydebug
5105 { $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5
5106 $as_echo_n "checking for --with-pydebug... " >&6; }
5108 # Check whether --with-pydebug was given.
5109 if test "${with_pydebug+set}" = set; then
5110 withval=$with_pydebug;
5111 if test "$withval" != no
5114 cat >>confdefs.h <<\_ACEOF
5118 { $as_echo "$as_me:$LINENO: result: yes" >&5
5119 $as_echo "yes" >&6; };
5121 else { $as_echo "$as_me:$LINENO: result: no" >&5
5122 $as_echo "no" >&6; }; Py_DEBUG='false'
5125 { $as_echo "$as_me:$LINENO: result: no" >&5
5126 $as_echo "no" >&6; }
5130 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5131 # merged with this chunk of code?
5133 # Optimizer/debugger flags
5134 # ------------------------
5135 # (The following bit of code is complicated enough - please keep things
5136 # indented properly. Just pretend you're editing Python code. ;-)
5138 # There are two parallel sets of case statements below, one that checks to
5139 # see if OPT was set and one that does BASECFLAGS setting based upon
5140 # compiler and platform. BASECFLAGS tweaks need to be made even if the
5143 # tweak OPT based on compiler and platform, only if the user didn't set
5144 # it on the command line
5150 if test "$CC" != 'g++' ; then
5151 STRICT_PROTO="-Wstrict-prototypes"
5153 # For gcc 4.x we need to use -fwrapv so lets check if its supported
5154 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
5157 case $ac_cv_prog_cc_g in
5159 if test "$Py_DEBUG" = 'true' ; then
5160 # Optimization messes up debuggers, so turn it off for
5162 OPT="-g -Wall $STRICT_PROTO"
5164 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
5168 OPT="-O3 -Wall $STRICT_PROTO"
5171 case $ac_sys_system in
5172 SCO_SV*) OPT="$OPT -m486 -DSCO5"
5182 # The current (beta) Monterey compiler dies with optimizations
5183 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
5184 case $ac_sys_system in
5194 # The -arch flags for universal builds on OSX
5195 UNIVERSAL_ARCH_FLAGS=
5198 # tweak BASECFLAGS based on compiler and platform
5201 # Python violates C99 rules, by casting between incompatible
5202 # pointer types. GCC may generate bad code as a result of that,
5203 # so use -fno-strict-aliasing if supported.
5204 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
5205 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5207 CC="$CC -fno-strict-aliasing"
5208 if test "$cross_compiling" = yes; then
5209 ac_cv_no_strict_aliasing_ok=no
5211 cat >conftest.$ac_ext <<_ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 int main() { return 0; }
5219 rm -f conftest$ac_exeext
5220 if { (ac_try="$ac_link"
5222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5223 *) ac_try_echo
=$ac_try;;
5225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5226 $as_echo "$ac_try_echo") >&5
5227 (eval "$ac_link") 2>&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5231 { (case "(($ac_try" in
5232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5236 $as_echo "$ac_try_echo") >&5
5237 (eval "$ac_try") 2>&5
5239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_cv_no_strict_aliasing_ok=yes
5243 $as_echo "$as_me: program exited with status $ac_status" >&5
5244 $as_echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5248 ac_cv_no_strict_aliasing_ok=no
5250 rm -rf conftest.dSYM
5251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5256 { $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
5257 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5258 if test $ac_cv_no_strict_aliasing_ok = yes
5260 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5263 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
5264 # support. Without this, treatment of subnormals doesn't follow
5266 case $ac_sys_machine in
5268 BASECFLAGS="$BASECFLAGS -mieee"
5272 case $ac_sys_system in
5274 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
5276 # is there any other compiler on Darwin besides gcc?
5278 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
5279 # used to be here, but non-Apple gcc doesn't accept them.
5282 if test "${enable_universalsdk}"; then
5283 UNIVERSAL_ARCH_FLAGS=""
5284 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
5285 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
5288 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5289 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
5291 elif test "$UNIVERSAL_ARCHS" = "all" ; then
5292 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
5293 ARCH_RUN_32BIT="arch -i386 -ppc"
5296 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
5297 $as_echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
5298 { (exit 1); exit 1; }; }
5303 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
5304 tgt=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
5305 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
5306 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
5310 # Calculate the right deployment target for this build.
5312 cur_target=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
5313 if test ${cur_target} '>' 10.2; then
5316 if test "${UNIVERSAL_ARCHS}" = "all"; then
5317 # Ensure that the default platform for a 4-way
5318 # universal build is OSX 10.5, that's the first
5319 # OS release where 4-way builds make sense.
5322 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
5324 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
5325 # environment with a value that is the same as what we'll use
5326 # in the Makefile to ensure that we'll get the same compiler
5327 # environment during configure and build time.
5328 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
5329 export MACOSX_DEPLOYMENT_TARGET
5330 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
5334 BASECFLAGS="$BASECFLAGS -mieee"
5340 case $ac_sys_system in
5341 OpenUNIX*|UnixWare*)
5342 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5345 BASECFLAGS="$BASECFLAGS -ieee -std"
5348 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
5354 if test "$Py_DEBUG" = 'true'; then
5360 if test "$ac_arch_flags"
5362 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
5365 # disable check for icc since it seems to pass, but generates a warning
5368 ac_cv_opt_olimit_ok=no
5371 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
5372 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5373 if test "${ac_cv_opt_olimit_ok+set}" = set; then
5374 $as_echo_n "(cached) " >&6
5377 CC="$CC -OPT:Olimit=0"
5378 if test "$cross_compiling" = yes; then
5379 ac_cv_opt_olimit_ok=no
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 int main() { return 0; }
5389 rm -f conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5393 *) ac_try_echo
=$ac_try;;
5395 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5396 $as_echo "$ac_try_echo") >&5
5397 (eval "$ac_link") 2>&5
5399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5401 { (case "(($ac_try" in
5402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5406 $as_echo "$ac_try_echo") >&5
5407 (eval "$ac_try") 2>&5
5409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_opt_olimit_ok=yes
5413 $as_echo "$as_me: program exited with status $ac_status" >&5
5414 $as_echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5418 ac_cv_opt_olimit_ok=no
5420 rm -rf conftest.dSYM
5421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5428 { $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
5429 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
5430 if test $ac_cv_opt_olimit_ok = yes; then
5431 case $ac_sys_system in
5432 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5433 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5438 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5442 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
5443 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5444 if test "${ac_cv_olimit_ok+set}" = set; then
5445 $as_echo_n "(cached) " >&6
5448 CC="$CC -Olimit 1500"
5449 if test "$cross_compiling" = yes; then
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 int main() { return 0; }
5460 rm -f conftest$ac_exeext
5461 if { (ac_try="$ac_link"
5463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5464 *) ac_try_echo
=$ac_try;;
5466 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5467 $as_echo "$ac_try_echo") >&5
5468 (eval "$ac_link") 2>&5
5470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5472 { (case "(($ac_try" in
5473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_try") 2>&5
5480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5484 $as_echo "$as_me: program exited with status $ac_status" >&5
5485 $as_echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5491 rm -rf conftest.dSYM
5492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5499 { $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
5500 $as_echo "$ac_cv_olimit_ok" >&6; }
5501 if test $ac_cv_olimit_ok = yes; then
5502 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5506 # Check whether GCC supports PyArg_ParseTuple format
5507 if test "$GCC" = "yes"
5509 { $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
5510 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
5512 CFLAGS="$CFLAGS -Werror"
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5520 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5534 *) ac_try_echo
=$ac_try;;
5536 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5537 $as_echo "$ac_try_echo") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1
>conftest.err
5542 cat conftest.err
>&5
5543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.
$ac_objext; then
5549 cat >>confdefs.h
<<\_ACEOF
5550 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
5553 { $as_echo "$as_me:$LINENO: result: yes" >&5
5554 $as_echo "yes" >&6; }
5556 $as_echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.
$ac_ext >&5
5559 { $as_echo "$as_me:$LINENO: result: no" >&5
5560 $as_echo "no" >&6; }
5564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5568 # On some compilers, pthreads are available without further options
5569 # (e.g. MacOS X). On some of these systems, the compiler will not
5570 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5571 # So we have to see first whether pthreads are available without
5572 # options before we can check whether -Kpthread improves anything.
5573 { $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5574 $as_echo_n "checking whether pthreads are available without options... " >&6; }
5575 if test "${ac_cv_pthread_is_default+set}" = set; then
5576 $as_echo_n "(cached) " >&6
5578 if test "$cross_compiling" = yes; then
5579 ac_cv_pthread_is_default
=no
5581 cat >conftest.
$ac_ext <<_ACEOF
5584 cat confdefs.h
>>conftest.
$ac_ext
5585 cat >>conftest.
$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5588 #include <pthread.h>
5590 void* routine(void* p){return NULL;}
5594 if(pthread_create(&p,NULL,routine,NULL)!=0)
5596 (void)pthread_detach(p);
5601 rm -f conftest
$ac_exeext
5602 if { (ac_try
="$ac_link"
5604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5608 $as_echo "$ac_try_echo") >&5
5609 (eval "$ac_link") 2>&5
5611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5613 { (case "(($ac_try" in
5614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5615 *) ac_try_echo
=$ac_try;;
5617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5618 $as_echo "$ac_try_echo") >&5
5619 (eval "$ac_try") 2>&5
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5624 ac_cv_pthread_is_default
=yes
5629 $as_echo "$as_me: program exited with status $ac_status" >&5
5630 $as_echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.
$ac_ext >&5
5634 ac_cv_pthread_is_default
=no
5636 rm -rf conftest.dSYM
5637 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5644 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5645 $as_echo "$ac_cv_pthread_is_default" >&6; }
5648 if test $ac_cv_pthread_is_default = yes
5652 # -Kpthread, if available, provides the right #defines
5653 # and linker options to make pthread_create available
5654 # Some compilers won't report that they do not support -Kpthread,
5655 # so we need to run a program to see whether it really made the
5656 # function available.
5657 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5658 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
5659 if test "${ac_cv_kpthread+set}" = set; then
5660 $as_echo_n "(cached) " >&6
5664 if test "$cross_compiling" = yes; then
5667 cat >conftest.
$ac_ext <<_ACEOF
5670 cat confdefs.h
>>conftest.
$ac_ext
5671 cat >>conftest.
$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5674 #include <pthread.h>
5676 void* routine(void* p){return NULL;}
5680 if(pthread_create(&p,NULL,routine,NULL)!=0)
5682 (void)pthread_detach(p);
5687 rm -f conftest
$ac_exeext
5688 if { (ac_try
="$ac_link"
5690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5694 $as_echo "$ac_try_echo") >&5
5695 (eval "$ac_link") 2>&5
5697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5699 { (case "(($ac_try" in
5700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5701 *) ac_try_echo
=$ac_try;;
5703 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5704 $as_echo "$ac_try_echo") >&5
5705 (eval "$ac_try") 2>&5
5707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5711 $as_echo "$as_me: program exited with status $ac_status" >&5
5712 $as_echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.
$ac_ext >&5
5718 rm -rf conftest.dSYM
5719 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5726 { $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5727 $as_echo "$ac_cv_kpthread" >&6; }
5730 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
5732 # -Kthread, if available, provides the right #defines
5733 # and linker options to make pthread_create available
5734 # Some compilers won't report that they do not support -Kthread,
5735 # so we need to run a program to see whether it really made the
5736 # function available.
5737 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5738 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
5739 if test "${ac_cv_kthread+set}" = set; then
5740 $as_echo_n "(cached) " >&6
5744 if test "$cross_compiling" = yes; then
5747 cat >conftest.
$ac_ext <<_ACEOF
5750 cat confdefs.h
>>conftest.
$ac_ext
5751 cat >>conftest.
$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5754 #include <pthread.h>
5756 void* routine(void* p){return NULL;}
5760 if(pthread_create(&p,NULL,routine,NULL)!=0)
5762 (void)pthread_detach(p);
5767 rm -f conftest
$ac_exeext
5768 if { (ac_try
="$ac_link"
5770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5774 $as_echo "$ac_try_echo") >&5
5775 (eval "$ac_link") 2>&5
5777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5779 { (case "(($ac_try" in
5780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5781 *) ac_try_echo
=$ac_try;;
5783 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5784 $as_echo "$ac_try_echo") >&5
5785 (eval "$ac_try") 2>&5
5787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5791 $as_echo "$as_me: program exited with status $ac_status" >&5
5792 $as_echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.
$ac_ext >&5
5798 rm -rf conftest.dSYM
5799 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5806 { $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5807 $as_echo "$ac_cv_kthread" >&6; }
5810 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
5812 # -pthread, if available, provides the right #defines
5813 # and linker options to make pthread_create available
5814 # Some compilers won't report that they do not support -pthread,
5815 # so we need to run a program to see whether it really made the
5816 # function available.
5817 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5818 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
5819 if test "${ac_cv_thread+set}" = set; then
5820 $as_echo_n "(cached) " >&6
5824 if test "$cross_compiling" = yes; then
5827 cat >conftest.
$ac_ext <<_ACEOF
5830 cat confdefs.h
>>conftest.
$ac_ext
5831 cat >>conftest.
$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5834 #include <pthread.h>
5836 void* routine(void* p){return NULL;}
5840 if(pthread_create(&p,NULL,routine,NULL)!=0)
5842 (void)pthread_detach(p);
5847 rm -f conftest
$ac_exeext
5848 if { (ac_try
="$ac_link"
5850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5854 $as_echo "$ac_try_echo") >&5
5855 (eval "$ac_link") 2>&5
5857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5859 { (case "(($ac_try" in
5860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5861 *) ac_try_echo
=$ac_try;;
5863 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5864 $as_echo "$ac_try_echo") >&5
5865 (eval "$ac_try") 2>&5
5867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5871 $as_echo "$as_me: program exited with status $ac_status" >&5
5872 $as_echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.
$ac_ext >&5
5878 rm -rf conftest.dSYM
5879 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5886 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5887 $as_echo "$ac_cv_pthread" >&6; }
5890 # If we have set a CC compiler flag for thread support then
5891 # check if it works for CXX, too.
5895 { $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5896 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
5899 if test "$ac_cv_kpthread" = "yes"
5901 CXX
="$CXX -Kpthread"
5902 ac_cv_cxx_thread
=yes
5903 elif test "$ac_cv_kthread" = "yes"
5906 ac_cv_cxx_thread
=yes
5907 elif test "$ac_cv_pthread" = "yes"
5910 ac_cv_cxx_thread
=yes
5913 if test $ac_cv_cxx_thread = yes
5915 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
5916 $CXX -c conftest.
$ac_ext 2>&5
5917 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
5918 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
5920 ac_cv_cxx_thread
=yes
5926 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5927 $as_echo "$ac_cv_cxx_thread" >&6; }
5932 # checks for header files
5933 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5934 $as_echo_n "checking for ANSI C header files... " >&6; }
5935 if test "${ac_cv_header_stdc+set}" = set; then
5936 $as_echo_n "(cached) " >&6
5938 cat >conftest.
$ac_ext <<_ACEOF
5941 cat confdefs.h
>>conftest.
$ac_ext
5942 cat >>conftest.
$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5957 rm -f conftest.
$ac_objext
5958 if { (ac_try
="$ac_compile"
5960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5964 $as_echo "$ac_try_echo") >&5
5965 (eval "$ac_compile") 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && {
5972 test -z "$ac_c_werror_flag" ||
5973 test ! -s conftest.err
5974 } && test -s conftest.$ac_objext; then
5975 ac_cv_header_stdc=yes
5977 $as_echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 ac_cv_header_stdc=no
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 if test $ac_cv_header_stdc = yes; then
5986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5997 $EGREP "memchr" >/dev/null 2>&1; then
6000 ac_cv_header_stdc=no
6006 if test $ac_cv_header_stdc = yes; then
6007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "free" >/dev/null 2>&1; then
6021 ac_cv_header_stdc=no
6027 if test $ac_cv_header_stdc = yes; then
6028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6029 if test "$cross_compiling" = yes; then
6032 cat >conftest.$ac_ext <<_ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6040 #if ((' ' & 0x0FF) == 0x020)
6041 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6042 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6044 # define ISLOWER(c) \
6045 (('a' <= (c) && (c) <= 'i') \
6046 || ('j' <= (c) && (c) <= 'r') \
6047 || ('s' <= (c) && (c) <= 'z'))
6048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6056 for (i = 0; i < 256; i++)
6057 if (XOR (islower (i), ISLOWER (i))
6058 || toupper (i) != TOUPPER (i))
6063 rm -f conftest$ac_exeext
6064 if { (ac_try="$ac_link"
6066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6067 *) ac_try_echo
=$ac_try;;
6069 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071 (eval "$ac_link") 2>&5
6073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6075 { (case "(($ac_try" in
6076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6080 $as_echo "$ac_try_echo") >&5
6081 (eval "$ac_try") 2>&5
6083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6087 $as_echo "$as_me: program exited with status $ac_status" >&5
6088 $as_echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_header_stdc=no
6094 rm -rf conftest.dSYM
6095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6102 $as_echo "$ac_cv_header_stdc" >&6; }
6103 if test $ac_cv_header_stdc = yes; then
6105 cat >>confdefs.h <<\_ACEOF
6106 #define STDC_HEADERS 1
6165 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6167 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6168 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6170 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
6171 sys/lock.h sys/mkdev.h sys/modem.h \
6172 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6173 sys/termio.h sys/time.h \
6174 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6175 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6176 bluetooth/bluetooth.h linux/tipc.h
6178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6180 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6181 $as_echo_n "checking for $ac_header... " >&6; }
6182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6183 $as_echo_n "(cached) " >&6
6185 ac_res=`eval 'as_val=${'$as_ac_Header'}
6186 $as_echo "$as_val"'`
6187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6188 $as_echo "$ac_res" >&6; }
6190 # Is the header compilable?
6191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6192 $as_echo_n "checking $ac_header usability... " >&6; }
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 $ac_includes_default
6200 #include <$ac_header>
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6206 *) ac_try_echo
=$ac_try;;
6208 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6212 grep -v '^ *+' conftest.er1
>conftest.err
6214 cat conftest.err
>&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.
$ac_objext; then
6220 ac_header_compiler
=yes
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.
$ac_ext >&5
6225 ac_header_compiler
=no
6228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6230 $as_echo "$ac_header_compiler" >&6; }
6232 # Is the header present?
6233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6234 $as_echo_n "checking $ac_header presence... " >&6; }
6235 cat >conftest.
$ac_ext <<_ACEOF
6238 cat confdefs.h
>>conftest.
$ac_ext
6239 cat >>conftest.
$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #include <$ac_header>
6243 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6249 $as_echo "$ac_try_echo") >&5
6250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } >/dev/null && {
6257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6260 ac_header_preproc=yes
6262 $as_echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_header_preproc=no
6268 rm -f conftest.err conftest.$ac_ext
6269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6270 $as_echo "$ac_header_preproc" >&6; }
6272 # So? What about this header?
6273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6279 ac_header_preproc=yes
6282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6285 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6289 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6295 ## -------------------------------------- ##
6296 ## Report this to http://bugs.python.org/ ##
6297 ## -------------------------------------- ##
6299 ) | sed "s/^/$as_me: WARNING: /" >&2
6302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6303 $as_echo_n "checking for $ac_header... " >&6; }
6304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6305 $as_echo_n "(cached) " >&6
6307 eval "$as_ac_Header=\$ac_header_preproc"
6309 ac_res=`eval 'as_val=${'$as_ac_Header'}
6310 $as_echo "$as_val"'`
6311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6312 $as_echo "$ac_res" >&6; }
6315 as_val=`eval 'as_val=${'$as_ac_Header'}
6316 $as_echo "$as_val"'`
6317 if test "x$as_val" = x""yes; then
6318 cat >>confdefs.h <<_ACEOF
6319 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6332 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6333 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
6334 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6335 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6337 $as_echo_n "(cached) " >&6
6339 cat >conftest.$ac_ext <<_ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 #include <sys/types.h>
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6361 *) ac_try_echo
=$ac_try;;
6363 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6367 grep -v '^ *+' conftest.er1
>conftest.err
6369 cat conftest.err
>&5
6370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest.
$ac_objext; then
6375 eval "$as_ac_Header=yes"
6377 $as_echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.
$ac_ext >&5
6380 eval "$as_ac_Header=no"
6383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6385 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6386 $as_echo "$as_val"'`
6387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6389 as_val
=`eval 'as_val=${'$as_ac_Header'}
6390 $as_echo "$as_val"'`
6391 if test "x$as_val" = x
""yes; then
6392 cat >>confdefs.h
<<_ACEOF
6393 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6396 ac_header_dirent
=$ac_hdr; break
6400 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6401 if test $ac_header_dirent = dirent.h
; then
6402 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6403 $as_echo_n "checking for library containing opendir... " >&6; }
6404 if test "${ac_cv_search_opendir+set}" = set; then
6405 $as_echo_n "(cached) " >&6
6407 ac_func_search_save_LIBS
=$LIBS
6408 cat >conftest.
$ac_ext <<_ACEOF
6411 cat confdefs.h
>>conftest.
$ac_ext
6412 cat >>conftest.
$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6415 /* Override any GCC internal prototype to avoid an error.
6416 Use char because int might match the return type of a GCC
6417 builtin and then its argument prototype would still apply. */
6430 for ac_lib
in '' dir
; do
6431 if test -z "$ac_lib"; then
6432 ac_res
="none required"
6435 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6437 rm -f conftest.
$ac_objext conftest
$ac_exeext
6438 if { (ac_try
="$ac_link"
6440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6444 $as_echo "$ac_try_echo") >&5
6445 (eval "$ac_link") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext && {
6455 test "$cross_compiling" = yes ||
6456 $as_test_x conftest$ac_exeext
6458 ac_cv_search_opendir=$ac_res
6460 $as_echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6466 rm -rf conftest.dSYM
6467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6469 if test "${ac_cv_search_opendir+set}" = set; then
6473 if test "${ac_cv_search_opendir+set}" = set; then
6476 ac_cv_search_opendir=no
6479 LIBS=$ac_func_search_save_LIBS
6481 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6482 $as_echo "$ac_cv_search_opendir" >&6; }
6483 ac_res=$ac_cv_search_opendir
6484 if test "$ac_res" != no; then
6485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6490 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6491 $as_echo_n "checking for library containing opendir... " >&6; }
6492 if test "${ac_cv_search_opendir+set}" = set; then
6493 $as_echo_n "(cached) " >&6
6495 ac_func_search_save_LIBS=$LIBS
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6503 /* Override any GCC internal prototype to avoid an error.
6504 Use char because int might match the return type of a GCC
6505 builtin and then its argument prototype would still apply. */
6518 for ac_lib in '' x; do
6519 if test -z "$ac_lib"; then
6520 ac_res="none required"
6523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (ac_try="$ac_link"
6528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6529 *) ac_try_echo
=$ac_try;;
6531 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6532 $as_echo "$ac_try_echo") >&5
6533 (eval "$ac_link") 2>conftest.er1
6535 grep -v '^ *+' conftest.er1
>conftest.err
6537 cat conftest.err
>&5
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } && {
6540 test -z "$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 } && test -s conftest
$ac_exeext && {
6543 test "$cross_compiling" = yes ||
6544 $as_test_x conftest
$ac_exeext
6546 ac_cv_search_opendir
=$ac_res
6548 $as_echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.
$ac_ext >&5
6554 rm -rf conftest.dSYM
6555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6557 if test "${ac_cv_search_opendir+set}" = set; then
6561 if test "${ac_cv_search_opendir+set}" = set; then
6564 ac_cv_search_opendir
=no
6567 LIBS
=$ac_func_search_save_LIBS
6569 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6570 $as_echo "$ac_cv_search_opendir" >&6; }
6571 ac_res
=$ac_cv_search_opendir
6572 if test "$ac_res" != no
; then
6573 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6579 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6580 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6581 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6582 $as_echo_n "(cached) " >&6
6584 cat >conftest.
$ac_ext <<_ACEOF
6587 cat confdefs.h
>>conftest.
$ac_ext
6588 cat >>conftest.
$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <sys/types.h>
6594 return makedev(0, 0);
6599 rm -f conftest.
$ac_objext conftest
$ac_exeext
6600 if { (ac_try
="$ac_link"
6602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6606 $as_echo "$ac_try_echo") >&5
6607 (eval "$ac_link") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest$ac_exeext && {
6617 test "$cross_compiling" = yes ||
6618 $as_test_x conftest$ac_exeext
6620 ac_cv_header_sys_types_h_makedev=yes
6622 $as_echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_header_sys_types_h_makedev=no
6628 rm -rf conftest.dSYM
6629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6630 conftest$ac_exeext conftest.$ac_ext
6633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6634 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6636 if test $ac_cv_header_sys_types_h_makedev = no; then
6637 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6638 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6639 $as_echo_n "checking for sys/mkdev.h... " >&6; }
6640 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6641 $as_echo_n "(cached) " >&6
6643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6644 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
6646 # Is the header compilable?
6647 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6648 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
6649 cat >conftest.$ac_ext <<_ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 $ac_includes_default
6656 #include <sys/mkdev.h>
6658 rm -f conftest.$ac_objext
6659 if { (ac_try="$ac_compile"
6661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6662 *) ac_try_echo
=$ac_try;;
6664 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6665 $as_echo "$ac_try_echo") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6668 grep -v '^ *+' conftest.er1
>conftest.err
6670 cat conftest.err
>&5
6671 $as_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_header_compiler
=yes
6678 $as_echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.
$ac_ext >&5
6681 ac_header_compiler
=no
6684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6686 $as_echo "$ac_header_compiler" >&6; }
6688 # Is the header present?
6689 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6690 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
6691 cat >conftest.
$ac_ext <<_ACEOF
6694 cat confdefs.h
>>conftest.
$ac_ext
6695 cat >>conftest.
$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 #include <sys/mkdev.h>
6699 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null && {
6713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6716 ac_header_preproc=yes
6718 $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_header_preproc=no
6724 rm -f conftest.err conftest.$ac_ext
6725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6726 $as_echo "$ac_header_preproc" >&6; }
6728 # So? What about this header?
6729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6731 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6732 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6733 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6734 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6735 ac_header_preproc=yes
6738 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6739 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6740 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6741 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6742 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6743 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6744 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6745 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6746 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6747 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6748 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6749 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6751 ## -------------------------------------- ##
6752 ## Report this to http://bugs.python.org/ ##
6753 ## -------------------------------------- ##
6755 ) | sed "s/^/$as_me: WARNING: /" >&2
6758 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6759 $as_echo_n "checking for sys/mkdev.h... " >&6; }
6760 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6761 $as_echo_n "(cached) " >&6
6763 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6765 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6766 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
6769 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
6771 cat >>confdefs.h <<\_ACEOF
6772 #define MAJOR_IN_MKDEV 1
6779 if test $ac_cv_header_sys_mkdev_h = no; then
6780 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6781 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6782 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
6783 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6784 $as_echo_n "(cached) " >&6
6786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6787 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
6789 # Is the header compilable?
6790 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6791 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 $ac_includes_default
6799 #include <sys/sysmacros.h>
6801 rm -f conftest.$ac_objext
6802 if { (ac_try="$ac_compile"
6804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6805 *) ac_try_echo
=$ac_try;;
6807 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809 (eval "$ac_compile") 2>conftest.er1
6811 grep -v '^ *+' conftest.er1
>conftest.err
6813 cat conftest.err
>&5
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest.
$ac_objext; then
6819 ac_header_compiler
=yes
6821 $as_echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.
$ac_ext >&5
6824 ac_header_compiler
=no
6827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6829 $as_echo "$ac_header_compiler" >&6; }
6831 # Is the header present?
6832 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6833 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
6834 cat >conftest.
$ac_ext <<_ACEOF
6837 cat confdefs.h
>>conftest.
$ac_ext
6838 cat >>conftest.
$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 #include <sys/sysmacros.h>
6842 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6848 $as_echo "$ac_try_echo") >&5
6849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6851 grep -v '^ *+' conftest.er1 >conftest.err
6853 cat conftest.err >&5
6854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } >/dev/null && {
6856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6857 test ! -s conftest.err
6859 ac_header_preproc=yes
6861 $as_echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6864 ac_header_preproc=no
6867 rm -f conftest.err conftest.$ac_ext
6868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6869 $as_echo "$ac_header_preproc" >&6; }
6871 # So? What about this header?
6872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6874 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6875 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6876 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6877 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6878 ac_header_preproc=yes
6881 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6882 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6883 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6884 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6885 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6886 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6887 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6888 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6889 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6890 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6891 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6892 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6894 ## -------------------------------------- ##
6895 ## Report this to http://bugs.python.org/ ##
6896 ## -------------------------------------- ##
6898 ) | sed "s/^/$as_me: WARNING: /" >&2
6901 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6902 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
6903 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6904 $as_echo_n "(cached) " >&6
6906 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6908 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6909 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
6912 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
6914 cat >>confdefs.h <<\_ACEOF
6915 #define MAJOR_IN_SYSMACROS 1
6925 # On Solaris, term.h requires curses.h
6927 for ac_header in term.h
6929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6931 $as_echo_n "checking for $ac_header... " >&6; }
6932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6933 $as_echo_n "(cached) " >&6
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6942 #ifdef HAVE_CURSES_H
6947 #include <$ac_header>
6949 rm -f conftest.$ac_objext
6950 if { (ac_try="$ac_compile"
6952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6953 *) ac_try_echo
=$ac_try;;
6955 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6959 grep -v '^ *+' conftest.er1
>conftest.err
6961 cat conftest.err
>&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest.
$ac_objext; then
6967 eval "$as_ac_Header=yes"
6969 $as_echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.
$ac_ext >&5
6972 eval "$as_ac_Header=no"
6975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6977 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6978 $as_echo "$as_val"'`
6979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6980 $as_echo "$ac_res" >&6; }
6981 as_val
=`eval 'as_val=${'$as_ac_Header'}
6982 $as_echo "$as_val"'`
6983 if test "x$as_val" = x
""yes; then
6984 cat >>confdefs.h
<<_ACEOF
6985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6993 # On Linux, netlink.h requires asm/types.h
6995 for ac_header
in linux
/netlink.h
6997 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6999 $as_echo_n "checking for $ac_header... " >&6; }
7000 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7001 $as_echo_n "(cached) " >&6
7003 cat >conftest.
$ac_ext <<_ACEOF
7006 cat confdefs.h
>>conftest.
$ac_ext
7007 cat >>conftest.
$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7010 #ifdef HAVE_ASM_TYPES_H
7011 #include <asm/types.h>
7013 #ifdef HAVE_SYS_SOCKET_H
7014 #include <sys/socket.h>
7018 #include <$ac_header>
7020 rm -f conftest.
$ac_objext
7021 if { (ac_try
="$ac_compile"
7023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7027 $as_echo "$ac_try_echo") >&5
7028 (eval "$ac_compile") 2>conftest.er1
7030 grep -v '^ *+' conftest.er1 >conftest.err
7032 cat conftest.err >&5
7033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } && {
7035 test -z "$ac_c_werror_flag" ||
7036 test ! -s conftest.err
7037 } && test -s conftest.$ac_objext; then
7038 eval "$as_ac_Header=yes"
7040 $as_echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7043 eval "$as_ac_Header=no"
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 ac_res=`eval 'as_val=${'$as_ac_Header'}
7049 $as_echo "$as_val"'`
7050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7051 $as_echo "$ac_res" >&6; }
7052 as_val=`eval 'as_val=${'$as_ac_Header'}
7053 $as_echo "$as_val"'`
7054 if test "x$as_val" = x""yes; then
7055 cat >>confdefs.h <<_ACEOF
7056 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7064 # checks for typedefs
7066 { $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
7067 $as_echo_n "checking for clock_t in time.h... " >&6; }
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 $EGREP "clock_t" >/dev/null 2>&1; then
7083 cat >>confdefs.h <<\_ACEOF
7084 #define clock_t long
7091 { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
7092 $as_echo "$was_it_defined" >&6; }
7094 # Check whether using makedev requires defining _OSF_SOURCE
7095 { $as_echo "$as_me:$LINENO: checking for makedev" >&5
7096 $as_echo_n "checking for makedev... " >&6; }
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #include <sys/types.h>
7112 rm -f conftest.$ac_objext conftest$ac_exeext
7113 if { (ac_try="$ac_link"
7115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7116 *) ac_try_echo
=$ac_try;;
7118 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7119 $as_echo "$ac_try_echo") >&5
7120 (eval "$ac_link") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1
>conftest.err
7124 cat conftest.err
>&5
7125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest
$ac_exeext && {
7130 test "$cross_compiling" = yes ||
7131 $as_test_x conftest
$ac_exeext
7133 ac_cv_has_makedev
=yes
7135 $as_echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.
$ac_ext >&5
7138 ac_cv_has_makedev
=no
7141 rm -rf conftest.dSYM
7142 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7143 conftest
$ac_exeext conftest.
$ac_ext
7144 if test "$ac_cv_has_makedev" = "no"; then
7145 # we didn't link, try if _OSF_SOURCE will allow us to link
7146 cat >conftest.
$ac_ext <<_ACEOF
7149 cat confdefs.h
>>conftest.
$ac_ext
7150 cat >>conftest.
$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7153 #define _OSF_SOURCE 1
7154 #include <sys/types.h>
7164 rm -f conftest.
$ac_objext conftest
$ac_exeext
7165 if { (ac_try
="$ac_link"
7167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172 (eval "$ac_link") 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest$ac_exeext && {
7182 test "$cross_compiling" = yes ||
7183 $as_test_x conftest$ac_exeext
7185 ac_cv_has_makedev=yes
7187 $as_echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 ac_cv_has_makedev=no
7193 rm -rf conftest.dSYM
7194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7195 conftest$ac_exeext conftest.$ac_ext
7196 if test "$ac_cv_has_makedev" = "yes"; then
7198 cat >>confdefs.h <<\_ACEOF
7199 #define _OSF_SOURCE 1
7204 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
7205 $as_echo "$ac_cv_has_makedev" >&6; }
7206 if test "$ac_cv_has_makedev" = "yes"; then
7208 cat >>confdefs.h <<\_ACEOF
7209 #define HAVE_MAKEDEV 1
7214 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7215 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7216 # defined, but the compiler does not support pragma redefine_extname,
7217 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7218 # structures (such as rlimit64) without declaring them. As a
7219 # work-around, disable LFS on such configurations
7222 { $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
7223 $as_echo_n "checking Solaris LFS bug... " >&6; }
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7231 #define _LARGEFILE_SOURCE 1
7232 #define _FILE_OFFSET_BITS 64
7233 #include <sys/resource.h>
7243 rm -f conftest.$ac_objext
7244 if { (ac_try="$ac_compile"
7246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7247 *) ac_try_echo
=$ac_try;;
7249 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7250 $as_echo "$ac_try_echo") >&5
7251 (eval "$ac_compile") 2>conftest.er1
7253 grep -v '^ *+' conftest.er1
>conftest.err
7255 cat conftest.err
>&5
7256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest.
$ac_objext; then
7263 $as_echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.
$ac_ext >&5
7269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7270 { $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
7271 $as_echo "$sol_lfs_bug" >&6; }
7272 if test "$sol_lfs_bug" = "yes"; then
7276 if test "$use_lfs" = "yes"; then
7277 # Two defines needed to enable largefile support on various platforms
7278 # These may affect some typedefs
7280 cat >>confdefs.h
<<\_ACEOF
7281 #define _LARGEFILE_SOURCE 1
7285 cat >>confdefs.h
<<\_ACEOF
7286 #define _FILE_OFFSET_BITS 64
7291 # Add some code to confdefs.h so that the test for off_t works on SCO
7292 cat >> confdefs.h
<<\EOF
7298 # Type availability checks
7299 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7300 $as_echo_n "checking for mode_t... " >&6; }
7301 if test "${ac_cv_type_mode_t+set}" = set; then
7302 $as_echo_n "(cached) " >&6
7304 ac_cv_type_mode_t
=no
7305 cat >conftest.
$ac_ext <<_ACEOF
7308 cat confdefs.h
>>conftest.
$ac_ext
7309 cat >>conftest.
$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7315 if (sizeof (mode_t))
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7328 $as_echo "$ac_try_echo") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7331 grep -v '^ *+' conftest.er1 >conftest.err
7333 cat conftest.err >&5
7334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7349 if (sizeof ((mode_t)))
7355 rm -f conftest.$ac_objext
7356 if { (ac_try="$ac_compile"
7358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7359 *) ac_try_echo
=$ac_try;;
7361 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7362 $as_echo "$ac_try_echo") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7365 grep -v '^ *+' conftest.er1
>conftest.err
7367 cat conftest.err
>&5
7368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.
$ac_objext; then
7375 $as_echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.
$ac_ext >&5
7378 ac_cv_type_mode_t
=yes
7381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7383 $as_echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.
$ac_ext >&5
7389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7392 $as_echo "$ac_cv_type_mode_t" >&6; }
7393 if test "x$ac_cv_type_mode_t" = x
""yes; then
7397 cat >>confdefs.h
<<_ACEOF
7403 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7404 $as_echo_n "checking for off_t... " >&6; }
7405 if test "${ac_cv_type_off_t+set}" = set; then
7406 $as_echo_n "(cached) " >&6
7409 cat >conftest.
$ac_ext <<_ACEOF
7412 cat confdefs.h
>>conftest.
$ac_ext
7413 cat >>conftest.
$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7425 rm -f conftest.
$ac_objext
7426 if { (ac_try
="$ac_compile"
7428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
7443 cat >conftest.$ac_ext <<_ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 $ac_includes_default
7453 if (sizeof ((off_t)))
7459 rm -f conftest.$ac_objext
7460 if { (ac_try="$ac_compile"
7462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7463 *) ac_try_echo
=$ac_try;;
7465 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7466 $as_echo "$ac_try_echo") >&5
7467 (eval "$ac_compile") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1
>conftest.err
7471 cat conftest.err
>&5
7472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest.
$ac_objext; then
7479 $as_echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.
$ac_ext >&5
7482 ac_cv_type_off_t
=yes
7485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7487 $as_echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.
$ac_ext >&5
7493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7495 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7496 $as_echo "$ac_cv_type_off_t" >&6; }
7497 if test "x$ac_cv_type_off_t" = x
""yes; then
7501 cat >>confdefs.h
<<_ACEOF
7502 #define off_t long int
7507 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7508 $as_echo_n "checking for pid_t... " >&6; }
7509 if test "${ac_cv_type_pid_t+set}" = set; then
7510 $as_echo_n "(cached) " >&6
7513 cat >conftest.
$ac_ext <<_ACEOF
7516 cat confdefs.h
>>conftest.
$ac_ext
7517 cat >>conftest.
$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7529 rm -f conftest.
$ac_objext
7530 if { (ac_try
="$ac_compile"
7532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7536 $as_echo "$ac_try_echo") >&5
7537 (eval "$ac_compile") 2>conftest.er1
7539 grep -v '^ *+' conftest.er1 >conftest.err
7541 cat conftest.err >&5
7542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && {
7544 test -z "$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 } && test -s conftest.$ac_objext; then
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 $ac_includes_default
7557 if (sizeof ((pid_t)))
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7567 *) ac_try_echo
=$ac_try;;
7569 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7570 $as_echo "$ac_try_echo") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7573 grep -v '^ *+' conftest.er1
>conftest.err
7575 cat conftest.err
>&5
7576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.
$ac_objext; then
7583 $as_echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.
$ac_ext >&5
7586 ac_cv_type_pid_t
=yes
7589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7591 $as_echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.
$ac_ext >&5
7597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7600 $as_echo "$ac_cv_type_pid_t" >&6; }
7601 if test "x$ac_cv_type_pid_t" = x
""yes; then
7605 cat >>confdefs.h
<<_ACEOF
7611 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7612 $as_echo_n "checking return type of signal handlers... " >&6; }
7613 if test "${ac_cv_type_signal+set}" = set; then
7614 $as_echo_n "(cached) " >&6
7616 cat >conftest.
$ac_ext <<_ACEOF
7619 cat confdefs.h
>>conftest.
$ac_ext
7620 cat >>conftest.
$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7628 return *(signal (0, 0)) (0) == 1;
7633 rm -f conftest.
$ac_objext
7634 if { (ac_try
="$ac_compile"
7636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641 (eval "$ac_compile") 2>conftest.er1
7643 grep -v '^ *+' conftest.er1 >conftest.err
7645 cat conftest.err >&5
7646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
7651 ac_cv_type_signal=int
7653 $as_echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_cv_type_signal=void
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7662 $as_echo "$ac_cv_type_signal" >&6; }
7664 cat >>confdefs.h <<_ACEOF
7665 #define RETSIGTYPE $ac_cv_type_signal
7669 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7670 $as_echo_n "checking for size_t... " >&6; }
7671 if test "${ac_cv_type_size_t+set}" = set; then
7672 $as_echo_n "(cached) " >&6
7674 ac_cv_type_size_t=no
7675 cat >conftest.$ac_ext <<_ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7681 $ac_includes_default
7685 if (sizeof (size_t))
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7695 *) ac_try_echo
=$ac_try;;
7697 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7701 grep -v '^ *+' conftest.er1
>conftest.err
7703 cat conftest.err
>&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.
$ac_objext; then
7709 cat >conftest.
$ac_ext <<_ACEOF
7712 cat confdefs.h
>>conftest.
$ac_ext
7713 cat >>conftest.
$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 $ac_includes_default
7719 if (sizeof ((size_t)))
7725 rm -f conftest.
$ac_objext
7726 if { (ac_try
="$ac_compile"
7728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732 $as_echo "$ac_try_echo") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 $as_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 $as_echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 ac_cv_type_size_t=yes
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 $as_echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7762 $as_echo "$ac_cv_type_size_t" >&6; }
7763 if test "x$ac_cv_type_size_t" = x""yes; then
7767 cat >>confdefs.h <<_ACEOF
7768 #define size_t unsigned int
7773 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7774 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7775 if test "${ac_cv_type_uid_t+set}" = set; then
7776 $as_echo_n "(cached) " >&6
7778 cat >conftest.$ac_ext <<_ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <sys/types.h>
7787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7788 $EGREP "uid_t" >/dev/null 2>&1; then
7789 ac_cv_type_uid_t=yes
7796 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7797 $as_echo "$ac_cv_type_uid_t" >&6; }
7798 if test $ac_cv_type_uid_t = no; then
7800 cat >>confdefs.h <<\_ACEOF
7805 cat >>confdefs.h <<\_ACEOF
7812 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7813 $as_echo_n "checking for uint32_t... " >&6; }
7814 if test "${ac_cv_c_uint32_t+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7818 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7819 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7820 cat >conftest.$ac_ext <<_ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 $ac_includes_default
7830 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7837 rm -f conftest.$ac_objext
7838 if { (ac_try="$ac_compile"
7840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7841 *) ac_try_echo
=$ac_try;;
7843 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7844 $as_echo "$ac_try_echo") >&5
7845 (eval "$ac_compile") 2>conftest.er1
7847 grep -v '^ *+' conftest.er1
>conftest.err
7849 cat conftest.err
>&5
7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest.
$ac_objext; then
7856 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7857 *) ac_cv_c_uint32_t
=$ac_type ;;
7861 $as_echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.
$ac_ext >&5
7867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7868 test "$ac_cv_c_uint32_t" != no
&& break
7871 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7872 $as_echo "$ac_cv_c_uint32_t" >&6; }
7873 case $ac_cv_c_uint32_t in #(
7877 cat >>confdefs.h
<<\_ACEOF
7882 cat >>confdefs.h
<<_ACEOF
7883 #define uint32_t $ac_cv_c_uint32_t
7889 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7890 $as_echo_n "checking for uint64_t... " >&6; }
7891 if test "${ac_cv_c_uint64_t+set}" = set; then
7892 $as_echo_n "(cached) " >&6
7895 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7896 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7897 cat >conftest.
$ac_ext <<_ACEOF
7900 cat confdefs.h
>>conftest.
$ac_ext
7901 cat >>conftest.
$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 $ac_includes_default
7907 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7914 rm -f conftest.
$ac_objext
7915 if { (ac_try
="$ac_compile"
7917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7921 $as_echo "$ac_try_echo") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7933 uint64_t) ac_cv_c_uint64_t=yes ;;
7934 *) ac_cv_c_uint64_t=$ac_type ;;
7938 $as_echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 test "$ac_cv_c_uint64_t" != no && break
7948 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7949 $as_echo "$ac_cv_c_uint64_t" >&6; }
7950 case $ac_cv_c_uint64_t in #(
7954 cat >>confdefs.h <<\_ACEOF
7959 cat >>confdefs.h <<_ACEOF
7960 #define uint64_t $ac_cv_c_uint64_t
7966 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7967 $as_echo_n "checking for int32_t... " >&6; }
7968 if test "${ac_cv_c_int32_t+set}" = set; then
7969 $as_echo_n "(cached) " >&6
7972 for ac_type in 'int32_t' 'int' 'long int' \
7973 'long long int' 'short int' 'signed char'; do
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7984 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7991 rm -f conftest.$ac_objext
7992 if { (ac_try="$ac_compile"
7994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7995 *) ac_try_echo
=$ac_try;;
7997 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7998 $as_echo "$ac_try_echo") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1
>conftest.err
8003 cat conftest.err
>&5
8004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.
$ac_objext; then
8009 cat >conftest.
$ac_ext <<_ACEOF
8012 cat confdefs.h
>>conftest.
$ac_ext
8013 cat >>conftest.
$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 $ac_includes_default
8019 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8020 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8027 rm -f conftest.
$ac_objext
8028 if { (ac_try
="$ac_compile"
8030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8034 $as_echo "$ac_try_echo") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8047 $as_echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8051 int32_t) ac_cv_c_int32_t=yes ;;
8052 *) ac_cv_c_int32_t=$ac_type ;;
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 test "$ac_cv_c_int32_t" != no && break
8069 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8070 $as_echo "$ac_cv_c_int32_t" >&6; }
8071 case $ac_cv_c_int32_t in #(
8075 cat >>confdefs.h <<_ACEOF
8076 #define int32_t $ac_cv_c_int32_t
8082 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
8083 $as_echo_n "checking for int64_t... " >&6; }
8084 if test "${ac_cv_c_int64_t+set}" = set; then
8085 $as_echo_n "(cached) " >&6
8088 for ac_type in 'int64_t' 'int' 'long int' \
8089 'long long int' 'short int' 'signed char'; do
8090 cat >conftest.$ac_ext <<_ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 $ac_includes_default
8100 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8111 *) ac_try_echo
=$ac_try;;
8113 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8114 $as_echo "$ac_try_echo") >&5
8115 (eval "$ac_compile") 2>conftest.er1
8117 grep -v '^ *+' conftest.er1
>conftest.err
8119 cat conftest.err
>&5
8120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest.
$ac_objext; then
8125 cat >conftest.
$ac_ext <<_ACEOF
8128 cat confdefs.h
>>conftest.
$ac_ext
8129 cat >>conftest.
$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8135 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
8136 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
8143 rm -f conftest.
$ac_objext
8144 if { (ac_try
="$ac_compile"
8146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8150 $as_echo "$ac_try_echo") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8163 $as_echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8167 int64_t) ac_cv_c_int64_t=yes ;;
8168 *) ac_cv_c_int64_t=$ac_type ;;
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 test "$ac_cv_c_int64_t" != no && break
8185 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
8186 $as_echo "$ac_cv_c_int64_t" >&6; }
8187 case $ac_cv_c_int64_t in #(
8191 cat >>confdefs.h <<_ACEOF
8192 #define int64_t $ac_cv_c_int64_t
8197 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8198 $as_echo_n "checking for ssize_t... " >&6; }
8199 if test "${ac_cv_type_ssize_t+set}" = set; then
8200 $as_echo_n "(cached) " >&6
8202 ac_cv_type_ssize_t=no
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8213 if (sizeof (ssize_t))
8219 rm -f conftest.$ac_objext
8220 if { (ac_try="$ac_compile"
8222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8223 *) ac_try_echo
=$ac_try;;
8225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8226 $as_echo "$ac_try_echo") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8229 grep -v '^ *+' conftest.er1
>conftest.err
8231 cat conftest.err
>&5
8232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.
$ac_objext; then
8237 cat >conftest.
$ac_ext <<_ACEOF
8240 cat confdefs.h
>>conftest.
$ac_ext
8241 cat >>conftest.
$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8247 if (sizeof ((ssize_t)))
8253 rm -f conftest.
$ac_objext
8254 if { (ac_try
="$ac_compile"
8256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8260 $as_echo "$ac_try_echo") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8263 grep -v '^ *+' conftest.er1 >conftest.err
8265 cat conftest.err >&5
8266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest.$ac_objext; then
8273 $as_echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_type_ssize_t=yes
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 $as_echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8290 $as_echo "$ac_cv_type_ssize_t" >&6; }
8291 if test "x$ac_cv_type_ssize_t" = x""yes; then
8293 cat >>confdefs.h <<\_ACEOF
8294 #define HAVE_SSIZE_T 1
8300 # Sizes of various common basic types
8301 # ANSI C requires sizeof(char) == 1, so no need to check it
8302 # The cast to long int works around a bug in the HP C Compiler
8303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8304 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
8305 # This bug is HP SR number 8606223364.
8306 { $as_echo "$as_me:$LINENO: checking size of int" >&5
8307 $as_echo_n "checking size of int... " >&6; }
8308 if test "${ac_cv_sizeof_int+set}" = set; then
8309 $as_echo_n "(cached) " >&6
8311 if test "$cross_compiling" = yes; then
8312 # Depending upon the size, compute the lo and hi bounds.
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 $ac_includes_default
8323 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8340 grep -v '^
*+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.$ac_objext; then
8350 cat >conftest.$ac_ext <<_ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 $ac_includes_default
8360 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8377 grep -v '^
*+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 ac_hi=$ac_mid; break
8387 $as_echo "$as_me: failed program was:" >&5
8388 sed 's
/^
/|
/' conftest.$ac_ext >&5
8390 ac_lo=`expr $ac_mid + 1`
8391 if test $ac_lo -le $ac_mid; then
8395 ac_mid=`expr 2 '*' $ac_mid + 1`
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 $as_echo "$as_me: failed program was:" >&5
8402 sed 's
/^
/|
/' conftest.$ac_ext >&5
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 $ac_includes_default
8414 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8428 $as_echo "$ac_try_echo") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8431 grep -v '^
*+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.$ac_objext; then
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 $ac_includes_default
8451 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8465 $as_echo "$ac_try_echo") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8468 grep -v '^
*+' conftest.er1 >conftest.err
8470 cat conftest.err >&5
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.$ac_objext; then
8476 ac_lo=$ac_mid; break
8478 $as_echo "$as_me: failed program was:" >&5
8479 sed 's
/^
/|
/' conftest.$ac_ext >&5
8481 ac_hi=`expr '(' $ac_mid ')' - 1`
8482 if test $ac_mid -le $ac_hi; then
8486 ac_mid=`expr 2 '*' $ac_mid`
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 $as_echo "$as_me: failed program was:" >&5
8493 sed 's
/^
/|
/' conftest.$ac_ext >&5
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 # Binary search between lo and hi bounds.
8503 while test "x$ac_lo" != "x$ac_hi"; do
8504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8505 cat >conftest.$ac_ext <<_ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8515 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8529 $as_echo "$ac_try_echo") >&5
8530 (eval "$ac_compile") 2>conftest.er1
8532 grep -v '^
*+' conftest.er1 >conftest.err
8534 cat conftest.err >&5
8535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest.$ac_objext; then
8542 $as_echo "$as_me: failed program was:" >&5
8543 sed 's
/^
/|
/' conftest.$ac_ext >&5
8545 ac_lo=`expr '(' $ac_mid ')' + 1`
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 ?*) ac_cv_sizeof_int=$ac_lo;;
8552 '') if test "$ac_cv_type_int" = yes; then
8553 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8554 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
8555 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8556 See \`config.log
' for more details." >&5
8557 $as_echo "$as_me: error: cannot compute sizeof (int)
8558 See \`config.log' for more details.
" >&2;}
8559 { (exit 77); exit 77; }; }; }
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 static long int longval () { return (long int) (sizeof (int)); }
8573 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
8580 FILE *f = fopen ("conftest.val
", "w
");
8583 if (((long int) (sizeof (int))) < 0)
8585 long int i = longval ();
8586 if (i != ((long int) (sizeof (int))))
8588 fprintf (f, "%ld
", i);
8592 unsigned long int i = ulongval ();
8593 if (i != ((long int) (sizeof (int))))
8595 fprintf (f, "%lu
", i);
8597 /* Do not output a trailing newline, as this causes \r\n confusion
8598 on some platforms. */
8599 return ferror (f) || fclose (f) != 0;
8605 rm -f conftest$ac_exeext
8606 if { (ac_try="$ac_link"
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8611 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8612 $as_echo "$ac_try_echo") >&5
8613 (eval "$ac_link") 2>&5
8615 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8622 $as_echo "$ac_try_echo") >&5
8623 (eval "$ac_try") 2>&5
8625 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_sizeof_int=`cat conftest.val`
8629 $as_echo "$as_me: program exited with status
$ac_status" >&5
8630 $as_echo "$as_me: failed program was
:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8634 if test "$ac_cv_type_int" = yes; then
8635 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
8636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8637 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8638 See \`config.log' for more details.
" >&5
8639 $as_echo "$as_me: error
: cannot compute sizeof
(int
)
8640 See \
`config.log' for more details." >&2;}
8641 { (exit 77); exit 77; }; }; }
8646 rm -rf conftest.dSYM
8647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8651 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8652 $as_echo "$ac_cv_sizeof_int" >&6; }
8656 cat >>confdefs.h <<_ACEOF
8657 #define SIZEOF_INT $ac_cv_sizeof_int
8661 # The cast to long int works around a bug in the HP C Compiler
8662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8663 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
8664 # This bug is HP SR number 8606223364.
8665 { $as_echo "$as_me:$LINENO: checking size of long" >&5
8666 $as_echo_n "checking size of long... " >&6; }
8667 if test "${ac_cv_sizeof_long+set}" = set; then
8668 $as_echo_n "(cached) " >&6
8670 if test "$cross_compiling" = yes; then
8671 # Depending upon the size, compute the lo and hi bounds.
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8682 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8696 $as_echo "$ac_try_echo") >&5
8697 (eval "$ac_compile") 2>conftest.er1
8699 grep -v '^
*+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 $as_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
8709 cat >conftest.$ac_ext <<_ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 $ac_includes_default
8719 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
8726 rm -f conftest.$ac_objext
8727 if { (ac_try="$ac_compile"
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8733 $as_echo "$ac_try_echo") >&5
8734 (eval "$ac_compile") 2>conftest.er1
8736 grep -v '^
*+' conftest.er1 >conftest.err
8738 cat conftest.err >&5
8739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && {
8741 test -z "$ac_c_werror_flag" ||
8742 test ! -s conftest.err
8743 } && test -s conftest.$ac_objext; then
8744 ac_hi=$ac_mid; break
8746 $as_echo "$as_me: failed program was:" >&5
8747 sed 's
/^
/|
/' conftest.$ac_ext >&5
8749 ac_lo=`expr $ac_mid + 1`
8750 if test $ac_lo -le $ac_mid; then
8754 ac_mid=`expr 2 '*' $ac_mid + 1`
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 $as_echo "$as_me: failed program was:" >&5
8761 sed 's
/^
/|
/' conftest.$ac_ext >&5
8763 cat >conftest.$ac_ext <<_ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 $ac_includes_default
8773 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
8780 rm -f conftest.$ac_objext
8781 if { (ac_try="$ac_compile"
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8787 $as_echo "$ac_try_echo") >&5
8788 (eval "$ac_compile") 2>conftest.er1
8790 grep -v '^
*+' conftest.er1 >conftest.err
8792 cat conftest.err >&5
8793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_c_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest.$ac_objext; then
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8810 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
8817 rm -f conftest.$ac_objext
8818 if { (ac_try="$ac_compile"
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8824 $as_echo "$ac_try_echo") >&5
8825 (eval "$ac_compile") 2>conftest.er1
8827 grep -v '^
*+' conftest.er1 >conftest.err
8829 cat conftest.err >&5
8830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest.$ac_objext; then
8835 ac_lo=$ac_mid; break
8837 $as_echo "$as_me: failed program was:" >&5
8838 sed 's
/^
/|
/' conftest.$ac_ext >&5
8840 ac_hi=`expr '(' $ac_mid ')' - 1`
8841 if test $ac_mid -le $ac_hi; then
8845 ac_mid=`expr 2 '*' $ac_mid`
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 $as_echo "$as_me: failed program was:" >&5
8852 sed 's
/^
/|
/' conftest.$ac_ext >&5
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 # Binary search between lo and hi bounds.
8862 while test "x$ac_lo" != "x$ac_hi"; do
8863 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 $ac_includes_default
8874 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
8881 rm -f conftest.$ac_objext
8882 if { (ac_try="$ac_compile"
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8888 $as_echo "$ac_try_echo") >&5
8889 (eval "$ac_compile") 2>conftest.er1
8891 grep -v '^
*+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } && {
8896 test -z "$ac_c_werror_flag" ||
8897 test ! -s conftest.err
8898 } && test -s conftest.$ac_objext; then
8901 $as_echo "$as_me: failed program was:" >&5
8902 sed 's
/^
/|
/' conftest.$ac_ext >&5
8904 ac_lo=`expr '(' $ac_mid ')' + 1`
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 ?*) ac_cv_sizeof_long=$ac_lo;;
8911 '') if test "$ac_cv_type_long" = yes; then
8912 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8913 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
8914 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8915 See \`config.log
' for more details." >&5
8916 $as_echo "$as_me: error: cannot compute sizeof (long)
8917 See \`config.log' for more details.
" >&2;}
8918 { (exit 77); exit 77; }; }; }
8924 cat >conftest.$ac_ext <<_ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 $ac_includes_default
8931 static long int longval () { return (long int) (sizeof (long)); }
8932 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
8939 FILE *f = fopen ("conftest.val
", "w
");
8942 if (((long int) (sizeof (long))) < 0)
8944 long int i = longval ();
8945 if (i != ((long int) (sizeof (long))))
8947 fprintf (f, "%ld
", i);
8951 unsigned long int i = ulongval ();
8952 if (i != ((long int) (sizeof (long))))
8954 fprintf (f, "%lu
", i);
8956 /* Do not output a trailing newline, as this causes \r\n confusion
8957 on some platforms. */
8958 return ferror (f) || fclose (f) != 0;
8964 rm -f conftest$ac_exeext
8965 if { (ac_try="$ac_link"
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8971 $as_echo "$ac_try_echo") >&5
8972 (eval "$ac_link") 2>&5
8974 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8976 { (case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982 (eval "$ac_try") 2>&5
8984 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_cv_sizeof_long=`cat conftest.val`
8988 $as_echo "$as_me: program exited with status
$ac_status" >&5
8989 $as_echo "$as_me: failed program was
:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8993 if test "$ac_cv_type_long" = yes; then
8994 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
8995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8996 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8997 See \`config.log' for more details.
" >&5
8998 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
8999 See \
`config.log' for more details." >&2;}
9000 { (exit 77); exit 77; }; }; }
9005 rm -rf conftest.dSYM
9006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9010 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9011 $as_echo "$ac_cv_sizeof_long" >&6; }
9015 cat >>confdefs.h <<_ACEOF
9016 #define SIZEOF_LONG $ac_cv_sizeof_long
9020 # The cast to long int works around a bug in the HP C Compiler
9021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9022 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
9023 # This bug is HP SR number 8606223364.
9024 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
9025 $as_echo_n "checking size of void *... " >&6; }
9026 if test "${ac_cv_sizeof_void_p+set}" = set; then
9027 $as_echo_n "(cached) " >&6
9029 if test "$cross_compiling" = yes; then
9030 # Depending upon the size, compute the lo and hi bounds.
9031 cat >conftest.$ac_ext <<_ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 $ac_includes_default
9041 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
9048 rm -f conftest.$ac_objext
9049 if { (ac_try="$ac_compile"
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056 (eval "$ac_compile") 2>conftest.er1
9058 grep -v '^
*+' conftest.er1 >conftest.err
9060 cat conftest.err >&5
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 } && test -s conftest.$ac_objext; then
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 $ac_includes_default
9078 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9092 $as_echo "$ac_try_echo") >&5
9093 (eval "$ac_compile") 2>conftest.er1
9095 grep -v '^
*+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && {
9100 test -z "$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 } && test -s conftest.$ac_objext; then
9103 ac_hi=$ac_mid; break
9105 $as_echo "$as_me: failed program was:" >&5
9106 sed 's
/^
/|
/' conftest.$ac_ext >&5
9108 ac_lo=`expr $ac_mid + 1`
9109 if test $ac_lo -le $ac_mid; then
9113 ac_mid=`expr 2 '*' $ac_mid + 1`
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 $as_echo "$as_me: failed program was:" >&5
9120 sed 's
/^
/|
/' conftest.$ac_ext >&5
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 $ac_includes_default
9132 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
9139 rm -f conftest.$ac_objext
9140 if { (ac_try="$ac_compile"
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9146 $as_echo "$ac_try_echo") >&5
9147 (eval "$ac_compile") 2>conftest.er1
9149 grep -v '^
*+' conftest.er1 >conftest.err
9151 cat conftest.err >&5
9152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } && {
9154 test -z "$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9156 } && test -s conftest.$ac_objext; then
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9169 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
9176 rm -f conftest.$ac_objext
9177 if { (ac_try="$ac_compile"
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9183 $as_echo "$ac_try_echo") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^
*+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest.$ac_objext; then
9194 ac_lo=$ac_mid; break
9196 $as_echo "$as_me: failed program was:" >&5
9197 sed 's
/^
/|
/' conftest.$ac_ext >&5
9199 ac_hi=`expr '(' $ac_mid ')' - 1`
9200 if test $ac_mid -le $ac_hi; then
9204 ac_mid=`expr 2 '*' $ac_mid`
9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210 $as_echo "$as_me: failed program was:" >&5
9211 sed 's
/^
/|
/' conftest.$ac_ext >&5
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220 # Binary search between lo and hi bounds.
9221 while test "x$ac_lo" != "x$ac_hi"; do
9222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9233 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247 $as_echo "$ac_try_echo") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9250 grep -v '^
*+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9260 $as_echo "$as_me: failed program was:" >&5
9261 sed 's
/^
/|
/' conftest.$ac_ext >&5
9263 ac_lo=`expr '(' $ac_mid ')' + 1`
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 ?*) ac_cv_sizeof_void_p=$ac_lo;;
9270 '') if test "$ac_cv_type_void_p" = yes; then
9271 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9272 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
9273 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
9274 See \`config.log
' for more details." >&5
9275 $as_echo "$as_me: error: cannot compute sizeof (void *)
9276 See \`config.log' for more details.
" >&2;}
9277 { (exit 77); exit 77; }; }; }
9279 ac_cv_sizeof_void_p=0
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289 $ac_includes_default
9290 static long int longval () { return (long int) (sizeof (void *)); }
9291 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
9298 FILE *f = fopen ("conftest.val
", "w
");
9301 if (((long int) (sizeof (void *))) < 0)
9303 long int i = longval ();
9304 if (i != ((long int) (sizeof (void *))))
9306 fprintf (f, "%ld
", i);
9310 unsigned long int i = ulongval ();
9311 if (i != ((long int) (sizeof (void *))))
9313 fprintf (f, "%lu
", i);
9315 /* Do not output a trailing newline, as this causes \r\n confusion
9316 on some platforms. */
9317 return ferror (f) || fclose (f) != 0;
9323 rm -f conftest$ac_exeext
9324 if { (ac_try="$ac_link"
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9330 $as_echo "$ac_try_echo") >&5
9331 (eval "$ac_link") 2>&5
9333 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9335 { (case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9340 $as_echo "$ac_try_echo") >&5
9341 (eval "$ac_try") 2>&5
9343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_sizeof_void_p=`cat conftest.val`
9347 $as_echo "$as_me: program exited with status
$ac_status" >&5
9348 $as_echo "$as_me: failed program was
:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9352 if test "$ac_cv_type_void_p" = yes; then
9353 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
9354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9355 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
9356 See \`config.log' for more details.
" >&5
9357 $as_echo "$as_me: error
: cannot compute sizeof
(void
*)
9358 See \
`config.log' for more details." >&2;}
9359 { (exit 77); exit 77; }; }; }
9361 ac_cv_sizeof_void_p=0
9364 rm -rf conftest.dSYM
9365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9369 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
9370 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9374 cat >>confdefs.h <<_ACEOF
9375 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9379 # The cast to long int works around a bug in the HP C Compiler
9380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9381 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
9382 # This bug is HP SR number 8606223364.
9383 { $as_echo "$as_me:$LINENO: checking size of short" >&5
9384 $as_echo_n "checking size of short... " >&6; }
9385 if test "${ac_cv_sizeof_short+set}" = set; then
9386 $as_echo_n "(cached) " >&6
9388 if test "$cross_compiling" = yes; then
9389 # Depending upon the size, compute the lo and hi bounds.
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9400 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
9407 rm -f conftest.$ac_objext
9408 if { (ac_try="$ac_compile"
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9414 $as_echo "$ac_try_echo") >&5
9415 (eval "$ac_compile") 2>conftest.er1
9417 grep -v '^
*+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } && {
9422 test -z "$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 } && test -s conftest.$ac_objext; then
9427 cat >conftest.$ac_ext <<_ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9437 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9444 rm -f conftest.$ac_objext
9445 if { (ac_try="$ac_compile"
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9451 $as_echo "$ac_try_echo") >&5
9452 (eval "$ac_compile") 2>conftest.er1
9454 grep -v '^
*+' conftest.er1 >conftest.err
9456 cat conftest.err >&5
9457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest.$ac_objext; then
9462 ac_hi=$ac_mid; break
9464 $as_echo "$as_me: failed program was:" >&5
9465 sed 's
/^
/|
/' conftest.$ac_ext >&5
9467 ac_lo=`expr $ac_mid + 1`
9468 if test $ac_lo -le $ac_mid; then
9472 ac_mid=`expr 2 '*' $ac_mid + 1`
9475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 $as_echo "$as_me: failed program was:" >&5
9479 sed 's
/^
/|
/' conftest.$ac_ext >&5
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
9491 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
9498 rm -f conftest.$ac_objext
9499 if { (ac_try="$ac_compile"
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9505 $as_echo "$ac_try_echo") >&5
9506 (eval "$ac_compile") 2>conftest.er1
9508 grep -v '^
*+' conftest.er1 >conftest.err
9510 cat conftest.err >&5
9511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && {
9513 test -z "$ac_c_werror_flag" ||
9514 test ! -s conftest.err
9515 } && test -s conftest.$ac_objext; then
9518 cat >conftest.$ac_ext <<_ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 $ac_includes_default
9528 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
9535 rm -f conftest.$ac_objext
9536 if { (ac_try="$ac_compile"
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542 $as_echo "$ac_try_echo") >&5
9543 (eval "$ac_compile") 2>conftest.er1
9545 grep -v '^
*+' conftest.er1 >conftest.err
9547 cat conftest.err >&5
9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest.$ac_objext; then
9553 ac_lo=$ac_mid; break
9555 $as_echo "$as_me: failed program was:" >&5
9556 sed 's
/^
/|
/' conftest.$ac_ext >&5
9558 ac_hi=`expr '(' $ac_mid ')' - 1`
9559 if test $ac_mid -le $ac_hi; then
9563 ac_mid=`expr 2 '*' $ac_mid`
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 $as_echo "$as_me: failed program was:" >&5
9570 sed 's
/^
/|
/' conftest.$ac_ext >&5
9575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 # Binary search between lo and hi bounds.
9580 while test "x$ac_lo" != "x$ac_hi"; do
9581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9582 cat >conftest.$ac_ext <<_ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 $ac_includes_default
9592 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9599 rm -f conftest.$ac_objext
9600 if { (ac_try="$ac_compile"
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9606 $as_echo "$ac_try_echo") >&5
9607 (eval "$ac_compile") 2>conftest.er1
9609 grep -v '^
*+' conftest.er1 >conftest.err
9611 cat conftest.err >&5
9612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest.$ac_objext; then
9619 $as_echo "$as_me: failed program was:" >&5
9620 sed 's
/^
/|
/' conftest.$ac_ext >&5
9622 ac_lo=`expr '(' $ac_mid ')' + 1`
9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9628 ?*) ac_cv_sizeof_short=$ac_lo;;
9629 '') if test "$ac_cv_type_short" = yes; then
9630 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9631 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
9632 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9633 See \`config.log
' for more details." >&5
9634 $as_echo "$as_me: error: cannot compute sizeof (short)
9635 See \`config.log' for more details.
" >&2;}
9636 { (exit 77); exit 77; }; }; }
9638 ac_cv_sizeof_short=0
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 $ac_includes_default
9649 static long int longval () { return (long int) (sizeof (short)); }
9650 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
9657 FILE *f = fopen ("conftest.val
", "w
");
9660 if (((long int) (sizeof (short))) < 0)
9662 long int i = longval ();
9663 if (i != ((long int) (sizeof (short))))
9665 fprintf (f, "%ld
", i);
9669 unsigned long int i = ulongval ();
9670 if (i != ((long int) (sizeof (short))))
9672 fprintf (f, "%lu
", i);
9674 /* Do not output a trailing newline, as this causes \r\n confusion
9675 on some platforms. */
9676 return ferror (f) || fclose (f) != 0;
9682 rm -f conftest$ac_exeext
9683 if { (ac_try="$ac_link"
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9688 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9689 $as_echo "$ac_try_echo") >&5
9690 (eval "$ac_link") 2>&5
9692 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9694 { (case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9699 $as_echo "$ac_try_echo") >&5
9700 (eval "$ac_try") 2>&5
9702 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_sizeof_short=`cat conftest.val`
9706 $as_echo "$as_me: program exited with status
$ac_status" >&5
9707 $as_echo "$as_me: failed program was
:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9711 if test "$ac_cv_type_short" = yes; then
9712 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
9713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9714 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9715 See \`config.log' for more details.
" >&5
9716 $as_echo "$as_me: error
: cannot compute sizeof
(short
)
9717 See \
`config.log' for more details." >&2;}
9718 { (exit 77); exit 77; }; }; }
9720 ac_cv_sizeof_short=0
9723 rm -rf conftest.dSYM
9724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9728 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9729 $as_echo "$ac_cv_sizeof_short" >&6; }
9733 cat >>confdefs.h <<_ACEOF
9734 #define SIZEOF_SHORT $ac_cv_sizeof_short
9738 # The cast to long int works around a bug in the HP C Compiler
9739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9740 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
9741 # This bug is HP SR number 8606223364.
9742 { $as_echo "$as_me:$LINENO: checking size of float" >&5
9743 $as_echo_n "checking size of float... " >&6; }
9744 if test "${ac_cv_sizeof_float+set}" = set; then
9745 $as_echo_n "(cached) " >&6
9747 if test "$cross_compiling" = yes; then
9748 # Depending upon the size, compute the lo and hi bounds.
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9759 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
9766 rm -f conftest.$ac_objext
9767 if { (ac_try="$ac_compile"
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9773 $as_echo "$ac_try_echo") >&5
9774 (eval "$ac_compile") 2>conftest.er1
9776 grep -v '^
*+' conftest.er1 >conftest.err
9778 cat conftest.err >&5
9779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest.$ac_objext; then
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9796 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
9803 rm -f conftest.$ac_objext
9804 if { (ac_try="$ac_compile"
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9810 $as_echo "$ac_try_echo") >&5
9811 (eval "$ac_compile") 2>conftest.er1
9813 grep -v '^
*+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && {
9818 test -z "$ac_c_werror_flag" ||
9819 test ! -s conftest.err
9820 } && test -s conftest.$ac_objext; then
9821 ac_hi=$ac_mid; break
9823 $as_echo "$as_me: failed program was:" >&5
9824 sed 's
/^
/|
/' conftest.$ac_ext >&5
9826 ac_lo=`expr $ac_mid + 1`
9827 if test $ac_lo -le $ac_mid; then
9831 ac_mid=`expr 2 '*' $ac_mid + 1`
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9837 $as_echo "$as_me: failed program was:" >&5
9838 sed 's
/^
/|
/' conftest.$ac_ext >&5
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9850 static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
9857 rm -f conftest.$ac_objext
9858 if { (ac_try="$ac_compile"
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9864 $as_echo "$ac_try_echo") >&5
9865 (eval "$ac_compile") 2>conftest.er1
9867 grep -v '^
*+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest.$ac_objext; then
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9887 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
9894 rm -f conftest.$ac_objext
9895 if { (ac_try="$ac_compile"
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9901 $as_echo "$ac_try_echo") >&5
9902 (eval "$ac_compile") 2>conftest.er1
9904 grep -v '^
*+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest.$ac_objext; then
9912 ac_lo=$ac_mid; break
9914 $as_echo "$as_me: failed program was:" >&5
9915 sed 's
/^
/|
/' conftest.$ac_ext >&5
9917 ac_hi=`expr '(' $ac_mid ')' - 1`
9918 if test $ac_mid -le $ac_hi; then
9922 ac_mid=`expr 2 '*' $ac_mid`
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 $as_echo "$as_me: failed program was:" >&5
9929 sed 's
/^
/|
/' conftest.$ac_ext >&5
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 # Binary search between lo and hi bounds.
9939 while test "x$ac_lo" != "x$ac_hi"; do
9940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9941 cat >conftest.$ac_ext <<_ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947 $ac_includes_default
9951 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
9958 rm -f conftest.$ac_objext
9959 if { (ac_try="$ac_compile"
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9965 $as_echo "$ac_try_echo") >&5
9966 (eval "$ac_compile") 2>conftest.er1
9968 grep -v '^
*+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest.$ac_objext; then
9978 $as_echo "$as_me: failed program was:" >&5
9979 sed 's
/^
/|
/' conftest.$ac_ext >&5
9981 ac_lo=`expr '(' $ac_mid ')' + 1`
9984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987 ?*) ac_cv_sizeof_float=$ac_lo;;
9988 '') if test "$ac_cv_type_float" = yes; then
9989 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9990 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
9991 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9992 See \`config.log
' for more details." >&5
9993 $as_echo "$as_me: error: cannot compute sizeof (float)
9994 See \`config.log' for more details.
" >&2;}
9995 { (exit 77); exit 77; }; }; }
9997 ac_cv_sizeof_float=0
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 $ac_includes_default
10008 static long int longval () { return (long int) (sizeof (float)); }
10009 static unsigned long int ulongval () { return (long int) (sizeof (float)); }
10011 #include <stdlib.h>
10016 FILE *f = fopen ("conftest.val
", "w
");
10019 if (((long int) (sizeof (float))) < 0)
10021 long int i = longval ();
10022 if (i != ((long int) (sizeof (float))))
10024 fprintf (f, "%ld
", i);
10028 unsigned long int i = ulongval ();
10029 if (i != ((long int) (sizeof (float))))
10031 fprintf (f, "%lu
", i);
10033 /* Do not output a trailing newline, as this causes \r\n confusion
10034 on some platforms. */
10035 return ferror (f) || fclose (f) != 0;
10041 rm -f conftest$ac_exeext
10042 if { (ac_try="$ac_link"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10048 $as_echo "$ac_try_echo") >&5
10049 (eval "$ac_link") 2>&5
10051 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10058 $as_echo "$ac_try_echo") >&5
10059 (eval "$ac_try") 2>&5
10061 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_sizeof_float=`cat conftest.val`
10065 $as_echo "$as_me: program exited with status
$ac_status" >&5
10066 $as_echo "$as_me: failed program was
:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ( exit $ac_status )
10070 if test "$ac_cv_type_float" = yes; then
10071 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
10072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10073 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
10074 See \`config.log' for more details.
" >&5
10075 $as_echo "$as_me: error
: cannot compute sizeof
(float
)
10076 See \
`config.log' for more details." >&2;}
10077 { (exit 77); exit 77; }; }; }
10079 ac_cv_sizeof_float=0
10082 rm -rf conftest.dSYM
10083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10087 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
10088 $as_echo "$ac_cv_sizeof_float" >&6; }
10092 cat >>confdefs.h <<_ACEOF
10093 #define SIZEOF_FLOAT $ac_cv_sizeof_float
10097 # The cast to long int works around a bug in the HP C Compiler
10098 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10099 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
10100 # This bug is HP SR number 8606223364.
10101 { $as_echo "$as_me:$LINENO: checking size of double" >&5
10102 $as_echo_n "checking size of double... " >&6; }
10103 if test "${ac_cv_sizeof_double+set}" = set; then
10104 $as_echo_n "(cached) " >&6
10106 if test "$cross_compiling" = yes; then
10107 # Depending upon the size, compute the lo and hi bounds.
10108 cat >conftest.$ac_ext <<_ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 $ac_includes_default
10118 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10135 grep -v '^
*+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest.$ac_objext; then
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 $ac_includes_default
10155 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
10162 rm -f conftest.$ac_objext
10163 if { (ac_try="$ac_compile"
10164 case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169 $as_echo "$ac_try_echo") >&5
10170 (eval "$ac_compile") 2>conftest.er1
10172 grep -v '^
*+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest.$ac_objext; then
10180 ac_hi=$ac_mid; break
10182 $as_echo "$as_me: failed program was:" >&5
10183 sed 's
/^
/|
/' conftest.$ac_ext >&5
10185 ac_lo=`expr $ac_mid + 1`
10186 if test $ac_lo -le $ac_mid; then
10190 ac_mid=`expr 2 '*' $ac_mid + 1`
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 $as_echo "$as_me: failed program was:" >&5
10197 sed 's
/^
/|
/' conftest.$ac_ext >&5
10199 cat >conftest.$ac_ext <<_ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 $ac_includes_default
10209 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
10216 rm -f conftest.$ac_objext
10217 if { (ac_try="$ac_compile"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10223 $as_echo "$ac_try_echo") >&5
10224 (eval "$ac_compile") 2>conftest.er1
10226 grep -v '^
*+' conftest.er1 >conftest.err
10228 cat conftest.err >&5
10229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && {
10231 test -z "$ac_c_werror_flag" ||
10232 test ! -s conftest.err
10233 } && test -s conftest.$ac_objext; then
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 $ac_includes_default
10246 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
10253 rm -f conftest.$ac_objext
10254 if { (ac_try="$ac_compile"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10260 $as_echo "$ac_try_echo") >&5
10261 (eval "$ac_compile") 2>conftest.er1
10263 grep -v '^
*+' conftest.er1 >conftest.err
10265 cat conftest.err >&5
10266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && {
10268 test -z "$ac_c_werror_flag" ||
10269 test ! -s conftest.err
10270 } && test -s conftest.$ac_objext; then
10271 ac_lo=$ac_mid; break
10273 $as_echo "$as_me: failed program was:" >&5
10274 sed 's
/^
/|
/' conftest.$ac_ext >&5
10276 ac_hi=`expr '(' $ac_mid ')' - 1`
10277 if test $ac_mid -le $ac_hi; then
10281 ac_mid=`expr 2 '*' $ac_mid`
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10287 $as_echo "$as_me: failed program was:" >&5
10288 sed 's
/^
/|
/' conftest.$ac_ext >&5
10293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 # Binary search between lo and hi bounds.
10298 while test "x$ac_lo" != "x$ac_hi"; do
10299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10300 cat >conftest.$ac_ext <<_ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 $ac_includes_default
10310 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324 $as_echo "$ac_try_echo") >&5
10325 (eval "$ac_compile") 2>conftest.er1
10327 grep -v '^
*+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest.$ac_objext; then
10337 $as_echo "$as_me: failed program was:" >&5
10338 sed 's
/^
/|
/' conftest.$ac_ext >&5
10340 ac_lo=`expr '(' $ac_mid ')' + 1`
10343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346 ?*) ac_cv_sizeof_double=$ac_lo;;
10347 '') if test "$ac_cv_type_double" = yes; then
10348 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10349 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
10350 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
10351 See \`config.log
' for more details." >&5
10352 $as_echo "$as_me: error: cannot compute sizeof (double)
10353 See \`config.log' for more details.
" >&2;}
10354 { (exit 77); exit 77; }; }; }
10356 ac_cv_sizeof_double=0
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 static long int longval () { return (long int) (sizeof (double)); }
10368 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
10370 #include <stdlib.h>
10375 FILE *f = fopen ("conftest.val
", "w
");
10378 if (((long int) (sizeof (double))) < 0)
10380 long int i = longval ();
10381 if (i != ((long int) (sizeof (double))))
10383 fprintf (f, "%ld
", i);
10387 unsigned long int i = ulongval ();
10388 if (i != ((long int) (sizeof (double))))
10390 fprintf (f, "%lu
", i);
10392 /* Do not output a trailing newline, as this causes \r\n confusion
10393 on some platforms. */
10394 return ferror (f) || fclose (f) != 0;
10400 rm -f conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10407 $as_echo "$ac_try_echo") >&5
10408 (eval "$ac_link") 2>&5
10410 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10416 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10417 $as_echo "$ac_try_echo") >&5
10418 (eval "$ac_try") 2>&5
10420 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_cv_sizeof_double=`cat conftest.val`
10424 $as_echo "$as_me: program exited with status
$ac_status" >&5
10425 $as_echo "$as_me: failed program was
:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 ( exit $ac_status )
10429 if test "$ac_cv_type_double" = yes; then
10430 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
10431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10432 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
10433 See \`config.log' for more details.
" >&5
10434 $as_echo "$as_me: error
: cannot compute sizeof
(double
)
10435 See \
`config.log' for more details." >&2;}
10436 { (exit 77); exit 77; }; }; }
10438 ac_cv_sizeof_double=0
10441 rm -rf conftest.dSYM
10442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10446 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
10447 $as_echo "$ac_cv_sizeof_double" >&6; }
10451 cat >>confdefs.h <<_ACEOF
10452 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
10456 # The cast to long int works around a bug in the HP C Compiler
10457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10458 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
10459 # This bug is HP SR number 8606223364.
10460 { $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5
10461 $as_echo_n "checking size of fpos_t... " >&6; }
10462 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10463 $as_echo_n "(cached) " >&6
10465 if test "$cross_compiling" = yes; then
10466 # Depending upon the size, compute the lo and hi bounds.
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 $ac_includes_default
10477 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)];
10484 rm -f conftest.$ac_objext
10485 if { (ac_try="$ac_compile"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10491 $as_echo "$ac_try_echo") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10494 grep -v '^
*+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10514 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
10521 rm -f conftest.$ac_objext
10522 if { (ac_try="$ac_compile"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10528 $as_echo "$ac_try_echo") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10531 grep -v '^
*+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10539 ac_hi=$ac_mid; break
10541 $as_echo "$as_me: failed program was:" >&5
10542 sed 's
/^
/|
/' conftest.$ac_ext >&5
10544 ac_lo=`expr $ac_mid + 1`
10545 if test $ac_lo -le $ac_mid; then
10549 ac_mid=`expr 2 '*' $ac_mid + 1`
10552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 $as_echo "$as_me: failed program was:" >&5
10556 sed 's
/^
/|
/' conftest.$ac_ext >&5
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 $ac_includes_default
10568 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)];
10575 rm -f conftest.$ac_objext
10576 if { (ac_try="$ac_compile"
10577 case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10582 $as_echo "$ac_try_echo") >&5
10583 (eval "$ac_compile") 2>conftest.er1
10585 grep -v '^
*+' conftest.er1 >conftest.err
10587 cat conftest.err >&5
10588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && {
10590 test -z "$ac_c_werror_flag" ||
10591 test ! -s conftest.err
10592 } && test -s conftest.$ac_objext; then
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 $ac_includes_default
10605 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)];
10612 rm -f conftest.$ac_objext
10613 if { (ac_try="$ac_compile"
10614 case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10619 $as_echo "$ac_try_echo") >&5
10620 (eval "$ac_compile") 2>conftest.er1
10622 grep -v '^
*+' conftest.er1 >conftest.err
10624 cat conftest.err >&5
10625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest.$ac_objext; then
10630 ac_lo=$ac_mid; break
10632 $as_echo "$as_me: failed program was:" >&5
10633 sed 's
/^
/|
/' conftest.$ac_ext >&5
10635 ac_hi=`expr '(' $ac_mid ')' - 1`
10636 if test $ac_mid -le $ac_hi; then
10640 ac_mid=`expr 2 '*' $ac_mid`
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 $as_echo "$as_me: failed program was:" >&5
10647 sed 's
/^
/|
/' conftest.$ac_ext >&5
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656 # Binary search between lo and hi bounds.
10657 while test "x$ac_lo" != "x$ac_hi"; do
10658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10659 cat >conftest.$ac_ext <<_ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665 $ac_includes_default
10669 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
10676 rm -f conftest.$ac_objext
10677 if { (ac_try="$ac_compile"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10683 $as_echo "$ac_try_echo") >&5
10684 (eval "$ac_compile") 2>conftest.er1
10686 grep -v '^
*+' conftest.er1 >conftest.err
10688 cat conftest.err >&5
10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest.$ac_objext; then
10696 $as_echo "$as_me: failed program was:" >&5
10697 sed 's
/^
/|
/' conftest.$ac_ext >&5
10699 ac_lo=`expr '(' $ac_mid ')' + 1`
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10706 '') if test "$ac_cv_type_fpos_t" = yes; then
10707 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10708 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
10709 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10710 See \`config.log
' for more details." >&5
10711 $as_echo "$as_me: error: cannot compute sizeof (fpos_t)
10712 See \`config.log' for more details.
" >&2;}
10713 { (exit 77); exit 77; }; }; }
10715 ac_cv_sizeof_fpos_t=0
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 static long int longval () { return (long int) (sizeof (fpos_t)); }
10727 static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); }
10729 #include <stdlib.h>
10734 FILE *f = fopen ("conftest.val
", "w
");
10737 if (((long int) (sizeof (fpos_t))) < 0)
10739 long int i = longval ();
10740 if (i != ((long int) (sizeof (fpos_t))))
10742 fprintf (f, "%ld
", i);
10746 unsigned long int i = ulongval ();
10747 if (i != ((long int) (sizeof (fpos_t))))
10749 fprintf (f, "%lu
", i);
10751 /* Do not output a trailing newline, as this causes \r\n confusion
10752 on some platforms. */
10753 return ferror (f) || fclose (f) != 0;
10759 rm -f conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10766 $as_echo "$ac_try_echo") >&5
10767 (eval "$ac_link") 2>&5
10769 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_try") 2>&5
10779 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ac_cv_sizeof_fpos_t=`cat conftest.val`
10783 $as_echo "$as_me: program exited with status
$ac_status" >&5
10784 $as_echo "$as_me: failed program was
:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ( exit $ac_status )
10788 if test "$ac_cv_type_fpos_t" = yes; then
10789 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
10790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10791 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10792 See \`config.log' for more details.
" >&5
10793 $as_echo "$as_me: error
: cannot compute sizeof
(fpos_t
)
10794 See \
`config.log' for more details." >&2;}
10795 { (exit 77); exit 77; }; }; }
10797 ac_cv_sizeof_fpos_t=0
10800 rm -rf conftest.dSYM
10801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10805 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10806 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
10810 cat >>confdefs.h <<_ACEOF
10811 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10815 # The cast to long int works around a bug in the HP C Compiler
10816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10817 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
10818 # This bug is HP SR number 8606223364.
10819 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
10820 $as_echo_n "checking size of size_t... " >&6; }
10821 if test "${ac_cv_sizeof_size_t+set}" = set; then
10822 $as_echo_n "(cached) " >&6
10824 if test "$cross_compiling" = yes; then
10825 # Depending upon the size, compute the lo and hi bounds.
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 $ac_includes_default
10836 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10850 $as_echo "$ac_try_echo") >&5
10851 (eval "$ac_compile") 2>conftest.er1
10853 grep -v '^
*+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } && {
10858 test -z "$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 } && test -s conftest.$ac_objext; then
10863 cat >conftest.$ac_ext <<_ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 $ac_includes_default
10873 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10880 rm -f conftest.$ac_objext
10881 if { (ac_try="$ac_compile"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10887 $as_echo "$ac_try_echo") >&5
10888 (eval "$ac_compile") 2>conftest.er1
10890 grep -v '^
*+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } && {
10895 test -z "$ac_c_werror_flag" ||
10896 test ! -s conftest.err
10897 } && test -s conftest.$ac_objext; then
10898 ac_hi=$ac_mid; break
10900 $as_echo "$as_me: failed program was:" >&5
10901 sed 's
/^
/|
/' conftest.$ac_ext >&5
10903 ac_lo=`expr $ac_mid + 1`
10904 if test $ac_lo -le $ac_mid; then
10908 ac_mid=`expr 2 '*' $ac_mid + 1`
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914 $as_echo "$as_me: failed program was:" >&5
10915 sed 's
/^
/|
/' conftest.$ac_ext >&5
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 $ac_includes_default
10927 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10944 grep -v '^
*+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && {
10949 test -z "$ac_c_werror_flag" ||
10950 test ! -s conftest.err
10951 } && test -s conftest.$ac_objext; then
10954 cat >conftest.$ac_ext <<_ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960 $ac_includes_default
10964 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
10971 rm -f conftest.$ac_objext
10972 if { (ac_try="$ac_compile"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979 (eval "$ac_compile") 2>conftest.er1
10981 grep -v '^
*+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest.$ac_objext; then
10989 ac_lo=$ac_mid; break
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's
/^
/|
/' conftest.$ac_ext >&5
10994 ac_hi=`expr '(' $ac_mid ')' - 1`
10995 if test $ac_mid -le $ac_hi; then
10999 ac_mid=`expr 2 '*' $ac_mid`
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 $as_echo "$as_me: failed program was:" >&5
11006 sed 's
/^
/|
/' conftest.$ac_ext >&5
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 # Binary search between lo and hi bounds.
11016 while test "x$ac_lo" != "x$ac_hi"; do
11017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11018 cat >conftest.$ac_ext <<_ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 $ac_includes_default
11028 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
11035 rm -f conftest.$ac_objext
11036 if { (ac_try="$ac_compile"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11042 $as_echo "$ac_try_echo") >&5
11043 (eval "$ac_compile") 2>conftest.er1
11045 grep -v '^
*+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest.$ac_objext; then
11055 $as_echo "$as_me: failed program was:" >&5
11056 sed 's
/^
/|
/' conftest.$ac_ext >&5
11058 ac_lo=`expr '(' $ac_mid ')' + 1`
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 ?*) ac_cv_sizeof_size_t=$ac_lo;;
11065 '') if test "$ac_cv_type_size_t" = yes; then
11066 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11067 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
11068 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
11069 See \`config.log
' for more details." >&5
11070 $as_echo "$as_me: error: cannot compute sizeof (size_t)
11071 See \`config.log' for more details.
" >&2;}
11072 { (exit 77); exit 77; }; }; }
11074 ac_cv_sizeof_size_t=0
11078 cat >conftest.$ac_ext <<_ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 $ac_includes_default
11085 static long int longval () { return (long int) (sizeof (size_t)); }
11086 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
11088 #include <stdlib.h>
11093 FILE *f = fopen ("conftest.val
", "w
");
11096 if (((long int) (sizeof (size_t))) < 0)
11098 long int i = longval ();
11099 if (i != ((long int) (sizeof (size_t))))
11101 fprintf (f, "%ld
", i);
11105 unsigned long int i = ulongval ();
11106 if (i != ((long int) (sizeof (size_t))))
11108 fprintf (f, "%lu
", i);
11110 /* Do not output a trailing newline, as this causes \r\n confusion
11111 on some platforms. */
11112 return ferror (f) || fclose (f) != 0;
11118 rm -f conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11125 $as_echo "$ac_try_echo") >&5
11126 (eval "$ac_link") 2>&5
11128 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11130 { (case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11135 $as_echo "$ac_try_echo") >&5
11136 (eval "$ac_try") 2>&5
11138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_cv_sizeof_size_t=`cat conftest.val`
11142 $as_echo "$as_me: program exited with status
$ac_status" >&5
11143 $as_echo "$as_me: failed program was
:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ( exit $ac_status )
11147 if test "$ac_cv_type_size_t" = yes; then
11148 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
11149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11150 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
11151 See \`config.log' for more details.
" >&5
11152 $as_echo "$as_me: error
: cannot compute sizeof
(size_t
)
11153 See \
`config.log' for more details." >&2;}
11154 { (exit 77); exit 77; }; }; }
11156 ac_cv_sizeof_size_t=0
11159 rm -rf conftest.dSYM
11160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11164 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
11165 $as_echo "$ac_cv_sizeof_size_t" >&6; }
11169 cat >>confdefs.h <<_ACEOF
11170 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
11174 # The cast to long int works around a bug in the HP C Compiler
11175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11176 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
11177 # This bug is HP SR number 8606223364.
11178 { $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
11179 $as_echo_n "checking size of pid_t... " >&6; }
11180 if test "${ac_cv_sizeof_pid_t+set}" = set; then
11181 $as_echo_n "(cached) " >&6
11183 if test "$cross_compiling" = yes; then
11184 # Depending upon the size, compute the lo and hi bounds.
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 $ac_includes_default
11195 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)];
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11209 $as_echo "$ac_try_echo") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11212 grep -v '^
*+' conftest.er1 >conftest.err
11214 cat conftest.err >&5
11215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
11222 cat >conftest.$ac_ext <<_ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 $ac_includes_default
11232 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
11239 rm -f conftest.$ac_objext
11240 if { (ac_try="$ac_compile"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11246 $as_echo "$ac_try_echo") >&5
11247 (eval "$ac_compile") 2>conftest.er1
11249 grep -v '^
*+' conftest.er1 >conftest.err
11251 cat conftest.err >&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest.$ac_objext; then
11257 ac_hi=$ac_mid; break
11259 $as_echo "$as_me: failed program was:" >&5
11260 sed 's
/^
/|
/' conftest.$ac_ext >&5
11262 ac_lo=`expr $ac_mid + 1`
11263 if test $ac_lo -le $ac_mid; then
11267 ac_mid=`expr 2 '*' $ac_mid + 1`
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 $as_echo "$as_me: failed program was:" >&5
11274 sed 's
/^
/|
/' conftest.$ac_ext >&5
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11286 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)];
11293 rm -f conftest.$ac_objext
11294 if { (ac_try="$ac_compile"
11295 case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11300 $as_echo "$ac_try_echo") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11303 grep -v '^
*+' conftest.er1 >conftest.err
11305 cat conftest.err >&5
11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11323 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)];
11330 rm -f conftest.$ac_objext
11331 if { (ac_try="$ac_compile"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11337 $as_echo "$ac_try_echo") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11340 grep -v '^
*+' conftest.er1 >conftest.err
11342 cat conftest.err >&5
11343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest.$ac_objext; then
11348 ac_lo=$ac_mid; break
11350 $as_echo "$as_me: failed program was:" >&5
11351 sed 's
/^
/|
/' conftest.$ac_ext >&5
11353 ac_hi=`expr '(' $ac_mid ')' - 1`
11354 if test $ac_mid -le $ac_hi; then
11358 ac_mid=`expr 2 '*' $ac_mid`
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 $as_echo "$as_me: failed program was:" >&5
11365 sed 's
/^
/|
/' conftest.$ac_ext >&5
11370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 # Binary search between lo and hi bounds.
11375 while test "x$ac_lo" != "x$ac_hi"; do
11376 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11377 cat >conftest.$ac_ext <<_ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 $ac_includes_default
11387 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
11394 rm -f conftest.$ac_objext
11395 if { (ac_try="$ac_compile"
11396 case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401 $as_echo "$ac_try_echo") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11404 grep -v '^
*+' conftest.er1 >conftest.err
11406 cat conftest.err >&5
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.$ac_objext; then
11414 $as_echo "$as_me: failed program was:" >&5
11415 sed 's
/^
/|
/' conftest.$ac_ext >&5
11417 ac_lo=`expr '(' $ac_mid ')' + 1`
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11423 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11424 '') if test "$ac_cv_type_pid_t" = yes; then
11425 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11426 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
11427 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11428 See \`config.log
' for more details." >&5
11429 $as_echo "$as_me: error: cannot compute sizeof (pid_t)
11430 See \`config.log' for more details.
" >&2;}
11431 { (exit 77); exit 77; }; }; }
11433 ac_cv_sizeof_pid_t=0
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 $ac_includes_default
11444 static long int longval () { return (long int) (sizeof (pid_t)); }
11445 static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); }
11447 #include <stdlib.h>
11452 FILE *f = fopen ("conftest.val
", "w
");
11455 if (((long int) (sizeof (pid_t))) < 0)
11457 long int i = longval ();
11458 if (i != ((long int) (sizeof (pid_t))))
11460 fprintf (f, "%ld
", i);
11464 unsigned long int i = ulongval ();
11465 if (i != ((long int) (sizeof (pid_t))))
11467 fprintf (f, "%lu
", i);
11469 /* Do not output a trailing newline, as this causes \r\n confusion
11470 on some platforms. */
11471 return ferror (f) || fclose (f) != 0;
11477 rm -f conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11484 $as_echo "$ac_try_echo") >&5
11485 (eval "$ac_link") 2>&5
11487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11489 { (case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11494 $as_echo "$ac_try_echo") >&5
11495 (eval "$ac_try") 2>&5
11497 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_cv_sizeof_pid_t=`cat conftest.val`
11501 $as_echo "$as_me: program exited with status
$ac_status" >&5
11502 $as_echo "$as_me: failed program was
:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ( exit $ac_status )
11506 if test "$ac_cv_type_pid_t" = yes; then
11507 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
11508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11509 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11510 See \`config.log' for more details.
" >&5
11511 $as_echo "$as_me: error
: cannot compute sizeof
(pid_t
)
11512 See \
`config.log' for more details." >&2;}
11513 { (exit 77); exit 77; }; }; }
11515 ac_cv_sizeof_pid_t=0
11518 rm -rf conftest.dSYM
11519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11523 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11524 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
11528 cat >>confdefs.h <<_ACEOF
11529 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11534 { $as_echo "$as_me:$LINENO: checking for long long support" >&5
11535 $as_echo_n "checking for long long support... " >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11547 long long x; x = (long long)0;
11552 rm -f conftest.$ac_objext
11553 if { (ac_try="$ac_compile"
11554 case "(($ac_try" in
11555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11556 *) ac_try_echo
=$ac_try;;
11558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11559 $as_echo "$ac_try_echo") >&5
11560 (eval "$ac_compile") 2>conftest.er1
11562 grep -v '^ *+' conftest.er1
>conftest.err
11564 cat conftest.err
>&5
11565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && {
11567 test -z "$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest.
$ac_objext; then
11572 cat >>confdefs.h
<<\_ACEOF
11573 #define HAVE_LONG_LONG 1
11579 $as_echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.
$ac_ext >&5
11585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11586 { $as_echo "$as_me:$LINENO: result: $have_long_long" >&5
11587 $as_echo "$have_long_long" >&6; }
11588 if test "$have_long_long" = yes ; then
11589 # The cast to long int works around a bug in the HP C Compiler
11590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11592 # This bug is HP SR number 8606223364.
11593 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
11594 $as_echo_n "checking size of long long... " >&6; }
11595 if test "${ac_cv_sizeof_long_long+set}" = set; then
11596 $as_echo_n "(cached) " >&6
11598 if test "$cross_compiling" = yes; then
11599 # Depending upon the size, compute the lo and hi bounds.
11600 cat >conftest.
$ac_ext <<_ACEOF
11603 cat confdefs.h
>>conftest.
$ac_ext
11604 cat >>conftest.
$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 $ac_includes_default
11610 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
11617 rm -f conftest.
$ac_objext
11618 if { (ac_try
="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11624 $as_echo "$ac_try_echo") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11627 grep -v '^ *+' conftest.er1 >conftest.err
11629 cat conftest.err >&5
11630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest.$ac_objext; then
11637 cat >conftest.$ac_ext <<_ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 $ac_includes_default
11647 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11658 *) ac_try_echo
=$ac_try;;
11660 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11661 $as_echo "$ac_try_echo") >&5
11662 (eval "$ac_compile") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1
>conftest.err
11666 cat conftest.err
>&5
11667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest.
$ac_objext; then
11672 ac_hi
=$ac_mid; break
11674 $as_echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.
$ac_ext >&5
11677 ac_lo
=`expr $ac_mid + 1`
11678 if test $ac_lo -le $ac_mid; then
11682 ac_mid
=`expr 2 '*' $ac_mid + 1`
11685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11688 $as_echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.
$ac_ext >&5
11691 cat >conftest.
$ac_ext <<_ACEOF
11694 cat confdefs.h
>>conftest.
$ac_ext
11695 cat >>conftest.
$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697 $ac_includes_default
11701 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
11708 rm -f conftest.
$ac_objext
11709 if { (ac_try
="$ac_compile"
11710 case "(($ac_try" in
11711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11715 $as_echo "$ac_try_echo") >&5
11716 (eval "$ac_compile") 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } && {
11723 test -z "$ac_c_werror_flag" ||
11724 test ! -s conftest.err
11725 } && test -s conftest.$ac_objext; then
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 $ac_includes_default
11738 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11749 *) ac_try_echo
=$ac_try;;
11751 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11752 $as_echo "$ac_try_echo") >&5
11753 (eval "$ac_compile") 2>conftest.er1
11755 grep -v '^ *+' conftest.er1
>conftest.err
11757 cat conftest.err
>&5
11758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } && {
11760 test -z "$ac_c_werror_flag" ||
11761 test ! -s conftest.err
11762 } && test -s conftest.
$ac_objext; then
11763 ac_lo
=$ac_mid; break
11765 $as_echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.
$ac_ext >&5
11768 ac_hi
=`expr '(' $ac_mid ')' - 1`
11769 if test $ac_mid -le $ac_hi; then
11773 ac_mid
=`expr 2 '*' $ac_mid`
11776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11779 $as_echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.
$ac_ext >&5
11785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11789 # Binary search between lo and hi bounds.
11790 while test "x$ac_lo" != "x$ac_hi"; do
11791 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11792 cat >conftest.
$ac_ext <<_ACEOF
11795 cat confdefs.h
>>conftest.
$ac_ext
11796 cat >>conftest.
$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11802 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
11809 rm -f conftest.
$ac_objext
11810 if { (ac_try
="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816 $as_echo "$ac_try_echo") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest.$ac_objext; then
11829 $as_echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_lo=`expr '(' $ac_mid ')' + 1`
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11839 '') if test "$ac_cv_type_long_long" = yes; then
11840 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11842 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11843 See \
`config.log' for more details." >&5
11844 $as_echo "$as_me: error: cannot compute sizeof (long long)
11845 See \`config.log
' for more details." >&2;}
11846 { (exit 77); exit 77; }; }; }
11848 ac_cv_sizeof_long_long=0
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 $ac_includes_default
11859 static long int longval () { return (long int) (sizeof (long long)); }
11860 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
11862 #include <stdlib.h>
11867 FILE *f = fopen ("conftest.val", "w");
11870 if (((long int) (sizeof (long long))) < 0)
11872 long int i = longval ();
11873 if (i != ((long int) (sizeof (long long))))
11875 fprintf (f, "%ld", i);
11879 unsigned long int i = ulongval ();
11880 if (i != ((long int) (sizeof (long long))))
11882 fprintf (f, "%lu", i);
11884 /* Do not output a trailing newline, as this causes \r\n confusion
11885 on some platforms. */
11886 return ferror (f) || fclose (f) != 0;
11892 rm -f conftest$ac_exeext
11893 if { (ac_try="$ac_link"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900 (eval "$ac_link") 2>&5
11902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11909 $as_echo "$ac_try_echo") >&5
11910 (eval "$ac_try") 2>&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_sizeof_long_long=`cat conftest.val`
11916 $as_echo "$as_me: program exited with status $ac_status" >&5
11917 $as_echo "$as_me: failed program was:" >&5
11918 sed 's
/^
/|
/' conftest.$ac_ext >&5
11920 ( exit $ac_status )
11921 if test "$ac_cv_type_long_long" = yes; then
11922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11923 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
11924 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11925 See \`config.log
' for more details." >&5
11926 $as_echo "$as_me: error: cannot compute sizeof (long long)
11927 See \`config.log' for more details.
" >&2;}
11928 { (exit 77); exit 77; }; }; }
11930 ac_cv_sizeof_long_long=0
11933 rm -rf conftest.dSYM
11934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11938 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_long_long" >&5
11939 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11943 cat >>confdefs.h <<_ACEOF
11944 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11950 { $as_echo "$as_me:$LINENO: checking
for long double support
" >&5
11951 $as_echo_n "checking
for long double support...
" >&6; }
11952 have_long_double=no
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11963 long double x; x = (long double)0.;
11968 rm -f conftest.$ac_objext
11969 if { (ac_try="$ac_compile"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11975 $as_echo "$ac_try_echo") >&5
11976 (eval "$ac_compile") 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest.$ac_objext; then
11988 cat >>confdefs.h <<\_ACEOF
11989 #define HAVE_LONG_DOUBLE 1
11992 have_long_double=yes
11995 $as_echo "$as_me: failed program was
:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 { $as_echo "$as_me:$LINENO: result
: $have_long_double" >&5
12003 $as_echo "$have_long_double" >&6; }
12004 if test "$have_long_double" = yes ; then
12005 # The cast to long int works around a bug in the HP C Compiler
12006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12008 # This bug is HP SR number 8606223364.
12009 { $as_echo "$as_me:$LINENO: checking size of long double
" >&5
12010 $as_echo_n "checking size of long double...
" >&6; }
12011 if test "${ac_cv_sizeof_long_double+set}" = set; then
12012 $as_echo_n "(cached
) " >&6
12014 if test "$cross_compiling" = yes; then
12015 # Depending upon the size, compute the lo and hi bounds.
12016 cat >conftest.$ac_ext <<_ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 $ac_includes_default
12026 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
12033 rm -f conftest.$ac_objext
12034 if { (ac_try="$ac_compile"
12035 case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12040 $as_echo "$ac_try_echo") >&5
12041 (eval "$ac_compile") 2>conftest.er1
12043 grep -v '^ *+' conftest.er1 >conftest.err
12045 cat conftest.err >&5
12046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12047 (exit $ac_status); } && {
12048 test -z "$ac_c_werror_flag" ||
12049 test ! -s conftest.err
12050 } && test -s conftest.$ac_objext; then
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 $ac_includes_default
12063 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12077 $as_echo "$ac_try_echo") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12080 grep -v '^ *+' conftest.er1 >conftest.err
12082 cat conftest.err >&5
12083 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12088 ac_hi=$ac_mid; break
12090 $as_echo "$as_me: failed program was
:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_lo=`expr $ac_mid + 1`
12094 if test $ac_lo -le $ac_mid; then
12098 ac_mid=`expr 2 '*' $ac_mid + 1`
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 $as_echo "$as_me: failed program was
:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 cat >conftest.$ac_ext <<_ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 $ac_includes_default
12117 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
12124 rm -f conftest.$ac_objext
12125 if { (ac_try="$ac_compile"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12131 $as_echo "$ac_try_echo") >&5
12132 (eval "$ac_compile") 2>conftest.er1
12134 grep -v '^ *+' conftest.er1 >conftest.err
12136 cat conftest.err >&5
12137 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest.$ac_objext; then
12144 cat >conftest.$ac_ext <<_ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 $ac_includes_default
12154 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
12161 rm -f conftest.$ac_objext
12162 if { (ac_try="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12168 $as_echo "$ac_try_echo") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12171 grep -v '^ *+' conftest.er1 >conftest.err
12173 cat conftest.err >&5
12174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest.$ac_objext; then
12179 ac_lo=$ac_mid; break
12181 $as_echo "$as_me: failed program was
:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_hi=`expr '(' $ac_mid ')' - 1`
12185 if test $ac_mid -le $ac_hi; then
12189 ac_mid=`expr 2 '*' $ac_mid`
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 $as_echo "$as_me: failed program was
:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 # Binary search between lo and hi bounds.
12206 while test "x
$ac_lo" != "x
$ac_hi"; do
12207 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12208 cat >conftest.$ac_ext <<_ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214 $ac_includes_default
12218 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
12225 rm -f conftest.$ac_objext
12226 if { (ac_try="$ac_compile"
12227 case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12231 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12232 $as_echo "$ac_try_echo") >&5
12233 (eval "$ac_compile") 2>conftest.er1
12235 grep -v '^ *+' conftest.er1 >conftest.err
12237 cat conftest.err >&5
12238 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12239 (exit $ac_status); } && {
12240 test -z "$ac_c_werror_flag" ||
12241 test ! -s conftest.err
12242 } && test -s conftest.$ac_objext; then
12245 $as_echo "$as_me: failed program was
:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_lo=`expr '(' $ac_mid ')' + 1`
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 ?*) ac_cv_sizeof_long_double=$ac_lo;;
12255 '') if test "$ac_cv_type_long_double" = yes; then
12256 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
12257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12258 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12259 See \`config.log' for more details.
" >&5
12260 $as_echo "$as_me: error
: cannot compute sizeof
(long double
)
12261 See \
`config.log' for more details." >&2;}
12262 { (exit 77); exit 77; }; }; }
12264 ac_cv_sizeof_long_double=0
12268 cat >conftest.$ac_ext <<_ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 $ac_includes_default
12275 static long int longval () { return (long int) (sizeof (long double)); }
12276 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
12278 #include <stdlib.h>
12283 FILE *f = fopen ("conftest.val", "w");
12286 if (((long int) (sizeof (long double))) < 0)
12288 long int i = longval ();
12289 if (i != ((long int) (sizeof (long double))))
12291 fprintf (f, "%ld", i);
12295 unsigned long int i = ulongval ();
12296 if (i != ((long int) (sizeof (long double))))
12298 fprintf (f, "%lu", i);
12300 /* Do not output a trailing newline, as this causes \r\n confusion
12301 on some platforms. */
12302 return ferror (f) || fclose (f) != 0;
12308 rm -f conftest$ac_exeext
12309 if { (ac_try="$ac_link"
12310 case "(($ac_try" in
12311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12312 *) ac_try_echo
=$ac_try;;
12314 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12315 $as_echo "$ac_try_echo") >&5
12316 (eval "$ac_link") 2>&5
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12320 { (case "(($ac_try" in
12321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12325 $as_echo "$ac_try_echo") >&5
12326 (eval "$ac_try") 2>&5
12328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_sizeof_long_double=`cat conftest.val
`
12332 $as_echo "$as_me: program exited with status $ac_status" >&5
12333 $as_echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ( exit $ac_status )
12337 if test "$ac_cv_type_long_double" = yes; then
12338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12340 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12341 See \
`config.log' for more details." >&5
12342 $as_echo "$as_me: error: cannot compute sizeof (long double)
12343 See \`config.log
' for more details." >&2;}
12344 { (exit 77); exit 77; }; }; }
12346 ac_cv_sizeof_long_double=0
12349 rm -rf conftest.dSYM
12350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12354 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12355 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12359 cat >>confdefs.h <<_ACEOF
12360 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12366 { $as_echo "$as_me:$LINENO: checking for _Bool support" >&5
12367 $as_echo_n "checking for _Bool support... " >&6; }
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12379 _Bool x; x = (_Bool)0;
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12391 $as_echo "$ac_try_echo") >&5
12392 (eval "$ac_compile") 2>conftest.er1
12394 grep -v '^
*+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest.$ac_objext; then
12404 cat >>confdefs.h <<\_ACEOF
12405 #define HAVE_C99_BOOL 1
12411 $as_echo "$as_me: failed program was:" >&5
12412 sed 's
/^
/|
/' conftest.$ac_ext >&5
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 { $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12419 $as_echo "$have_c99_bool" >&6; }
12420 if test "$have_c99_bool" = yes ; then
12421 # The cast to long int works around a bug in the HP C Compiler
12422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12424 # This bug is HP SR number 8606223364.
12425 { $as_echo "$as_me:$LINENO: checking size of _Bool" >&5
12426 $as_echo_n "checking size of _Bool... " >&6; }
12427 if test "${ac_cv_sizeof__Bool+set}" = set; then
12428 $as_echo_n "(cached) " >&6
12430 if test "$cross_compiling" = yes; then
12431 # Depending upon the size, compute the lo and hi bounds.
12432 cat >conftest.
$ac_ext <<_ACEOF
12435 cat confdefs.h
>>conftest.
$ac_ext
12436 cat >>conftest.
$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12438 $ac_includes_default
12442 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)];
12449 rm -f conftest.
$ac_objext
12450 if { (ac_try
="$ac_compile"
12451 case "(($ac_try" in
12452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12456 $as_echo "$ac_try_echo") >&5
12457 (eval "$ac_compile") 2>conftest.er1
12459 grep -v '^ *+' conftest.er1 >conftest.err
12461 cat conftest.err >&5
12462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } && {
12464 test -z "$ac_c_werror_flag" ||
12465 test ! -s conftest.err
12466 } && test -s conftest.$ac_objext; then
12469 cat >conftest.$ac_ext <<_ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 $ac_includes_default
12479 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
12486 rm -f conftest.$ac_objext
12487 if { (ac_try="$ac_compile"
12488 case "(($ac_try" in
12489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12490 *) ac_try_echo
=$ac_try;;
12492 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12493 $as_echo "$ac_try_echo") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1
>conftest.err
12498 cat conftest.err
>&5
12499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.
$ac_objext; then
12504 ac_hi
=$ac_mid; break
12506 $as_echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.
$ac_ext >&5
12509 ac_lo
=`expr $ac_mid + 1`
12510 if test $ac_lo -le $ac_mid; then
12514 ac_mid
=`expr 2 '*' $ac_mid + 1`
12517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12520 $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.
$ac_ext >&5
12523 cat >conftest.
$ac_ext <<_ACEOF
12526 cat confdefs.h
>>conftest.
$ac_ext
12527 cat >>conftest.
$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 $ac_includes_default
12533 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)];
12540 rm -f conftest.
$ac_objext
12541 if { (ac_try
="$ac_compile"
12542 case "(($ac_try" in
12543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_compile") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1 >conftest.err
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest.$ac_objext; then
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 $ac_includes_default
12570 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)];
12577 rm -f conftest.$ac_objext
12578 if { (ac_try="$ac_compile"
12579 case "(($ac_try" in
12580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12581 *) ac_try_echo
=$ac_try;;
12583 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12587 grep -v '^ *+' conftest.er1
>conftest.err
12589 cat conftest.err
>&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.
$ac_objext; then
12595 ac_lo
=$ac_mid; break
12597 $as_echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.
$ac_ext >&5
12600 ac_hi
=`expr '(' $ac_mid ')' - 1`
12601 if test $ac_mid -le $ac_hi; then
12605 ac_mid
=`expr 2 '*' $ac_mid`
12608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12611 $as_echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.
$ac_ext >&5
12617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12621 # Binary search between lo and hi bounds.
12622 while test "x$ac_lo" != "x$ac_hi"; do
12623 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12624 cat >conftest.
$ac_ext <<_ACEOF
12627 cat confdefs.h
>>conftest.
$ac_ext
12628 cat >>conftest.
$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12634 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
12641 rm -f conftest.
$ac_objext
12642 if { (ac_try
="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648 $as_echo "$ac_try_echo") >&5
12649 (eval "$ac_compile") 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest.$ac_objext; then
12661 $as_echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_lo=`expr '(' $ac_mid ')' + 1`
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12671 '') if test "$ac_cv_type__Bool" = yes; then
12672 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12674 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12675 See \
`config.log' for more details." >&5
12676 $as_echo "$as_me: error: cannot compute sizeof (_Bool)
12677 See \`config.log
' for more details." >&2;}
12678 { (exit 77); exit 77; }; }; }
12680 ac_cv_sizeof__Bool=0
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 $ac_includes_default
12691 static long int longval () { return (long int) (sizeof (_Bool)); }
12692 static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); }
12694 #include <stdlib.h>
12699 FILE *f = fopen ("conftest.val", "w");
12702 if (((long int) (sizeof (_Bool))) < 0)
12704 long int i = longval ();
12705 if (i != ((long int) (sizeof (_Bool))))
12707 fprintf (f, "%ld", i);
12711 unsigned long int i = ulongval ();
12712 if (i != ((long int) (sizeof (_Bool))))
12714 fprintf (f, "%lu", i);
12716 /* Do not output a trailing newline, as this causes \r\n confusion
12717 on some platforms. */
12718 return ferror (f) || fclose (f) != 0;
12724 rm -f conftest$ac_exeext
12725 if { (ac_try="$ac_link"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12731 $as_echo "$ac_try_echo") >&5
12732 (eval "$ac_link") 2>&5
12734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12741 $as_echo "$ac_try_echo") >&5
12742 (eval "$ac_try") 2>&5
12744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_cv_sizeof__Bool=`cat conftest.val`
12748 $as_echo "$as_me: program exited with status $ac_status" >&5
12749 $as_echo "$as_me: failed program was:" >&5
12750 sed 's
/^
/|
/' conftest.$ac_ext >&5
12752 ( exit $ac_status )
12753 if test "$ac_cv_type__Bool" = yes; then
12754 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12755 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
12756 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12757 See \`config.log
' for more details." >&5
12758 $as_echo "$as_me: error: cannot compute sizeof (_Bool)
12759 See \`config.log' for more details.
" >&2;}
12760 { (exit 77); exit 77; }; }; }
12762 ac_cv_sizeof__Bool=0
12765 rm -rf conftest.dSYM
12766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12770 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof__Bool" >&5
12771 $as_echo "$ac_cv_sizeof__Bool" >&6; }
12775 cat >>confdefs.h <<_ACEOF
12776 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12782 { $as_echo "$as_me:$LINENO: checking
for uintptr_t
" >&5
12783 $as_echo_n "checking
for uintptr_t...
" >&6; }
12784 if test "${ac_cv_type_uintptr_t+set}" = set; then
12785 $as_echo_n "(cached
) " >&6
12787 ac_cv_type_uintptr_t=no
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 #ifdef HAVE_STDINT_H
12795 #include <stdint.h>
12801 if (sizeof (uintptr_t))
12807 rm -f conftest.$ac_objext
12808 if { (ac_try="$ac_compile"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12814 $as_echo "$ac_try_echo") >&5
12815 (eval "$ac_compile") 2>conftest.er1
12817 grep -v '^ *+' conftest.er1 >conftest.err
12819 cat conftest.err >&5
12820 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_c_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest.$ac_objext; then
12825 cat >conftest.$ac_ext <<_ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 #ifdef HAVE_STDINT_H
12832 #include <stdint.h>
12838 if (sizeof ((uintptr_t)))
12844 rm -f conftest.$ac_objext
12845 if { (ac_try="$ac_compile"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12851 $as_echo "$ac_try_echo") >&5
12852 (eval "$ac_compile") 2>conftest.er1
12854 grep -v '^ *+' conftest.er1 >conftest.err
12856 cat conftest.err >&5
12857 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12858 (exit $ac_status); } && {
12859 test -z "$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12861 } && test -s conftest.$ac_objext; then
12864 $as_echo "$as_me: failed program was
:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ac_cv_type_uintptr_t=yes
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 $as_echo "$as_me: failed program was
:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_uintptr_t" >&5
12881 $as_echo "$ac_cv_type_uintptr_t" >&6; }
12882 if test "x
$ac_cv_type_uintptr_t" = x""yes; then
12884 cat >>confdefs.h <<_ACEOF
12885 #define HAVE_UINTPTR_T 1
12888 # The cast to long int works around a bug in the HP C Compiler
12889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12891 # This bug is HP SR number 8606223364.
12892 { $as_echo "$as_me:$LINENO: checking size of uintptr_t
" >&5
12893 $as_echo_n "checking size of uintptr_t...
" >&6; }
12894 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12895 $as_echo_n "(cached
) " >&6
12897 if test "$cross_compiling" = yes; then
12898 # Depending upon the size, compute the lo and hi bounds.
12899 cat >conftest.$ac_ext <<_ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 $ac_includes_default
12909 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
12916 rm -f conftest.$ac_objext
12917 if { (ac_try="$ac_compile"
12918 case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12922 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12923 $as_echo "$ac_try_echo") >&5
12924 (eval "$ac_compile") 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12930 (exit $ac_status); } && {
12931 test -z "$ac_c_werror_flag" ||
12932 test ! -s conftest.err
12933 } && test -s conftest.$ac_objext; then
12936 cat >conftest.$ac_ext <<_ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 $ac_includes_default
12946 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
12953 rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12960 $as_echo "$ac_try_echo") >&5
12961 (eval "$ac_compile") 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12967 (exit $ac_status); } && {
12968 test -z "$ac_c_werror_flag" ||
12969 test ! -s conftest.err
12970 } && test -s conftest.$ac_objext; then
12971 ac_hi=$ac_mid; break
12973 $as_echo "$as_me: failed program was
:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_lo=`expr $ac_mid + 1`
12977 if test $ac_lo -le $ac_mid; then
12981 ac_mid=`expr 2 '*' $ac_mid + 1`
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 $as_echo "$as_me: failed program was
:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 cat >conftest.$ac_ext <<_ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 $ac_includes_default
13000 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13014 $as_echo "$ac_try_echo") >&5
13015 (eval "$ac_compile") 2>conftest.er1
13017 grep -v '^ *+' conftest.er1 >conftest.err
13019 cat conftest.err >&5
13020 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13021 (exit $ac_status); } && {
13022 test -z "$ac_c_werror_flag" ||
13023 test ! -s conftest.err
13024 } && test -s conftest.$ac_objext; then
13027 cat >conftest.$ac_ext <<_ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 $ac_includes_default
13037 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
13044 rm -f conftest.$ac_objext
13045 if { (ac_try="$ac_compile"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052 (eval "$ac_compile") 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13058 (exit $ac_status); } && {
13059 test -z "$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 } && test -s conftest.$ac_objext; then
13062 ac_lo=$ac_mid; break
13064 $as_echo "$as_me: failed program was
:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_hi=`expr '(' $ac_mid ')' - 1`
13068 if test $ac_mid -le $ac_hi; then
13072 ac_mid=`expr 2 '*' $ac_mid`
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 $as_echo "$as_me: failed program was
:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13088 # Binary search between lo and hi bounds.
13089 while test "x
$ac_lo" != "x
$ac_hi"; do
13090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 $ac_includes_default
13101 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13115 $as_echo "$ac_try_echo") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13128 $as_echo "$as_me: failed program was
:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 ac_lo=`expr '(' $ac_mid ')' + 1`
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
13138 '') if test "$ac_cv_type_uintptr_t" = yes; then
13139 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
13140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13141 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13142 See \`config.log' for more details.
" >&5
13143 $as_echo "$as_me: error
: cannot compute sizeof
(uintptr_t
)
13144 See \
`config.log' for more details." >&2;}
13145 { (exit 77); exit 77; }; }; }
13147 ac_cv_sizeof_uintptr_t=0
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 static long int longval () { return (long int) (sizeof (uintptr_t)); }
13159 static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
13161 #include <stdlib.h>
13166 FILE *f = fopen ("conftest.val", "w");
13169 if (((long int) (sizeof (uintptr_t))) < 0)
13171 long int i = longval ();
13172 if (i != ((long int) (sizeof (uintptr_t))))
13174 fprintf (f, "%ld", i);
13178 unsigned long int i = ulongval ();
13179 if (i != ((long int) (sizeof (uintptr_t))))
13181 fprintf (f, "%lu", i);
13183 /* Do not output a trailing newline, as this causes \r\n confusion
13184 on some platforms. */
13185 return ferror (f) || fclose (f) != 0;
13191 rm -f conftest$ac_exeext
13192 if { (ac_try="$ac_link"
13193 case "(($ac_try" in
13194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13195 *) ac_try_echo
=$ac_try;;
13197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13198 $as_echo "$ac_try_echo") >&5
13199 (eval "$ac_link") 2>&5
13201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13203 { (case "(($ac_try" in
13204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13208 $as_echo "$ac_try_echo") >&5
13209 (eval "$ac_try") 2>&5
13211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_cv_sizeof_uintptr_t=`cat conftest.val
`
13215 $as_echo "$as_me: program exited with status $ac_status" >&5
13216 $as_echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ( exit $ac_status )
13220 if test "$ac_cv_type_uintptr_t" = yes; then
13221 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13223 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
13224 See \
`config.log' for more details." >&5
13225 $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
13226 See \`config.log
' for more details." >&2;}
13227 { (exit 77); exit 77; }; }; }
13229 ac_cv_sizeof_uintptr_t=0
13232 rm -rf conftest.dSYM
13233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13237 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13238 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
13242 cat >>confdefs.h <<_ACEOF
13243 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13251 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
13252 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
13253 $as_echo_n "checking size of off_t... " >&6; }
13254 if test "${ac_cv_sizeof_off_t+set}" = set; then
13255 $as_echo_n "(cached) " >&6
13257 if test "$cross_compiling" = yes; then
13258 ac_cv_sizeof_off_t
=4
13260 cat >conftest.
$ac_ext <<_ACEOF
13263 cat confdefs.h
>>conftest.
$ac_ext
13264 cat >>conftest.
$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13267 #include <sys/types.h>
13270 FILE *f=fopen("conftestval", "w");
13272 fprintf(f, "%d\n", sizeof(off_t));
13276 rm -f conftest
$ac_exeext
13277 if { (ac_try
="$ac_link"
13278 case "(($ac_try" in
13279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13283 $as_echo "$ac_try_echo") >&5
13284 (eval "$ac_link") 2>&5
13286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13290 *) ac_try_echo
=$ac_try;;
13292 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13293 $as_echo "$ac_try_echo") >&5
13294 (eval "$ac_try") 2>&5
13296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_cv_sizeof_off_t
=`cat conftestval`
13300 $as_echo "$as_me: program exited with status $ac_status" >&5
13301 $as_echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.
$ac_ext >&5
13304 ( exit $ac_status )
13305 ac_cv_sizeof_off_t
=0
13307 rm -rf conftest.dSYM
13308 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13315 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13316 $as_echo "$ac_cv_sizeof_off_t" >&6; }
13318 cat >>confdefs.h
<<_ACEOF
13319 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13323 { $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13324 $as_echo_n "checking whether to enable large file support... " >&6; }
13325 if test "$have_long_long" = yes -a \
13326 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13327 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13329 cat >>confdefs.h
<<\_ACEOF
13330 #define HAVE_LARGEFILE_SUPPORT 1
13333 { $as_echo "$as_me:$LINENO: result: yes" >&5
13334 $as_echo "yes" >&6; }
13336 { $as_echo "$as_me:$LINENO: result: no" >&5
13337 $as_echo "no" >&6; }
13340 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13341 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
13342 $as_echo_n "checking size of time_t... " >&6; }
13343 if test "${ac_cv_sizeof_time_t+set}" = set; then
13344 $as_echo_n "(cached) " >&6
13346 if test "$cross_compiling" = yes; then
13347 ac_cv_sizeof_time_t
=4
13349 cat >conftest.
$ac_ext <<_ACEOF
13352 cat confdefs.h
>>conftest.
$ac_ext
13353 cat >>conftest.
$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13359 FILE *f=fopen("conftestval", "w");
13361 fprintf(f, "%d\n", sizeof(time_t));
13365 rm -f conftest
$ac_exeext
13366 if { (ac_try
="$ac_link"
13367 case "(($ac_try" in
13368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13372 $as_echo "$ac_try_echo") >&5
13373 (eval "$ac_link") 2>&5
13375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13379 *) ac_try_echo
=$ac_try;;
13381 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13382 $as_echo "$ac_try_echo") >&5
13383 (eval "$ac_try") 2>&5
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_sizeof_time_t
=`cat conftestval`
13389 $as_echo "$as_me: program exited with status $ac_status" >&5
13390 $as_echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.
$ac_ext >&5
13393 ( exit $ac_status )
13394 ac_cv_sizeof_time_t
=0
13396 rm -rf conftest.dSYM
13397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13404 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13405 $as_echo "$ac_cv_sizeof_time_t" >&6; }
13407 cat >>confdefs.h
<<_ACEOF
13408 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13413 # if have pthread_t then define SIZEOF_PTHREAD_T
13415 if test "$ac_cv_kpthread" = "yes"
13416 then CC
="$CC -Kpthread"
13417 elif test "$ac_cv_kthread" = "yes"
13418 then CC
="$CC -Kthread"
13419 elif test "$ac_cv_pthread" = "yes"
13420 then CC
="$CC -pthread"
13422 { $as_echo "$as_me:$LINENO: checking for pthread_t" >&5
13423 $as_echo_n "checking for pthread_t... " >&6; }
13425 cat >conftest.
$ac_ext <<_ACEOF
13428 cat confdefs.h
>>conftest.
$ac_ext
13429 cat >>conftest.
$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 #include <pthread.h>
13435 pthread_t x; x = *(pthread_t*)0;
13440 rm -f conftest.
$ac_objext
13441 if { (ac_try
="$ac_compile"
13442 case "(($ac_try" in
13443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13447 $as_echo "$ac_try_echo") >&5
13448 (eval "$ac_compile") 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } && {
13455 test -z "$ac_c_werror_flag" ||
13456 test ! -s conftest.err
13457 } && test -s conftest.$ac_objext; then
13460 $as_echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 { $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13468 $as_echo "$have_pthread_t" >&6; }
13469 if test "$have_pthread_t" = yes ; then
13470 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13471 { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
13472 $as_echo_n "checking size of pthread_t... " >&6; }
13473 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13474 $as_echo_n "(cached) " >&6
13476 if test "$cross_compiling" = yes; then
13477 ac_cv_sizeof_pthread_t=4
13479 cat >conftest.$ac_ext <<_ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13486 #include <pthread.h>
13489 FILE *f=fopen("conftestval", "w");
13491 fprintf(f, "%d\n", sizeof(pthread_t));
13495 rm -f conftest$ac_exeext
13496 if { (ac_try="$ac_link"
13497 case "(($ac_try" in
13498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13499 *) ac_try_echo
=$ac_try;;
13501 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13502 $as_echo "$ac_try_echo") >&5
13503 (eval "$ac_link") 2>&5
13505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13507 { (case "(($ac_try" in
13508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13512 $as_echo "$ac_try_echo") >&5
13513 (eval "$ac_try") 2>&5
13515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_sizeof_pthread_t=`cat conftestval
`
13519 $as_echo "$as_me: program exited with status $ac_status" >&5
13520 $as_echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13523 ( exit $ac_status )
13524 ac_cv_sizeof_pthread_t=0
13526 rm -rf conftest.dSYM
13527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13534 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13535 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
13537 cat >>confdefs.h <<_ACEOF
13538 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13544 { $as_echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13545 $as_echo_n "checking for --enable-toolbox-glue... " >&6; }
13546 # Check whether --enable-toolbox-glue was given.
13547 if test "${enable_toolbox_glue+set}" = set; then
13548 enableval=$enable_toolbox_glue;
13552 if test -z "$enable_toolbox_glue"
13554 case $ac_sys_system/$ac_sys_release in
13556 enable_toolbox_glue="yes";;
13558 enable_toolbox_glue="no";;
13561 case "$enable_toolbox_glue" in
13563 extra_machdep_objs="Python/mactoolboxglue.o"
13564 extra_undefs="-u _PyMac_Error"
13566 cat >>confdefs.h <<\_ACEOF
13567 #define USE_TOOLBOX_OBJECT_GLUE 1
13572 extra_machdep_objs=""
13576 { $as_echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13577 $as_echo "$enable_toolbox_glue" >&6; }
13581 case $ac_sys_system/$ac_sys_release in
13582 Darwin/[01567]\..*)
13583 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13586 OTHER_LIBTOOL_OPT=""
13591 case $ac_sys_system/$ac_sys_release in
13592 Darwin/[01567]\..*)
13593 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13594 if test "${enable_universalsdk}"; then
13597 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13599 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13600 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13602 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13603 if test ${gcc_version} '<' 4.0
13605 LIBTOOL_CRUFT="-lcc_dynamic"
13609 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13610 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13611 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13614 { $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5
13615 $as_echo_n "checking for --enable-framework... " >&6; }
13616 if test "$enable_framework"
13618 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13619 # -F. is needed to allow linking to the framework while
13620 # in the build location.
13622 cat >>confdefs.h <<\_ACEOF
13623 #define WITH_NEXT_FRAMEWORK 1
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13629 { $as_echo "$as_me:$LINENO: result: no" >&5
13630 $as_echo "no" >&6; }
13633 { $as_echo "$as_me:$LINENO: checking for dyld" >&5
13634 $as_echo_n "checking for dyld... " >&6; }
13635 case $ac_sys_system/$ac_sys_release in
13638 cat >>confdefs.h <<\_ACEOF
13639 #define WITH_DYLD 1
13642 { $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5
13643 $as_echo "always on for Darwin" >&6; }
13646 { $as_echo "$as_me:$LINENO: result: no" >&5
13647 $as_echo "no" >&6; }
13651 # Set info about shared libraries.
13657 # SO is the extension of shared libraries `(including the dot
!)
13658 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13659 { $as_echo "$as_me:$LINENO: checking SO" >&5
13660 $as_echo_n "checking SO... " >&6; }
13663 case $ac_sys_system in
13674 # this might also be a termcap variable, see #610332
13676 echo '====================================================================='
13678 echo '+ WARNING: You have set SO in your environment. +'
13679 echo '+ Do you really mean to change the extension for shared libraries? +'
13680 echo '+ Continuing in 10 seconds to let you to ponder. +'
13682 echo '====================================================================='
13685 { $as_echo "$as_me:$LINENO: result: $SO" >&5
13686 $as_echo "$SO" >&6; }
13689 cat >>confdefs.h
<<_ACEOF
13690 #define SHLIB_EXT "$SO"
13693 # LDSHARED is the ld *command* used to create shared library
13694 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13695 # (Shared libraries in this instance are shared modules to be loaded into
13696 # Python, as opposed to building Python itself as a shared library.)
13697 { $as_echo "$as_me:$LINENO: checking LDSHARED" >&5
13698 $as_echo_n "checking LDSHARED... " >&6; }
13699 if test -z "$LDSHARED"
13701 case $ac_sys_system/$ac_sys_release in
13703 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13704 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13707 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13708 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13710 IRIX
/5*) LDSHARED
="ld -shared";;
13711 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13713 if test "$GCC" = "yes"
13714 then LDSHARED
='$(CC) -shared'
13715 else LDSHARED
='$(CC) -G';
13718 if test "$GCC" = "yes"
13719 then LDSHARED
='$(CC) -shared'
13720 else LDSHARED
='ld -b';
13722 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13724 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13725 if test "$enable_framework" ; then
13726 # Link against the framework. All externals should be defined.
13727 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13728 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13730 # No framework. Ignore undefined symbols, assuming they come from Python
13731 LDSHARED
="$LDSHARED -undefined suppress"
13733 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13734 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13735 if test "$enable_framework" ; then
13736 # Link against the framework. All externals should be defined.
13737 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13738 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13740 # No framework, use the Python app as bundle-loader
13741 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13742 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13745 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13746 # This allows an extension to be used in any Python
13748 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13750 if test "${enable_universalsdk}"; then
13751 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13753 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13754 BLDSHARED
="$LDSHARED"
13756 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13757 if test "$enable_framework" ; then
13758 # Link against the framework. All externals should be defined.
13759 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13760 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13762 # No framework, use the Python app as bundle-loader
13763 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13764 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13768 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13769 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13771 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13773 LDSHARED
="$CC -shared ${LDFLAGS}"
13775 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13778 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13780 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13783 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13784 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13787 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13791 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13792 OpenUNIX
*|UnixWare
*)
13793 if test "$GCC" = "yes"
13794 then LDSHARED
='$(CC) -shared'
13795 else LDSHARED
='$(CC) -G'
13797 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13798 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13799 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13800 atheos
*) LDSHARED
="gcc -shared";;
13804 { $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5
13805 $as_echo "$LDSHARED" >&6; }
13806 BLDSHARED
=${BLDSHARED-$LDSHARED}
13807 # CCSHARED are the C *flags* used to create objects to go into a shared
13808 # library (module) -- this is only needed for a few systems
13809 { $as_echo "$as_me:$LINENO: checking CCSHARED" >&5
13810 $as_echo_n "checking CCSHARED... " >&6; }
13811 if test -z "$CCSHARED"
13813 case $ac_sys_system/$ac_sys_release in
13814 SunOS
*) if test "$GCC" = yes;
13815 then CCSHARED
="-fPIC";
13816 elif test `uname -p` = sparc
;
13817 then CCSHARED
="-xcode=pic32";
13818 else CCSHARED
="-Kpic";
13820 hp
*|HP
*) if test "$GCC" = yes;
13821 then CCSHARED
="-fPIC";
13822 else CCSHARED
="+z";
13824 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13825 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13826 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13827 OpenUNIX
*|UnixWare
*)
13828 if test "$GCC" = "yes"
13829 then CCSHARED
="-fPIC"
13830 else CCSHARED
="-KPIC"
13833 if test "$GCC" = "yes"
13834 then CCSHARED
="-fPIC"
13835 else CCSHARED
="-Kpic -belf"
13837 Monterey
*) CCSHARED
="-G";;
13838 IRIX
*/6*) case $CC in
13839 *gcc
*) CCSHARED
="-shared";;
13842 atheos
*) CCSHARED
="-fPIC";;
13845 { $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5
13846 $as_echo "$CCSHARED" >&6; }
13847 # LINKFORSHARED are the flags passed to the $(CC) command that links
13848 # the python executable -- this is only needed for a few systems
13849 { $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13850 $as_echo_n "checking LINKFORSHARED... " >&6; }
13851 if test -z "$LINKFORSHARED"
13853 case $ac_sys_system/$ac_sys_release in
13854 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13856 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13857 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13858 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13859 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13860 # -u libsys_s pulls in all symbols in libsys
13862 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13864 # not used by the core itself but which needs to be in the core so
13865 # that dynamically loaded extension modules have access to it.
13866 # -prebind is no longer used, because it actually seems to give a
13867 # slowdown in stead of a speedup, maybe due to the large number of
13868 # dynamic loads Python does.
13870 LINKFORSHARED
="$extra_undefs"
13871 if test "$enable_framework"
13873 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13875 LINKFORSHARED
="$LINKFORSHARED";;
13876 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13877 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13878 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13879 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13880 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13882 LINKFORSHARED
="-Wl,--export-dynamic"
13884 SunOS
/5*) case $CC in
13886 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13888 LINKFORSHARED
="-Xlinker --export-dynamic"
13892 if test $enable_shared = "no"
13894 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13897 # -Wl,-E causes the symbols to be added to the dynamic
13898 # symbol table so that they can be found when a module
13899 # is loaded. -N 2048K causes the stack size to be set
13900 # to 2048 kilobytes so that the stack doesn't overflow
13901 # when running test_compile.py.
13902 LINKFORSHARED
='-Wl,-E -N 2048K';;
13905 { $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13906 $as_echo "$LINKFORSHARED" >&6; }
13910 { $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13911 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
13912 if test ! "$LIBRARY" = "$LDLIBRARY"
13914 case $ac_sys_system in
13916 # Cygwin needs CCSHARED when building extension DLLs
13917 # but not when building the interpreter DLL.
13918 CFLAGSFORSHARED
='';;
13920 CFLAGSFORSHARED
='$(CCSHARED)'
13923 { $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13924 $as_echo "$CFLAGSFORSHARED" >&6; }
13926 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13927 # library (with --enable-shared).
13928 # For platforms on which shared libraries are not allowed to have unresolved
13929 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13930 # if it is not required, since it creates a dependency of the shared library
13931 # to LIBS. This, in turn, means that applications linking the shared libpython
13932 # don't need to link LIBS explicitly. The default should be only changed
13933 # on systems where this approach causes problems.
13935 { $as_echo "$as_me:$LINENO: checking SHLIBS" >&5
13936 $as_echo_n "checking SHLIBS... " >&6; }
13937 case "$ac_sys_system" in
13941 { $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5
13942 $as_echo "$SHLIBS" >&6; }
13945 # checks for libraries
13947 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13948 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13950 $as_echo_n "(cached) " >&6
13952 ac_check_lib_save_LIBS
=$LIBS
13954 cat >conftest.
$ac_ext <<_ACEOF
13957 cat confdefs.h
>>conftest.
$ac_ext
13958 cat >>conftest.
$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13961 /* Override any GCC internal prototype to avoid an error.
13962 Use char because int might match the return type of a GCC
13963 builtin and then its argument prototype would still apply. */
13976 rm -f conftest.
$ac_objext conftest
$ac_exeext
13977 if { (ac_try
="$ac_link"
13978 case "(($ac_try" in
13979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13983 $as_echo "$ac_try_echo") >&5
13984 (eval "$ac_link") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest$ac_exeext && {
13994 test "$cross_compiling" = yes ||
13995 $as_test_x conftest$ac_exeext
13997 ac_cv_lib_dl_dlopen=yes
13999 $as_echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 ac_cv_lib_dl_dlopen=no
14005 rm -rf conftest.dSYM
14006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14007 conftest$ac_exeext conftest.$ac_ext
14008 LIBS=$ac_check_lib_save_LIBS
14010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14012 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14013 cat >>confdefs.h <<_ACEOF
14014 #define HAVE_LIBDL 1
14020 # Dynamic linking for SunOS/Solaris and SYSV
14022 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14025 $as_echo_n "(cached) " >&6
14027 ac_check_lib_save_LIBS=$LIBS
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14046 return shl_load ();
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (ac_try="$ac_link"
14053 case "(($ac_try" in
14054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14055 *) ac_try_echo
=$ac_try;;
14057 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14058 $as_echo "$ac_try_echo") >&5
14059 (eval "$ac_link") 2>conftest.er1
14061 grep -v '^ *+' conftest.er1
>conftest.err
14063 cat conftest.err
>&5
14064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } && {
14066 test -z "$ac_c_werror_flag" ||
14067 test ! -s conftest.err
14068 } && test -s conftest
$ac_exeext && {
14069 test "$cross_compiling" = yes ||
14070 $as_test_x conftest
$ac_exeext
14072 ac_cv_lib_dld_shl_load
=yes
14074 $as_echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.
$ac_ext >&5
14077 ac_cv_lib_dld_shl_load
=no
14080 rm -rf conftest.dSYM
14081 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14082 conftest
$ac_exeext conftest.
$ac_ext
14083 LIBS
=$ac_check_lib_save_LIBS
14085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14086 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14087 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
14088 cat >>confdefs.h
<<_ACEOF
14089 #define HAVE_LIBDLD 1
14095 # Dynamic linking for HP-UX
14097 # only check for sem_init if thread support is requested
14098 if test "$with_threads" = "yes" -o -z "$with_threads"; then
14099 { $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5
14100 $as_echo_n "checking for library containing sem_init... " >&6; }
14101 if test "${ac_cv_search_sem_init+set}" = set; then
14102 $as_echo_n "(cached) " >&6
14104 ac_func_search_save_LIBS
=$LIBS
14105 cat >conftest.
$ac_ext <<_ACEOF
14108 cat confdefs.h
>>conftest.
$ac_ext
14109 cat >>conftest.
$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14122 return sem_init ();
14127 for ac_lib
in '' pthread rt posix4
; do
14128 if test -z "$ac_lib"; then
14129 ac_res
="none required"
14132 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14134 rm -f conftest.
$ac_objext conftest
$ac_exeext
14135 if { (ac_try
="$ac_link"
14136 case "(($ac_try" in
14137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141 $as_echo "$ac_try_echo") >&5
14142 (eval "$ac_link") 2>conftest.er1
14144 grep -v '^ *+' conftest.er1 >conftest.err
14146 cat conftest.err >&5
14147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } && {
14149 test -z "$ac_c_werror_flag" ||
14150 test ! -s conftest.err
14151 } && test -s conftest$ac_exeext && {
14152 test "$cross_compiling" = yes ||
14153 $as_test_x conftest$ac_exeext
14155 ac_cv_search_sem_init=$ac_res
14157 $as_echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14163 rm -rf conftest.dSYM
14164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14166 if test "${ac_cv_search_sem_init+set}" = set; then
14170 if test "${ac_cv_search_sem_init+set}" = set; then
14173 ac_cv_search_sem_init=no
14175 rm conftest.$ac_ext
14176 LIBS=$ac_func_search_save_LIBS
14178 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
14179 $as_echo "$ac_cv_search_sem_init" >&6; }
14180 ac_res=$ac_cv_search_sem_init
14181 if test "$ac_res" != no; then
14182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14185 # 'Real Time' functions on Solaris
14186 # posix4 on Solaris 2.6
14187 # pthread (first!) on Linux
14190 # check if we need libintl for locale functions
14191 { $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
14192 $as_echo_n "checking for textdomain in -lintl... " >&6; }
14193 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
14194 $as_echo_n "(cached) " >&6
14196 ac_check_lib_save_LIBS=$LIBS
14197 LIBS="-lintl $LIBS"
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14205 /* Override any GCC internal prototype to avoid an error.
14206 Use char because int might match the return type of a GCC
14207 builtin and then its argument prototype would still apply. */
14211 char textdomain ();
14215 return textdomain ();
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (ac_try="$ac_link"
14222 case "(($ac_try" in
14223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14224 *) ac_try_echo
=$ac_try;;
14226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_link") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1
>conftest.err
14232 cat conftest.err
>&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 } && test -s conftest
$ac_exeext && {
14238 test "$cross_compiling" = yes ||
14239 $as_test_x conftest
$ac_exeext
14241 ac_cv_lib_intl_textdomain
=yes
14243 $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.
$ac_ext >&5
14246 ac_cv_lib_intl_textdomain
=no
14249 rm -rf conftest.dSYM
14250 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14251 conftest
$ac_exeext conftest.
$ac_ext
14252 LIBS
=$ac_check_lib_save_LIBS
14254 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14255 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
14256 if test "x$ac_cv_lib_intl_textdomain" = x
""yes; then
14258 cat >>confdefs.h
<<\_ACEOF
14259 #define WITH_LIBINTL 1
14265 # checks for system dependent C++ extensions support
14266 case "$ac_sys_system" in
14267 AIX
*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14268 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
14269 cat >conftest.
$ac_ext <<_ACEOF
14272 cat confdefs.h
>>conftest.
$ac_ext
14273 cat >>conftest.
$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include "/usr/lpp/xlC/include/load.h"
14279 loadAndInit("", 0, "")
14284 rm -f conftest.
$ac_objext conftest
$ac_exeext
14285 if { (ac_try
="$ac_link"
14286 case "(($ac_try" in
14287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14291 $as_echo "$ac_try_echo") >&5
14292 (eval "$ac_link") 2>conftest.er1
14294 grep -v '^ *+' conftest.er1 >conftest.err
14296 cat conftest.err >&5
14297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest$ac_exeext && {
14302 test "$cross_compiling" = yes ||
14303 $as_test_x conftest$ac_exeext
14306 cat >>confdefs.h <<\_ACEOF
14307 #define AIX_GENUINE_CPLUSPLUS 1
14310 { $as_echo "$as_me:$LINENO: result: yes" >&5
14311 $as_echo "yes" >&6; }
14313 $as_echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 { $as_echo "$as_me:$LINENO: result: no" >&5
14317 $as_echo "no" >&6; }
14320 rm -rf conftest.dSYM
14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14322 conftest$ac_exeext conftest.$ac_ext;;
14326 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14327 # BeOS' sockets are stashed in libnet.
14328 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14329 $as_echo_n "checking for t_open in -lnsl... " >&6; }
14330 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14331 $as_echo_n "(cached) " >&6
14333 ac_check_lib_save_LIBS=$LIBS
14335 cat >conftest.$ac_ext <<_ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14342 /* Override any GCC internal prototype to avoid an error.
14343 Use char because int might match the return type of a GCC
14344 builtin and then its argument prototype would still apply. */
14357 rm -f conftest.$ac_objext conftest$ac_exeext
14358 if { (ac_try="$ac_link"
14359 case "(($ac_try" in
14360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14361 *) ac_try_echo
=$ac_try;;
14363 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14364 $as_echo "$ac_try_echo") >&5
14365 (eval "$ac_link") 2>conftest.er1
14367 grep -v '^ *+' conftest.er1
>conftest.err
14369 cat conftest.err
>&5
14370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && {
14372 test -z "$ac_c_werror_flag" ||
14373 test ! -s conftest.err
14374 } && test -s conftest
$ac_exeext && {
14375 test "$cross_compiling" = yes ||
14376 $as_test_x conftest
$ac_exeext
14378 ac_cv_lib_nsl_t_open
=yes
14380 $as_echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.
$ac_ext >&5
14383 ac_cv_lib_nsl_t_open
=no
14386 rm -rf conftest.dSYM
14387 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14388 conftest
$ac_exeext conftest.
$ac_ext
14389 LIBS
=$ac_check_lib_save_LIBS
14391 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14392 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
14393 if test "x$ac_cv_lib_nsl_t_open" = x
""yes; then
14397 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14398 $as_echo_n "checking for socket in -lsocket... " >&6; }
14399 if test "${ac_cv_lib_socket_socket+set}" = set; then
14400 $as_echo_n "(cached) " >&6
14402 ac_check_lib_save_LIBS
=$LIBS
14403 LIBS
="-lsocket $LIBS $LIBS"
14404 cat >conftest.
$ac_ext <<_ACEOF
14407 cat confdefs.h
>>conftest.
$ac_ext
14408 cat >>conftest.
$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14411 /* Override any GCC internal prototype to avoid an error.
14412 Use char because int might match the return type of a GCC
14413 builtin and then its argument prototype would still apply. */
14426 rm -f conftest.
$ac_objext conftest
$ac_exeext
14427 if { (ac_try
="$ac_link"
14428 case "(($ac_try" in
14429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14433 $as_echo "$ac_try_echo") >&5
14434 (eval "$ac_link") 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && {
14441 test -z "$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest$ac_exeext && {
14444 test "$cross_compiling" = yes ||
14445 $as_test_x conftest$ac_exeext
14447 ac_cv_lib_socket_socket=yes
14449 $as_echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 ac_cv_lib_socket_socket=no
14455 rm -rf conftest.dSYM
14456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14457 conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS
14460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14461 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14462 if test "x$ac_cv_lib_socket_socket" = x""yes; then
14463 LIBS="-lsocket $LIBS"
14467 case "$ac_sys_system" in
14469 { $as_echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14470 $as_echo_n "checking for socket in -lnet... " >&6; }
14471 if test "${ac_cv_lib_net_socket+set}" = set; then
14472 $as_echo_n "(cached) " >&6
14474 ac_check_lib_save_LIBS=$LIBS
14475 LIBS="-lnet $LIBS $LIBS"
14476 cat >conftest.$ac_ext <<_ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14483 /* Override any GCC internal prototype to avoid an error.
14484 Use char because int might match the return type of a GCC
14485 builtin and then its argument prototype would still apply. */
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (ac_try="$ac_link"
14500 case "(($ac_try" in
14501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14502 *) ac_try_echo
=$ac_try;;
14504 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14505 $as_echo "$ac_try_echo") >&5
14506 (eval "$ac_link") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1
>conftest.err
14510 cat conftest.err
>&5
14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest
$ac_exeext && {
14516 test "$cross_compiling" = yes ||
14517 $as_test_x conftest
$ac_exeext
14519 ac_cv_lib_net_socket
=yes
14521 $as_echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.
$ac_ext >&5
14524 ac_cv_lib_net_socket
=no
14527 rm -rf conftest.dSYM
14528 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14529 conftest
$ac_exeext conftest.
$ac_ext
14530 LIBS
=$ac_check_lib_save_LIBS
14532 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14533 $as_echo "$ac_cv_lib_net_socket" >&6; }
14534 if test "x$ac_cv_lib_net_socket" = x
""yes; then
14541 { $as_echo "$as_me:$LINENO: checking for --with-libs" >&5
14542 $as_echo_n "checking for --with-libs... " >&6; }
14544 # Check whether --with-libs was given.
14545 if test "${with_libs+set}" = set; then
14546 withval
=$with_libs;
14547 { $as_echo "$as_me:$LINENO: result: $withval" >&5
14548 $as_echo "$withval" >&6; }
14549 LIBS
="$withval $LIBS"
14552 { $as_echo "$as_me:$LINENO: result: no" >&5
14553 $as_echo "no" >&6; }
14557 # Check for use of the system libffi library
14558 { $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14559 $as_echo_n "checking for --with-system-ffi... " >&6; }
14561 # Check whether --with-system_ffi was given.
14562 if test "${with_system_ffi+set}" = set; then
14563 withval
=$with_system_ffi;
14567 { $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14568 $as_echo "$with_system_ffi" >&6; }
14570 # Check for --with-dbmliborder
14571 { $as_echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14572 $as_echo_n "checking for --with-dbmliborder... " >&6; }
14574 # Check whether --with-dbmliborder was given.
14575 if test "${with_dbmliborder+set}" = set; then
14576 withval
=$with_dbmliborder;
14577 if test x
$with_dbmliborder = xyes
14579 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14580 $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14581 { (exit 1); exit 1; }; }
14583 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14584 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
14586 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14587 $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14588 { (exit 1); exit 1; }; }
14594 { $as_echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14595 $as_echo "$with_dbmliborder" >&6; }
14597 # Determine if signalmodule should be used.
14600 { $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14601 $as_echo_n "checking for --with-signal-module... " >&6; }
14603 # Check whether --with-signal-module was given.
14604 if test "${with_signal_module+set}" = set; then
14605 withval
=$with_signal_module;
14609 if test -z "$with_signal_module"
14610 then with_signal_module
="yes"
14612 { $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5
14613 $as_echo "$with_signal_module" >&6; }
14615 if test "${with_signal_module}" = "yes"; then
14616 USE_SIGNAL_MODULE
=""
14619 USE_SIGNAL_MODULE
="#"
14620 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
14623 # This is used to generate Setup.config
14625 USE_THREAD_MODULE
=""
14627 { $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14628 $as_echo_n "checking for --with-dec-threads... " >&6; }
14631 # Check whether --with-dec-threads was given.
14632 if test "${with_dec_threads+set}" = set; then
14633 withval
=$with_dec_threads;
14634 { $as_echo "$as_me:$LINENO: result: $withval" >&5
14635 $as_echo "$withval" >&6; }
14637 if test "${with_thread+set}" != set; then
14638 with_thread
="$withval";
14641 { $as_echo "$as_me:$LINENO: result: no" >&5
14642 $as_echo "no" >&6; }
14646 # Templates for things AC_DEFINEd more than once.
14647 # For a single AC_DEFINE, no template is needed.
14655 { $as_echo "$as_me:$LINENO: checking for --with-threads" >&5
14656 $as_echo_n "checking for --with-threads... " >&6; }
14658 # Check whether --with-threads was given.
14659 if test "${with_threads+set}" = set; then
14660 withval
=$with_threads;
14664 # --with-thread is deprecated, but check for it anyway
14666 # Check whether --with-thread was given.
14667 if test "${with_thread+set}" = set; then
14668 withval
=$with_thread; with_threads
=$with_thread
14672 if test -z "$with_threads"
14673 then with_threads
="yes"
14675 { $as_echo "$as_me:$LINENO: result: $with_threads" >&5
14676 $as_echo "$with_threads" >&6; }
14679 if test "$with_threads" = "no"
14681 USE_THREAD_MODULE
="#"
14682 elif test "$ac_cv_pthread_is_default" = yes
14684 cat >>confdefs.h
<<\_ACEOF
14685 #define WITH_THREAD 1
14688 # Defining _REENTRANT on system with POSIX threads should not hurt.
14689 cat >>confdefs.h
<<\_ACEOF
14690 #define _REENTRANT 1
14694 THREADOBJ
="Python/thread.o"
14695 elif test "$ac_cv_kpthread" = "yes"
14698 if test "$ac_cv_cxx_thread" = "yes"; then
14699 CXX
="$CXX -Kpthread"
14701 cat >>confdefs.h
<<\_ACEOF
14702 #define WITH_THREAD 1
14706 THREADOBJ
="Python/thread.o"
14707 elif test "$ac_cv_kthread" = "yes"
14710 if test "$ac_cv_cxx_thread" = "yes"; then
14711 CXX
="$CXX -Kthread"
14713 cat >>confdefs.h
<<\_ACEOF
14714 #define WITH_THREAD 1
14718 THREADOBJ
="Python/thread.o"
14719 elif test "$ac_cv_pthread" = "yes"
14722 if test "$ac_cv_cxx_thread" = "yes"; then
14723 CXX
="$CXX -pthread"
14725 cat >>confdefs.h
<<\_ACEOF
14726 #define WITH_THREAD 1
14730 THREADOBJ
="Python/thread.o"
14732 if test ! -z "$with_threads" -a -d "$with_threads"
14733 then LDFLAGS
="$LDFLAGS -L$with_threads"
14735 if test ! -z "$withval" -a -d "$withval"
14736 then LDFLAGS
="$LDFLAGS -L$withval"
14739 # According to the POSIX spec, a pthreads implementation must
14740 # define _POSIX_THREADS in unistd.h. Some apparently don't
14741 # (e.g. gnu pth with pthread emulation)
14742 { $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14743 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
14744 cat >conftest.
$ac_ext <<_ACEOF
14747 cat confdefs.h
>>conftest.
$ac_ext
14748 cat >>conftest.
$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14751 #include <unistd.h>
14752 #ifdef _POSIX_THREADS
14757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14758 $EGREP "yes" >/dev
/null
2>&1; then
14759 unistd_defines_pthreads
=yes
14761 unistd_defines_pthreads
=no
14765 { $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14766 $as_echo "$unistd_defines_pthreads" >&6; }
14768 cat >>confdefs.h
<<\_ACEOF
14769 #define _REENTRANT 1
14772 if test "${ac_cv_header_cthreads_h+set}" = set; then
14773 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
14774 $as_echo_n "checking for cthreads.h... " >&6; }
14775 if test "${ac_cv_header_cthreads_h+set}" = set; then
14776 $as_echo_n "(cached) " >&6
14778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14779 $as_echo "$ac_cv_header_cthreads_h" >&6; }
14781 # Is the header compilable?
14782 { $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14783 $as_echo_n "checking cthreads.h usability... " >&6; }
14784 cat >conftest.
$ac_ext <<_ACEOF
14787 cat confdefs.h
>>conftest.
$ac_ext
14788 cat >>conftest.
$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <cthreads.h>
14793 rm -f conftest.
$ac_objext
14794 if { (ac_try
="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14800 $as_echo "$ac_try_echo") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1 >conftest.err
14805 cat conftest.err >&5
14806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.$ac_objext; then
14811 ac_header_compiler=yes
14813 $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_compiler=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 $as_echo "$ac_header_compiler" >&6; }
14823 # Is the header present?
14824 { $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14825 $as_echo_n "checking cthreads.h presence... " >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #include <cthreads.h>
14834 if { (ac_try="$ac_cpp conftest.$ac_ext"
14835 case "(($ac_try" in
14836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14837 *) ac_try_echo
=$ac_try;;
14839 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14840 $as_echo "$ac_try_echo") >&5
14841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14843 grep -v '^ *+' conftest.er1
>conftest.err
14845 cat conftest.err
>&5
14846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } >/dev
/null
&& {
14848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14851 ac_header_preproc
=yes
14853 $as_echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.
$ac_ext >&5
14856 ac_header_preproc
=no
14859 rm -f conftest.err conftest.
$ac_ext
14860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861 $as_echo "$ac_header_preproc" >&6; }
14863 # So? What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14866 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14867 $as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14869 $as_echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14870 ac_header_preproc
=yes
14873 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14874 $as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14875 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14876 $as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14877 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14878 $as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14879 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14880 $as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14881 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14882 $as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14883 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14884 $as_echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14886 ## -------------------------------------- ##
14887 ## Report this to http://bugs.python.org/ ##
14888 ## -------------------------------------- ##
14890 ) |
sed "s/^/$as_me: WARNING: /" >&2
14893 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
14894 $as_echo_n "checking for cthreads.h... " >&6; }
14895 if test "${ac_cv_header_cthreads_h+set}" = set; then
14896 $as_echo_n "(cached) " >&6
14898 ac_cv_header_cthreads_h
=$ac_header_preproc
14900 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14901 $as_echo "$ac_cv_header_cthreads_h" >&6; }
14904 if test "x$ac_cv_header_cthreads_h" = x
""yes; then
14905 cat >>confdefs.h
<<\_ACEOF
14906 #define WITH_THREAD 1
14909 cat >>confdefs.h
<<\_ACEOF
14910 #define C_THREADS 1
14914 cat >>confdefs.h
<<\_ACEOF
14915 #define HURD_C_THREADS 1
14918 LIBS
="$LIBS -lthreads"
14919 THREADOBJ
="Python/thread.o"
14922 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14923 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14924 $as_echo_n "checking for mach/cthreads.h... " >&6; }
14925 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14926 $as_echo_n "(cached) " >&6
14928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14929 $as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
14931 # Is the header compilable?
14932 { $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14933 $as_echo_n "checking mach/cthreads.h usability... " >&6; }
14934 cat >conftest.
$ac_ext <<_ACEOF
14937 cat confdefs.h
>>conftest.
$ac_ext
14938 cat >>conftest.
$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 $ac_includes_default
14941 #include <mach/cthreads.h>
14943 rm -f conftest.
$ac_objext
14944 if { (ac_try
="$ac_compile"
14945 case "(($ac_try" in
14946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14950 $as_echo "$ac_try_echo") >&5
14951 (eval "$ac_compile") 2>conftest.er1
14953 grep -v '^ *+' conftest.er1 >conftest.err
14955 cat conftest.err >&5
14956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && {
14958 test -z "$ac_c_werror_flag" ||
14959 test ! -s conftest.err
14960 } && test -s conftest.$ac_objext; then
14961 ac_header_compiler=yes
14963 $as_echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_header_compiler=no
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14971 $as_echo "$ac_header_compiler" >&6; }
14973 # Is the header present?
14974 { $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14975 $as_echo_n "checking mach/cthreads.h presence... " >&6; }
14976 cat >conftest.$ac_ext <<_ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 #include <mach/cthreads.h>
14984 if { (ac_try="$ac_cpp conftest.$ac_ext"
14985 case "(($ac_try" in
14986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14987 *) ac_try_echo
=$ac_try;;
14989 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14990 $as_echo "$ac_try_echo") >&5
14991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1
>conftest.err
14995 cat conftest.err
>&5
14996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev
/null
&& {
14998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15001 ac_header_preproc
=yes
15003 $as_echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.
$ac_ext >&5
15006 ac_header_preproc
=no
15009 rm -f conftest.err conftest.
$ac_ext
15010 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15011 $as_echo "$ac_header_preproc" >&6; }
15013 # So? What about this header?
15014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15016 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15017 $as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15018 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15019 $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15020 ac_header_preproc
=yes
15023 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15024 $as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15025 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15026 $as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15027 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15028 $as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15029 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15030 $as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15031 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15032 $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15033 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15034 $as_echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15036 ## -------------------------------------- ##
15037 ## Report this to http://bugs.python.org/ ##
15038 ## -------------------------------------- ##
15040 ) |
sed "s/^/$as_me: WARNING: /" >&2
15043 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15044 $as_echo_n "checking for mach/cthreads.h... " >&6; }
15045 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15046 $as_echo_n "(cached) " >&6
15048 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
15050 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15051 $as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
15054 if test "x$ac_cv_header_mach_cthreads_h" = x
""yes; then
15055 cat >>confdefs.h
<<\_ACEOF
15056 #define WITH_THREAD 1
15059 cat >>confdefs.h
<<\_ACEOF
15060 #define C_THREADS 1
15064 cat >>confdefs.h
<<\_ACEOF
15065 #define MACH_C_THREADS 1
15068 THREADOBJ
="Python/thread.o"
15071 { $as_echo "$as_me:$LINENO: checking for --with-pth" >&5
15072 $as_echo_n "checking for --with-pth... " >&6; }
15074 # Check whether --with-pth was given.
15075 if test "${with_pth+set}" = set; then
15076 withval
=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5
15077 $as_echo "$withval" >&6; }
15078 cat >>confdefs.h
<<\_ACEOF
15079 #define WITH_THREAD 1
15083 cat >>confdefs.h
<<\_ACEOF
15088 THREADOBJ
="Python/thread.o"
15090 { $as_echo "$as_me:$LINENO: result: no" >&5
15091 $as_echo "no" >&6; }
15093 # Just looking for pthread_create in libpthread is not enough:
15094 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
15095 # So we really have to include pthread.h, and then link.
15097 LIBS
="$LIBS -lpthread"
15098 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15099 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15100 cat >conftest.
$ac_ext <<_ACEOF
15103 cat confdefs.h
>>conftest.
$ac_ext
15104 cat >>conftest.
$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 #include <pthread.h>
15108 void * start_routine (void *arg) { exit (0); }
15113 pthread_create (NULL, NULL, start_routine, NULL)
15118 rm -f conftest.
$ac_objext conftest
$ac_exeext
15119 if { (ac_try
="$ac_link"
15120 case "(($ac_try" in
15121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15125 $as_echo "$ac_try_echo") >&5
15126 (eval "$ac_link") 2>conftest.er1
15128 grep -v '^ *+' conftest.er1 >conftest.err
15130 cat conftest.err >&5
15131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest$ac_exeext && {
15136 test "$cross_compiling" = yes ||
15137 $as_test_x conftest$ac_exeext
15140 { $as_echo "$as_me:$LINENO: result: yes" >&5
15141 $as_echo "yes" >&6; }
15142 cat >>confdefs.h <<\_ACEOF
15143 #define WITH_THREAD 1
15147 THREADOBJ="Python/thread.o"
15149 $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15154 { $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5
15155 $as_echo_n "checking for pthread_detach... " >&6; }
15156 if test "${ac_cv_func_pthread_detach+set}" = set; then
15157 $as_echo_n "(cached) " >&6
15159 cat >conftest.$ac_ext <<_ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
15166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15167 #define pthread_detach innocuous_pthread_detach
15169 /* System header to define __stub macros and hopefully few prototypes,
15170 which can conflict with char pthread_detach (); below.
15171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15172 <limits.h> exists even on freestanding compilers. */
15175 # include <limits.h>
15177 # include <assert.h>
15180 #undef pthread_detach
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15188 char pthread_detach ();
15189 /* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192 #if defined __stub_pthread_detach || defined __stub___pthread_detach
15199 return pthread_detach ();
15204 rm -f conftest.$ac_objext conftest$ac_exeext
15205 if { (ac_try="$ac_link"
15206 case "(($ac_try" in
15207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15208 *) ac_try_echo
=$ac_try;;
15210 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15211 $as_echo "$ac_try_echo") >&5
15212 (eval "$ac_link") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1
>conftest.err
15216 cat conftest.err
>&5
15217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest
$ac_exeext && {
15222 test "$cross_compiling" = yes ||
15223 $as_test_x conftest
$ac_exeext
15225 ac_cv_func_pthread_detach
=yes
15227 $as_echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.
$ac_ext >&5
15230 ac_cv_func_pthread_detach
=no
15233 rm -rf conftest.dSYM
15234 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15235 conftest
$ac_exeext conftest.
$ac_ext
15237 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
15238 $as_echo "$ac_cv_func_pthread_detach" >&6; }
15239 if test "x$ac_cv_func_pthread_detach" = x
""yes; then
15240 cat >>confdefs.h
<<\_ACEOF
15241 #define WITH_THREAD 1
15245 THREADOBJ
="Python/thread.o"
15248 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15249 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15250 $as_echo_n "checking for atheos/threads.h... " >&6; }
15251 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15252 $as_echo_n "(cached) " >&6
15254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15255 $as_echo "$ac_cv_header_atheos_threads_h" >&6; }
15257 # Is the header compilable?
15258 { $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
15259 $as_echo_n "checking atheos/threads.h usability... " >&6; }
15260 cat >conftest.
$ac_ext <<_ACEOF
15263 cat confdefs.h
>>conftest.
$ac_ext
15264 cat >>conftest.
$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 $ac_includes_default
15267 #include <atheos/threads.h>
15269 rm -f conftest.
$ac_objext
15270 if { (ac_try
="$ac_compile"
15271 case "(($ac_try" in
15272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15276 $as_echo "$ac_try_echo") >&5
15277 (eval "$ac_compile") 2>conftest.er1
15279 grep -v '^ *+' conftest.er1 >conftest.err
15281 cat conftest.err >&5
15282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest.$ac_objext; then
15287 ac_header_compiler=yes
15289 $as_echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 ac_header_compiler=no
15295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15297 $as_echo "$ac_header_compiler" >&6; }
15299 # Is the header present?
15300 { $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15301 $as_echo_n "checking atheos/threads.h presence... " >&6; }
15302 cat >conftest.$ac_ext <<_ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 #include <atheos/threads.h>
15310 if { (ac_try="$ac_cpp conftest.$ac_ext"
15311 case "(($ac_try" in
15312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15313 *) ac_try_echo
=$ac_try;;
15315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15316 $as_echo "$ac_try_echo") >&5
15317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1
>conftest.err
15321 cat conftest.err
>&5
15322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } >/dev
/null
&& {
15324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15327 ac_header_preproc
=yes
15329 $as_echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.
$ac_ext >&5
15332 ac_header_preproc
=no
15335 rm -f conftest.err conftest.
$ac_ext
15336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15337 $as_echo "$ac_header_preproc" >&6; }
15339 # So? What about this header?
15340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15342 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15343 $as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15344 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15345 $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15346 ac_header_preproc
=yes
15349 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15350 $as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15351 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15352 $as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15353 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15354 $as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15355 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15356 $as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15357 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15358 $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15359 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15360 $as_echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15362 ## -------------------------------------- ##
15363 ## Report this to http://bugs.python.org/ ##
15364 ## -------------------------------------- ##
15366 ) |
sed "s/^/$as_me: WARNING: /" >&2
15369 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15370 $as_echo_n "checking for atheos/threads.h... " >&6; }
15371 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15372 $as_echo_n "(cached) " >&6
15374 ac_cv_header_atheos_threads_h
=$ac_header_preproc
15376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15377 $as_echo "$ac_cv_header_atheos_threads_h" >&6; }
15380 if test "x$ac_cv_header_atheos_threads_h" = x
""yes; then
15381 cat >>confdefs.h
<<\_ACEOF
15382 #define WITH_THREAD 1
15386 cat >>confdefs.h
<<\_ACEOF
15387 #define ATHEOS_THREADS 1
15390 THREADOBJ
="Python/thread.o"
15393 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15394 { $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15395 $as_echo_n "checking for kernel/OS.h... " >&6; }
15396 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15397 $as_echo_n "(cached) " >&6
15399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15400 $as_echo "$ac_cv_header_kernel_OS_h" >&6; }
15402 # Is the header compilable?
15403 { $as_echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15404 $as_echo_n "checking kernel/OS.h usability... " >&6; }
15405 cat >conftest.
$ac_ext <<_ACEOF
15408 cat confdefs.h
>>conftest.
$ac_ext
15409 cat >>conftest.
$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 $ac_includes_default
15412 #include <kernel/OS.h>
15414 rm -f conftest.
$ac_objext
15415 if { (ac_try
="$ac_compile"
15416 case "(($ac_try" in
15417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15421 $as_echo "$ac_try_echo") >&5
15422 (eval "$ac_compile") 2>conftest.er1
15424 grep -v '^ *+' conftest.er1 >conftest.err
15426 cat conftest.err >&5
15427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } && {
15429 test -z "$ac_c_werror_flag" ||
15430 test ! -s conftest.err
15431 } && test -s conftest.$ac_objext; then
15432 ac_header_compiler=yes
15434 $as_echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_header_compiler=no
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15442 $as_echo "$ac_header_compiler" >&6; }
15444 # Is the header present?
15445 { $as_echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15446 $as_echo_n "checking kernel/OS.h presence... " >&6; }
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <kernel/OS.h>
15455 if { (ac_try="$ac_cpp conftest.$ac_ext"
15456 case "(($ac_try" in
15457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15458 *) ac_try_echo
=$ac_try;;
15460 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15461 $as_echo "$ac_try_echo") >&5
15462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15464 grep -v '^ *+' conftest.er1
>conftest.err
15466 cat conftest.err
>&5
15467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } >/dev
/null
&& {
15469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15470 test ! -s conftest.err
15472 ac_header_preproc
=yes
15474 $as_echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.
$ac_ext >&5
15477 ac_header_preproc
=no
15480 rm -f conftest.err conftest.
$ac_ext
15481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 $as_echo "$ac_header_preproc" >&6; }
15484 # So? What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15487 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15488 $as_echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15490 $as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15491 ac_header_preproc
=yes
15494 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15495 $as_echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15496 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15497 $as_echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15498 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15499 $as_echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15500 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15501 $as_echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15502 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15503 $as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15504 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15505 $as_echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15507 ## -------------------------------------- ##
15508 ## Report this to http://bugs.python.org/ ##
15509 ## -------------------------------------- ##
15511 ) |
sed "s/^/$as_me: WARNING: /" >&2
15514 { $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15515 $as_echo_n "checking for kernel/OS.h... " >&6; }
15516 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15517 $as_echo_n "(cached) " >&6
15519 ac_cv_header_kernel_OS_h
=$ac_header_preproc
15521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15522 $as_echo "$ac_cv_header_kernel_OS_h" >&6; }
15525 if test "x$ac_cv_header_kernel_OS_h" = x
""yes; then
15526 cat >>confdefs.h
<<\_ACEOF
15527 #define WITH_THREAD 1
15531 cat >>confdefs.h
<<\_ACEOF
15532 #define BEOS_THREADS 1
15535 THREADOBJ
="Python/thread.o"
15538 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15539 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
15540 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15541 $as_echo_n "(cached) " >&6
15543 ac_check_lib_save_LIBS
=$LIBS
15544 LIBS
="-lpthreads $LIBS"
15545 cat >conftest.
$ac_ext <<_ACEOF
15548 cat confdefs.h
>>conftest.
$ac_ext
15549 cat >>conftest.
$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
15558 char pthread_create ();
15562 return pthread_create ();
15567 rm -f conftest.
$ac_objext conftest
$ac_exeext
15568 if { (ac_try
="$ac_link"
15569 case "(($ac_try" in
15570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15574 $as_echo "$ac_try_echo") >&5
15575 (eval "$ac_link") 2>conftest.er1
15577 grep -v '^ *+' conftest.er1 >conftest.err
15579 cat conftest.err >&5
15580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest$ac_exeext && {
15585 test "$cross_compiling" = yes ||
15586 $as_test_x conftest$ac_exeext
15588 ac_cv_lib_pthreads_pthread_create=yes
15590 $as_echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_cv_lib_pthreads_pthread_create=no
15596 rm -rf conftest.dSYM
15597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15602 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
15603 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
15604 cat >>confdefs.h <<\_ACEOF
15605 #define WITH_THREAD 1
15609 LIBS="$LIBS -lpthreads"
15610 THREADOBJ="Python/thread.o"
15613 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15614 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15615 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15616 $as_echo_n "(cached) " >&6
15618 ac_check_lib_save_LIBS=$LIBS
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any GCC internal prototype to avoid an error.
15628 Use char because int might match the return type of a GCC
15629 builtin and then its argument prototype would still apply. */
15633 char pthread_create ();
15637 return pthread_create ();
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (ac_try="$ac_link"
15644 case "(($ac_try" in
15645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15646 *) ac_try_echo
=$ac_try;;
15648 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15649 $as_echo "$ac_try_echo") >&5
15650 (eval "$ac_link") 2>conftest.er1
15652 grep -v '^ *+' conftest.er1
>conftest.err
15654 cat conftest.err
>&5
15655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest
$ac_exeext && {
15660 test "$cross_compiling" = yes ||
15661 $as_test_x conftest
$ac_exeext
15663 ac_cv_lib_c_r_pthread_create
=yes
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.
$ac_ext >&5
15668 ac_cv_lib_c_r_pthread_create
=no
15671 rm -rf conftest.dSYM
15672 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15673 conftest
$ac_exeext conftest.
$ac_ext
15674 LIBS
=$ac_check_lib_save_LIBS
15676 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15677 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15678 if test "x$ac_cv_lib_c_r_pthread_create" = x
""yes; then
15679 cat >>confdefs.h
<<\_ACEOF
15680 #define WITH_THREAD 1
15685 THREADOBJ
="Python/thread.o"
15688 { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15689 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
15690 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15691 $as_echo_n "(cached) " >&6
15693 ac_check_lib_save_LIBS
=$LIBS
15694 LIBS
="-lpthread $LIBS"
15695 cat >conftest.
$ac_ext <<_ACEOF
15698 cat confdefs.h
>>conftest.
$ac_ext
15699 cat >>conftest.
$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15702 /* Override any GCC internal prototype to avoid an error.
15703 Use char because int might match the return type of a GCC
15704 builtin and then its argument prototype would still apply. */
15708 char __pthread_create_system ();
15712 return __pthread_create_system ();
15717 rm -f conftest.
$ac_objext conftest
$ac_exeext
15718 if { (ac_try
="$ac_link"
15719 case "(($ac_try" in
15720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724 $as_echo "$ac_try_echo") >&5
15725 (eval "$ac_link") 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest$ac_exeext && {
15735 test "$cross_compiling" = yes ||
15736 $as_test_x conftest$ac_exeext
15738 ac_cv_lib_pthread___pthread_create_system=yes
15740 $as_echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_cv_lib_pthread___pthread_create_system=no
15746 rm -rf conftest.dSYM
15747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15748 conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15752 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
15753 if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then
15754 cat >>confdefs.h <<\_ACEOF
15755 #define WITH_THREAD 1
15759 LIBS="$LIBS -lpthread"
15760 THREADOBJ="Python/thread.o"
15763 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15764 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
15765 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15766 $as_echo_n "(cached) " >&6
15768 ac_check_lib_save_LIBS=$LIBS
15770 cat >conftest.$ac_ext <<_ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15777 /* Override any GCC internal prototype to avoid an error.
15778 Use char because int might match the return type of a GCC
15779 builtin and then its argument prototype would still apply. */
15783 char pthread_create ();
15787 return pthread_create ();
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (ac_try="$ac_link"
15794 case "(($ac_try" in
15795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15796 *) ac_try_echo
=$ac_try;;
15798 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15799 $as_echo "$ac_try_echo") >&5
15800 (eval "$ac_link") 2>conftest.er1
15802 grep -v '^ *+' conftest.er1
>conftest.err
15804 cat conftest.err
>&5
15805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } && {
15807 test -z "$ac_c_werror_flag" ||
15808 test ! -s conftest.err
15809 } && test -s conftest
$ac_exeext && {
15810 test "$cross_compiling" = yes ||
15811 $as_test_x conftest
$ac_exeext
15813 ac_cv_lib_cma_pthread_create
=yes
15815 $as_echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.
$ac_ext >&5
15818 ac_cv_lib_cma_pthread_create
=no
15821 rm -rf conftest.dSYM
15822 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15823 conftest
$ac_exeext conftest.
$ac_ext
15824 LIBS
=$ac_check_lib_save_LIBS
15826 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15827 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
15828 if test "x$ac_cv_lib_cma_pthread_create" = x
""yes; then
15829 cat >>confdefs.h
<<\_ACEOF
15830 #define WITH_THREAD 1
15835 THREADOBJ
="Python/thread.o"
15838 USE_THREAD_MODULE
="#"
15858 rm -rf conftest.dSYM
15859 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15860 conftest
$ac_exeext conftest.
$ac_ext
15870 { $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15871 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
15872 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15873 $as_echo_n "(cached) " >&6
15875 ac_check_lib_save_LIBS
=$LIBS
15877 cat >conftest.
$ac_ext <<_ACEOF
15880 cat confdefs.h
>>conftest.
$ac_ext
15881 cat >>conftest.
$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15884 /* Override any GCC internal prototype to avoid an error.
15885 Use char because int might match the return type of a GCC
15886 builtin and then its argument prototype would still apply. */
15894 return usconfig ();
15899 rm -f conftest.
$ac_objext conftest
$ac_exeext
15900 if { (ac_try
="$ac_link"
15901 case "(($ac_try" in
15902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15906 $as_echo "$ac_try_echo") >&5
15907 (eval "$ac_link") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest$ac_exeext && {
15917 test "$cross_compiling" = yes ||
15918 $as_test_x conftest$ac_exeext
15920 ac_cv_lib_mpc_usconfig=yes
15922 $as_echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_cv_lib_mpc_usconfig=no
15928 rm -rf conftest.dSYM
15929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15930 conftest$ac_exeext conftest.$ac_ext
15931 LIBS=$ac_check_lib_save_LIBS
15933 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15934 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
15935 if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then
15936 cat >>confdefs.h <<\_ACEOF
15937 #define WITH_THREAD 1
15941 THREADOBJ="Python/thread.o"
15942 USE_THREAD_MODULE=""
15946 if test "$posix_threads" != "yes"; then
15947 { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15948 $as_echo_n "checking for thr_create in -lthread... " >&6; }
15949 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15950 $as_echo_n "(cached) " >&6
15952 ac_check_lib_save_LIBS=$LIBS
15953 LIBS="-lthread $LIBS"
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15961 /* Override any GCC internal prototype to avoid an error.
15962 Use char because int might match the return type of a GCC
15963 builtin and then its argument prototype would still apply. */
15967 char thr_create ();
15971 return thr_create ();
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (ac_try="$ac_link"
15978 case "(($ac_try" in
15979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15980 *) ac_try_echo
=$ac_try;;
15982 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15983 $as_echo "$ac_try_echo") >&5
15984 (eval "$ac_link") 2>conftest.er1
15986 grep -v '^ *+' conftest.er1
>conftest.err
15988 cat conftest.err
>&5
15989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } && {
15991 test -z "$ac_c_werror_flag" ||
15992 test ! -s conftest.err
15993 } && test -s conftest
$ac_exeext && {
15994 test "$cross_compiling" = yes ||
15995 $as_test_x conftest
$ac_exeext
15997 ac_cv_lib_thread_thr_create
=yes
15999 $as_echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.
$ac_ext >&5
16002 ac_cv_lib_thread_thr_create
=no
16005 rm -rf conftest.dSYM
16006 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16007 conftest
$ac_exeext conftest.
$ac_ext
16008 LIBS
=$ac_check_lib_save_LIBS
16010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16011 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
16012 if test "x$ac_cv_lib_thread_thr_create" = x
""yes; then
16013 cat >>confdefs.h
<<\_ACEOF
16014 #define WITH_THREAD 1
16017 LIBS
="$LIBS -lthread"
16018 THREADOBJ
="Python/thread.o"
16019 USE_THREAD_MODULE
=""
16024 if test "$USE_THREAD_MODULE" != "#"
16026 # If the above checks didn't disable threads, (at least) OSF1
16027 # needs this '-threads' argument during linking.
16028 case $ac_sys_system in
16029 OSF1
) LDLAST
=-threads;;
16034 if test "$posix_threads" = "yes"; then
16035 if test "$unistd_defines_pthreads" = "no"; then
16037 cat >>confdefs.h
<<\_ACEOF
16038 #define _POSIX_THREADS 1
16043 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16044 case $ac_sys_system/$ac_sys_release in
16046 cat >>confdefs.h
<<\_ACEOF
16047 #define HAVE_PTHREAD_DESTRUCTOR 1
16052 cat >>confdefs.h
<<\_ACEOF
16053 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16058 cat >>confdefs.h
<<\_ACEOF
16059 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16065 { $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16066 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
16067 if test "${ac_cv_pthread_system_supported+set}" = set; then
16068 $as_echo_n "(cached) " >&6
16070 if test "$cross_compiling" = yes; then
16071 ac_cv_pthread_system_supported
=no
16073 cat >conftest.
$ac_ext <<_ACEOF
16076 cat confdefs.h
>>conftest.
$ac_ext
16077 cat >>conftest.
$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <pthread.h>
16080 void *foo(void *parm) {
16084 pthread_attr_t attr;
16086 if (pthread_attr_init(&attr)) exit(-1);
16087 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
16088 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
16092 rm -f conftest
$ac_exeext
16093 if { (ac_try
="$ac_link"
16094 case "(($ac_try" in
16095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_link") 2>&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16106 *) ac_try_echo
=$ac_try;;
16108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16109 $as_echo "$ac_try_echo") >&5
16110 (eval "$ac_try") 2>&5
16112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_cv_pthread_system_supported
=yes
16116 $as_echo "$as_me: program exited with status $ac_status" >&5
16117 $as_echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.
$ac_ext >&5
16120 ( exit $ac_status )
16121 ac_cv_pthread_system_supported
=no
16123 rm -rf conftest.dSYM
16124 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16131 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
16132 $as_echo "$ac_cv_pthread_system_supported" >&6; }
16133 if test "$ac_cv_pthread_system_supported" = "yes"; then
16135 cat >>confdefs.h
<<\_ACEOF
16136 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
16141 for ac_func
in pthread_sigmask
16143 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16144 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16145 $as_echo_n "checking for $ac_func... " >&6; }
16146 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16147 $as_echo_n "(cached) " >&6
16149 cat >conftest.
$ac_ext <<_ACEOF
16152 cat confdefs.h
>>conftest.
$ac_ext
16153 cat >>conftest.
$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16157 #define $ac_func innocuous_$ac_func
16159 /* System header to define __stub macros and hopefully few prototypes,
16160 which can conflict with char $ac_func (); below.
16161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16162 <limits.h> exists even on freestanding compilers. */
16165 # include <limits.h>
16167 # include <assert.h>
16172 /* Override any GCC internal prototype to avoid an error.
16173 Use char because int might match the return type of a GCC
16174 builtin and then its argument prototype would still apply. */
16179 /* The GNU C library defines this for functions which it implements
16180 to always fail with ENOSYS. Some functions are actually named
16181 something starting with __ and the normal name is an alias. */
16182 #if defined __stub_$ac_func || defined __stub___$ac_func
16189 return $ac_func ();
16194 rm -f conftest.
$ac_objext conftest
$ac_exeext
16195 if { (ac_try
="$ac_link"
16196 case "(($ac_try" in
16197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16201 $as_echo "$ac_try_echo") >&5
16202 (eval "$ac_link") 2>conftest.er1
16204 grep -v '^ *+' conftest.er1 >conftest.err
16206 cat conftest.err >&5
16207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } && {
16209 test -z "$ac_c_werror_flag" ||
16210 test ! -s conftest.err
16211 } && test -s conftest$ac_exeext && {
16212 test "$cross_compiling" = yes ||
16213 $as_test_x conftest$ac_exeext
16215 eval "$as_ac_var=yes"
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 eval "$as_ac_var=no"
16223 rm -rf conftest.dSYM
16224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16225 conftest$ac_exeext conftest.$ac_ext
16227 ac_res=`eval 'as_val=${'$as_ac_var'}
16228 $as_echo "$as_val"'`
16229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16230 $as_echo "$ac_res" >&6; }
16231 as_val=`eval 'as_val=${'$as_ac_var'}
16232 $as_echo "$as_val"'`
16233 if test "x$as_val" = x""yes; then
16234 cat >>confdefs.h <<_ACEOF
16235 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16237 case $ac_sys_system in
16240 cat >>confdefs.h <<\_ACEOF
16241 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
16252 # Check for enable-ipv6
16255 { $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
16256 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
16257 # Check whether --enable-ipv6 was given.
16258 if test "${enable_ipv6+set}" = set; then
16259 enableval=$enable_ipv6; case "$enableval" in
16261 { $as_echo "$as_me:$LINENO: result: no" >&5
16262 $as_echo "no" >&6; }
16265 *) { $as_echo "$as_me:$LINENO: result: yes" >&5
16266 $as_echo "yes" >&6; }
16267 cat >>confdefs.h <<\_ACEOF
16268 #define ENABLE_IPV6 1
16276 if test "$cross_compiling" = yes; then
16277 { $as_echo "$as_me:$LINENO: result: no" >&5
16278 $as_echo "no" >&6; }
16282 cat >conftest.$ac_ext <<_ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 /* AF_INET6 available check */
16289 #include <sys/types.h>
16290 #include <sys/socket.h>
16293 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
16300 rm -f conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16304 *) ac_try_echo
=$ac_try;;
16306 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16307 $as_echo "$ac_try_echo") >&5
16308 (eval "$ac_link") 2>&5
16310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16312 { (case "(($ac_try" in
16313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318 (eval "$ac_try") 2>&5
16320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 { $as_echo "$as_me:$LINENO: result: yes" >&5
16323 $as_echo "yes" >&6; }
16326 $as_echo "$as_me: program exited with status $ac_status" >&5
16327 $as_echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ( exit $ac_status )
16331 { $as_echo "$as_me:$LINENO: result: no" >&5
16332 $as_echo "no" >&6; }
16335 rm -rf conftest.dSYM
16336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16341 if test "$ipv6" = "yes"; then
16342 { $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16343 $as_echo_n "checking if RFC2553 API is available... " >&6; }
16344 cat >conftest.$ac_ext <<_ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 #include <sys/types.h>
16351 #include <netinet/in.h>
16355 struct sockaddr_in6 x;
16361 rm -f conftest.$ac_objext
16362 if { (ac_try="$ac_compile"
16363 case "(($ac_try" in
16364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16365 *) ac_try_echo
=$ac_try;;
16367 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16368 $as_echo "$ac_try_echo") >&5
16369 (eval "$ac_compile") 2>conftest.er1
16371 grep -v '^ *+' conftest.er1
>conftest.err
16373 cat conftest.err
>&5
16374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } && {
16376 test -z "$ac_c_werror_flag" ||
16377 test ! -s conftest.err
16378 } && test -s conftest.
$ac_objext; then
16379 { $as_echo "$as_me:$LINENO: result: yes" >&5
16380 $as_echo "yes" >&6; }
16383 $as_echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.
$ac_ext >&5
16386 { $as_echo "$as_me:$LINENO: result: no" >&5
16387 $as_echo "no" >&6; }
16391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16394 if test "$ipv6" = "yes"; then
16395 cat >>confdefs.h
<<\_ACEOF
16396 #define ENABLE_IPV6 1
16408 if test "$ipv6" = "yes"; then
16409 { $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16410 $as_echo_n "checking ipv6 stack type... " >&6; }
16411 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
16415 cat >conftest.
$ac_ext <<_ACEOF
16418 cat confdefs.h
>>conftest.
$ac_ext
16419 cat >>conftest.
$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16422 #include <netinet/in.h>
16423 #ifdef IPV6_INRIA_VERSION
16427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428 $EGREP "yes" >/dev
/null
2>&1; then
16435 cat >conftest.
$ac_ext <<_ACEOF
16438 cat confdefs.h
>>conftest.
$ac_ext
16439 cat >>conftest.
$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16442 #include <netinet/in.h>
16447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16448 $EGREP "yes" >/dev
/null
2>&1; then
16451 ipv6libdir
=/usr
/local
/v
6/lib
16458 cat >conftest.
$ac_ext <<_ACEOF
16461 cat confdefs.h
>>conftest.
$ac_ext
16462 cat >>conftest.
$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16465 #include <features.h>
16466 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471 $EGREP "yes" >/dev
/null
2>&1; then
16479 if test -d /usr
/inet6
; then
16482 ipv6libdir
=/usr
/inet
6/lib
16483 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
16487 if test -f /etc
/netconfig
; then
16488 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
16495 cat >conftest.
$ac_ext <<_ACEOF
16498 cat confdefs.h
>>conftest.
$ac_ext
16499 cat >>conftest.
$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16502 #include <sys/param.h>
16503 #ifdef _TOSHIBA_INET6
16507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16508 $EGREP "yes" >/dev
/null
2>&1; then
16511 ipv6libdir
=/usr
/local
/v
6/lib
16517 cat >conftest.
$ac_ext <<_ACEOF
16520 cat confdefs.h
>>conftest.
$ac_ext
16521 cat >>conftest.
$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16524 #include </usr/local/v6/include/sys/v6config.h>
16529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16530 $EGREP "yes" >/dev
/null
2>&1; then
16533 ipv6libdir
=/usr
/local
/v
6/lib
;
16534 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
16540 cat >conftest.
$ac_ext <<_ACEOF
16543 cat confdefs.h
>>conftest.
$ac_ext
16544 cat >>conftest.
$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16547 #include <sys/param.h>
16548 #ifdef _ZETA_MINAMI_INET6
16552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16553 $EGREP "yes" >/dev
/null
2>&1; then
16556 ipv6libdir
=/usr
/local
/v
6/lib
16562 if test "$ipv6type" != "unknown"; then
16566 { $as_echo "$as_me:$LINENO: result: $ipv6type" >&5
16567 $as_echo "$ipv6type" >&6; }
16570 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16571 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
16572 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
16573 echo "using lib$ipv6lib"
16575 if test $ipv6trylibc = "yes"; then
16578 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16579 echo "You need to fetch lib$ipv6lib.a from appropriate"
16580 echo 'ipv6 kit and compile beforehand.'
16586 { $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16587 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
16588 cat >conftest.
$ac_ext <<_ACEOF
16591 cat confdefs.h
>>conftest.
$ac_ext
16592 cat >>conftest.
$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 #include <Carbon/Carbon.h>
16598 FSIORefNum fRef = 0
16603 rm -f conftest.
$ac_objext
16604 if { (ac_try
="$ac_compile"
16605 case "(($ac_try" in
16606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16610 $as_echo "$ac_try_echo") >&5
16611 (eval "$ac_compile") 2>conftest.er1
16613 grep -v '^ *+' conftest.er1 >conftest.err
16615 cat conftest.err >&5
16616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } && {
16618 test -z "$ac_c_werror_flag" ||
16619 test ! -s conftest.err
16620 } && test -s conftest.$ac_objext; then
16622 cat >>confdefs.h <<\_ACEOF
16623 #define HAVE_OSX105_SDK 1
16626 { $as_echo "$as_me:$LINENO: result: yes" >&5
16627 $as_echo "yes" >&6; }
16629 $as_echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 { $as_echo "$as_me:$LINENO: result: no" >&5
16633 $as_echo "no" >&6; }
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 # Check for --with-doc-strings
16640 { $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16641 $as_echo_n "checking for --with-doc-strings... " >&6; }
16643 # Check whether --with-doc-strings was given.
16644 if test "${with_doc_strings+set}" = set; then
16645 withval=$with_doc_strings;
16649 if test -z "$with_doc_strings"
16650 then with_doc_strings="yes"
16652 if test "$with_doc_strings" != "no"
16655 cat >>confdefs.h <<\_ACEOF
16656 #define WITH_DOC_STRINGS 1
16660 { $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16661 $as_echo "$with_doc_strings" >&6; }
16663 # Check for Python-specific malloc support
16664 { $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5
16665 $as_echo_n "checking for --with-tsc... " >&6; }
16667 # Check whether --with-tsc was given.
16668 if test "${with_tsc+set}" = set; then
16670 if test "$withval" != no
16673 cat >>confdefs.h <<\_ACEOF
16677 { $as_echo "$as_me:$LINENO: result: yes" >&5
16678 $as_echo "yes" >&6; }
16679 else { $as_echo "$as_me:$LINENO: result: no" >&5
16680 $as_echo "no" >&6; }
16683 { $as_echo "$as_me:$LINENO: result: no" >&5
16684 $as_echo "no" >&6; }
16688 # Check for Python-specific malloc support
16689 { $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16690 $as_echo_n "checking for --with-pymalloc... " >&6; }
16692 # Check whether --with-pymalloc was given.
16693 if test "${with_pymalloc+set}" = set; then
16694 withval=$with_pymalloc;
16698 if test -z "$with_pymalloc"
16699 then with_pymalloc="yes"
16701 if test "$with_pymalloc" != "no"
16704 cat >>confdefs.h <<\_ACEOF
16705 #define WITH_PYMALLOC 1
16709 { $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16710 $as_echo "$with_pymalloc" >&6; }
16712 # Check for --with-wctype-functions
16713 { $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16714 $as_echo_n "checking for --with-wctype-functions... " >&6; }
16716 # Check whether --with-wctype-functions was given.
16717 if test "${with_wctype_functions+set}" = set; then
16718 withval=$with_wctype_functions;
16719 if test "$withval" != no
16722 cat >>confdefs.h <<\_ACEOF
16723 #define WANT_WCTYPE_FUNCTIONS 1
16726 { $as_echo "$as_me:$LINENO: result: yes" >&5
16727 $as_echo "yes" >&6; }
16728 else { $as_echo "$as_me:$LINENO: result: no" >&5
16729 $as_echo "no" >&6; }
16732 { $as_echo "$as_me:$LINENO: result: no" >&5
16733 $as_echo "no" >&6; }
16737 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16741 # the dlopen() function means we might want to use dynload_shlib.o. some
16742 # platforms, such as AIX, have dlopen(), but don't want to use it.
16744 for ac_func in dlopen
16746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16747 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16748 $as_echo_n "checking for $ac_func... " >&6; }
16749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16750 $as_echo_n "(cached) " >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760 #define $ac_func innocuous_$ac_func
16762 /* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char $ac_func (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16768 # include <limits.h>
16770 # include <assert.h>
16775 /* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16782 /* The GNU C library defines this for functions which it implements
16783 to always fail with ENOSYS. Some functions are actually named
16784 something starting with __ and the normal name is an alias. */
16785 #if defined __stub_$ac_func || defined __stub___$ac_func
16792 return $ac_func ();
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16801 *) ac_try_echo
=$ac_try;;
16803 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16804 $as_echo "$ac_try_echo") >&5
16805 (eval "$ac_link") 2>conftest.er1
16807 grep -v '^ *+' conftest.er1
>conftest.err
16809 cat conftest.err
>&5
16810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest
$ac_exeext && {
16815 test "$cross_compiling" = yes ||
16816 $as_test_x conftest
$ac_exeext
16818 eval "$as_ac_var=yes"
16820 $as_echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.
$ac_ext >&5
16823 eval "$as_ac_var=no"
16826 rm -rf conftest.dSYM
16827 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16828 conftest
$ac_exeext conftest.
$ac_ext
16830 ac_res
=`eval 'as_val=${'$as_ac_var'}
16831 $as_echo "$as_val"'`
16832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16833 $as_echo "$ac_res" >&6; }
16834 as_val
=`eval 'as_val=${'$as_ac_var'}
16835 $as_echo "$as_val"'`
16836 if test "x$as_val" = x
""yes; then
16837 cat >>confdefs.h
<<_ACEOF
16838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16845 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16846 # loading of modules.
16848 { $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16849 $as_echo_n "checking DYNLOADFILE... " >&6; }
16850 if test -z "$DYNLOADFILE"
16852 case $ac_sys_system/$ac_sys_release in
16853 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16854 if test "$ac_cv_func_dlopen" = yes
16855 then DYNLOADFILE
="dynload_shlib.o"
16856 else DYNLOADFILE
="dynload_aix.o"
16859 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16860 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16861 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16862 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16863 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16865 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16866 # out any dynamic loading
16867 if test "$ac_cv_func_dlopen" = yes
16868 then DYNLOADFILE
="dynload_shlib.o"
16869 else DYNLOADFILE
="dynload_stub.o"
16874 { $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16875 $as_echo "$DYNLOADFILE" >&6; }
16876 if test "$DYNLOADFILE" != "dynload_stub.o"
16879 cat >>confdefs.h
<<\_ACEOF
16880 #define HAVE_DYNAMIC_LOADING 1
16885 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16888 { $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16889 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
16890 if test -z "$MACHDEP_OBJS"
16892 MACHDEP_OBJS
=$extra_machdep_objs
16894 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16896 { $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16897 $as_echo "MACHDEP_OBJS" >&6; }
16899 # checks for library functions
16985 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16986 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16987 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16988 getpriority getpwent getspnam getspent getsid getwd \
16989 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16990 mremap nice pathconf pause plock poll pthread_init \
16991 putenv readlink realpath \
16992 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16994 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16995 sigaction siginterrupt sigrelse strftime \
16996 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16997 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16999 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17000 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17001 $as_echo_n "checking for $ac_func... " >&6; }
17002 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17003 $as_echo_n "(cached) " >&6
17005 cat >conftest.
$ac_ext <<_ACEOF
17008 cat confdefs.h
>>conftest.
$ac_ext
17009 cat >>conftest.
$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17013 #define $ac_func innocuous_$ac_func
17015 /* System header to define __stub macros and hopefully few prototypes,
17016 which can conflict with char $ac_func (); below.
17017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17018 <limits.h> exists even on freestanding compilers. */
17021 # include <limits.h>
17023 # include <assert.h>
17028 /* Override any GCC internal prototype to avoid an error.
17029 Use char because int might match the return type of a GCC
17030 builtin and then its argument prototype would still apply. */
17035 /* The GNU C library defines this for functions which it implements
17036 to always fail with ENOSYS. Some functions are actually named
17037 something starting with __ and the normal name is an alias. */
17038 #if defined __stub_$ac_func || defined __stub___$ac_func
17045 return $ac_func ();
17050 rm -f conftest.
$ac_objext conftest
$ac_exeext
17051 if { (ac_try
="$ac_link"
17052 case "(($ac_try" in
17053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057 $as_echo "$ac_try_echo") >&5
17058 (eval "$ac_link") 2>conftest.er1
17060 grep -v '^ *+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest$ac_exeext && {
17068 test "$cross_compiling" = yes ||
17069 $as_test_x conftest$ac_exeext
17071 eval "$as_ac_var=yes"
17073 $as_echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 eval "$as_ac_var=no"
17079 rm -rf conftest.dSYM
17080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 conftest$ac_exeext conftest.$ac_ext
17083 ac_res=`eval 'as_val=${'$as_ac_var'}
17084 $as_echo "$as_val"'`
17085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17086 $as_echo "$ac_res" >&6; }
17087 as_val=`eval 'as_val=${'$as_ac_var'}
17088 $as_echo "$as_val"'`
17089 if test "x$as_val" = x""yes; then
17090 cat >>confdefs.h <<_ACEOF
17091 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17098 # For some functions, having a definition is not sufficient, since
17099 # we want to take their address.
17100 { $as_echo "$as_me:$LINENO: checking for chroot" >&5
17101 $as_echo_n "checking for chroot... " >&6; }
17102 cat >conftest.$ac_ext <<_ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 #include <unistd.h>
17117 rm -f conftest.$ac_objext
17118 if { (ac_try="$ac_compile"
17119 case "(($ac_try" in
17120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17121 *) ac_try_echo
=$ac_try;;
17123 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17124 $as_echo "$ac_try_echo") >&5
17125 (eval "$ac_compile") 2>conftest.er1
17127 grep -v '^ *+' conftest.er1
>conftest.err
17129 cat conftest.err
>&5
17130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } && {
17132 test -z "$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 } && test -s conftest.
$ac_objext; then
17136 cat >>confdefs.h
<<\_ACEOF
17137 #define HAVE_CHROOT 1
17140 { $as_echo "$as_me:$LINENO: result: yes" >&5
17141 $as_echo "yes" >&6; }
17143 $as_echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.
$ac_ext >&5
17146 { $as_echo "$as_me:$LINENO: result: no" >&5
17147 $as_echo "no" >&6; }
17151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17152 { $as_echo "$as_me:$LINENO: checking for link" >&5
17153 $as_echo_n "checking for link... " >&6; }
17154 cat >conftest.
$ac_ext <<_ACEOF
17157 cat confdefs.h
>>conftest.
$ac_ext
17158 cat >>conftest.
$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 #include <unistd.h>
17169 rm -f conftest.
$ac_objext
17170 if { (ac_try
="$ac_compile"
17171 case "(($ac_try" in
17172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17176 $as_echo "$ac_try_echo") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17188 cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_LINK 1
17192 { $as_echo "$as_me:$LINENO: result: yes" >&5
17193 $as_echo "yes" >&6; }
17195 $as_echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 { $as_echo "$as_me:$LINENO: result: no" >&5
17199 $as_echo "no" >&6; }
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204 { $as_echo "$as_me:$LINENO: checking for symlink" >&5
17205 $as_echo_n "checking for symlink... " >&6; }
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 #include <unistd.h>
17221 rm -f conftest.$ac_objext
17222 if { (ac_try="$ac_compile"
17223 case "(($ac_try" in
17224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17225 *) ac_try_echo
=$ac_try;;
17227 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17228 $as_echo "$ac_try_echo") >&5
17229 (eval "$ac_compile") 2>conftest.er1
17231 grep -v '^ *+' conftest.er1
>conftest.err
17233 cat conftest.err
>&5
17234 $as_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_objext; then
17240 cat >>confdefs.h
<<\_ACEOF
17241 #define HAVE_SYMLINK 1
17244 { $as_echo "$as_me:$LINENO: result: yes" >&5
17245 $as_echo "yes" >&6; }
17247 $as_echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.
$ac_ext >&5
17250 { $as_echo "$as_me:$LINENO: result: no" >&5
17251 $as_echo "no" >&6; }
17255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17256 { $as_echo "$as_me:$LINENO: checking for fchdir" >&5
17257 $as_echo_n "checking for fchdir... " >&6; }
17258 cat >conftest.
$ac_ext <<_ACEOF
17261 cat confdefs.h
>>conftest.
$ac_ext
17262 cat >>conftest.
$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264 #include <unistd.h>
17273 rm -f conftest.
$ac_objext
17274 if { (ac_try
="$ac_compile"
17275 case "(($ac_try" in
17276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17280 $as_echo "$ac_try_echo") >&5
17281 (eval "$ac_compile") 2>conftest.er1
17283 grep -v '^ *+' conftest.er1 >conftest.err
17285 cat conftest.err >&5
17286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } && {
17288 test -z "$ac_c_werror_flag" ||
17289 test ! -s conftest.err
17290 } && test -s conftest.$ac_objext; then
17292 cat >>confdefs.h <<\_ACEOF
17293 #define HAVE_FCHDIR 1
17296 { $as_echo "$as_me:$LINENO: result: yes" >&5
17297 $as_echo "yes" >&6; }
17299 $as_echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 { $as_echo "$as_me:$LINENO: result: no" >&5
17303 $as_echo "no" >&6; }
17307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17308 { $as_echo "$as_me:$LINENO: checking for fsync" >&5
17309 $as_echo_n "checking for fsync... " >&6; }
17310 cat >conftest.$ac_ext <<_ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 #include <unistd.h>
17325 rm -f conftest.$ac_objext
17326 if { (ac_try="$ac_compile"
17327 case "(($ac_try" in
17328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17329 *) ac_try_echo
=$ac_try;;
17331 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17332 $as_echo "$ac_try_echo") >&5
17333 (eval "$ac_compile") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1
>conftest.err
17337 cat conftest.err
>&5
17338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest.
$ac_objext; then
17344 cat >>confdefs.h
<<\_ACEOF
17345 #define HAVE_FSYNC 1
17348 { $as_echo "$as_me:$LINENO: result: yes" >&5
17349 $as_echo "yes" >&6; }
17351 $as_echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.
$ac_ext >&5
17354 { $as_echo "$as_me:$LINENO: result: no" >&5
17355 $as_echo "no" >&6; }
17359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17360 { $as_echo "$as_me:$LINENO: checking for fdatasync" >&5
17361 $as_echo_n "checking for fdatasync... " >&6; }
17362 cat >conftest.
$ac_ext <<_ACEOF
17365 cat confdefs.h
>>conftest.
$ac_ext
17366 cat >>conftest.
$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 #include <unistd.h>
17377 rm -f conftest.
$ac_objext
17378 if { (ac_try
="$ac_compile"
17379 case "(($ac_try" in
17380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17384 $as_echo "$ac_try_echo") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17387 grep -v '^ *+' conftest.er1 >conftest.err
17389 cat conftest.err >&5
17390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } && {
17392 test -z "$ac_c_werror_flag" ||
17393 test ! -s conftest.err
17394 } && test -s conftest.$ac_objext; then
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_FDATASYNC 1
17400 { $as_echo "$as_me:$LINENO: result: yes" >&5
17401 $as_echo "yes" >&6; }
17403 $as_echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 { $as_echo "$as_me:$LINENO: result: no" >&5
17407 $as_echo "no" >&6; }
17411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 { $as_echo "$as_me:$LINENO: checking for epoll" >&5
17413 $as_echo_n "checking for epoll... " >&6; }
17414 cat >conftest.$ac_ext <<_ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 #include <sys/epoll.h>
17424 void *x=epoll_create
17429 rm -f conftest.$ac_objext
17430 if { (ac_try="$ac_compile"
17431 case "(($ac_try" in
17432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17433 *) ac_try_echo
=$ac_try;;
17435 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17436 $as_echo "$ac_try_echo") >&5
17437 (eval "$ac_compile") 2>conftest.er1
17439 grep -v '^ *+' conftest.er1
>conftest.err
17441 cat conftest.err
>&5
17442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } && {
17444 test -z "$ac_c_werror_flag" ||
17445 test ! -s conftest.err
17446 } && test -s conftest.
$ac_objext; then
17448 cat >>confdefs.h
<<\_ACEOF
17449 #define HAVE_EPOLL 1
17452 { $as_echo "$as_me:$LINENO: result: yes" >&5
17453 $as_echo "yes" >&6; }
17455 $as_echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.
$ac_ext >&5
17458 { $as_echo "$as_me:$LINENO: result: no" >&5
17459 $as_echo "no" >&6; }
17463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17464 { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
17465 $as_echo_n "checking for kqueue... " >&6; }
17466 cat >conftest.
$ac_ext <<_ACEOF
17469 cat confdefs.h
>>conftest.
$ac_ext
17470 cat >>conftest.
$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 #include <sys/types.h>
17474 #include <sys/event.h>
17484 rm -f conftest.
$ac_objext
17485 if { (ac_try
="$ac_compile"
17486 case "(($ac_try" in
17487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17491 $as_echo "$ac_try_echo") >&5
17492 (eval "$ac_compile") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest.$ac_objext; then
17503 cat >>confdefs.h <<\_ACEOF
17504 #define HAVE_KQUEUE 1
17507 { $as_echo "$as_me:$LINENO: result: yes" >&5
17508 $as_echo "yes" >&6; }
17510 $as_echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17513 { $as_echo "$as_me:$LINENO: result: no" >&5
17514 $as_echo "no" >&6; }
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 # On some systems (eg. FreeBSD 5), we would find a definition of the
17520 # functions ctermid_r, setgroups in the library, but no prototype
17521 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17522 # address to avoid compiler warnings and potential miscompilations
17523 # because of the missing prototypes.
17525 { $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5
17526 $as_echo_n "checking for ctermid_r... " >&6; }
17527 cat >conftest.$ac_ext <<_ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17534 #include "confdefs.h"
17540 void* p = ctermid_r
17545 rm -f conftest.$ac_objext
17546 if { (ac_try="$ac_compile"
17547 case "(($ac_try" in
17548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17549 *) ac_try_echo
=$ac_try;;
17551 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17552 $as_echo "$ac_try_echo") >&5
17553 (eval "$ac_compile") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1
>conftest.err
17557 cat conftest.err
>&5
17558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } && {
17560 test -z "$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17562 } && test -s conftest.
$ac_objext; then
17564 cat >>confdefs.h
<<\_ACEOF
17565 #define HAVE_CTERMID_R 1
17568 { $as_echo "$as_me:$LINENO: result: yes" >&5
17569 $as_echo "yes" >&6; }
17571 $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.
$ac_ext >&5
17574 { $as_echo "$as_me:$LINENO: result: no" >&5
17575 $as_echo "no" >&6; }
17579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17581 { $as_echo "$as_me:$LINENO: checking for flock" >&5
17582 $as_echo_n "checking for flock... " >&6; }
17583 cat >conftest.
$ac_ext <<_ACEOF
17586 cat confdefs.h
>>conftest.
$ac_ext
17587 cat >>conftest.
$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17590 #include "confdefs.h"
17591 #include <sys/file.h>
17601 rm -f conftest.
$ac_objext
17602 if { (ac_try
="$ac_compile"
17603 case "(($ac_try" in
17604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17608 $as_echo "$ac_try_echo") >&5
17609 (eval "$ac_compile") 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest.$ac_objext; then
17620 cat >>confdefs.h <<\_ACEOF
17621 #define HAVE_FLOCK 1
17624 { $as_echo "$as_me:$LINENO: result: yes" >&5
17625 $as_echo "yes" >&6; }
17627 $as_echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 { $as_echo "$as_me:$LINENO: result: no" >&5
17631 $as_echo "no" >&6; }
17635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637 { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
17638 $as_echo_n "checking for getpagesize... " >&6; }
17639 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17646 #include "confdefs.h"
17647 #include <unistd.h>
17652 void* p = getpagesize
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17661 *) ac_try_echo
=$ac_try;;
17663 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17664 $as_echo "$ac_try_echo") >&5
17665 (eval "$ac_compile") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1
>conftest.err
17669 cat conftest.err
>&5
17670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest.
$ac_objext; then
17676 cat >>confdefs.h
<<\_ACEOF
17677 #define HAVE_GETPAGESIZE 1
17680 { $as_echo "$as_me:$LINENO: result: yes" >&5
17681 $as_echo "yes" >&6; }
17683 $as_echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.
$ac_ext >&5
17686 { $as_echo "$as_me:$LINENO: result: no" >&5
17687 $as_echo "no" >&6; }
17691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17693 for ac_prog
in true
17695 # Extract the first word of "$ac_prog", so it can be a program name with args.
17696 set dummy
$ac_prog; ac_word
=$2
17697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17698 $as_echo_n "checking for $ac_word... " >&6; }
17699 if test "${ac_cv_prog_TRUE+set}" = set; then
17700 $as_echo_n "(cached) " >&6
17702 if test -n "$TRUE"; then
17703 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
17705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17706 for as_dir
in $PATH
17709 test -z "$as_dir" && as_dir
=.
17710 for ac_exec_ext
in '' $ac_executable_extensions; do
17711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17712 ac_cv_prog_TRUE
="$ac_prog"
17713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17722 TRUE
=$ac_cv_prog_TRUE
17723 if test -n "$TRUE"; then
17724 { $as_echo "$as_me:$LINENO: result: $TRUE" >&5
17725 $as_echo "$TRUE" >&6; }
17727 { $as_echo "$as_me:$LINENO: result: no" >&5
17728 $as_echo "no" >&6; }
17732 test -n "$TRUE" && break
17734 test -n "$TRUE" || TRUE
="/bin/true"
17737 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17738 $as_echo_n "checking for inet_aton in -lc... " >&6; }
17739 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17740 $as_echo_n "(cached) " >&6
17742 ac_check_lib_save_LIBS
=$LIBS
17744 cat >conftest.
$ac_ext <<_ACEOF
17747 cat confdefs.h
>>conftest.
$ac_ext
17748 cat >>conftest.
$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 /* Override any GCC internal prototype to avoid an error.
17752 Use char because int might match the return type of a GCC
17753 builtin and then its argument prototype would still apply. */
17761 return inet_aton ();
17766 rm -f conftest.
$ac_objext conftest
$ac_exeext
17767 if { (ac_try
="$ac_link"
17768 case "(($ac_try" in
17769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17773 $as_echo "$ac_try_echo") >&5
17774 (eval "$ac_link") 2>conftest.er1
17776 grep -v '^ *+' conftest.er1 >conftest.err
17778 cat conftest.err >&5
17779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } && {
17781 test -z "$ac_c_werror_flag" ||
17782 test ! -s conftest.err
17783 } && test -s conftest$ac_exeext && {
17784 test "$cross_compiling" = yes ||
17785 $as_test_x conftest$ac_exeext
17787 ac_cv_lib_c_inet_aton=yes
17789 $as_echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 ac_cv_lib_c_inet_aton=no
17795 rm -rf conftest.dSYM
17796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17797 conftest$ac_exeext conftest.$ac_ext
17798 LIBS=$ac_check_lib_save_LIBS
17800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17801 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
17802 if test "x$ac_cv_lib_c_inet_aton" = x""yes; then
17806 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17807 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
17808 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17809 $as_echo_n "(cached) " >&6
17811 ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-lresolv $LIBS"
17813 cat >conftest.$ac_ext <<_ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17830 return inet_aton ();
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (ac_try="$ac_link"
17837 case "(($ac_try" in
17838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17839 *) ac_try_echo
=$ac_try;;
17841 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17842 $as_echo "$ac_try_echo") >&5
17843 (eval "$ac_link") 2>conftest.er1
17845 grep -v '^ *+' conftest.er1
>conftest.err
17847 cat conftest.err
>&5
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest
$ac_exeext && {
17853 test "$cross_compiling" = yes ||
17854 $as_test_x conftest
$ac_exeext
17856 ac_cv_lib_resolv_inet_aton
=yes
17858 $as_echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.
$ac_ext >&5
17861 ac_cv_lib_resolv_inet_aton
=no
17864 rm -rf conftest.dSYM
17865 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17866 conftest
$ac_exeext conftest.
$ac_ext
17867 LIBS
=$ac_check_lib_save_LIBS
17869 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17870 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
17871 if test "x$ac_cv_lib_resolv_inet_aton" = x
""yes; then
17872 cat >>confdefs.h
<<_ACEOF
17873 #define HAVE_LIBRESOLV 1
17876 LIBS
="-lresolv $LIBS"
17884 # On Tru64, chflags seems to be present, but calling it will
17886 { $as_echo "$as_me:$LINENO: checking for chflags" >&5
17887 $as_echo_n "checking for chflags... " >&6; }
17888 if test "$cross_compiling" = yes; then
17889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17891 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17892 See \`config.log' for more details." >&5
17893 $as_echo "$as_me: error: cannot run test program while cross compiling
17894 See \`config.log' for more details." >&2;}
17895 { (exit 1); exit 1; }; }; }
17897 cat >conftest.
$ac_ext <<_ACEOF
17900 cat confdefs.h
>>conftest.
$ac_ext
17901 cat >>conftest.
$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17904 #include <sys/stat.h>
17905 #include <unistd.h>
17906 int main(int argc, char*argv[])
17908 if(chflags(argv[0], 0) != 0)
17914 rm -f conftest
$ac_exeext
17915 if { (ac_try
="$ac_link"
17916 case "(($ac_try" in
17917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17921 $as_echo "$ac_try_echo") >&5
17922 (eval "$ac_link") 2>&5
17924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17928 *) ac_try_echo
=$ac_try;;
17930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17931 $as_echo "$ac_try_echo") >&5
17932 (eval "$ac_try") 2>&5
17934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17937 cat >>confdefs.h
<<\_ACEOF
17938 #define HAVE_CHFLAGS 1
17941 { $as_echo "$as_me:$LINENO: result: yes" >&5
17942 $as_echo "yes" >&6; }
17944 $as_echo "$as_me: program exited with status $ac_status" >&5
17945 $as_echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.
$ac_ext >&5
17948 ( exit $ac_status )
17949 { $as_echo "$as_me:$LINENO: result: no" >&5
17950 $as_echo "no" >&6; }
17953 rm -rf conftest.dSYM
17954 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17959 { $as_echo "$as_me:$LINENO: checking for lchflags" >&5
17960 $as_echo_n "checking for lchflags... " >&6; }
17961 if test "$cross_compiling" = yes; then
17962 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17964 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17965 See \`config.log' for more details." >&5
17966 $as_echo "$as_me: error: cannot run test program while cross compiling
17967 See \`config.log' for more details." >&2;}
17968 { (exit 1); exit 1; }; }; }
17970 cat >conftest.
$ac_ext <<_ACEOF
17973 cat confdefs.h
>>conftest.
$ac_ext
17974 cat >>conftest.
$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17977 #include <sys/stat.h>
17978 #include <unistd.h>
17979 int main(int argc, char*argv[])
17981 if(lchflags(argv[0], 0) != 0)
17987 rm -f conftest
$ac_exeext
17988 if { (ac_try
="$ac_link"
17989 case "(($ac_try" in
17990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17994 $as_echo "$ac_try_echo") >&5
17995 (eval "$ac_link") 2>&5
17997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17999 { (case "(($ac_try" in
18000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18001 *) ac_try_echo
=$ac_try;;
18003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18004 $as_echo "$ac_try_echo") >&5
18005 (eval "$ac_try") 2>&5
18007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18010 cat >>confdefs.h
<<\_ACEOF
18011 #define HAVE_LCHFLAGS 1
18014 { $as_echo "$as_me:$LINENO: result: yes" >&5
18015 $as_echo "yes" >&6; }
18017 $as_echo "$as_me: program exited with status $ac_status" >&5
18018 $as_echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.
$ac_ext >&5
18021 ( exit $ac_status )
18022 { $as_echo "$as_me:$LINENO: result: no" >&5
18023 $as_echo "no" >&6; }
18026 rm -rf conftest.dSYM
18027 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18032 case $ac_sys_system/$ac_sys_release in
18034 _CUR_CFLAGS
="${CFLAGS}"
18035 _CUR_LDFLAGS
="${LDFLAGS}"
18036 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
18037 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18041 { $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18042 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
18043 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18044 $as_echo_n "(cached) " >&6
18046 ac_check_lib_save_LIBS
=$LIBS
18048 cat >conftest.
$ac_ext <<_ACEOF
18051 cat confdefs.h
>>conftest.
$ac_ext
18052 cat >>conftest.
$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18055 /* Override any GCC internal prototype to avoid an error.
18056 Use char because int might match the return type of a GCC
18057 builtin and then its argument prototype would still apply. */
18061 char inflateCopy ();
18065 return inflateCopy ();
18070 rm -f conftest.
$ac_objext conftest
$ac_exeext
18071 if { (ac_try
="$ac_link"
18072 case "(($ac_try" in
18073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18077 $as_echo "$ac_try_echo") >&5
18078 (eval "$ac_link") 2>conftest.er1
18080 grep -v '^ *+' conftest.er1 >conftest.err
18082 cat conftest.err >&5
18083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && {
18085 test -z "$ac_c_werror_flag" ||
18086 test ! -s conftest.err
18087 } && test -s conftest$ac_exeext && {
18088 test "$cross_compiling" = yes ||
18089 $as_test_x conftest$ac_exeext
18091 ac_cv_lib_z_inflateCopy=yes
18093 $as_echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 ac_cv_lib_z_inflateCopy=no
18099 rm -rf conftest.dSYM
18100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18101 conftest$ac_exeext conftest.$ac_ext
18102 LIBS=$ac_check_lib_save_LIBS
18104 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18105 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
18106 if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then
18108 cat >>confdefs.h <<\_ACEOF
18109 #define HAVE_ZLIB_COPY 1
18115 case $ac_sys_system/$ac_sys_release in
18117 CFLAGS="${_CUR_CFLAGS}"
18118 LDFLAGS="${_CUR_LDFLAGS}"
18122 { $as_echo "$as_me:$LINENO: checking for hstrerror" >&5
18123 $as_echo_n "checking for hstrerror... " >&6; }
18124 cat >conftest.$ac_ext <<_ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18131 #include "confdefs.h"
18137 void* p = hstrerror; hstrerror(0)
18142 rm -f conftest.$ac_objext conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18146 *) ac_try_echo
=$ac_try;;
18148 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18149 $as_echo "$ac_try_echo") >&5
18150 (eval "$ac_link") 2>conftest.er1
18152 grep -v '^ *+' conftest.er1
>conftest.err
18154 cat conftest.err
>&5
18155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest
$ac_exeext && {
18160 test "$cross_compiling" = yes ||
18161 $as_test_x conftest
$ac_exeext
18164 cat >>confdefs.h
<<\_ACEOF
18165 #define HAVE_HSTRERROR 1
18168 { $as_echo "$as_me:$LINENO: result: yes" >&5
18169 $as_echo "yes" >&6; }
18171 $as_echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.
$ac_ext >&5
18174 { $as_echo "$as_me:$LINENO: result: no" >&5
18175 $as_echo "no" >&6; }
18179 rm -rf conftest.dSYM
18180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18181 conftest
$ac_exeext conftest.
$ac_ext
18183 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18184 $as_echo_n "checking for inet_aton... " >&6; }
18185 cat >conftest.
$ac_ext <<_ACEOF
18188 cat confdefs.h
>>conftest.
$ac_ext
18189 cat >>conftest.
$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18192 #include "confdefs.h"
18193 #include <sys/types.h>
18194 #include <sys/socket.h>
18195 #include <netinet/in.h>
18196 #include <arpa/inet.h>
18201 void* p = inet_aton;inet_aton(0,0)
18206 rm -f conftest.
$ac_objext conftest
$ac_exeext
18207 if { (ac_try
="$ac_link"
18208 case "(($ac_try" in
18209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18213 $as_echo "$ac_try_echo") >&5
18214 (eval "$ac_link") 2>conftest.er1
18216 grep -v '^ *+' conftest.er1 >conftest.err
18218 cat conftest.err >&5
18219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } && {
18221 test -z "$ac_c_werror_flag" ||
18222 test ! -s conftest.err
18223 } && test -s conftest$ac_exeext && {
18224 test "$cross_compiling" = yes ||
18225 $as_test_x conftest$ac_exeext
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_INET_ATON 1
18232 { $as_echo "$as_me:$LINENO: result: yes" >&5
18233 $as_echo "yes" >&6; }
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 { $as_echo "$as_me:$LINENO: result: no" >&5
18239 $as_echo "no" >&6; }
18243 rm -rf conftest.dSYM
18244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18245 conftest$ac_exeext conftest.$ac_ext
18247 { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
18248 $as_echo_n "checking for inet_pton... " >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18256 #include "confdefs.h"
18257 #include <sys/types.h>
18258 #include <sys/socket.h>
18259 #include <netinet/in.h>
18260 #include <arpa/inet.h>
18265 void* p = inet_pton
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18274 *) ac_try_echo
=$ac_try;;
18276 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18277 $as_echo "$ac_try_echo") >&5
18278 (eval "$ac_compile") 2>conftest.er1
18280 grep -v '^ *+' conftest.er1
>conftest.err
18282 cat conftest.err
>&5
18283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } && {
18285 test -z "$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18287 } && test -s conftest.
$ac_objext; then
18289 cat >>confdefs.h
<<\_ACEOF
18290 #define HAVE_INET_PTON 1
18293 { $as_echo "$as_me:$LINENO: result: yes" >&5
18294 $as_echo "yes" >&6; }
18296 $as_echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.
$ac_ext >&5
18299 { $as_echo "$as_me:$LINENO: result: no" >&5
18300 $as_echo "no" >&6; }
18304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18306 # On some systems, setgroups is in unistd.h, on others, in grp.h
18307 { $as_echo "$as_me:$LINENO: checking for setgroups" >&5
18308 $as_echo_n "checking for setgroups... " >&6; }
18309 cat >conftest.
$ac_ext <<_ACEOF
18312 cat confdefs.h
>>conftest.
$ac_ext
18313 cat >>conftest.
$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 #include "confdefs.h"
18317 #include <unistd.h>
18325 void* p = setgroups
18330 rm -f conftest.
$ac_objext
18331 if { (ac_try
="$ac_compile"
18332 case "(($ac_try" in
18333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18337 $as_echo "$ac_try_echo") >&5
18338 (eval "$ac_compile") 2>conftest.er1
18340 grep -v '^ *+' conftest.er1 >conftest.err
18342 cat conftest.err >&5
18343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } && {
18345 test -z "$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18347 } && test -s conftest.$ac_objext; then
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE_SETGROUPS 1
18353 { $as_echo "$as_me:$LINENO: result: yes" >&5
18354 $as_echo "yes" >&6; }
18356 $as_echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 { $as_echo "$as_me:$LINENO: result: no" >&5
18360 $as_echo "no" >&6; }
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366 # check for openpty and forkpty
18369 for ac_func in openpty
18371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18372 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18373 $as_echo_n "checking for $ac_func... " >&6; }
18374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18375 $as_echo_n "(cached) " >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385 #define $ac_func innocuous_$ac_func
18387 /* System header to define __stub macros and hopefully few prototypes,
18388 which can conflict with char $ac_func (); below.
18389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390 <limits.h> exists even on freestanding compilers. */
18393 # include <limits.h>
18395 # include <assert.h>
18400 /* Override any GCC internal prototype to avoid an error.
18401 Use char because int might match the return type of a GCC
18402 builtin and then its argument prototype would still apply. */
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined __stub_$ac_func || defined __stub___$ac_func
18417 return $ac_func ();
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18426 *) ac_try_echo
=$ac_try;;
18428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18429 $as_echo "$ac_try_echo") >&5
18430 (eval "$ac_link") 2>conftest.er1
18432 grep -v '^ *+' conftest.er1
>conftest.err
18434 cat conftest.err
>&5
18435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } && {
18437 test -z "$ac_c_werror_flag" ||
18438 test ! -s conftest.err
18439 } && test -s conftest
$ac_exeext && {
18440 test "$cross_compiling" = yes ||
18441 $as_test_x conftest
$ac_exeext
18443 eval "$as_ac_var=yes"
18445 $as_echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.
$ac_ext >&5
18448 eval "$as_ac_var=no"
18451 rm -rf conftest.dSYM
18452 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18453 conftest
$ac_exeext conftest.
$ac_ext
18455 ac_res
=`eval 'as_val=${'$as_ac_var'}
18456 $as_echo "$as_val"'`
18457 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18458 $as_echo "$ac_res" >&6; }
18459 as_val
=`eval 'as_val=${'$as_ac_var'}
18460 $as_echo "$as_val"'`
18461 if test "x$as_val" = x
""yes; then
18462 cat >>confdefs.h
<<_ACEOF
18463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18467 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18468 $as_echo_n "checking for openpty in -lutil... " >&6; }
18469 if test "${ac_cv_lib_util_openpty+set}" = set; then
18470 $as_echo_n "(cached) " >&6
18472 ac_check_lib_save_LIBS
=$LIBS
18473 LIBS
="-lutil $LIBS"
18474 cat >conftest.
$ac_ext <<_ACEOF
18477 cat confdefs.h
>>conftest.
$ac_ext
18478 cat >>conftest.
$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18481 /* Override any GCC internal prototype to avoid an error.
18482 Use char because int might match the return type of a GCC
18483 builtin and then its argument prototype would still apply. */
18496 rm -f conftest.
$ac_objext conftest
$ac_exeext
18497 if { (ac_try
="$ac_link"
18498 case "(($ac_try" in
18499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18503 $as_echo "$ac_try_echo") >&5
18504 (eval "$ac_link") 2>conftest.er1
18506 grep -v '^ *+' conftest.er1 >conftest.err
18508 cat conftest.err >&5
18509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } && {
18511 test -z "$ac_c_werror_flag" ||
18512 test ! -s conftest.err
18513 } && test -s conftest$ac_exeext && {
18514 test "$cross_compiling" = yes ||
18515 $as_test_x conftest$ac_exeext
18517 ac_cv_lib_util_openpty=yes
18519 $as_echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 ac_cv_lib_util_openpty=no
18525 rm -rf conftest.dSYM
18526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18527 conftest$ac_exeext conftest.$ac_ext
18528 LIBS=$ac_check_lib_save_LIBS
18530 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18531 $as_echo "$ac_cv_lib_util_openpty" >&6; }
18532 if test "x$ac_cv_lib_util_openpty" = x""yes; then
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE_OPENPTY 1
18536 LIBS="$LIBS -lutil"
18538 { $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18539 $as_echo_n "checking for openpty in -lbsd... " >&6; }
18540 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18541 $as_echo_n "(cached) " >&6
18543 ac_check_lib_save_LIBS=$LIBS
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18571 *) ac_try_echo
=$ac_try;;
18573 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18574 $as_echo "$ac_try_echo") >&5
18575 (eval "$ac_link") 2>conftest.er1
18577 grep -v '^ *+' conftest.er1
>conftest.err
18579 cat conftest.err
>&5
18580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest
$ac_exeext && {
18585 test "$cross_compiling" = yes ||
18586 $as_test_x conftest
$ac_exeext
18588 ac_cv_lib_bsd_openpty
=yes
18590 $as_echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.
$ac_ext >&5
18593 ac_cv_lib_bsd_openpty
=no
18596 rm -rf conftest.dSYM
18597 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18598 conftest
$ac_exeext conftest.
$ac_ext
18599 LIBS
=$ac_check_lib_save_LIBS
18601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18602 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
18603 if test "x$ac_cv_lib_bsd_openpty" = x
""yes; then
18604 cat >>confdefs.h
<<\_ACEOF
18605 #define HAVE_OPENPTY 1
18618 for ac_func
in forkpty
18620 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18622 $as_echo_n "checking for $ac_func... " >&6; }
18623 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624 $as_echo_n "(cached) " >&6
18626 cat >conftest.
$ac_ext <<_ACEOF
18629 cat confdefs.h
>>conftest.
$ac_ext
18630 cat >>conftest.
$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18634 #define $ac_func innocuous_$ac_func
18636 /* System header to define __stub macros and hopefully few prototypes,
18637 which can conflict with char $ac_func (); below.
18638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639 <limits.h> exists even on freestanding compilers. */
18642 # include <limits.h>
18644 # include <assert.h>
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18656 /* The GNU C library defines this for functions which it implements
18657 to always fail with ENOSYS. Some functions are actually named
18658 something starting with __ and the normal name is an alias. */
18659 #if defined __stub_$ac_func || defined __stub___$ac_func
18666 return $ac_func ();
18671 rm -f conftest.
$ac_objext conftest
$ac_exeext
18672 if { (ac_try
="$ac_link"
18673 case "(($ac_try" in
18674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679 (eval "$ac_link") 2>conftest.er1
18681 grep -v '^ *+' conftest.er1 >conftest.err
18683 cat conftest.err >&5
18684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest$ac_exeext && {
18689 test "$cross_compiling" = yes ||
18690 $as_test_x conftest$ac_exeext
18692 eval "$as_ac_var=yes"
18694 $as_echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 eval "$as_ac_var=no"
18700 rm -rf conftest.dSYM
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18704 ac_res=`eval 'as_val=${'$as_ac_var'}
18705 $as_echo "$as_val"'`
18706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18707 $as_echo "$ac_res" >&6; }
18708 as_val=`eval 'as_val=${'$as_ac_var'}
18709 $as_echo "$as_val"'`
18710 if test "x$as_val" = x""yes; then
18711 cat >>confdefs.h <<_ACEOF
18712 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18716 { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18717 $as_echo_n "checking for forkpty in -lutil... " >&6; }
18718 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18719 $as_echo_n "(cached) " >&6
18721 ac_check_lib_save_LIBS=$LIBS
18722 LIBS="-lutil $LIBS"
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18749 *) ac_try_echo
=$ac_try;;
18751 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18752 $as_echo "$ac_try_echo") >&5
18753 (eval "$ac_link") 2>conftest.er1
18755 grep -v '^ *+' conftest.er1
>conftest.err
18757 cat conftest.err
>&5
18758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && {
18760 test -z "$ac_c_werror_flag" ||
18761 test ! -s conftest.err
18762 } && test -s conftest
$ac_exeext && {
18763 test "$cross_compiling" = yes ||
18764 $as_test_x conftest
$ac_exeext
18766 ac_cv_lib_util_forkpty
=yes
18768 $as_echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.
$ac_ext >&5
18771 ac_cv_lib_util_forkpty
=no
18774 rm -rf conftest.dSYM
18775 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18776 conftest
$ac_exeext conftest.
$ac_ext
18777 LIBS
=$ac_check_lib_save_LIBS
18779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18780 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
18781 if test "x$ac_cv_lib_util_forkpty" = x
""yes; then
18782 cat >>confdefs.h
<<\_ACEOF
18783 #define HAVE_FORKPTY 1
18785 LIBS
="$LIBS -lutil"
18787 { $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18788 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
18789 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18790 $as_echo_n "(cached) " >&6
18792 ac_check_lib_save_LIBS
=$LIBS
18794 cat >conftest.
$ac_ext <<_ACEOF
18797 cat confdefs.h
>>conftest.
$ac_ext
18798 cat >>conftest.
$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18801 /* Override any GCC internal prototype to avoid an error.
18802 Use char because int might match the return type of a GCC
18803 builtin and then its argument prototype would still apply. */
18816 rm -f conftest.
$ac_objext conftest
$ac_exeext
18817 if { (ac_try
="$ac_link"
18818 case "(($ac_try" in
18819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18823 $as_echo "$ac_try_echo") >&5
18824 (eval "$ac_link") 2>conftest.er1
18826 grep -v '^ *+' conftest.er1 >conftest.err
18828 cat conftest.err >&5
18829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && {
18831 test -z "$ac_c_werror_flag" ||
18832 test ! -s conftest.err
18833 } && test -s conftest$ac_exeext && {
18834 test "$cross_compiling" = yes ||
18835 $as_test_x conftest$ac_exeext
18837 ac_cv_lib_bsd_forkpty=yes
18839 $as_echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_cv_lib_bsd_forkpty=no
18845 rm -rf conftest.dSYM
18846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18847 conftest$ac_exeext conftest.$ac_ext
18848 LIBS=$ac_check_lib_save_LIBS
18850 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18851 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
18852 if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE_FORKPTY 1
18869 for ac_func in memmove
18871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18872 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18873 $as_echo_n "checking for $ac_func... " >&6; }
18874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18875 $as_echo_n "(cached) " >&6
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18885 #define $ac_func innocuous_$ac_func
18887 /* System header to define __stub macros and hopefully few prototypes,
18888 which can conflict with char $ac_func (); below.
18889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890 <limits.h> exists even on freestanding compilers. */
18893 # include <limits.h>
18895 # include <assert.h>
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18907 /* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910 #if defined __stub_$ac_func || defined __stub___$ac_func
18917 return $ac_func ();
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18926 *) ac_try_echo
=$ac_try;;
18928 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18929 $as_echo "$ac_try_echo") >&5
18930 (eval "$ac_link") 2>conftest.er1
18932 grep -v '^ *+' conftest.er1
>conftest.err
18934 cat conftest.err
>&5
18935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && {
18937 test -z "$ac_c_werror_flag" ||
18938 test ! -s conftest.err
18939 } && test -s conftest
$ac_exeext && {
18940 test "$cross_compiling" = yes ||
18941 $as_test_x conftest
$ac_exeext
18943 eval "$as_ac_var=yes"
18945 $as_echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.
$ac_ext >&5
18948 eval "$as_ac_var=no"
18951 rm -rf conftest.dSYM
18952 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18953 conftest
$ac_exeext conftest.
$ac_ext
18955 ac_res
=`eval 'as_val=${'$as_ac_var'}
18956 $as_echo "$as_val"'`
18957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18958 $as_echo "$ac_res" >&6; }
18959 as_val
=`eval 'as_val=${'$as_ac_var'}
18960 $as_echo "$as_val"'`
18961 if test "x$as_val" = x
""yes; then
18962 cat >>confdefs.h
<<_ACEOF
18963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18970 # check for long file support functions
18977 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18979 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18981 $as_echo_n "checking for $ac_func... " >&6; }
18982 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18983 $as_echo_n "(cached) " >&6
18985 cat >conftest.
$ac_ext <<_ACEOF
18988 cat confdefs.h
>>conftest.
$ac_ext
18989 cat >>conftest.
$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18993 #define $ac_func innocuous_$ac_func
18995 /* System header to define __stub macros and hopefully few prototypes,
18996 which can conflict with char $ac_func (); below.
18997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18998 <limits.h> exists even on freestanding compilers. */
19001 # include <limits.h>
19003 # include <assert.h>
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19015 /* The GNU C library defines this for functions which it implements
19016 to always fail with ENOSYS. Some functions are actually named
19017 something starting with __ and the normal name is an alias. */
19018 #if defined __stub_$ac_func || defined __stub___$ac_func
19025 return $ac_func ();
19030 rm -f conftest.
$ac_objext conftest
$ac_exeext
19031 if { (ac_try
="$ac_link"
19032 case "(($ac_try" in
19033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19037 $as_echo "$ac_try_echo") >&5
19038 (eval "$ac_link") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1 >conftest.err
19042 cat conftest.err >&5
19043 $as_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_exeext && {
19048 test "$cross_compiling" = yes ||
19049 $as_test_x conftest$ac_exeext
19051 eval "$as_ac_var=yes"
19053 $as_echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 eval "$as_ac_var=no"
19059 rm -rf conftest.dSYM
19060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19061 conftest$ac_exeext conftest.$ac_ext
19063 ac_res=`eval 'as_val=${'$as_ac_var'}
19064 $as_echo "$as_val"'`
19065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19066 $as_echo "$ac_res" >&6; }
19067 as_val=`eval 'as_val=${'$as_ac_var'}
19068 $as_echo "$as_val"'`
19069 if test "x$as_val" = x""yes; then
19070 cat >>confdefs.h <<_ACEOF
19071 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19081 for ac_func in dup2 getcwd strdup
19083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19085 $as_echo_n "checking for $ac_func... " >&6; }
19086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19087 $as_echo_n "(cached) " >&6
19089 cat >conftest.$ac_ext <<_ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19097 #define $ac_func innocuous_$ac_func
19099 /* System header to define __stub macros and hopefully few prototypes,
19100 which can conflict with char $ac_func (); below.
19101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19102 <limits.h> exists even on freestanding compilers. */
19105 # include <limits.h>
19107 # include <assert.h>
19112 /* Override any GCC internal prototype to avoid an error.
19113 Use char because int might match the return type of a GCC
19114 builtin and then its argument prototype would still apply. */
19119 /* The GNU C library defines this for functions which it implements
19120 to always fail with ENOSYS. Some functions are actually named
19121 something starting with __ and the normal name is an alias. */
19122 #if defined __stub_$ac_func || defined __stub___$ac_func
19129 return $ac_func ();
19134 rm -f conftest.$ac_objext conftest$ac_exeext
19135 if { (ac_try="$ac_link"
19136 case "(($ac_try" in
19137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19138 *) ac_try_echo
=$ac_try;;
19140 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19141 $as_echo "$ac_try_echo") >&5
19142 (eval "$ac_link") 2>conftest.er1
19144 grep -v '^ *+' conftest.er1
>conftest.err
19146 cat conftest.err
>&5
19147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } && {
19149 test -z "$ac_c_werror_flag" ||
19150 test ! -s conftest.err
19151 } && test -s conftest
$ac_exeext && {
19152 test "$cross_compiling" = yes ||
19153 $as_test_x conftest
$ac_exeext
19155 eval "$as_ac_var=yes"
19157 $as_echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.
$ac_ext >&5
19160 eval "$as_ac_var=no"
19163 rm -rf conftest.dSYM
19164 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19165 conftest
$ac_exeext conftest.
$ac_ext
19167 ac_res
=`eval 'as_val=${'$as_ac_var'}
19168 $as_echo "$as_val"'`
19169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19170 $as_echo "$ac_res" >&6; }
19171 as_val
=`eval 'as_val=${'$as_ac_var'}
19172 $as_echo "$as_val"'`
19173 if test "x$as_val" = x
""yes; then
19174 cat >>confdefs.h
<<_ACEOF
19175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19179 case " $LIBOBJS " in
19180 *" $ac_func.$ac_objext "* ) ;;
19181 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19190 for ac_func
in getpgrp
19192 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19193 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19194 $as_echo_n "checking for $ac_func... " >&6; }
19195 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19196 $as_echo_n "(cached) " >&6
19198 cat >conftest.
$ac_ext <<_ACEOF
19201 cat confdefs.h
>>conftest.
$ac_ext
19202 cat >>conftest.
$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19206 #define $ac_func innocuous_$ac_func
19208 /* System header to define __stub macros and hopefully few prototypes,
19209 which can conflict with char $ac_func (); below.
19210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19211 <limits.h> exists even on freestanding compilers. */
19214 # include <limits.h>
19216 # include <assert.h>
19221 /* Override any GCC internal prototype to avoid an error.
19222 Use char because int might match the return type of a GCC
19223 builtin and then its argument prototype would still apply. */
19228 /* The GNU C library defines this for functions which it implements
19229 to always fail with ENOSYS. Some functions are actually named
19230 something starting with __ and the normal name is an alias. */
19231 #if defined __stub_$ac_func || defined __stub___$ac_func
19238 return $ac_func ();
19243 rm -f conftest.
$ac_objext conftest
$ac_exeext
19244 if { (ac_try
="$ac_link"
19245 case "(($ac_try" in
19246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19250 $as_echo "$ac_try_echo") >&5
19251 (eval "$ac_link") 2>conftest.er1
19253 grep -v '^ *+' conftest.er1 >conftest.err
19255 cat conftest.err >&5
19256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } && {
19258 test -z "$ac_c_werror_flag" ||
19259 test ! -s conftest.err
19260 } && test -s conftest$ac_exeext && {
19261 test "$cross_compiling" = yes ||
19262 $as_test_x conftest$ac_exeext
19264 eval "$as_ac_var=yes"
19266 $as_echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 eval "$as_ac_var=no"
19272 rm -rf conftest.dSYM
19273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19274 conftest$ac_exeext conftest.$ac_ext
19276 ac_res=`eval 'as_val=${'$as_ac_var'}
19277 $as_echo "$as_val"'`
19278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19279 $as_echo "$ac_res" >&6; }
19280 as_val=`eval 'as_val=${'$as_ac_var'}
19281 $as_echo "$as_val"'`
19282 if test "x$as_val" = x""yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 #include <unistd.h>
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19305 *) ac_try_echo
=$ac_try;;
19307 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19308 $as_echo "$ac_try_echo") >&5
19309 (eval "$ac_compile") 2>conftest.er1
19311 grep -v '^ *+' conftest.er1
>conftest.err
19313 cat conftest.err
>&5
19314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } && {
19316 test -z "$ac_c_werror_flag" ||
19317 test ! -s conftest.err
19318 } && test -s conftest.
$ac_objext; then
19320 cat >>confdefs.h
<<\_ACEOF
19321 #define GETPGRP_HAVE_ARG 1
19326 $as_echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.
$ac_ext >&5
19332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19338 for ac_func
in setpgrp
19340 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19341 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19342 $as_echo_n "checking for $ac_func... " >&6; }
19343 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19344 $as_echo_n "(cached) " >&6
19346 cat >conftest.
$ac_ext <<_ACEOF
19349 cat confdefs.h
>>conftest.
$ac_ext
19350 cat >>conftest.
$ac_ext <<_ACEOF
19351 /* end confdefs.h. */
19352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19354 #define $ac_func innocuous_$ac_func
19356 /* System header to define __stub macros and hopefully few prototypes,
19357 which can conflict with char $ac_func (); below.
19358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19359 <limits.h> exists even on freestanding compilers. */
19362 # include <limits.h>
19364 # include <assert.h>
19369 /* Override any GCC internal prototype to avoid an error.
19370 Use char because int might match the return type of a GCC
19371 builtin and then its argument prototype would still apply. */
19376 /* The GNU C library defines this for functions which it implements
19377 to always fail with ENOSYS. Some functions are actually named
19378 something starting with __ and the normal name is an alias. */
19379 #if defined __stub_$ac_func || defined __stub___$ac_func
19386 return $ac_func ();
19391 rm -f conftest.
$ac_objext conftest
$ac_exeext
19392 if { (ac_try
="$ac_link"
19393 case "(($ac_try" in
19394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19398 $as_echo "$ac_try_echo") >&5
19399 (eval "$ac_link") 2>conftest.er1
19401 grep -v '^ *+' conftest.er1 >conftest.err
19403 cat conftest.err >&5
19404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } && {
19406 test -z "$ac_c_werror_flag" ||
19407 test ! -s conftest.err
19408 } && test -s conftest$ac_exeext && {
19409 test "$cross_compiling" = yes ||
19410 $as_test_x conftest$ac_exeext
19412 eval "$as_ac_var=yes"
19414 $as_echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 eval "$as_ac_var=no"
19420 rm -rf conftest.dSYM
19421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19422 conftest$ac_exeext conftest.$ac_ext
19424 ac_res=`eval 'as_val=${'$as_ac_var'}
19425 $as_echo "$as_val"'`
19426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19427 $as_echo "$ac_res" >&6; }
19428 as_val=`eval 'as_val=${'$as_ac_var'}
19429 $as_echo "$as_val"'`
19430 if test "x$as_val" = x""yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19434 cat >conftest.$ac_ext <<_ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 #include <unistd.h>
19449 rm -f conftest.$ac_objext
19450 if { (ac_try="$ac_compile"
19451 case "(($ac_try" in
19452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19453 *) ac_try_echo
=$ac_try;;
19455 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19456 $as_echo "$ac_try_echo") >&5
19457 (eval "$ac_compile") 2>conftest.er1
19459 grep -v '^ *+' conftest.er1
>conftest.err
19461 cat conftest.err
>&5
19462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } && {
19464 test -z "$ac_c_werror_flag" ||
19465 test ! -s conftest.err
19466 } && test -s conftest.
$ac_objext; then
19468 cat >>confdefs.h
<<\_ACEOF
19469 #define SETPGRP_HAVE_ARG 1
19474 $as_echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.
$ac_ext >&5
19480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19486 for ac_func
in gettimeofday
19488 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19489 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19490 $as_echo_n "checking for $ac_func... " >&6; }
19491 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19492 $as_echo_n "(cached) " >&6
19494 cat >conftest.
$ac_ext <<_ACEOF
19497 cat confdefs.h
>>conftest.
$ac_ext
19498 cat >>conftest.
$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19502 #define $ac_func innocuous_$ac_func
19504 /* System header to define __stub macros and hopefully few prototypes,
19505 which can conflict with char $ac_func (); below.
19506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19507 <limits.h> exists even on freestanding compilers. */
19510 # include <limits.h>
19512 # include <assert.h>
19517 /* Override any GCC internal prototype to avoid an error.
19518 Use char because int might match the return type of a GCC
19519 builtin and then its argument prototype would still apply. */
19524 /* The GNU C library defines this for functions which it implements
19525 to always fail with ENOSYS. Some functions are actually named
19526 something starting with __ and the normal name is an alias. */
19527 #if defined __stub_$ac_func || defined __stub___$ac_func
19534 return $ac_func ();
19539 rm -f conftest.
$ac_objext conftest
$ac_exeext
19540 if { (ac_try
="$ac_link"
19541 case "(($ac_try" in
19542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19546 $as_echo "$ac_try_echo") >&5
19547 (eval "$ac_link") 2>conftest.er1
19549 grep -v '^ *+' conftest.er1 >conftest.err
19551 cat conftest.err >&5
19552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest$ac_exeext && {
19557 test "$cross_compiling" = yes ||
19558 $as_test_x conftest$ac_exeext
19560 eval "$as_ac_var=yes"
19562 $as_echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 eval "$as_ac_var=no"
19568 rm -rf conftest.dSYM
19569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19570 conftest$ac_exeext conftest.$ac_ext
19572 ac_res=`eval 'as_val=${'$as_ac_var'}
19573 $as_echo "$as_val"'`
19574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19575 $as_echo "$ac_res" >&6; }
19576 as_val=`eval 'as_val=${'$as_ac_var'}
19577 $as_echo "$as_val"'`
19578 if test "x$as_val" = x""yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 #include <sys/time.h>
19592 gettimeofday((struct timeval*)0,(struct timezone*)0);
19597 rm -f conftest.$ac_objext
19598 if { (ac_try="$ac_compile"
19599 case "(($ac_try" in
19600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19601 *) ac_try_echo
=$ac_try;;
19603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19604 $as_echo "$ac_try_echo") >&5
19605 (eval "$ac_compile") 2>conftest.er1
19607 grep -v '^ *+' conftest.er1
>conftest.err
19609 cat conftest.err
>&5
19610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest.
$ac_objext; then
19617 $as_echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.
$ac_ext >&5
19621 cat >>confdefs.h
<<\_ACEOF
19622 #define GETTIMEOFDAY_NO_TZ 1
19628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19634 { $as_echo "$as_me:$LINENO: checking for major" >&5
19635 $as_echo_n "checking for major... " >&6; }
19636 cat >conftest.
$ac_ext <<_ACEOF
19639 cat confdefs.h
>>conftest.
$ac_ext
19640 cat >>conftest.
$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19643 #if defined(MAJOR_IN_MKDEV)
19644 #include <sys/mkdev.h>
19645 #elif defined(MAJOR_IN_SYSMACROS)
19646 #include <sys/sysmacros.h>
19648 #include <sys/types.h>
19655 makedev(major(0),minor(0));
19661 rm -f conftest.
$ac_objext conftest
$ac_exeext
19662 if { (ac_try
="$ac_link"
19663 case "(($ac_try" in
19664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19668 $as_echo "$ac_try_echo") >&5
19669 (eval "$ac_link") 2>conftest.er1
19671 grep -v '^ *+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } && {
19676 test -z "$ac_c_werror_flag" ||
19677 test ! -s conftest.err
19678 } && test -s conftest$ac_exeext && {
19679 test "$cross_compiling" = yes ||
19680 $as_test_x conftest$ac_exeext
19684 cat >>confdefs.h <<\_ACEOF
19685 #define HAVE_DEVICE_MACROS 1
19688 { $as_echo "$as_me:$LINENO: result: yes" >&5
19689 $as_echo "yes" >&6; }
19692 $as_echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19696 { $as_echo "$as_me:$LINENO: result: no" >&5
19697 $as_echo "no" >&6; }
19701 rm -rf conftest.dSYM
19702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19703 conftest$ac_exeext conftest.$ac_ext
19705 # On OSF/1 V5.1, getaddrinfo is available, but a define
19706 # for [no]getaddrinfo in netdb.h.
19707 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19708 $as_echo_n "checking for getaddrinfo... " >&6; }
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 #include <sys/types.h>
19717 #include <sys/socket.h>
19725 getaddrinfo(NULL, NULL, NULL, NULL);
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19735 *) ac_try_echo
=$ac_try;;
19737 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19738 $as_echo "$ac_try_echo") >&5
19739 (eval "$ac_link") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1
>conftest.err
19743 cat conftest.err
>&5
19744 $as_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_exeext && {
19749 test "$cross_compiling" = yes ||
19750 $as_test_x conftest
$ac_exeext
19753 { $as_echo "$as_me:$LINENO: result: yes" >&5
19754 $as_echo "yes" >&6; }
19755 { $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19756 $as_echo_n "checking getaddrinfo bug... " >&6; }
19757 if test "$cross_compiling" = yes; then
19758 { $as_echo "$as_me:$LINENO: result: buggy" >&5
19759 $as_echo "buggy" >&6; }
19760 buggygetaddrinfo
=yes
19762 cat >conftest.
$ac_ext <<_ACEOF
19765 cat confdefs.h
>>conftest.
$ac_ext
19766 cat >>conftest.
$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19769 #include <sys/types.h>
19771 #include <string.h>
19772 #include <sys/socket.h>
19773 #include <netinet/in.h>
19777 int passive, gaierr, inet4 = 0, inet6 = 0;
19778 struct addrinfo hints, *ai, *aitop;
19779 char straddr[INET6_ADDRSTRLEN], strport[16];
19781 for (passive = 0; passive <= 1; passive++) {
19782 memset(&hints, 0, sizeof(hints));
19783 hints.ai_family = AF_UNSPEC;
19784 hints.ai_flags = passive ? AI_PASSIVE : 0;
19785 hints.ai_socktype = SOCK_STREAM;
19786 hints.ai_protocol = IPPROTO_TCP;
19787 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19788 (void)gai_strerror(gaierr);
19791 for (ai = aitop; ai; ai = ai->ai_next) {
19792 if (ai->ai_addr == NULL ||
19793 ai->ai_addrlen == 0 ||
19794 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19795 straddr, sizeof(straddr), strport, sizeof(strport),
19796 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19799 switch (ai->ai_family) {
19801 if (strcmp(strport, "54321") != 0) {
19805 if (strcmp(straddr, "0.0.0.0") != 0) {
19809 if (strcmp(straddr, "127.0.0.1") != 0) {
19816 if (strcmp(strport, "54321") != 0) {
19820 if (strcmp(straddr, "::") != 0) {
19824 if (strcmp(straddr, "::1") != 0) {
19834 /* another family support? */
19840 if (!(inet4 == 0 || inet4 == 2))
19842 if (!(inet6 == 0 || inet6 == 2))
19846 freeaddrinfo(aitop);
19851 freeaddrinfo(aitop);
19856 rm -f conftest
$ac_exeext
19857 if { (ac_try
="$ac_link"
19858 case "(($ac_try" in
19859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19863 $as_echo "$ac_try_echo") >&5
19864 (eval "$ac_link") 2>&5
19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19870 *) ac_try_echo
=$ac_try;;
19872 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19873 $as_echo "$ac_try_echo") >&5
19874 (eval "$ac_try") 2>&5
19876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 { $as_echo "$as_me:$LINENO: result: good" >&5
19879 $as_echo "good" >&6; }
19880 buggygetaddrinfo
=no
19882 $as_echo "$as_me: program exited with status $ac_status" >&5
19883 $as_echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.
$ac_ext >&5
19886 ( exit $ac_status )
19887 { $as_echo "$as_me:$LINENO: result: buggy" >&5
19888 $as_echo "buggy" >&6; }
19889 buggygetaddrinfo
=yes
19891 rm -rf conftest.dSYM
19892 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19897 $as_echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.
$ac_ext >&5
19901 { $as_echo "$as_me:$LINENO: result: no" >&5
19902 $as_echo "no" >&6; }
19903 buggygetaddrinfo
=yes
19907 rm -rf conftest.dSYM
19908 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19909 conftest
$ac_exeext conftest.
$ac_ext
19911 if test "$buggygetaddrinfo" = "yes"; then
19912 if test "$ipv6" = "yes"; then
19913 echo 'Fatal: You must get working getaddrinfo() function.'
19914 echo ' or you can specify "--disable-ipv6"'.
19919 cat >>confdefs.h
<<\_ACEOF
19920 #define HAVE_GETADDRINFO 1
19925 for ac_func
in getnameinfo
19927 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19928 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19929 $as_echo_n "checking for $ac_func... " >&6; }
19930 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19931 $as_echo_n "(cached) " >&6
19933 cat >conftest.
$ac_ext <<_ACEOF
19936 cat confdefs.h
>>conftest.
$ac_ext
19937 cat >>conftest.
$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941 #define $ac_func innocuous_$ac_func
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char $ac_func (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19949 # include <limits.h>
19951 # include <assert.h>
19956 /* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19963 /* The GNU C library defines this for functions which it implements
19964 to always fail with ENOSYS. Some functions are actually named
19965 something starting with __ and the normal name is an alias. */
19966 #if defined __stub_$ac_func || defined __stub___$ac_func
19973 return $ac_func ();
19978 rm -f conftest.
$ac_objext conftest
$ac_exeext
19979 if { (ac_try
="$ac_link"
19980 case "(($ac_try" in
19981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19985 $as_echo "$ac_try_echo") >&5
19986 (eval "$ac_link") 2>conftest.er1
19988 grep -v '^ *+' conftest.er1 >conftest.err
19990 cat conftest.err >&5
19991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } && {
19993 test -z "$ac_c_werror_flag" ||
19994 test ! -s conftest.err
19995 } && test -s conftest$ac_exeext && {
19996 test "$cross_compiling" = yes ||
19997 $as_test_x conftest$ac_exeext
19999 eval "$as_ac_var=yes"
20001 $as_echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 eval "$as_ac_var=no"
20007 rm -rf conftest.dSYM
20008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20009 conftest$ac_exeext conftest.$ac_ext
20011 ac_res=`eval 'as_val=${'$as_ac_var'}
20012 $as_echo "$as_val"'`
20013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20014 $as_echo "$ac_res" >&6; }
20015 as_val=`eval 'as_val=${'$as_ac_var'}
20016 $as_echo "$as_val"'`
20017 if test "x$as_val" = x""yes; then
20018 cat >>confdefs.h <<_ACEOF
20019 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20026 # checks for structures
20027 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20028 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20029 if test "${ac_cv_header_time+set}" = set; then
20030 $as_echo_n "(cached) " >&6
20032 cat >conftest.$ac_ext <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20038 #include <sys/types.h>
20039 #include <sys/time.h>
20045 if ((struct tm *) 0)
20051 rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20055 *) ac_try_echo
=$ac_try;;
20057 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20058 $as_echo "$ac_try_echo") >&5
20059 (eval "$ac_compile") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1
>conftest.err
20063 cat conftest.err
>&5
20064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest.
$ac_objext; then
20069 ac_cv_header_time
=yes
20071 $as_echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.
$ac_ext >&5
20074 ac_cv_header_time
=no
20077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20080 $as_echo "$ac_cv_header_time" >&6; }
20081 if test $ac_cv_header_time = yes; then
20083 cat >>confdefs.h
<<\_ACEOF
20084 #define TIME_WITH_SYS_TIME 1
20089 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20090 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20091 if test "${ac_cv_struct_tm+set}" = set; then
20092 $as_echo_n "(cached) " >&6
20094 cat >conftest.
$ac_ext <<_ACEOF
20097 cat confdefs.h
>>conftest.
$ac_ext
20098 cat >>conftest.
$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 #include <sys/types.h>
20107 int *p = &tm.tm_sec;
20113 rm -f conftest.
$ac_objext
20114 if { (ac_try
="$ac_compile"
20115 case "(($ac_try" in
20116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20120 $as_echo "$ac_try_echo") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20123 grep -v '^ *+' conftest.er1 >conftest.err
20125 cat conftest.err >&5
20126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest.$ac_objext; then
20131 ac_cv_struct_tm=time.h
20133 $as_echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_cv_struct_tm=sys/time.h
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20141 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20142 $as_echo "$ac_cv_struct_tm" >&6; }
20143 if test $ac_cv_struct_tm = sys/time.h; then
20145 cat >>confdefs.h <<\_ACEOF
20146 #define TM_IN_SYS_TIME 1
20151 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20152 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
20153 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20154 $as_echo_n "(cached) " >&6
20156 cat >conftest.$ac_ext <<_ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 #include <sys/types.h>
20163 #include <$ac_cv_struct_tm>
20169 static struct tm ac_aggr;
20170 if (ac_aggr.tm_zone)
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20180 *) ac_try_echo
=$ac_try;;
20182 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20183 $as_echo "$ac_try_echo") >&5
20184 (eval "$ac_compile") 2>conftest.er1
20186 grep -v '^ *+' conftest.er1
>conftest.err
20188 cat conftest.err
>&5
20189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest.
$ac_objext; then
20194 ac_cv_member_struct_tm_tm_zone
=yes
20196 $as_echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.
$ac_ext >&5
20199 cat >conftest.
$ac_ext <<_ACEOF
20202 cat confdefs.h
>>conftest.
$ac_ext
20203 cat >>conftest.
$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 #include <sys/types.h>
20206 #include <$ac_cv_struct_tm>
20212 static struct tm ac_aggr;
20213 if (sizeof ac_aggr.tm_zone)
20219 rm -f conftest.
$ac_objext
20220 if { (ac_try
="$ac_compile"
20221 case "(($ac_try" in
20222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20226 $as_echo "$ac_try_echo") >&5
20227 (eval "$ac_compile") 2>conftest.er1
20229 grep -v '^ *+' conftest.er1 >conftest.err
20231 cat conftest.err >&5
20232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && {
20234 test -z "$ac_c_werror_flag" ||
20235 test ! -s conftest.err
20236 } && test -s conftest.$ac_objext; then
20237 ac_cv_member_struct_tm_tm_zone=yes
20239 $as_echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_cv_member_struct_tm_tm_zone=no
20245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20251 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
20252 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
20254 cat >>confdefs.h <<_ACEOF
20255 #define HAVE_STRUCT_TM_TM_ZONE 1
20261 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_TM_ZONE 1
20268 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20269 $as_echo_n "checking whether tzname is declared... " >&6; }
20270 if test "${ac_cv_have_decl_tzname+set}" = set; then
20271 $as_echo_n "(cached) " >&6
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20296 *) ac_try_echo
=$ac_try;;
20298 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300 (eval "$ac_compile") 2>conftest.er1
20302 grep -v '^ *+' conftest.er1
>conftest.err
20304 cat conftest.err
>&5
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest.
$ac_objext; then
20310 ac_cv_have_decl_tzname
=yes
20312 $as_echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.
$ac_ext >&5
20315 ac_cv_have_decl_tzname
=no
20318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20320 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20321 $as_echo "$ac_cv_have_decl_tzname" >&6; }
20322 if test "x$ac_cv_have_decl_tzname" = x
""yes; then
20324 cat >>confdefs.h
<<_ACEOF
20325 #define HAVE_DECL_TZNAME 1
20330 cat >>confdefs.h
<<_ACEOF
20331 #define HAVE_DECL_TZNAME 0
20338 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
20339 $as_echo_n "checking for tzname... " >&6; }
20340 if test "${ac_cv_var_tzname+set}" = set; then
20341 $as_echo_n "(cached) " >&6
20343 cat >conftest.
$ac_ext <<_ACEOF
20346 cat confdefs.h
>>conftest.
$ac_ext
20347 cat >>conftest.
$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20350 #if !HAVE_DECL_TZNAME
20351 extern char *tzname[];
20357 return tzname[0][0];
20362 rm -f conftest.
$ac_objext conftest
$ac_exeext
20363 if { (ac_try
="$ac_link"
20364 case "(($ac_try" in
20365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20369 $as_echo "$ac_try_echo") >&5
20370 (eval "$ac_link") 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest$ac_exeext && {
20380 test "$cross_compiling" = yes ||
20381 $as_test_x conftest$ac_exeext
20383 ac_cv_var_tzname=yes
20385 $as_echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_cv_var_tzname=no
20391 rm -rf conftest.dSYM
20392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20393 conftest$ac_exeext conftest.$ac_ext
20395 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20396 $as_echo "$ac_cv_var_tzname" >&6; }
20397 if test $ac_cv_var_tzname = yes; then
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE_TZNAME 1
20406 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20407 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
20408 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20409 $as_echo_n "(cached) " >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 $ac_includes_default
20421 static struct stat ac_aggr;
20422 if (ac_aggr.st_rdev)
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20432 *) ac_try_echo
=$ac_try;;
20434 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20435 $as_echo "$ac_try_echo") >&5
20436 (eval "$ac_compile") 2>conftest.er1
20438 grep -v '^ *+' conftest.er1
>conftest.err
20440 cat conftest.err
>&5
20441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } && {
20443 test -z "$ac_c_werror_flag" ||
20444 test ! -s conftest.err
20445 } && test -s conftest.
$ac_objext; then
20446 ac_cv_member_struct_stat_st_rdev
=yes
20448 $as_echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.
$ac_ext >&5
20451 cat >conftest.
$ac_ext <<_ACEOF
20454 cat confdefs.h
>>conftest.
$ac_ext
20455 cat >>conftest.
$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 $ac_includes_default
20461 static struct stat ac_aggr;
20462 if (sizeof ac_aggr.st_rdev)
20468 rm -f conftest.
$ac_objext
20469 if { (ac_try
="$ac_compile"
20470 case "(($ac_try" in
20471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20475 $as_echo "$ac_try_echo") >&5
20476 (eval "$ac_compile") 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } && {
20483 test -z "$ac_c_werror_flag" ||
20484 test ! -s conftest.err
20485 } && test -s conftest.$ac_objext; then
20486 ac_cv_member_struct_stat_st_rdev=yes
20488 $as_echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 ac_cv_member_struct_stat_st_rdev=no
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20499 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20500 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
20501 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
20503 cat >>confdefs.h <<_ACEOF
20504 #define HAVE_STRUCT_STAT_ST_RDEV 1
20510 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20511 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
20512 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20513 $as_echo_n "(cached) " >&6
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 $ac_includes_default
20525 static struct stat ac_aggr;
20526 if (ac_aggr.st_blksize)
20532 rm -f conftest.$ac_objext
20533 if { (ac_try="$ac_compile"
20534 case "(($ac_try" in
20535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20536 *) ac_try_echo
=$ac_try;;
20538 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20539 $as_echo "$ac_try_echo") >&5
20540 (eval "$ac_compile") 2>conftest.er1
20542 grep -v '^ *+' conftest.er1
>conftest.err
20544 cat conftest.err
>&5
20545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest.
$ac_objext; then
20550 ac_cv_member_struct_stat_st_blksize
=yes
20552 $as_echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.
$ac_ext >&5
20555 cat >conftest.
$ac_ext <<_ACEOF
20558 cat confdefs.h
>>conftest.
$ac_ext
20559 cat >>conftest.
$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 $ac_includes_default
20565 static struct stat ac_aggr;
20566 if (sizeof ac_aggr.st_blksize)
20572 rm -f conftest.
$ac_objext
20573 if { (ac_try
="$ac_compile"
20574 case "(($ac_try" in
20575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20579 $as_echo "$ac_try_echo") >&5
20580 (eval "$ac_compile") 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } && {
20587 test -z "$ac_c_werror_flag" ||
20588 test ! -s conftest.err
20589 } && test -s conftest.$ac_objext; then
20590 ac_cv_member_struct_stat_st_blksize=yes
20592 $as_echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20595 ac_cv_member_struct_stat_st_blksize=no
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20604 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
20605 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
20607 cat >>confdefs.h <<_ACEOF
20608 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20614 { $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20615 $as_echo_n "checking for struct stat.st_flags... " >&6; }
20616 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20617 $as_echo_n "(cached) " >&6
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20629 static struct stat ac_aggr;
20630 if (ac_aggr.st_flags)
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 ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1
>conftest.err
20648 cat conftest.err
>&5
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.
$ac_objext; then
20654 ac_cv_member_struct_stat_st_flags
=yes
20656 $as_echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.
$ac_ext >&5
20659 cat >conftest.
$ac_ext <<_ACEOF
20662 cat confdefs.h
>>conftest.
$ac_ext
20663 cat >>conftest.
$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20665 $ac_includes_default
20669 static struct stat ac_aggr;
20670 if (sizeof ac_aggr.st_flags)
20676 rm -f conftest.
$ac_objext
20677 if { (ac_try
="$ac_compile"
20678 case "(($ac_try" in
20679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20683 $as_echo "$ac_try_echo") >&5
20684 (eval "$ac_compile") 2>conftest.er1
20686 grep -v '^ *+' conftest.er1 >conftest.err
20688 cat conftest.err >&5
20689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest.$ac_objext; then
20694 ac_cv_member_struct_stat_st_flags=yes
20696 $as_echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20699 ac_cv_member_struct_stat_st_flags=no
20702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20708 $as_echo "$ac_cv_member_struct_stat_st_flags" >&6; }
20709 if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then
20711 cat >>confdefs.h <<_ACEOF
20712 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20718 { $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20719 $as_echo_n "checking for struct stat.st_gen... " >&6; }
20720 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20721 $as_echo_n "(cached) " >&6
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 $ac_includes_default
20733 static struct stat ac_aggr;
20734 if (ac_aggr.st_gen)
20740 rm -f conftest.$ac_objext
20741 if { (ac_try="$ac_compile"
20742 case "(($ac_try" in
20743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20744 *) ac_try_echo
=$ac_try;;
20746 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20747 $as_echo "$ac_try_echo") >&5
20748 (eval "$ac_compile") 2>conftest.er1
20750 grep -v '^ *+' conftest.er1
>conftest.err
20752 cat conftest.err
>&5
20753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && {
20755 test -z "$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 } && test -s conftest.
$ac_objext; then
20758 ac_cv_member_struct_stat_st_gen
=yes
20760 $as_echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.
$ac_ext >&5
20763 cat >conftest.
$ac_ext <<_ACEOF
20766 cat confdefs.h
>>conftest.
$ac_ext
20767 cat >>conftest.
$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 $ac_includes_default
20773 static struct stat ac_aggr;
20774 if (sizeof ac_aggr.st_gen)
20780 rm -f conftest.
$ac_objext
20781 if { (ac_try
="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20787 $as_echo "$ac_try_echo") >&5
20788 (eval "$ac_compile") 2>conftest.er1
20790 grep -v '^ *+' conftest.er1 >conftest.err
20792 cat conftest.err >&5
20793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } && {
20795 test -z "$ac_c_werror_flag" ||
20796 test ! -s conftest.err
20797 } && test -s conftest.$ac_objext; then
20798 ac_cv_member_struct_stat_st_gen=yes
20800 $as_echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 ac_cv_member_struct_stat_st_gen=no
20806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20812 $as_echo "$ac_cv_member_struct_stat_st_gen" >&6; }
20813 if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 #define HAVE_STRUCT_STAT_ST_GEN 1
20822 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20823 $as_echo_n "checking for struct stat.st_birthtime... " >&6; }
20824 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20825 $as_echo_n "(cached) " >&6
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 $ac_includes_default
20837 static struct stat ac_aggr;
20838 if (ac_aggr.st_birthtime)
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20848 *) ac_try_echo
=$ac_try;;
20850 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20851 $as_echo "$ac_try_echo") >&5
20852 (eval "$ac_compile") 2>conftest.er1
20854 grep -v '^ *+' conftest.er1
>conftest.err
20856 cat conftest.err
>&5
20857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } && {
20859 test -z "$ac_c_werror_flag" ||
20860 test ! -s conftest.err
20861 } && test -s conftest.
$ac_objext; then
20862 ac_cv_member_struct_stat_st_birthtime
=yes
20864 $as_echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.
$ac_ext >&5
20867 cat >conftest.
$ac_ext <<_ACEOF
20870 cat confdefs.h
>>conftest.
$ac_ext
20871 cat >>conftest.
$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20877 static struct stat ac_aggr;
20878 if (sizeof ac_aggr.st_birthtime)
20884 rm -f conftest.
$ac_objext
20885 if { (ac_try
="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20891 $as_echo "$ac_try_echo") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && {
20899 test -z "$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 } && test -s conftest.$ac_objext; then
20902 ac_cv_member_struct_stat_st_birthtime=yes
20904 $as_echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_member_struct_stat_st_birthtime=no
20910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20916 $as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; }
20917 if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20926 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20927 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
20928 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20929 $as_echo_n "(cached) " >&6
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 $ac_includes_default
20941 static struct stat ac_aggr;
20942 if (ac_aggr.st_blocks)
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20952 *) ac_try_echo
=$ac_try;;
20954 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20958 grep -v '^ *+' conftest.er1
>conftest.err
20960 cat conftest.err
>&5
20961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.
$ac_objext; then
20966 ac_cv_member_struct_stat_st_blocks
=yes
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.
$ac_ext >&5
20971 cat >conftest.
$ac_ext <<_ACEOF
20974 cat confdefs.h
>>conftest.
$ac_ext
20975 cat >>conftest.
$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 $ac_includes_default
20981 static struct stat ac_aggr;
20982 if (sizeof ac_aggr.st_blocks)
20988 rm -f conftest.
$ac_objext
20989 if { (ac_try
="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20995 $as_echo "$ac_try_echo") >&5
20996 (eval "$ac_compile") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest.$ac_objext; then
21006 ac_cv_member_struct_stat_st_blocks=yes
21008 $as_echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_cv_member_struct_stat_st_blocks=no
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21020 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
21021 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
21023 cat >>confdefs.h <<_ACEOF
21024 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_ST_BLOCKS 1
21033 case " $LIBOBJS " in
21034 *" fileblocks.$ac_objext "* ) ;;
21035 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21043 { $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21044 $as_echo_n "checking for time.h that defines altzone... " >&6; }
21045 if test "${ac_cv_header_time_altzone+set}" = set; then
21046 $as_echo_n "(cached) " >&6
21048 cat >conftest.$ac_ext <<_ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21067 *) ac_try_echo
=$ac_try;;
21069 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21070 $as_echo "$ac_try_echo") >&5
21071 (eval "$ac_compile") 2>conftest.er1
21073 grep -v '^ *+' conftest.er1
>conftest.err
21075 cat conftest.err
>&5
21076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } && {
21078 test -z "$ac_c_werror_flag" ||
21079 test ! -s conftest.err
21080 } && test -s conftest.
$ac_objext; then
21081 ac_cv_header_time_altzone
=yes
21083 $as_echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.
$ac_ext >&5
21086 ac_cv_header_time_altzone
=no
21089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21093 $as_echo "$ac_cv_header_time_altzone" >&6; }
21094 if test $ac_cv_header_time_altzone = yes; then
21096 cat >>confdefs.h
<<\_ACEOF
21097 #define HAVE_ALTZONE 1
21103 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21104 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
21105 cat >conftest.
$ac_ext <<_ACEOF
21108 cat confdefs.h
>>conftest.
$ac_ext
21109 cat >>conftest.
$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21112 #include <sys/types.h>
21113 #include <sys/select.h>
21114 #include <sys/time.h>
21124 rm -f conftest.
$ac_objext
21125 if { (ac_try
="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21131 $as_echo "$ac_try_echo") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21134 grep -v '^ *+' conftest.er1 >conftest.err
21136 cat conftest.err >&5
21137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21144 cat >>confdefs.h <<\_ACEOF
21145 #define SYS_SELECT_WITH_SYS_TIME 1
21151 $as_echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158 { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
21159 $as_echo "$was_it_defined" >&6; }
21161 { $as_echo "$as_me:$LINENO: checking for addrinfo" >&5
21162 $as_echo_n "checking for addrinfo... " >&6; }
21163 if test "${ac_cv_struct_addrinfo+set}" = set; then
21164 $as_echo_n "(cached) " >&6
21166 cat >conftest.$ac_ext <<_ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21173 # include <netdb.h>
21182 rm -f conftest.$ac_objext
21183 if { (ac_try="$ac_compile"
21184 case "(($ac_try" in
21185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21186 *) ac_try_echo
=$ac_try;;
21188 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21189 $as_echo "$ac_try_echo") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21192 grep -v '^ *+' conftest.er1
>conftest.err
21194 cat conftest.err
>&5
21195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.
$ac_objext; then
21200 ac_cv_struct_addrinfo
=yes
21202 $as_echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.
$ac_ext >&5
21205 ac_cv_struct_addrinfo
=no
21208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21211 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21212 $as_echo "$ac_cv_struct_addrinfo" >&6; }
21213 if test $ac_cv_struct_addrinfo = yes; then
21215 cat >>confdefs.h
<<\_ACEOF
21216 #define HAVE_ADDRINFO 1
21221 { $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21222 $as_echo_n "checking for sockaddr_storage... " >&6; }
21223 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21224 $as_echo_n "(cached) " >&6
21226 cat >conftest.
$ac_ext <<_ACEOF
21229 cat confdefs.h
>>conftest.
$ac_ext
21230 cat >>conftest.
$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21233 # include <sys/types.h>
21234 # include <sys/socket.h>
21238 struct sockaddr_storage s
21243 rm -f conftest.
$ac_objext
21244 if { (ac_try
="$ac_compile"
21245 case "(($ac_try" in
21246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21253 grep -v '^ *+' conftest.er1 >conftest.err
21255 cat conftest.err >&5
21256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21261 ac_cv_struct_sockaddr_storage=yes
21263 $as_echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_cv_struct_sockaddr_storage=no
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
21273 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
21274 if test $ac_cv_struct_sockaddr_storage = yes; then
21276 cat >>confdefs.h <<\_ACEOF
21277 #define HAVE_SOCKADDR_STORAGE 1
21282 # checks for compiler characteristics
21285 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
21286 $as_echo_n "checking whether char is unsigned... " >&6; }
21287 if test "${ac_cv_c_char_unsigned+set}" = set; then
21288 $as_echo_n "(cached) " >&6
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21300 static int test_array [1 - 2 * !(((char) -1) < 0)];
21307 rm -f conftest.$ac_objext
21308 if { (ac_try="$ac_compile"
21309 case "(($ac_try" in
21310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21311 *) ac_try_echo
=$ac_try;;
21313 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21314 $as_echo "$ac_try_echo") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1
>conftest.err
21319 cat conftest.err
>&5
21320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.
$ac_objext; then
21325 ac_cv_c_char_unsigned
=no
21327 $as_echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.
$ac_ext >&5
21330 ac_cv_c_char_unsigned
=yes
21333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21335 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
21336 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21337 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21338 cat >>confdefs.h
<<\_ACEOF
21339 #define __CHAR_UNSIGNED__ 1
21344 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21345 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21346 if test "${ac_cv_c_const+set}" = set; then
21347 $as_echo_n "(cached) " >&6
21349 cat >conftest.
$ac_ext <<_ACEOF
21352 cat confdefs.h
>>conftest.
$ac_ext
21353 cat >>conftest.
$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21359 /* FIXME: Include the comments suggested by Paul. */
21360 #ifndef __cplusplus
21361 /* Ultrix mips cc rejects this. */
21362 typedef int charset[2];
21364 /* SunOS 4.1.1 cc rejects this. */
21365 char const *const *pcpcc;
21367 /* NEC SVR4.0.2 mips cc rejects this. */
21368 struct point {int x, y;};
21369 static struct point const zero = {0,0};
21370 /* AIX XL C 1.02.0.0 rejects this.
21371 It does not let you subtract one const X* pointer from another in
21372 an arm of an if-expression whose if-part is not a constant
21374 const char *g = "string";
21375 pcpcc = &g + (g ? g-g : 0);
21376 /* HPUX 7.0 cc rejects these. */
21378 ppc = (char**) pcpcc;
21379 pcpcc = (char const *const *) ppc;
21380 { /* SCO 3.2v4 cc rejects this. */
21382 char const *s = 0 ? (char *) 0 : (char const *) 0;
21387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21388 int x[] = {25, 17};
21389 const int *foo = &x[0];
21392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21393 typedef const int *iptr;
21397 { /* AIX XL C 1.02.0.0 rejects this saying
21398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21399 struct s { int j; const int *ap[3]; };
21400 struct s *b; b->j = 5;
21402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21403 const int foo = 10;
21404 if (!foo) return 0;
21406 return !cs[0] && !zero.x;
21413 rm -f conftest.
$ac_objext
21414 if { (ac_try
="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21420 $as_echo "$ac_try_echo") >&5
21421 (eval "$ac_compile") 2>conftest.er1
21423 grep -v '^ *+' conftest.er1 >conftest.err
21425 cat conftest.err >&5
21426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } && {
21428 test -z "$ac_c_werror_flag" ||
21429 test ! -s conftest.err
21430 } && test -s conftest.$ac_objext; then
21433 $as_echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21442 $as_echo "$ac_cv_c_const" >&6; }
21443 if test $ac_cv_c_const = no; then
21445 cat >>confdefs.h <<\_ACEOF
21453 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
21454 $as_echo_n "checking for working volatile... " >&6; }
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21465 volatile int x; x = 0;
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21474 *) ac_try_echo
=$ac_try;;
21476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21477 $as_echo "$ac_try_echo") >&5
21478 (eval "$ac_compile") 2>conftest.er1
21480 grep -v '^ *+' conftest.er1
>conftest.err
21482 cat conftest.err
>&5
21483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest.
$ac_objext; then
21490 $as_echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.
$ac_ext >&5
21494 cat >>confdefs.h
<<\_ACEOF
21495 #define volatile /**/
21501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21502 { $as_echo "$as_me:$LINENO: result: $works" >&5
21503 $as_echo "$works" >&6; }
21506 { $as_echo "$as_me:$LINENO: checking for working signed char" >&5
21507 $as_echo_n "checking for working signed char... " >&6; }
21508 cat >conftest.
$ac_ext <<_ACEOF
21511 cat confdefs.h
>>conftest.
$ac_ext
21512 cat >>conftest.
$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21523 rm -f conftest.
$ac_objext
21524 if { (ac_try
="$ac_compile"
21525 case "(($ac_try" in
21526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21530 $as_echo "$ac_try_echo") >&5
21531 (eval "$ac_compile") 2>conftest.er1
21533 grep -v '^ *+' conftest.er1 >conftest.err
21535 cat conftest.err >&5
21536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest.$ac_objext; then
21543 $as_echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21547 cat >>confdefs.h <<\_ACEOF
21548 #define signed /**/
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555 { $as_echo "$as_me:$LINENO: result: $works" >&5
21556 $as_echo "$works" >&6; }
21559 { $as_echo "$as_me:$LINENO: checking for prototypes" >&5
21560 $as_echo_n "checking for prototypes... " >&6; }
21561 cat >conftest.$ac_ext <<_ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 int foo(int x) { return 0; }
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21580 *) ac_try_echo
=$ac_try;;
21582 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21583 $as_echo "$ac_try_echo") >&5
21584 (eval "$ac_compile") 2>conftest.er1
21586 grep -v '^ *+' conftest.er1
>conftest.err
21588 cat conftest.err
>&5
21589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest.
$ac_objext; then
21596 cat >>confdefs.h
<<\_ACEOF
21597 #define HAVE_PROTOTYPES 1
21600 have_prototypes
=yes
21603 $as_echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.
$ac_ext >&5
21609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21610 { $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5
21611 $as_echo "$have_prototypes" >&6; }
21614 { $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21615 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
21616 cat >conftest.
$ac_ext <<_ACEOF
21619 cat confdefs.h
>>conftest.
$ac_ext
21620 cat >>conftest.
$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21623 #include <stdarg.h>
21624 int foo(int x, ...) {
21628 va_arg(va, char *);
21629 va_arg(va, double);
21636 return foo(10, "", 3.14);
21641 rm -f conftest.
$ac_objext
21642 if { (ac_try
="$ac_compile"
21643 case "(($ac_try" in
21644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21648 $as_echo "$ac_try_echo") >&5
21649 (eval "$ac_compile") 2>conftest.er1
21651 grep -v '^ *+' conftest.er1 >conftest.err
21653 cat conftest.err >&5
21654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest.$ac_objext; then
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_STDARG_PROTOTYPES 1
21668 $as_echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 { $as_echo "$as_me:$LINENO: result: $works" >&5
21676 $as_echo "$works" >&6; }
21678 # check for socketpair
21679 { $as_echo "$as_me:$LINENO: checking for socketpair" >&5
21680 $as_echo_n "checking for socketpair... " >&6; }
21681 cat >conftest.$ac_ext <<_ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21688 #include <sys/types.h>
21689 #include <sys/socket.h>
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21703 *) ac_try_echo
=$ac_try;;
21705 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21706 $as_echo "$ac_try_echo") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21709 grep -v '^ *+' conftest.er1
>conftest.err
21711 cat conftest.err
>&5
21712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.
$ac_objext; then
21718 cat >>confdefs.h
<<\_ACEOF
21719 #define HAVE_SOCKETPAIR 1
21722 { $as_echo "$as_me:$LINENO: result: yes" >&5
21723 $as_echo "yes" >&6; }
21725 $as_echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.
$ac_ext >&5
21728 { $as_echo "$as_me:$LINENO: result: no" >&5
21729 $as_echo "no" >&6; }
21733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21735 # check if sockaddr has sa_len member
21736 { $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21737 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
21738 cat >conftest.
$ac_ext <<_ACEOF
21741 cat confdefs.h
>>conftest.
$ac_ext
21742 cat >>conftest.
$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 #include <sys/types.h>
21745 #include <sys/socket.h>
21755 rm -f conftest.
$ac_objext
21756 if { (ac_try
="$ac_compile"
21757 case "(($ac_try" in
21758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21762 $as_echo "$ac_try_echo") >&5
21763 (eval "$ac_compile") 2>conftest.er1
21765 grep -v '^ *+' conftest.er1 >conftest.err
21767 cat conftest.err >&5
21768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } && {
21770 test -z "$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21772 } && test -s conftest.$ac_objext; then
21773 { $as_echo "$as_me:$LINENO: result: yes" >&5
21774 $as_echo "yes" >&6; }
21776 cat >>confdefs.h <<\_ACEOF
21777 #define HAVE_SOCKADDR_SA_LEN 1
21781 $as_echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 { $as_echo "$as_me:$LINENO: result: no" >&5
21785 $as_echo "no" >&6; }
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 va_list_is_array=no
21791 { $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21792 $as_echo_n "checking whether va_list is an array... " >&6; }
21793 cat >conftest.$ac_ext <<_ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21800 #ifdef HAVE_STDARG_PROTOTYPES
21801 #include <stdarg.h>
21803 #include <varargs.h>
21809 va_list list1, list2; list1 = list2;
21814 rm -f conftest.$ac_objext
21815 if { (ac_try="$ac_compile"
21816 case "(($ac_try" in
21817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21818 *) ac_try_echo
=$ac_try;;
21820 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21821 $as_echo "$ac_try_echo") >&5
21822 (eval "$ac_compile") 2>conftest.er1
21824 grep -v '^ *+' conftest.er1
>conftest.err
21826 cat conftest.err
>&5
21827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest.
$ac_objext; then
21834 $as_echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.
$ac_ext >&5
21839 cat >>confdefs.h
<<\_ACEOF
21840 #define VA_LIST_IS_ARRAY 1
21843 va_list_is_array
=yes
21847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21848 { $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21849 $as_echo "$va_list_is_array" >&6; }
21851 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21855 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21856 $as_echo_n "checking for gethostbyname_r... " >&6; }
21857 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21858 $as_echo_n "(cached) " >&6
21860 cat >conftest.
$ac_ext <<_ACEOF
21863 cat confdefs.h
>>conftest.
$ac_ext
21864 cat >>conftest.
$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21868 #define gethostbyname_r innocuous_gethostbyname_r
21870 /* System header to define __stub macros and hopefully few prototypes,
21871 which can conflict with char gethostbyname_r (); below.
21872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21873 <limits.h> exists even on freestanding compilers. */
21876 # include <limits.h>
21878 # include <assert.h>
21881 #undef gethostbyname_r
21883 /* Override any GCC internal prototype to avoid an error.
21884 Use char because int might match the return type of a GCC
21885 builtin and then its argument prototype would still apply. */
21889 char gethostbyname_r ();
21890 /* The GNU C library defines this for functions which it implements
21891 to always fail with ENOSYS. Some functions are actually named
21892 something starting with __ and the normal name is an alias. */
21893 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21900 return gethostbyname_r ();
21905 rm -f conftest.
$ac_objext conftest
$ac_exeext
21906 if { (ac_try
="$ac_link"
21907 case "(($ac_try" in
21908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21912 $as_echo "$ac_try_echo") >&5
21913 (eval "$ac_link") 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest$ac_exeext && {
21923 test "$cross_compiling" = yes ||
21924 $as_test_x conftest$ac_exeext
21926 ac_cv_func_gethostbyname_r=yes
21928 $as_echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 ac_cv_func_gethostbyname_r=no
21934 rm -rf conftest.dSYM
21935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21936 conftest$ac_exeext conftest.$ac_ext
21938 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21939 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
21940 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_GETHOSTBYNAME_R 1
21946 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21947 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
21949 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21950 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21957 # include <netdb.h>
21964 struct hostent *he, *res;
21969 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21975 rm -f conftest.$ac_objext
21976 if { (ac_try="$ac_compile"
21977 case "(($ac_try" in
21978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21979 *) ac_try_echo
=$ac_try;;
21981 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21982 $as_echo "$ac_try_echo") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21985 grep -v '^ *+' conftest.er1
>conftest.err
21987 cat conftest.err
>&5
21988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.
$ac_objext; then
21994 cat >>confdefs.h
<<\_ACEOF
21995 #define HAVE_GETHOSTBYNAME_R 1
21999 cat >>confdefs.h
<<\_ACEOF
22000 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22003 { $as_echo "$as_me:$LINENO: result: yes" >&5
22004 $as_echo "yes" >&6; }
22007 $as_echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.
$ac_ext >&5
22011 { $as_echo "$as_me:$LINENO: result: no" >&5
22012 $as_echo "no" >&6; }
22013 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22014 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
22015 cat >conftest.
$ac_ext <<_ACEOF
22018 cat confdefs.h
>>conftest.
$ac_ext
22019 cat >>conftest.
$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22022 # include <netdb.h>
22029 struct hostent *he;
22034 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22040 rm -f conftest.
$ac_objext
22041 if { (ac_try
="$ac_compile"
22042 case "(($ac_try" in
22043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22047 $as_echo "$ac_try_echo") >&5
22048 (eval "$ac_compile") 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } && {
22055 test -z "$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 } && test -s conftest.$ac_objext; then
22059 cat >>confdefs.h <<\_ACEOF
22060 #define HAVE_GETHOSTBYNAME_R 1
22064 cat >>confdefs.h <<\_ACEOF
22065 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22068 { $as_echo "$as_me:$LINENO: result: yes" >&5
22069 $as_echo "yes" >&6; }
22072 $as_echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22076 { $as_echo "$as_me:$LINENO: result: no" >&5
22077 $as_echo "no" >&6; }
22078 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22079 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
22080 cat >conftest.$ac_ext <<_ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22087 # include <netdb.h>
22094 struct hostent *he;
22095 struct hostent_data data;
22097 (void) gethostbyname_r(name, he, &data);
22103 rm -f conftest.$ac_objext
22104 if { (ac_try="$ac_compile"
22105 case "(($ac_try" in
22106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22107 *) ac_try_echo
=$ac_try;;
22109 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22110 $as_echo "$ac_try_echo") >&5
22111 (eval "$ac_compile") 2>conftest.er1
22113 grep -v '^ *+' conftest.er1
>conftest.err
22115 cat conftest.err
>&5
22116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } && {
22118 test -z "$ac_c_werror_flag" ||
22119 test ! -s conftest.err
22120 } && test -s conftest.
$ac_objext; then
22122 cat >>confdefs.h
<<\_ACEOF
22123 #define HAVE_GETHOSTBYNAME_R 1
22127 cat >>confdefs.h
<<\_ACEOF
22128 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22131 { $as_echo "$as_me:$LINENO: result: yes" >&5
22132 $as_echo "yes" >&6; }
22135 $as_echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.
$ac_ext >&5
22139 { $as_echo "$as_me:$LINENO: result: no" >&5
22140 $as_echo "no" >&6; }
22144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22158 for ac_func
in gethostbyname
22160 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22161 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22162 $as_echo_n "checking for $ac_func... " >&6; }
22163 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22164 $as_echo_n "(cached) " >&6
22166 cat >conftest.
$ac_ext <<_ACEOF
22169 cat confdefs.h
>>conftest.
$ac_ext
22170 cat >>conftest.
$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22174 #define $ac_func innocuous_$ac_func
22176 /* System header to define __stub macros and hopefully few prototypes,
22177 which can conflict with char $ac_func (); below.
22178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22179 <limits.h> exists even on freestanding compilers. */
22182 # include <limits.h>
22184 # include <assert.h>
22189 /* Override any GCC internal prototype to avoid an error.
22190 Use char because int might match the return type of a GCC
22191 builtin and then its argument prototype would still apply. */
22196 /* The GNU C library defines this for functions which it implements
22197 to always fail with ENOSYS. Some functions are actually named
22198 something starting with __ and the normal name is an alias. */
22199 #if defined __stub_$ac_func || defined __stub___$ac_func
22206 return $ac_func ();
22211 rm -f conftest.
$ac_objext conftest
$ac_exeext
22212 if { (ac_try
="$ac_link"
22213 case "(($ac_try" in
22214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22218 $as_echo "$ac_try_echo") >&5
22219 (eval "$ac_link") 2>conftest.er1
22221 grep -v '^ *+' conftest.er1 >conftest.err
22223 cat conftest.err >&5
22224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest$ac_exeext && {
22229 test "$cross_compiling" = yes ||
22230 $as_test_x conftest$ac_exeext
22232 eval "$as_ac_var=yes"
22234 $as_echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 eval "$as_ac_var=no"
22240 rm -rf conftest.dSYM
22241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242 conftest$ac_exeext conftest.$ac_ext
22244 ac_res=`eval 'as_val=${'$as_ac_var'}
22245 $as_echo "$as_val"'`
22246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22247 $as_echo "$ac_res" >&6; }
22248 as_val=`eval 'as_val=${'$as_ac_var'}
22249 $as_echo "$as_val"'`
22250 if test "x$as_val" = x""yes; then
22251 cat >>confdefs.h <<_ACEOF
22252 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22267 # checks for system services
22270 # Linux requires this for correct f.p. operations
22271 { $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5
22272 $as_echo_n "checking for __fpu_control... " >&6; }
22273 if test "${ac_cv_func___fpu_control+set}" = set; then
22274 $as_echo_n "(cached) " >&6
22276 cat >conftest.$ac_ext <<_ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22282 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
22283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22284 #define __fpu_control innocuous___fpu_control
22286 /* System header to define __stub macros and hopefully few prototypes,
22287 which can conflict with char __fpu_control (); below.
22288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22289 <limits.h> exists even on freestanding compilers. */
22292 # include <limits.h>
22294 # include <assert.h>
22297 #undef __fpu_control
22299 /* Override any GCC internal prototype to avoid an error.
22300 Use char because int might match the return type of a GCC
22301 builtin and then its argument prototype would still apply. */
22305 char __fpu_control ();
22306 /* The GNU C library defines this for functions which it implements
22307 to always fail with ENOSYS. Some functions are actually named
22308 something starting with __ and the normal name is an alias. */
22309 #if defined __stub___fpu_control || defined __stub_____fpu_control
22316 return __fpu_control ();
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (ac_try="$ac_link"
22323 case "(($ac_try" in
22324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22325 *) ac_try_echo
=$ac_try;;
22327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22328 $as_echo "$ac_try_echo") >&5
22329 (eval "$ac_link") 2>conftest.er1
22331 grep -v '^ *+' conftest.er1
>conftest.err
22333 cat conftest.err
>&5
22334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } && {
22336 test -z "$ac_c_werror_flag" ||
22337 test ! -s conftest.err
22338 } && test -s conftest
$ac_exeext && {
22339 test "$cross_compiling" = yes ||
22340 $as_test_x conftest
$ac_exeext
22342 ac_cv_func___fpu_control
=yes
22344 $as_echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.
$ac_ext >&5
22347 ac_cv_func___fpu_control
=no
22350 rm -rf conftest.dSYM
22351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22352 conftest
$ac_exeext conftest.
$ac_ext
22354 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
22355 $as_echo "$ac_cv_func___fpu_control" >&6; }
22356 if test "x$ac_cv_func___fpu_control" = x
""yes; then
22360 { $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
22361 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
22362 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
22363 $as_echo_n "(cached) " >&6
22365 ac_check_lib_save_LIBS
=$LIBS
22366 LIBS
="-lieee $LIBS"
22367 cat >conftest.
$ac_ext <<_ACEOF
22370 cat confdefs.h
>>conftest.
$ac_ext
22371 cat >>conftest.
$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22374 /* Override any GCC internal prototype to avoid an error.
22375 Use char because int might match the return type of a GCC
22376 builtin and then its argument prototype would still apply. */
22380 char __fpu_control ();
22384 return __fpu_control ();
22389 rm -f conftest.
$ac_objext conftest
$ac_exeext
22390 if { (ac_try
="$ac_link"
22391 case "(($ac_try" in
22392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397 (eval "$ac_link") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest$ac_exeext && {
22407 test "$cross_compiling" = yes ||
22408 $as_test_x conftest$ac_exeext
22410 ac_cv_lib_ieee___fpu_control=yes
22412 $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ac_cv_lib_ieee___fpu_control=no
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420 conftest$ac_exeext conftest.$ac_ext
22421 LIBS=$ac_check_lib_save_LIBS
22423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
22424 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
22425 if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then
22426 cat >>confdefs.h <<_ACEOF
22427 #define HAVE_LIBIEEE 1
22430 LIBS="-lieee $LIBS"
22438 # Check for --with-fpectl
22439 { $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5
22440 $as_echo_n "checking for --with-fpectl... " >&6; }
22442 # Check whether --with-fpectl was given.
22443 if test "${with_fpectl+set}" = set; then
22444 withval=$with_fpectl;
22445 if test "$withval" != no
22448 cat >>confdefs.h <<\_ACEOF
22449 #define WANT_SIGFPE_HANDLER 1
22452 { $as_echo "$as_me:$LINENO: result: yes" >&5
22453 $as_echo "yes" >&6; }
22454 else { $as_echo "$as_me:$LINENO: result: no" >&5
22455 $as_echo "no" >&6; }
22458 { $as_echo "$as_me:$LINENO: result: no" >&5
22459 $as_echo "no" >&6; }
22463 # check for --with-libm=...
22465 case $ac_sys_system in
22470 { $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
22471 $as_echo_n "checking for --with-libm=STRING... " >&6; }
22473 # Check whether --with-libm was given.
22474 if test "${with_libm+set}" = set; then
22475 withval=$with_libm;
22476 if test "$withval" = no
22478 { $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5
22479 $as_echo "force LIBM empty" >&6; }
22480 elif test "$withval" != yes
22482 { $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
22483 $as_echo "set LIBM=\"$withval\"" >&6; }
22484 else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
22485 $as_echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
22486 { (exit 1); exit 1; }; }
22489 { $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
22490 $as_echo "default LIBM=\"$LIBM\"" >&6; }
22494 # check for --with-libc=...
22496 { $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
22497 $as_echo_n "checking for --with-libc=STRING... " >&6; }
22499 # Check whether --with-libc was given.
22500 if test "${with_libc+set}" = set; then
22501 withval=$with_libc;
22502 if test "$withval" = no
22504 { $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5
22505 $as_echo "force LIBC empty" >&6; }
22506 elif test "$withval" != yes
22508 { $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
22509 $as_echo "set LIBC=\"$withval\"" >&6; }
22510 else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
22511 $as_echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
22512 { (exit 1); exit 1; }; }
22515 { $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
22516 $as_echo "default LIBC=\"$LIBC\"" >&6; }
22520 # ************************************
22521 # * Check for mathematical functions *
22522 # ************************************
22527 # Detect whether system arithmetic is subject to x87-style double
22528 # rounding issues. The result of this test has little meaning on non
22529 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22530 # mode is round-to-nearest and double rounding issues are present, and
22531 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22532 { $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22533 $as_echo_n "checking for x87-style double rounding... " >&6; }
22534 if test "${ac_cv_x87_double_rounding+set}" = set; then
22535 $as_echo_n "(cached) " >&6
22538 if test "$cross_compiling" = yes; then
22539 ac_cv_x87_double_rounding=no
22541 cat >conftest.$ac_ext <<_ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22548 #include <stdlib.h>
22551 volatile double x, y, z;
22552 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22553 x = 0.99999999999999989; /* 1-2**-53 */
22557 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22563 /* both tests show evidence of double rounding */
22568 rm -f conftest$ac_exeext
22569 if { (ac_try="$ac_link"
22570 case "(($ac_try" in
22571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22572 *) ac_try_echo
=$ac_try;;
22574 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22575 $as_echo "$ac_try_echo") >&5
22576 (eval "$ac_link") 2>&5
22578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22580 { (case "(($ac_try" in
22581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22585 $as_echo "$ac_try_echo") >&5
22586 (eval "$ac_try") 2>&5
22588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 ac_cv_x87_double_rounding=no
22592 $as_echo "$as_me: program exited with status $ac_status" >&5
22593 $as_echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ( exit $ac_status )
22597 ac_cv_x87_double_rounding=yes
22599 rm -rf conftest.dSYM
22600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22606 { $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22607 $as_echo "$ac_cv_x87_double_rounding" >&6; }
22608 if test "$ac_cv_x87_double_rounding" = yes
22611 cat >>confdefs.h <<\_ACEOF
22612 #define X87_DOUBLE_ROUNDING 1
22617 # Multiprocessing check for broken sem_getvalue
22618 { $as_echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22619 $as_echo_n "checking for broken sem_getvalue... " >&6; }
22620 if test "$cross_compiling" = yes; then
22621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22623 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
22624 See \
`config.log' for more details." >&5
22625 $as_echo "$as_me: error: cannot run test program while cross compiling
22626 See \`config.log
' for more details." >&2;}
22627 { (exit 1); exit 1; }; }; }
22629 cat >conftest.$ac_ext <<_ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22636 #include <unistd.h>
22639 #include <semaphore.h>
22640 #include <sys/stat.h>
22643 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22647 perror("sem_open");
22651 res = sem_getvalue(a, &count);
22653 return res==-1 ? 1 : 0;
22658 rm -f conftest$ac_exeext
22659 if { (ac_try="$ac_link"
22660 case "(($ac_try" in
22661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662 *) ac_try_echo=$ac_try;;
22664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22665 $as_echo "$ac_try_echo") >&5
22666 (eval "$ac_link") 2>&5
22668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22670 { (case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22675 $as_echo "$ac_try_echo") >&5
22676 (eval "$ac_try") 2>&5
22678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; }; then
22680 { $as_echo "$as_me:$LINENO: result: no" >&5
22681 $as_echo "no" >&6; }
22683 $as_echo "$as_me: program exited with status $ac_status" >&5
22684 $as_echo "$as_me: failed program was:" >&5
22685 sed 's
/^
/|
/' conftest.$ac_ext >&5
22687 ( exit $ac_status )
22688 { $as_echo "$as_me:$LINENO: result: yes" >&5
22689 $as_echo "yes" >&6; }
22691 cat >>confdefs.h <<\_ACEOF
22692 #define HAVE_BROKEN_SEM_GETVALUE 1
22697 rm -rf conftest.dSYM
22698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22703 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22704 # -0. on some architectures.
22705 { $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22706 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
22707 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22708 $as_echo_n "(cached) " >&6
22711 if test "$cross_compiling" = yes; then
22712 ac_cv_tanh_preserves_zero_sign=no
22714 cat >conftest.$ac_ext <<_ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22722 #include <stdlib.h>
22724 /* return 0 if either negative zeros don't exist
22725 on this platform or
if negative zeros exist
22726 and tanh
(-0.
) == -0.
*/
22727 if (atan2
(0.
, -1.
) == atan2
(-0.
, -1.
) ||
22728 atan2
(tanh
(-0.
), -1.
) == atan2
(-0.
, -1.
)) exit(0);
22733 rm -f conftest
$ac_exeext
22734 if { (ac_try
="$ac_link"
22735 case "(($ac_try" in
22736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22740 $as_echo "$ac_try_echo") >&5
22741 (eval "$ac_link") 2>&5
22743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22745 { (case "(($ac_try" in
22746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22747 *) ac_try_echo
=$ac_try;;
22749 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22750 $as_echo "$ac_try_echo") >&5
22751 (eval "$ac_try") 2>&5
22753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22755 ac_cv_tanh_preserves_zero_sign
=yes
22757 $as_echo "$as_me: program exited with status $ac_status" >&5
22758 $as_echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.
$ac_ext >&5
22761 ( exit $ac_status )
22762 ac_cv_tanh_preserves_zero_sign
=no
22764 rm -rf conftest.dSYM
22765 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22771 { $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22772 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
22773 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22776 cat >>confdefs.h
<<\_ACEOF
22777 #define TANH_PRESERVES_ZERO_SIGN 1
22791 for ac_func
in acosh asinh atanh copysign expm1 finite hypot log1p round
22793 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22794 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22795 $as_echo_n "checking for $ac_func... " >&6; }
22796 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22797 $as_echo_n "(cached) " >&6
22799 cat >conftest.
$ac_ext <<_ACEOF
22802 cat confdefs.h
>>conftest.
$ac_ext
22803 cat >>conftest.
$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22807 #define $ac_func innocuous_$ac_func
22809 /* System header to define __stub macros and hopefully few prototypes,
22810 which can conflict with char $ac_func (); below.
22811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22812 <limits.h> exists even on freestanding compilers. */
22815 # include <limits.h>
22817 # include <assert.h>
22822 /* Override any GCC internal prototype to avoid an error.
22823 Use char because int might match the return type of a GCC
22824 builtin and then its argument prototype would still apply. */
22829 /* The GNU C library defines this for functions which it implements
22830 to always fail with ENOSYS. Some functions are actually named
22831 something starting with __ and the normal name is an alias. */
22832 #if defined __stub_$ac_func || defined __stub___$ac_func
22839 return $ac_func ();
22844 rm -f conftest.
$ac_objext conftest
$ac_exeext
22845 if { (ac_try
="$ac_link"
22846 case "(($ac_try" in
22847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22848 *) ac_try_echo=$ac_try;;
22850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22851 $as_echo "$ac_try_echo") >&5
22852 (eval "$ac_link") 2>conftest.er1
22854 grep -v '^ *+' conftest.er1 >conftest.err
22856 cat conftest.err >&5
22857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } && {
22859 test -z "$ac_c_werror_flag" ||
22860 test ! -s conftest.err
22861 } && test -s conftest$ac_exeext && {
22862 test "$cross_compiling" = yes ||
22863 $as_test_x conftest$ac_exeext
22865 eval "$as_ac_var=yes"
22867 $as_echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 eval "$as_ac_var=no"
22873 rm -rf conftest.dSYM
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875 conftest$ac_exeext conftest.$ac_ext
22877 ac_res=`eval 'as_val=${'$as_ac_var'}
22878 $as_echo "$as_val"'`
22879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22880 $as_echo "$ac_res" >&6; }
22881 as_val=`eval 'as_val=${'$as_ac_var'}
22882 $as_echo "$as_val"'`
22883 if test "x$as_val" = x""yes; then
22884 cat >>confdefs.h <<_ACEOF
22885 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22891 { $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22892 $as_echo_n "checking whether isinf is declared... " >&6; }
22893 if test "${ac_cv_have_decl_isinf+set}" = set; then
22894 $as_echo_n "(cached) " >&6
22896 cat >conftest.$ac_ext <<_ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h. */
22915 rm -f conftest.$ac_objext
22916 if { (ac_try="$ac_compile"
22917 case "(($ac_try" in
22918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22919 *) ac_try_echo
=$ac_try;;
22921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22922 $as_echo "$ac_try_echo") >&5
22923 (eval "$ac_compile") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1
>conftest.err
22927 cat conftest.err
>&5
22928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest.
$ac_objext; then
22933 ac_cv_have_decl_isinf
=yes
22935 $as_echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.
$ac_ext >&5
22938 ac_cv_have_decl_isinf
=no
22941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22943 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22944 $as_echo "$ac_cv_have_decl_isinf" >&6; }
22945 if test "x$ac_cv_have_decl_isinf" = x
""yes; then
22947 cat >>confdefs.h
<<_ACEOF
22948 #define HAVE_DECL_ISINF 1
22953 cat >>confdefs.h
<<_ACEOF
22954 #define HAVE_DECL_ISINF 0
22959 { $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22960 $as_echo_n "checking whether isnan is declared... " >&6; }
22961 if test "${ac_cv_have_decl_isnan+set}" = set; then
22962 $as_echo_n "(cached) " >&6
22964 cat >conftest.
$ac_ext <<_ACEOF
22967 cat confdefs.h
>>conftest.
$ac_ext
22968 cat >>conftest.
$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22983 rm -f conftest.
$ac_objext
22984 if { (ac_try
="$ac_compile"
22985 case "(($ac_try" in
22986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22990 $as_echo "$ac_try_echo") >&5
22991 (eval "$ac_compile") 2>conftest.er1
22993 grep -v '^ *+' conftest.er1 >conftest.err
22995 cat conftest.err >&5
22996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } && {
22998 test -z "$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23000 } && test -s conftest.$ac_objext; then
23001 ac_cv_have_decl_isnan=yes
23003 $as_echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23006 ac_cv_have_decl_isnan=no
23009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23011 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23012 $as_echo "$ac_cv_have_decl_isnan" >&6; }
23013 if test "x$ac_cv_have_decl_isnan" = x""yes; then
23015 cat >>confdefs.h <<_ACEOF
23016 #define HAVE_DECL_ISNAN 1
23021 cat >>confdefs.h <<_ACEOF
23022 #define HAVE_DECL_ISNAN 0
23027 { $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23028 $as_echo_n "checking whether isfinite is declared... " >&6; }
23029 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23030 $as_echo_n "(cached) " >&6
23032 cat >conftest.$ac_ext <<_ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23055 *) ac_try_echo
=$ac_try;;
23057 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23058 $as_echo "$ac_try_echo") >&5
23059 (eval "$ac_compile") 2>conftest.er1
23061 grep -v '^ *+' conftest.er1
>conftest.err
23063 cat conftest.err
>&5
23064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } && {
23066 test -z "$ac_c_werror_flag" ||
23067 test ! -s conftest.err
23068 } && test -s conftest.
$ac_objext; then
23069 ac_cv_have_decl_isfinite
=yes
23071 $as_echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.
$ac_ext >&5
23074 ac_cv_have_decl_isfinite
=no
23077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23079 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23080 $as_echo "$ac_cv_have_decl_isfinite" >&6; }
23081 if test "x$ac_cv_have_decl_isfinite" = x
""yes; then
23083 cat >>confdefs.h
<<_ACEOF
23084 #define HAVE_DECL_ISFINITE 1
23089 cat >>confdefs.h
<<_ACEOF
23090 #define HAVE_DECL_ISFINITE 0
23100 # determine what size digit to use for Python's longs
23101 { $as_echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23102 $as_echo_n "checking digit size for Python's longs... " >&6; }
23103 # Check whether --enable-big-digits was given.
23104 if test "${enable_big_digits+set}" = set; then
23105 enableval
=$enable_big_digits; case $enable_big_digits in
23107 enable_big_digits
=30 ;;
23109 enable_big_digits
=15 ;;
23113 { { $as_echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23114 $as_echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23115 { (exit 1); exit 1; }; } ;;
23117 { $as_echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23118 $as_echo "$enable_big_digits" >&6; }
23120 cat >>confdefs.h
<<_ACEOF
23121 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23126 { $as_echo "$as_me:$LINENO: result: no value specified" >&5
23127 $as_echo "no value specified" >&6; }
23131 # check for wchar.h
23132 if test "${ac_cv_header_wchar_h+set}" = set; then
23133 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
23134 $as_echo_n "checking for wchar.h... " >&6; }
23135 if test "${ac_cv_header_wchar_h+set}" = set; then
23136 $as_echo_n "(cached) " >&6
23138 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23139 $as_echo "$ac_cv_header_wchar_h" >&6; }
23141 # Is the header compilable?
23142 { $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5
23143 $as_echo_n "checking wchar.h usability... " >&6; }
23144 cat >conftest.
$ac_ext <<_ACEOF
23147 cat confdefs.h
>>conftest.
$ac_ext
23148 cat >>conftest.
$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23150 $ac_includes_default
23153 rm -f conftest.
$ac_objext
23154 if { (ac_try
="$ac_compile"
23155 case "(($ac_try" in
23156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23160 $as_echo "$ac_try_echo") >&5
23161 (eval "$ac_compile") 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } && {
23168 test -z "$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23170 } && test -s conftest.$ac_objext; then
23171 ac_header_compiler=yes
23173 $as_echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 ac_header_compiler=no
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23181 $as_echo "$ac_header_compiler" >&6; }
23183 # Is the header present?
23184 { $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5
23185 $as_echo_n "checking wchar.h presence... " >&6; }
23186 cat >conftest.$ac_ext <<_ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23194 if { (ac_try="$ac_cpp conftest.$ac_ext"
23195 case "(($ac_try" in
23196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23197 *) ac_try_echo
=$ac_try;;
23199 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23200 $as_echo "$ac_try_echo") >&5
23201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23203 grep -v '^ *+' conftest.er1
>conftest.err
23205 cat conftest.err
>&5
23206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } >/dev
/null
&& {
23208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23211 ac_header_preproc
=yes
23213 $as_echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.
$ac_ext >&5
23216 ac_header_preproc
=no
23219 rm -f conftest.err conftest.
$ac_ext
23220 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23221 $as_echo "$ac_header_preproc" >&6; }
23223 # So? What about this header?
23224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23226 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23227 $as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23228 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23229 $as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23230 ac_header_preproc
=yes
23233 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23234 $as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23235 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23236 $as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23237 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23238 $as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23239 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23240 $as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23241 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23242 $as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23243 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23244 $as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23246 ## -------------------------------------- ##
23247 ## Report this to http://bugs.python.org/ ##
23248 ## -------------------------------------- ##
23250 ) |
sed "s/^/$as_me: WARNING: /" >&2
23253 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
23254 $as_echo_n "checking for wchar.h... " >&6; }
23255 if test "${ac_cv_header_wchar_h+set}" = set; then
23256 $as_echo_n "(cached) " >&6
23258 ac_cv_header_wchar_h
=$ac_header_preproc
23260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23261 $as_echo "$ac_cv_header_wchar_h" >&6; }
23264 if test "x$ac_cv_header_wchar_h" = x
""yes; then
23267 cat >>confdefs.h
<<\_ACEOF
23268 #define HAVE_WCHAR_H 1
23280 # determine wchar_t size
23281 if test "$wchar_h" = yes
23283 # The cast to long int works around a bug in the HP C Compiler
23284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23286 # This bug is HP SR number 8606223364.
23287 { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
23288 $as_echo_n "checking size of wchar_t... " >&6; }
23289 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23290 $as_echo_n "(cached) " >&6
23292 if test "$cross_compiling" = yes; then
23293 # Depending upon the size, compute the lo and hi bounds.
23294 cat >conftest.
$ac_ext <<_ACEOF
23297 cat confdefs.h
>>conftest.
$ac_ext
23298 cat >>conftest.
$ac_ext <<_ACEOF
23299 /* end confdefs.h. */
23305 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
23312 rm -f conftest.
$ac_objext
23313 if { (ac_try
="$ac_compile"
23314 case "(($ac_try" in
23315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23319 $as_echo "$ac_try_echo") >&5
23320 (eval "$ac_compile") 2>conftest.er1
23322 grep -v '^ *+' conftest.er1 >conftest.err
23324 cat conftest.err >&5
23325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } && {
23327 test -z "$ac_c_werror_flag" ||
23328 test ! -s conftest.err
23329 } && test -s conftest.$ac_objext; then
23332 cat >conftest.$ac_ext <<_ACEOF
23335 cat confdefs.h >>conftest.$ac_ext
23336 cat >>conftest.$ac_ext <<_ACEOF
23337 /* end confdefs.h. */
23343 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
23350 rm -f conftest.$ac_objext
23351 if { (ac_try="$ac_compile"
23352 case "(($ac_try" in
23353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23354 *) ac_try_echo
=$ac_try;;
23356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23357 $as_echo "$ac_try_echo") >&5
23358 (eval "$ac_compile") 2>conftest.er1
23360 grep -v '^ *+' conftest.er1
>conftest.err
23362 cat conftest.err
>&5
23363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } && {
23365 test -z "$ac_c_werror_flag" ||
23366 test ! -s conftest.err
23367 } && test -s conftest.
$ac_objext; then
23368 ac_hi
=$ac_mid; break
23370 $as_echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.
$ac_ext >&5
23373 ac_lo
=`expr $ac_mid + 1`
23374 if test $ac_lo -le $ac_mid; then
23378 ac_mid
=`expr 2 '*' $ac_mid + 1`
23381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23384 $as_echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.
$ac_ext >&5
23387 cat >conftest.
$ac_ext <<_ACEOF
23390 cat confdefs.h
>>conftest.
$ac_ext
23391 cat >>conftest.
$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23398 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
23405 rm -f conftest.
$ac_objext
23406 if { (ac_try
="$ac_compile"
23407 case "(($ac_try" in
23408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23412 $as_echo "$ac_try_echo") >&5
23413 (eval "$ac_compile") 2>conftest.er1
23415 grep -v '^ *+' conftest.er1 >conftest.err
23417 cat conftest.err >&5
23418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest.$ac_objext; then
23425 cat >conftest.$ac_ext <<_ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23436 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23447 *) ac_try_echo
=$ac_try;;
23449 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23450 $as_echo "$ac_try_echo") >&5
23451 (eval "$ac_compile") 2>conftest.er1
23453 grep -v '^ *+' conftest.er1
>conftest.err
23455 cat conftest.err
>&5
23456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest.
$ac_objext; then
23461 ac_lo
=$ac_mid; break
23463 $as_echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.
$ac_ext >&5
23466 ac_hi
=`expr '(' $ac_mid ')' - 1`
23467 if test $ac_mid -le $ac_hi; then
23471 ac_mid
=`expr 2 '*' $ac_mid`
23474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23477 $as_echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.
$ac_ext >&5
23483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23487 # Binary search between lo and hi bounds.
23488 while test "x$ac_lo" != "x$ac_hi"; do
23489 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23490 cat >conftest.
$ac_ext <<_ACEOF
23493 cat confdefs.h
>>conftest.
$ac_ext
23494 cat >>conftest.
$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23501 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
23508 rm -f conftest.
$ac_objext
23509 if { (ac_try
="$ac_compile"
23510 case "(($ac_try" in
23511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23515 $as_echo "$ac_try_echo") >&5
23516 (eval "$ac_compile") 2>conftest.er1
23518 grep -v '^ *+' conftest.er1 >conftest.err
23520 cat conftest.err >&5
23521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } && {
23523 test -z "$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23525 } && test -s conftest.$ac_objext; then
23528 $as_echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ac_lo=`expr '(' $ac_mid ')' + 1`
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23538 '') if test "$ac_cv_type_wchar_t" = yes; then
23539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23541 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23542 See \
`config.log' for more details." >&5
23543 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
23544 See \`config.log
' for more details." >&2;}
23545 { (exit 77); exit 77; }; }; }
23547 ac_cv_sizeof_wchar_t=0
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23559 static long int longval () { return (long int) (sizeof (wchar_t)); }
23560 static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
23562 #include <stdlib.h>
23567 FILE *f = fopen ("conftest.val", "w");
23570 if (((long int) (sizeof (wchar_t))) < 0)
23572 long int i = longval ();
23573 if (i != ((long int) (sizeof (wchar_t))))
23575 fprintf (f, "%ld", i);
23579 unsigned long int i = ulongval ();
23580 if (i != ((long int) (sizeof (wchar_t))))
23582 fprintf (f, "%lu", i);
23584 /* Do not output a trailing newline, as this causes \r\n confusion
23585 on some platforms. */
23586 return ferror (f) || fclose (f) != 0;
23592 rm -f conftest$ac_exeext
23593 if { (ac_try="$ac_link"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23599 $as_echo "$ac_try_echo") >&5
23600 (eval "$ac_link") 2>&5
23602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23604 { (case "(($ac_try" in
23605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606 *) ac_try_echo=$ac_try;;
23608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23609 $as_echo "$ac_try_echo") >&5
23610 (eval "$ac_try") 2>&5
23612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; }; then
23614 ac_cv_sizeof_wchar_t=`cat conftest.val`
23616 $as_echo "$as_me: program exited with status $ac_status" >&5
23617 $as_echo "$as_me: failed program was:" >&5
23618 sed 's
/^
/|
/' conftest.$ac_ext >&5
23620 ( exit $ac_status )
23621 if test "$ac_cv_type_wchar_t" = yes; then
23622 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23623 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
23624 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23625 See \`config.log
' for more details." >&5
23626 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
23627 See \`config.log' for more details.
" >&2;}
23628 { (exit 77); exit 77; }; }; }
23630 ac_cv_sizeof_wchar_t=0
23633 rm -rf conftest.dSYM
23634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23638 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
23639 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23643 cat >>confdefs.h <<_ACEOF
23644 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23650 { $as_echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
23651 $as_echo_n "checking
for UCS-4 tcl...
" >&6; }
23653 cat >conftest.$ac_ext <<_ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h. */
23661 #if TCL_UTF_MAX != 6
23662 # error "NOT UCS4_TCL
"
23672 rm -f conftest.$ac_objext
23673 if { (ac_try="$ac_compile"
23674 case "(($ac_try" in
23675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676 *) ac_try_echo=$ac_try;;
23678 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23679 $as_echo "$ac_try_echo") >&5
23680 (eval "$ac_compile") 2>conftest.er1
23682 grep -v '^ *+' conftest.er1 >conftest.err
23684 cat conftest.err >&5
23685 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23686 (exit $ac_status); } && {
23687 test -z "$ac_c_werror_flag" ||
23688 test ! -s conftest.err
23689 } && test -s conftest.$ac_objext; then
23692 cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_UCS4_TCL 1
23699 $as_echo "$as_me: failed program was
:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23706 { $as_echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
23707 $as_echo "$have_ucs4_tcl" >&6; }
23709 # check whether wchar_t is signed or not
23710 if test "$wchar_h" = yes
23712 # check whether wchar_t is signed or not
23713 { $as_echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
23714 $as_echo_n "checking whether wchar_t is signed...
" >&6; }
23715 if test "${ac_cv_wchar_t_signed+set}" = set; then
23716 $as_echo_n "(cached
) " >&6
23719 if test "$cross_compiling" = yes; then
23720 ac_cv_wchar_t_signed=yes
23722 cat >conftest.$ac_ext <<_ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23732 /* Success: exit code 0 */
23733 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23737 rm -f conftest$ac_exeext
23738 if { (ac_try="$ac_link"
23739 case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23743 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23744 $as_echo "$ac_try_echo") >&5
23745 (eval "$ac_link") 2>&5
23747 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23749 { (case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23753 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23754 $as_echo "$ac_try_echo") >&5
23755 (eval "$ac_try") 2>&5
23757 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23758 (exit $ac_status); }; }; then
23759 ac_cv_wchar_t_signed=yes
23761 $as_echo "$as_me: program exited with status
$ac_status" >&5
23762 $as_echo "$as_me: failed program was
:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 ( exit $ac_status )
23766 ac_cv_wchar_t_signed=no
23768 rm -rf conftest.dSYM
23769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23775 { $as_echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
23776 $as_echo "$ac_cv_wchar_t_signed" >&6; }
23779 { $as_echo "$as_me:$LINENO: checking what
type to use
for unicode
" >&5
23780 $as_echo_n "checking what
type to use
for unicode...
" >&6; }
23781 # Check whether --enable-unicode was given.
23782 if test "${enable_unicode+set}" = set; then
23783 enableval=$enable_unicode;
23789 if test $enable_unicode = yes
23791 # Without any arguments, Py_UNICODE defaults to two-byte mode
23792 case "$have_ucs4_tcl" in
23793 yes) enable_unicode="ucs4
"
23795 *) enable_unicode="ucs2
"
23802 case "$enable_unicode" in
23803 ucs2) unicode_size="2"
23804 cat >>confdefs.h <<\_ACEOF
23805 #define Py_UNICODE_SIZE 2
23809 ucs4) unicode_size="4"
23810 cat >>confdefs.h <<\_ACEOF
23811 #define Py_UNICODE_SIZE 4
23821 if test "$enable_unicode" = "no
"
23824 { $as_echo "$as_me:$LINENO: result
: not used
" >&5
23825 $as_echo "not used
" >&6; }
23827 UNICODE_OBJS="Objects
/unicodeobject.o Objects
/unicodectype.o
"
23829 cat >>confdefs.h <<\_ACEOF
23830 #define Py_USING_UNICODE 1
23834 # wchar_t is only usable if it maps to an unsigned type
23835 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23836 -a "$ac_cv_wchar_t_signed" = "no
"
23838 PY_UNICODE_TYPE="wchar_t
"
23840 cat >>confdefs.h <<\_ACEOF
23841 #define HAVE_USABLE_WCHAR_T 1
23844 cat >>confdefs.h <<\_ACEOF
23845 #define PY_UNICODE_TYPE wchar_t
23848 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23850 PY_UNICODE_TYPE="unsigned short
"
23851 cat >>confdefs.h <<\_ACEOF
23852 #define PY_UNICODE_TYPE unsigned short
23855 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23857 PY_UNICODE_TYPE="unsigned long
"
23858 cat >>confdefs.h <<\_ACEOF
23859 #define PY_UNICODE_TYPE unsigned long
23863 PY_UNICODE_TYPE="no
type found
"
23865 { $as_echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
23866 $as_echo "$PY_UNICODE_TYPE" >&6; }
23869 # check for endianness
23871 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
23872 $as_echo_n "checking whether byte ordering is bigendian...
" >&6; }
23873 if test "${ac_cv_c_bigendian+set}" = set; then
23874 $as_echo_n "(cached
) " >&6
23876 ac_cv_c_bigendian=unknown
23877 # See if we're dealing with a universal compiler.
23878 cat >conftest.$ac_ext <<_ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23884 #ifndef __APPLE_CC__
23885 not a universal capable compiler
23890 rm -f conftest.$ac_objext
23891 if { (ac_try="$ac_compile"
23892 case "(($ac_try" in
23893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894 *) ac_try_echo=$ac_try;;
23896 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23897 $as_echo "$ac_try_echo") >&5
23898 (eval "$ac_compile") 2>conftest.er1
23900 grep -v '^ *+' conftest.er1 >conftest.err
23902 cat conftest.err >&5
23903 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23904 (exit $ac_status); } && {
23905 test -z "$ac_c_werror_flag" ||
23906 test ! -s conftest.err
23907 } && test -s conftest.$ac_objext; then
23909 # Check for potential -arch flags. It is not universal unless
23910 # there are some -arch flags. Note that *ppc* also matches
23911 # ppc64. This check is also rather less than ideal.
23912 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
23913 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
23916 $as_echo "$as_me: failed program was
:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923 if test $ac_cv_c_bigendian = unknown; then
23924 # See if sys/param.h defines the BYTE_ORDER macro.
23925 cat >conftest.$ac_ext <<_ACEOF
23928 cat confdefs.h >>conftest.$ac_ext
23929 cat >>conftest.$ac_ext <<_ACEOF
23930 /* end confdefs.h. */
23931 #include <sys/types.h>
23932 #include <sys/param.h>
23937 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23938 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23940 bogus endian macros
23947 rm -f conftest.$ac_objext
23948 if { (ac_try="$ac_compile"
23949 case "(($ac_try" in
23950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951 *) ac_try_echo=$ac_try;;
23953 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23954 $as_echo "$ac_try_echo") >&5
23955 (eval "$ac_compile") 2>conftest.er1
23957 grep -v '^ *+' conftest.er1 >conftest.err
23959 cat conftest.err >&5
23960 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23961 (exit $ac_status); } && {
23962 test -z "$ac_c_werror_flag" ||
23963 test ! -s conftest.err
23964 } && test -s conftest.$ac_objext; then
23965 # It does; now see whether it defined to BIG_ENDIAN or not.
23966 cat >conftest.$ac_ext <<_ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23972 #include <sys/types.h>
23973 #include <sys/param.h>
23978 #if BYTE_ORDER != BIG_ENDIAN
23986 rm -f conftest.$ac_objext
23987 if { (ac_try="$ac_compile"
23988 case "(($ac_try" in
23989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23990 *) ac_try_echo=$ac_try;;
23992 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23993 $as_echo "$ac_try_echo") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23996 grep -v '^ *+' conftest.er1 >conftest.err
23998 cat conftest.err >&5
23999 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24000 (exit $ac_status); } && {
24001 test -z "$ac_c_werror_flag" ||
24002 test ! -s conftest.err
24003 } && test -s conftest.$ac_objext; then
24004 ac_cv_c_bigendian=yes
24006 $as_echo "$as_me: failed program was
:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24009 ac_cv_c_bigendian=no
24012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24014 $as_echo "$as_me: failed program was
:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24022 if test $ac_cv_c_bigendian = unknown; then
24023 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24024 cat >conftest.$ac_ext <<_ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 #include <limits.h>
24035 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24036 bogus endian macros
24043 rm -f conftest.$ac_objext
24044 if { (ac_try="$ac_compile"
24045 case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24049 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24050 $as_echo "$ac_try_echo") >&5
24051 (eval "$ac_compile") 2>conftest.er1
24053 grep -v '^ *+' conftest.er1 >conftest.err
24055 cat conftest.err >&5
24056 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24057 (exit $ac_status); } && {
24058 test -z "$ac_c_werror_flag" ||
24059 test ! -s conftest.err
24060 } && test -s conftest.$ac_objext; then
24061 # It does; now see whether it defined to _BIG_ENDIAN or not.
24062 cat >conftest.$ac_ext <<_ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24068 #include <limits.h>
24073 #ifndef _BIG_ENDIAN
24081 rm -f conftest.$ac_objext
24082 if { (ac_try="$ac_compile"
24083 case "(($ac_try" in
24084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085 *) ac_try_echo=$ac_try;;
24087 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24088 $as_echo "$ac_try_echo") >&5
24089 (eval "$ac_compile") 2>conftest.er1
24091 grep -v '^ *+' conftest.er1 >conftest.err
24093 cat conftest.err >&5
24094 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24095 (exit $ac_status); } && {
24096 test -z "$ac_c_werror_flag" ||
24097 test ! -s conftest.err
24098 } && test -s conftest.$ac_objext; then
24099 ac_cv_c_bigendian=yes
24101 $as_echo "$as_me: failed program was
:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24104 ac_cv_c_bigendian=no
24107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24109 $as_echo "$as_me: failed program was
:" >&5
24110 sed 's/^/| /' conftest.$ac_ext >&5
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117 if test $ac_cv_c_bigendian = unknown; then
24118 # Compile a test program.
24119 if test "$cross_compiling" = yes; then
24120 # Try to guess by grepping values from an object file.
24121 cat >conftest.$ac_ext <<_ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24127 short int ascii_mm[] =
24128 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24129 short int ascii_ii[] =
24130 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24131 int use_ascii (int i) {
24132 return ascii_mm[i] + ascii_ii[i];
24134 short int ebcdic_ii[] =
24135 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24136 short int ebcdic_mm[] =
24137 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24138 int use_ebcdic (int i) {
24139 return ebcdic_mm[i] + ebcdic_ii[i];
24146 return use_ascii (foo) == use_ebcdic (foo);
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24157 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24158 $as_echo "$ac_try_echo") >&5
24159 (eval "$ac_compile") 2>conftest.er1
24161 grep -v '^ *+' conftest.er1 >conftest.err
24163 cat conftest.err >&5
24164 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24165 (exit $ac_status); } && {
24166 test -z "$ac_c_werror_flag" ||
24167 test ! -s conftest.err
24168 } && test -s conftest.$ac_objext; then
24169 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24170 ac_cv_c_bigendian=yes
24172 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24173 if test "$ac_cv_c_bigendian" = unknown; then
24174 ac_cv_c_bigendian=no
24176 # finding both strings is unlikely to happen, but who knows?
24177 ac_cv_c_bigendian=unknown
24181 $as_echo "$as_me: failed program was
:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24189 cat >conftest.$ac_ext <<_ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 $ac_includes_default
24200 /* Are we little or big endian? From Harbison&Steele. */
24204 char c[sizeof (long int)];
24207 return u.c[sizeof (long int) - 1] == 1;
24213 rm -f conftest$ac_exeext
24214 if { (ac_try="$ac_link"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221 (eval "$ac_link") 2>&5
24223 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24225 { (case "(($ac_try" in
24226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227 *) ac_try_echo=$ac_try;;
24229 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24230 $as_echo "$ac_try_echo") >&5
24231 (eval "$ac_try") 2>&5
24233 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24234 (exit $ac_status); }; }; then
24235 ac_cv_c_bigendian=no
24237 $as_echo "$as_me: program exited with status
$ac_status" >&5
24238 $as_echo "$as_me: failed program was
:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 ( exit $ac_status )
24242 ac_cv_c_bigendian=yes
24244 rm -rf conftest.dSYM
24245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24251 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
24252 $as_echo "$ac_cv_c_bigendian" >&6; }
24253 case $ac_cv_c_bigendian in #(
24255 cat >>confdefs.h <<\_ACEOF
24256 #define WORDS_BIGENDIAN 1
24263 cat >>confdefs.h <<\_ACEOF
24264 #define AC_APPLE_UNIVERSAL_BUILD 1
24269 { { $as_echo "$as_me:$LINENO: error
: unknown endianness
24270 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
24271 $as_echo "$as_me: error
: unknown endianness
24272 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
24273 { (exit 1); exit 1; }; } ;;
24277 # Check whether right shifting a negative integer extends the sign bit
24278 # or fills with zeros (like the Cray J90, according to Tim Peters).
24279 { $as_echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
24280 $as_echo_n "checking whether right
shift extends the sign bit...
" >&6; }
24281 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24282 $as_echo_n "(cached
) " >&6
24285 if test "$cross_compiling" = yes; then
24286 ac_cv_rshift_extends_sign=yes
24288 cat >conftest.$ac_ext <<_ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24297 exit(((-1)>>3 == -1) ? 0 : 1);
24301 rm -f conftest$ac_exeext
24302 if { (ac_try="$ac_link"
24303 case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24307 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309 (eval "$ac_link") 2>&5
24311 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24313 { (case "(($ac_try" in
24314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315 *) ac_try_echo=$ac_try;;
24317 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24318 $as_echo "$ac_try_echo") >&5
24319 (eval "$ac_try") 2>&5
24321 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 ac_cv_rshift_extends_sign=yes
24325 $as_echo "$as_me: program exited with status
$ac_status" >&5
24326 $as_echo "$as_me: failed program was
:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 ( exit $ac_status )
24330 ac_cv_rshift_extends_sign=no
24332 rm -rf conftest.dSYM
24333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24339 { $as_echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
24340 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
24341 if test "$ac_cv_rshift_extends_sign" = no
24344 cat >>confdefs.h <<\_ACEOF
24345 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24350 # check for getc_unlocked and related locking functions
24351 { $as_echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
24352 $as_echo_n "checking
for getc_unlocked
() and friends...
" >&6; }
24353 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24354 $as_echo_n "(cached
) " >&6
24357 cat >conftest.$ac_ext <<_ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24368 FILE *f = fopen("/dev
/null
", "r
");
24377 rm -f conftest.$ac_objext conftest$ac_exeext
24378 if { (ac_try="$ac_link"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24383 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24384 $as_echo "$ac_try_echo") >&5
24385 (eval "$ac_link") 2>conftest.er1
24387 grep -v '^ *+' conftest.er1 >conftest.err
24389 cat conftest.err >&5
24390 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24391 (exit $ac_status); } && {
24392 test -z "$ac_c_werror_flag" ||
24393 test ! -s conftest.err
24394 } && test -s conftest$ac_exeext && {
24395 test "$cross_compiling" = yes ||
24396 $as_test_x conftest$ac_exeext
24398 ac_cv_have_getc_unlocked=yes
24400 $as_echo "$as_me: failed program was
:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24403 ac_cv_have_getc_unlocked=no
24406 rm -rf conftest.dSYM
24407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24408 conftest$ac_exeext conftest.$ac_ext
24411 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
24412 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
24413 if test "$ac_cv_have_getc_unlocked" = yes
24416 cat >>confdefs.h <<\_ACEOF
24417 #define HAVE_GETC_UNLOCKED 1
24422 # check where readline lives
24423 # save the value of LIBS so we don't actually link Python with readline
24424 LIBS_no_readline=$LIBS
24426 # On some systems we need to link readline to a termcap compatible
24427 # library. NOTE: Keep the precedence of listed libraries synchronised
24429 py_cv_lib_readline=no
24430 { $as_echo "$as_me:$LINENO: checking how to link readline libs
" >&5
24431 $as_echo_n "checking how to link readline libs...
" >&6; }
24432 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24433 if test -z "$py_libtermcap"; then
24434 READLINE_LIBS="-lreadline"
24436 READLINE_LIBS="-lreadline -l$py_libtermcap"
24438 LIBS="$READLINE_LIBS $LIBS_no_readline"
24439 cat >conftest.$ac_ext <<_ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24446 /* Override any GCC internal prototype to avoid an error.
24447 Use char because int might match the return type of a GCC
24448 builtin and then its argument prototype would still apply. */
24456 return readline ();
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (ac_try="$ac_link"
24463 case "(($ac_try" in
24464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465 *) ac_try_echo=$ac_try;;
24467 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24468 $as_echo "$ac_try_echo") >&5
24469 (eval "$ac_link") 2>conftest.er1
24471 grep -v '^ *+' conftest.er1 >conftest.err
24473 cat conftest.err >&5
24474 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24475 (exit $ac_status); } && {
24476 test -z "$ac_c_werror_flag" ||
24477 test ! -s conftest.err
24478 } && test -s conftest$ac_exeext && {
24479 test "$cross_compiling" = yes ||
24480 $as_test_x conftest$ac_exeext
24482 py_cv_lib_readline=yes
24484 $as_echo "$as_me: failed program was
:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24490 rm -rf conftest.dSYM
24491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24492 conftest$ac_exeext conftest.$ac_ext
24493 if test $py_cv_lib_readline = yes; then
24497 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24498 #AC_SUBST([READLINE_LIBS])
24499 if test $py_cv_lib_readline = no; then
24500 { $as_echo "$as_me:$LINENO: result
: none
" >&5
24501 $as_echo "none
" >&6; }
24503 { $as_echo "$as_me:$LINENO: result
: $READLINE_LIBS" >&5
24504 $as_echo "$READLINE_LIBS" >&6; }
24506 cat >>confdefs.h <<\_ACEOF
24507 #define HAVE_LIBREADLINE 1
24512 # check for readline 2.1
24513 { $as_echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
24514 $as_echo_n "checking
for rl_callback_handler_install
in -lreadline...
" >&6; }
24515 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24516 $as_echo_n "(cached
) " >&6
24518 ac_check_lib_save_LIBS=$LIBS
24519 LIBS="-lreadline $READLINE_LIBS $LIBS"
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24527 /* Override any GCC internal prototype to avoid an error.
24528 Use char because int might match the return type of a GCC
24529 builtin and then its argument prototype would still apply. */
24533 char rl_callback_handler_install ();
24537 return rl_callback_handler_install ();
24542 rm -f conftest.$ac_objext conftest$ac_exeext
24543 if { (ac_try="$ac_link"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24549 $as_echo "$ac_try_echo") >&5
24550 (eval "$ac_link") 2>conftest.er1
24552 grep -v '^ *+' conftest.er1 >conftest.err
24554 cat conftest.err >&5
24555 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24556 (exit $ac_status); } && {
24557 test -z "$ac_c_werror_flag" ||
24558 test ! -s conftest.err
24559 } && test -s conftest$ac_exeext && {
24560 test "$cross_compiling" = yes ||
24561 $as_test_x conftest$ac_exeext
24563 ac_cv_lib_readline_rl_callback_handler_install=yes
24565 $as_echo "$as_me: failed program was
:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24568 ac_cv_lib_readline_rl_callback_handler_install=no
24571 rm -rf conftest.dSYM
24572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24573 conftest$ac_exeext conftest.$ac_ext
24574 LIBS=$ac_check_lib_save_LIBS
24576 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24577 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24578 if test "x
$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
24580 cat >>confdefs.h <<\_ACEOF
24581 #define HAVE_RL_CALLBACK 1
24587 # check for readline 2.2
24588 cat >conftest.$ac_ext <<_ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 #include <readline/readline.h>
24596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24602 $as_echo "$ac_try_echo") >&5
24603 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24605 grep -v '^ *+' conftest.er1 >conftest.err
24607 cat conftest.err >&5
24608 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24609 (exit $ac_status); } >/dev/null && {
24610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24611 test ! -s conftest.err
24615 $as_echo "$as_me: failed program was
:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24621 rm -f conftest.err conftest.$ac_ext
24622 if test $have_readline = yes
24624 cat >conftest.$ac_ext <<_ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24630 #include <readline/readline.h>
24633 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24634 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
24636 cat >>confdefs.h <<\_ACEOF
24637 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24645 # check for readline 4.0
24646 { $as_echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
24647 $as_echo_n "checking
for rl_pre_input_hook
in -lreadline...
" >&6; }
24648 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24649 $as_echo_n "(cached
) " >&6
24651 ac_check_lib_save_LIBS=$LIBS
24652 LIBS="-lreadline $READLINE_LIBS $LIBS"
24653 cat >conftest.$ac_ext <<_ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24660 /* Override any GCC internal prototype to avoid an error.
24661 Use char because int might match the return type of a GCC
24662 builtin and then its argument prototype would still apply. */
24666 char rl_pre_input_hook ();
24670 return rl_pre_input_hook ();
24675 rm -f conftest.$ac_objext conftest$ac_exeext
24676 if { (ac_try="$ac_link"
24677 case "(($ac_try" in
24678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679 *) ac_try_echo=$ac_try;;
24681 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24682 $as_echo "$ac_try_echo") >&5
24683 (eval "$ac_link") 2>conftest.er1
24685 grep -v '^ *+' conftest.er1 >conftest.err
24687 cat conftest.err >&5
24688 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24689 (exit $ac_status); } && {
24690 test -z "$ac_c_werror_flag" ||
24691 test ! -s conftest.err
24692 } && test -s conftest$ac_exeext && {
24693 test "$cross_compiling" = yes ||
24694 $as_test_x conftest$ac_exeext
24696 ac_cv_lib_readline_rl_pre_input_hook=yes
24698 $as_echo "$as_me: failed program was
:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 ac_cv_lib_readline_rl_pre_input_hook=no
24704 rm -rf conftest.dSYM
24705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24706 conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24709 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24710 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24711 if test "x
$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then
24713 cat >>confdefs.h <<\_ACEOF
24714 #define HAVE_RL_PRE_INPUT_HOOK 1
24721 { $as_echo "$as_me:$LINENO: checking
for rl_completion_display_matches_hook
in -lreadline" >&5
24722 $as_echo_n "checking
for rl_completion_display_matches_hook
in -lreadline...
" >&6; }
24723 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24724 $as_echo_n "(cached
) " >&6
24726 ac_check_lib_save_LIBS=$LIBS
24727 LIBS="-lreadline $READLINE_LIBS $LIBS"
24728 cat >conftest.$ac_ext <<_ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h. */
24735 /* Override any GCC internal prototype to avoid an error.
24736 Use char because int might match the return type of a GCC
24737 builtin and then its argument prototype would still apply. */
24741 char rl_completion_display_matches_hook ();
24745 return rl_completion_display_matches_hook ();
24750 rm -f conftest.$ac_objext conftest$ac_exeext
24751 if { (ac_try="$ac_link"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24757 $as_echo "$ac_try_echo") >&5
24758 (eval "$ac_link") 2>conftest.er1
24760 grep -v '^ *+' conftest.er1 >conftest.err
24762 cat conftest.err >&5
24763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24764 (exit $ac_status); } && {
24765 test -z "$ac_c_werror_flag" ||
24766 test ! -s conftest.err
24767 } && test -s conftest$ac_exeext && {
24768 test "$cross_compiling" = yes ||
24769 $as_test_x conftest$ac_exeext
24771 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24773 $as_echo "$as_me: failed program was
:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24779 rm -rf conftest.dSYM
24780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24781 conftest$ac_exeext conftest.$ac_ext
24782 LIBS=$ac_check_lib_save_LIBS
24784 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24785 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24786 if test "x
$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then
24788 cat >>confdefs.h <<\_ACEOF
24789 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24795 # check for readline 4.2
24796 { $as_echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
24797 $as_echo_n "checking
for rl_completion_matches
in -lreadline...
" >&6; }
24798 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24799 $as_echo_n "(cached
) " >&6
24801 ac_check_lib_save_LIBS=$LIBS
24802 LIBS="-lreadline $READLINE_LIBS $LIBS"
24803 cat >conftest.$ac_ext <<_ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24810 /* Override any GCC internal prototype to avoid an error.
24811 Use char because int might match the return type of a GCC
24812 builtin and then its argument prototype would still apply. */
24816 char rl_completion_matches ();
24820 return rl_completion_matches ();
24825 rm -f conftest.$ac_objext conftest$ac_exeext
24826 if { (ac_try="$ac_link"
24827 case "(($ac_try" in
24828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829 *) ac_try_echo=$ac_try;;
24831 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24832 $as_echo "$ac_try_echo") >&5
24833 (eval "$ac_link") 2>conftest.er1
24835 grep -v '^ *+' conftest.er1 >conftest.err
24837 cat conftest.err >&5
24838 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24839 (exit $ac_status); } && {
24840 test -z "$ac_c_werror_flag" ||
24841 test ! -s conftest.err
24842 } && test -s conftest$ac_exeext && {
24843 test "$cross_compiling" = yes ||
24844 $as_test_x conftest$ac_exeext
24846 ac_cv_lib_readline_rl_completion_matches=yes
24848 $as_echo "$as_me: failed program was
:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24851 ac_cv_lib_readline_rl_completion_matches=no
24854 rm -rf conftest.dSYM
24855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24856 conftest$ac_exeext conftest.$ac_ext
24857 LIBS=$ac_check_lib_save_LIBS
24859 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
24860 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
24861 if test "x
$ac_cv_lib_readline_rl_completion_matches" = x""yes; then
24863 cat >>confdefs.h <<\_ACEOF
24864 #define HAVE_RL_COMPLETION_MATCHES 1
24870 # also in readline 4.2
24871 cat >conftest.$ac_ext <<_ACEOF
24874 cat confdefs.h >>conftest.$ac_ext
24875 cat >>conftest.$ac_ext <<_ACEOF
24876 /* end confdefs.h. */
24877 #include <readline/readline.h>
24879 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24880 case "(($ac_try" in
24881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24884 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24885 $as_echo "$ac_try_echo") >&5
24886 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24888 grep -v '^ *+' conftest.er1 >conftest.err
24890 cat conftest.err >&5
24891 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24892 (exit $ac_status); } >/dev/null && {
24893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24894 test ! -s conftest.err
24898 $as_echo "$as_me: failed program was
:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24904 rm -f conftest.err conftest.$ac_ext
24905 if test $have_readline = yes
24907 cat >conftest.$ac_ext <<_ACEOF
24910 cat confdefs.h >>conftest.$ac_ext
24911 cat >>conftest.$ac_ext <<_ACEOF
24912 /* end confdefs.h. */
24913 #include <readline/readline.h>
24916 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24917 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
24919 cat >>confdefs.h <<\_ACEOF
24920 #define HAVE_RL_CATCH_SIGNAL 1
24928 # End of readline checks: restore LIBS
24929 LIBS=$LIBS_no_readline
24931 { $as_echo "$as_me:$LINENO: checking
for broken nice
()" >&5
24932 $as_echo_n "checking
for broken nice
()...
" >&6; }
24933 if test "${ac_cv_broken_nice+set}" = set; then
24934 $as_echo_n "(cached
) " >&6
24937 if test "$cross_compiling" = yes; then
24938 ac_cv_broken_nice=no
24940 cat >conftest.$ac_ext <<_ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24949 int val1 = nice(1);
24950 if (val1 != -1 && val1 == nice(2))
24956 rm -f conftest$ac_exeext
24957 if { (ac_try="$ac_link"
24958 case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24962 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24963 $as_echo "$ac_try_echo") >&5
24964 (eval "$ac_link") 2>&5
24966 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24968 { (case "(($ac_try" in
24969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970 *) ac_try_echo=$ac_try;;
24972 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24973 $as_echo "$ac_try_echo") >&5
24974 (eval "$ac_try") 2>&5
24976 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24977 (exit $ac_status); }; }; then
24978 ac_cv_broken_nice=yes
24980 $as_echo "$as_me: program exited with status
$ac_status" >&5
24981 $as_echo "$as_me: failed program was
:" >&5
24982 sed 's/^/| /' conftest.$ac_ext >&5
24984 ( exit $ac_status )
24985 ac_cv_broken_nice=no
24987 rm -rf conftest.dSYM
24988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24994 { $as_echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
24995 $as_echo "$ac_cv_broken_nice" >&6; }
24996 if test "$ac_cv_broken_nice" = yes
24999 cat >>confdefs.h <<\_ACEOF
25000 #define HAVE_BROKEN_NICE 1
25005 { $as_echo "$as_me:$LINENO: checking
for broken poll
()" >&5
25006 $as_echo_n "checking
for broken poll
()...
" >&6; }
25007 if test "$cross_compiling" = yes; then
25008 ac_cv_broken_poll=no
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25021 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25025 int poll_test = poll (&poll_struct, 1, 0);
25031 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25042 rm -f conftest$ac_exeext
25043 if { (ac_try="$ac_link"
25044 case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25048 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25049 $as_echo "$ac_try_echo") >&5
25050 (eval "$ac_link") 2>&5
25052 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25054 { (case "(($ac_try" in
25055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25056 *) ac_try_echo=$ac_try;;
25058 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25059 $as_echo "$ac_try_echo") >&5
25060 (eval "$ac_try") 2>&5
25062 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25063 (exit $ac_status); }; }; then
25064 ac_cv_broken_poll=yes
25066 $as_echo "$as_me: program exited with status
$ac_status" >&5
25067 $as_echo "$as_me: failed program was
:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25070 ( exit $ac_status )
25071 ac_cv_broken_poll=no
25073 rm -rf conftest.dSYM
25074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25078 { $as_echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
25079 $as_echo "$ac_cv_broken_poll" >&6; }
25080 if test "$ac_cv_broken_poll" = yes
25083 cat >>confdefs.h <<\_ACEOF
25084 #define HAVE_BROKEN_POLL 1
25089 # Before we can test tzset, we need to check if struct tm has a tm_zone
25090 # (which is not required by ISO C or UNIX spec) and/or if we support
25092 { $as_echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
25093 $as_echo_n "checking
for struct tm.tm_zone...
" >&6; }
25094 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25095 $as_echo_n "(cached
) " >&6
25097 cat >conftest.$ac_ext <<_ACEOF
25100 cat confdefs.h >>conftest.$ac_ext
25101 cat >>conftest.$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25103 #include <sys/types.h>
25104 #include <$ac_cv_struct_tm>
25110 static struct tm ac_aggr;
25111 if (ac_aggr.tm_zone)
25117 rm -f conftest.$ac_objext
25118 if { (ac_try="$ac_compile"
25119 case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25123 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25124 $as_echo "$ac_try_echo") >&5
25125 (eval "$ac_compile") 2>conftest.er1
25127 grep -v '^ *+' conftest.er1 >conftest.err
25129 cat conftest.err >&5
25130 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest.$ac_objext; then
25135 ac_cv_member_struct_tm_tm_zone=yes
25137 $as_echo "$as_me: failed program was
:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25140 cat >conftest.$ac_ext <<_ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 #include <sys/types.h>
25147 #include <$ac_cv_struct_tm>
25153 static struct tm ac_aggr;
25154 if (sizeof ac_aggr.tm_zone)
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25167 $as_echo "$ac_try_echo") >&5
25168 (eval "$ac_compile") 2>conftest.er1
25170 grep -v '^ *+' conftest.er1 >conftest.err
25172 cat conftest.err >&5
25173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25174 (exit $ac_status); } && {
25175 test -z "$ac_c_werror_flag" ||
25176 test ! -s conftest.err
25177 } && test -s conftest.$ac_objext; then
25178 ac_cv_member_struct_tm_tm_zone=yes
25180 $as_echo "$as_me: failed program was
:" >&5
25181 sed 's/^/| /' conftest.$ac_ext >&5
25183 ac_cv_member_struct_tm_tm_zone=no
25186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
25192 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
25193 if test "x
$ac_cv_member_struct_tm_tm_zone" = x""yes; then
25195 cat >>confdefs.h <<_ACEOF
25196 #define HAVE_STRUCT_TM_TM_ZONE 1
25202 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25204 cat >>confdefs.h <<\_ACEOF
25205 #define HAVE_TM_ZONE 1
25209 { $as_echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
25210 $as_echo_n "checking whether tzname is declared...
" >&6; }
25211 if test "${ac_cv_have_decl_tzname+set}" = set; then
25212 $as_echo_n "(cached
) " >&6
25214 cat >conftest.$ac_ext <<_ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h. */
25233 rm -f conftest.$ac_objext
25234 if { (ac_try="$ac_compile"
25235 case "(($ac_try" in
25236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237 *) ac_try_echo=$ac_try;;
25239 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25240 $as_echo "$ac_try_echo") >&5
25241 (eval "$ac_compile") 2>conftest.er1
25243 grep -v '^ *+' conftest.er1 >conftest.err
25245 cat conftest.err >&5
25246 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25247 (exit $ac_status); } && {
25248 test -z "$ac_c_werror_flag" ||
25249 test ! -s conftest.err
25250 } && test -s conftest.$ac_objext; then
25251 ac_cv_have_decl_tzname=yes
25253 $as_echo "$as_me: failed program was
:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25256 ac_cv_have_decl_tzname=no
25259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25261 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
25262 $as_echo "$ac_cv_have_decl_tzname" >&6; }
25263 if test "x
$ac_cv_have_decl_tzname" = x""yes; then
25265 cat >>confdefs.h <<_ACEOF
25266 #define HAVE_DECL_TZNAME 1
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_DECL_TZNAME 0
25279 { $as_echo "$as_me:$LINENO: checking
for tzname
" >&5
25280 $as_echo_n "checking
for tzname...
" >&6; }
25281 if test "${ac_cv_var_tzname+set}" = set; then
25282 $as_echo_n "(cached
) " >&6
25284 cat >conftest.$ac_ext <<_ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25291 #if !HAVE_DECL_TZNAME
25292 extern char *tzname[];
25298 return tzname[0][0];
25303 rm -f conftest.$ac_objext conftest$ac_exeext
25304 if { (ac_try="$ac_link"
25305 case "(($ac_try" in
25306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25307 *) ac_try_echo=$ac_try;;
25309 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25310 $as_echo "$ac_try_echo") >&5
25311 (eval "$ac_link") 2>conftest.er1
25313 grep -v '^ *+' conftest.er1 >conftest.err
25315 cat conftest.err >&5
25316 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25317 (exit $ac_status); } && {
25318 test -z "$ac_c_werror_flag" ||
25319 test ! -s conftest.err
25320 } && test -s conftest$ac_exeext && {
25321 test "$cross_compiling" = yes ||
25322 $as_test_x conftest$ac_exeext
25324 ac_cv_var_tzname=yes
25326 $as_echo "$as_me: failed program was
:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_cv_var_tzname=no
25332 rm -rf conftest.dSYM
25333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25334 conftest$ac_exeext conftest.$ac_ext
25336 { $as_echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
25337 $as_echo "$ac_cv_var_tzname" >&6; }
25338 if test $ac_cv_var_tzname = yes; then
25340 cat >>confdefs.h <<\_ACEOF
25341 #define HAVE_TZNAME 1
25348 # check tzset(3) exists and works like we expect it to
25349 { $as_echo "$as_me:$LINENO: checking
for working tzset
()" >&5
25350 $as_echo_n "checking
for working tzset
()...
" >&6; }
25351 if test "${ac_cv_working_tzset+set}" = set; then
25352 $as_echo_n "(cached
) " >&6
25355 if test "$cross_compiling" = yes; then
25356 ac_cv_working_tzset=no
25358 cat >conftest.$ac_ext <<_ACEOF
25361 cat confdefs.h >>conftest.$ac_ext
25362 cat >>conftest.$ac_ext <<_ACEOF
25363 /* end confdefs.h. */
25365 #include <stdlib.h>
25367 #include <string.h>
25370 extern char *tzname[];
25375 /* Note that we need to ensure that not only does tzset(3)
25376 do 'something' with localtime, but it works as documented
25377 in the library reference and as expected by the test suite.
25378 This includes making sure that tzname is set properly if
25379 tm->tm_zone does not exist since it is the alternative way
25380 of getting timezone info.
25382 Red Hat 6.2 doesn't understand the southern hemisphere
25383 after New Year's Day.
25386 time_t groundhogday = 1044144000; /* GMT-based */
25387 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25389 putenv("TZ
=UTC
+0");
25391 if (localtime(&groundhogday)->tm_hour != 0)
25394 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25395 if (strcmp(tzname[0], "UTC
") ||
25396 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25400 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
25402 if (localtime(&groundhogday)->tm_hour != 19)
25405 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
25409 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
25411 if (localtime(&groundhogday)->tm_hour != 11)
25414 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
25418 #if HAVE_STRUCT_TM_TM_ZONE
25419 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
25421 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
25429 rm -f conftest$ac_exeext
25430 if { (ac_try="$ac_link"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25436 $as_echo "$ac_try_echo") >&5
25437 (eval "$ac_link") 2>&5
25439 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25441 { (case "(($ac_try" in
25442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443 *) ac_try_echo=$ac_try;;
25445 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25446 $as_echo "$ac_try_echo") >&5
25447 (eval "$ac_try") 2>&5
25449 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25450 (exit $ac_status); }; }; then
25451 ac_cv_working_tzset=yes
25453 $as_echo "$as_me: program exited with status
$ac_status" >&5
25454 $as_echo "$as_me: failed program was
:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25457 ( exit $ac_status )
25458 ac_cv_working_tzset=no
25460 rm -rf conftest.dSYM
25461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25467 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
25468 $as_echo "$ac_cv_working_tzset" >&6; }
25469 if test "$ac_cv_working_tzset" = yes
25472 cat >>confdefs.h <<\_ACEOF
25473 #define HAVE_WORKING_TZSET 1
25478 # Look for subsecond timestamps in struct stat
25479 { $as_echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
25480 $as_echo_n "checking
for tv_nsec
in struct stat...
" >&6; }
25481 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25482 $as_echo_n "(cached
) " >&6
25484 cat >conftest.$ac_ext <<_ACEOF
25487 cat confdefs.h >>conftest.$ac_ext
25488 cat >>conftest.$ac_ext <<_ACEOF
25489 /* end confdefs.h. */
25490 #include <sys/stat.h>
25496 st.st_mtim.tv_nsec = 1;
25502 rm -f conftest.$ac_objext
25503 if { (ac_try="$ac_compile"
25504 case "(($ac_try" in
25505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506 *) ac_try_echo=$ac_try;;
25508 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25509 $as_echo "$ac_try_echo") >&5
25510 (eval "$ac_compile") 2>conftest.er1
25512 grep -v '^ *+' conftest.er1 >conftest.err
25514 cat conftest.err >&5
25515 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25516 (exit $ac_status); } && {
25517 test -z "$ac_c_werror_flag" ||
25518 test ! -s conftest.err
25519 } && test -s conftest.$ac_objext; then
25520 ac_cv_stat_tv_nsec=yes
25522 $as_echo "$as_me: failed program was
:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25525 ac_cv_stat_tv_nsec=no
25528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 { $as_echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
25532 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
25533 if test "$ac_cv_stat_tv_nsec" = yes
25536 cat >>confdefs.h <<\_ACEOF
25537 #define HAVE_STAT_TV_NSEC 1
25542 # Look for BSD style subsecond timestamps in struct stat
25543 { $as_echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
25544 $as_echo_n "checking
for tv_nsec2
in struct stat...
" >&6; }
25545 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25546 $as_echo_n "(cached
) " >&6
25548 cat >conftest.$ac_ext <<_ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25554 #include <sys/stat.h>
25560 st.st_mtimespec.tv_nsec = 1;
25566 rm -f conftest.$ac_objext
25567 if { (ac_try="$ac_compile"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25572 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25573 $as_echo "$ac_try_echo") >&5
25574 (eval "$ac_compile") 2>conftest.er1
25576 grep -v '^ *+' conftest.er1 >conftest.err
25578 cat conftest.err >&5
25579 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25580 (exit $ac_status); } && {
25581 test -z "$ac_c_werror_flag" ||
25582 test ! -s conftest.err
25583 } && test -s conftest.$ac_objext; then
25584 ac_cv_stat_tv_nsec2=yes
25586 $as_echo "$as_me: failed program was
:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_cv_stat_tv_nsec2=no
25592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595 { $as_echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
25596 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
25597 if test "$ac_cv_stat_tv_nsec2" = yes
25600 cat >>confdefs.h <<\_ACEOF
25601 #define HAVE_STAT_TV_NSEC2 1
25606 # On HP/UX 11.0, mvwdelch is a block with a return statement
25607 { $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
25608 $as_echo_n "checking whether mvwdelch is an expression...
" >&6; }
25609 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25610 $as_echo_n "(cached
) " >&6
25612 cat >conftest.$ac_ext <<_ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618 #include <curses.h>
25624 rtn = mvwdelch(0,0,0);
25630 rm -f conftest.$ac_objext
25631 if { (ac_try="$ac_compile"
25632 case "(($ac_try" in
25633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634 *) ac_try_echo=$ac_try;;
25636 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25637 $as_echo "$ac_try_echo") >&5
25638 (eval "$ac_compile") 2>conftest.er1
25640 grep -v '^ *+' conftest.er1 >conftest.err
25642 cat conftest.err >&5
25643 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25644 (exit $ac_status); } && {
25645 test -z "$ac_c_werror_flag" ||
25646 test ! -s conftest.err
25647 } && test -s conftest.$ac_objext; then
25648 ac_cv_mvwdelch_is_expression=yes
25650 $as_echo "$as_me: failed program was
:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25653 ac_cv_mvwdelch_is_expression=no
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 { $as_echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
25660 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
25662 if test "$ac_cv_mvwdelch_is_expression" = yes
25665 cat >>confdefs.h <<\_ACEOF
25666 #define MVWDELCH_IS_EXPRESSION 1
25671 { $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
25672 $as_echo_n "checking whether WINDOW has _flags...
" >&6; }
25673 if test "${ac_cv_window_has_flags+set}" = set; then
25674 $as_echo_n "(cached
) " >&6
25676 cat >conftest.$ac_ext <<_ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h. */
25682 #include <curses.h>
25694 rm -f conftest.$ac_objext
25695 if { (ac_try="$ac_compile"
25696 case "(($ac_try" in
25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25700 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25701 $as_echo "$ac_try_echo") >&5
25702 (eval "$ac_compile") 2>conftest.er1
25704 grep -v '^ *+' conftest.er1 >conftest.err
25706 cat conftest.err >&5
25707 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25708 (exit $ac_status); } && {
25709 test -z "$ac_c_werror_flag" ||
25710 test ! -s conftest.err
25711 } && test -s conftest.$ac_objext; then
25712 ac_cv_window_has_flags=yes
25714 $as_echo "$as_me: failed program was
:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25717 ac_cv_window_has_flags=no
25720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 { $as_echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
25724 $as_echo "$ac_cv_window_has_flags" >&6; }
25727 if test "$ac_cv_window_has_flags" = yes
25730 cat >>confdefs.h <<\_ACEOF
25731 #define WINDOW_HAS_FLAGS 1
25736 { $as_echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
25737 $as_echo_n "checking
for is_term_resized...
" >&6; }
25738 cat >conftest.$ac_ext <<_ACEOF
25741 cat confdefs.h >>conftest.$ac_ext
25742 cat >>conftest.$ac_ext <<_ACEOF
25743 /* end confdefs.h. */
25744 #include <curses.h>
25748 void *x=is_term_resized
25753 rm -f conftest.$ac_objext
25754 if { (ac_try="$ac_compile"
25755 case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25759 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25760 $as_echo "$ac_try_echo") >&5
25761 (eval "$ac_compile") 2>conftest.er1
25763 grep -v '^ *+' conftest.er1 >conftest.err
25765 cat conftest.err >&5
25766 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25767 (exit $ac_status); } && {
25768 test -z "$ac_c_werror_flag" ||
25769 test ! -s conftest.err
25770 } && test -s conftest.$ac_objext; then
25772 cat >>confdefs.h <<\_ACEOF
25773 #define HAVE_CURSES_IS_TERM_RESIZED 1
25776 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25777 $as_echo "yes" >&6; }
25779 $as_echo "$as_me: failed program was
:" >&5
25780 sed 's/^/| /' conftest.$ac_ext >&5
25782 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25783 $as_echo "no
" >&6; }
25787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25789 { $as_echo "$as_me:$LINENO: checking
for resize_term
" >&5
25790 $as_echo_n "checking
for resize_term...
" >&6; }
25791 cat >conftest.$ac_ext <<_ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 #include <curses.h>
25801 void *x=resize_term
25806 rm -f conftest.$ac_objext
25807 if { (ac_try="$ac_compile"
25808 case "(($ac_try" in
25809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25810 *) ac_try_echo=$ac_try;;
25812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25813 $as_echo "$ac_try_echo") >&5
25814 (eval "$ac_compile") 2>conftest.er1
25816 grep -v '^ *+' conftest.er1 >conftest.err
25818 cat conftest.err >&5
25819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25820 (exit $ac_status); } && {
25821 test -z "$ac_c_werror_flag" ||
25822 test ! -s conftest.err
25823 } && test -s conftest.$ac_objext; then
25825 cat >>confdefs.h <<\_ACEOF
25826 #define HAVE_CURSES_RESIZE_TERM 1
25829 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25830 $as_echo "yes" >&6; }
25832 $as_echo "$as_me: failed program was
:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25835 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25836 $as_echo "no
" >&6; }
25840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25842 { $as_echo "$as_me:$LINENO: checking
for resizeterm
" >&5
25843 $as_echo_n "checking
for resizeterm...
" >&6; }
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 #include <curses.h>
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25865 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25866 $as_echo "$ac_try_echo") >&5
25867 (eval "$ac_compile") 2>conftest.er1
25869 grep -v '^ *+' conftest.er1 >conftest.err
25871 cat conftest.err >&5
25872 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25873 (exit $ac_status); } && {
25874 test -z "$ac_c_werror_flag" ||
25875 test ! -s conftest.err
25876 } && test -s conftest.$ac_objext; then
25878 cat >>confdefs.h <<\_ACEOF
25879 #define HAVE_CURSES_RESIZETERM 1
25882 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25883 $as_echo "yes" >&6; }
25885 $as_echo "$as_me: failed program was
:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25888 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25889 $as_echo "no
" >&6; }
25893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25895 { $as_echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
25896 $as_echo_n "checking
for /dev
/ptmx...
" >&6; }
25898 if test -r /dev/ptmx
25900 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25901 $as_echo "yes" >&6; }
25903 cat >>confdefs.h <<\_ACEOF
25904 #define HAVE_DEV_PTMX 1
25908 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25909 $as_echo "no
" >&6; }
25912 { $as_echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
25913 $as_echo_n "checking
for /dev
/ptc...
" >&6; }
25915 if test -r /dev/ptc
25917 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25918 $as_echo "yes" >&6; }
25920 cat >>confdefs.h <<\_ACEOF
25921 #define HAVE_DEV_PTC 1
25925 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25926 $as_echo "no
" >&6; }
25929 { $as_echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
25930 $as_echo_n "checking
for %zd
printf() format support...
" >&6; }
25931 if test "$cross_compiling" = yes; then
25932 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
25933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25934 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25935 See \`config.log' for more details.
" >&5
25936 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
25937 See \
`config.log' for more details." >&2;}
25938 { (exit 1); exit 1; }; }; }
25940 cat >conftest.$ac_ext <<_ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h. */
25947 #include <stddef.h>
25948 #include <string.h>
25950 #ifdef HAVE_SYS_TYPES_H
25951 #include <sys/types.h>
25954 #ifdef HAVE_SSIZE_T
25955 typedef ssize_t Py_ssize_t;
25956 #elif SIZEOF_VOID_P == SIZEOF_LONG
25957 typedef long Py_ssize_t;
25959 typedef int Py_ssize_t;
25966 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25969 if (strcmp(buffer, "123"))
25972 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25975 if (strcmp(buffer, "-123"))
25981 rm -f conftest$ac_exeext
25982 if { (ac_try="$ac_link"
25983 case "(($ac_try" in
25984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25985 *) ac_try_echo
=$ac_try;;
25987 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25988 $as_echo "$ac_try_echo") >&5
25989 (eval "$ac_link") 2>&5
25991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25993 { (case "(($ac_try" in
25994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25995 *) ac_try_echo=$ac_try;;
25997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25998 $as_echo "$ac_try_echo") >&5
25999 (eval "$ac_try") 2>&5
26001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; }; then
26003 { $as_echo "$as_me:$LINENO: result: yes" >&5
26004 $as_echo "yes" >&6; }
26006 cat >>confdefs.h <<\_ACEOF
26007 #define PY_FORMAT_SIZE_T "z"
26011 $as_echo "$as_me: program exited with status $ac_status" >&5
26012 $as_echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26015 ( exit $ac_status )
26016 { $as_echo "$as_me:$LINENO: result: no" >&5
26017 $as_echo "no" >&6; }
26019 rm -rf conftest.dSYM
26020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26025 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26026 $as_echo_n "checking for socklen_t... " >&6; }
26027 if test "${ac_cv_type_socklen_t+set}" = set; then
26028 $as_echo_n "(cached) " >&6
26030 ac_cv_type_socklen_t=no
26031 cat >conftest.$ac_ext <<_ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h. */
26038 #ifdef HAVE_SYS_TYPES_H
26039 #include <sys/types.h>
26041 #ifdef HAVE_SYS_SOCKET_H
26042 #include <sys/socket.h>
26049 if (sizeof (socklen_t))
26055 rm -f conftest.$ac_objext
26056 if { (ac_try="$ac_compile"
26057 case "(($ac_try" in
26058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26059 *) ac_try_echo
=$ac_try;;
26061 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26062 $as_echo "$ac_try_echo") >&5
26063 (eval "$ac_compile") 2>conftest.er1
26065 grep -v '^ *+' conftest.er1
>conftest.err
26067 cat conftest.err
>&5
26068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } && {
26070 test -z "$ac_c_werror_flag" ||
26071 test ! -s conftest.err
26072 } && test -s conftest.
$ac_objext; then
26073 cat >conftest.
$ac_ext <<_ACEOF
26076 cat confdefs.h
>>conftest.
$ac_ext
26077 cat >>conftest.
$ac_ext <<_ACEOF
26078 /* end confdefs.h. */
26080 #ifdef HAVE_SYS_TYPES_H
26081 #include <sys/types.h>
26083 #ifdef HAVE_SYS_SOCKET_H
26084 #include <sys/socket.h>
26091 if (sizeof ((socklen_t)))
26097 rm -f conftest.
$ac_objext
26098 if { (ac_try
="$ac_compile"
26099 case "(($ac_try" in
26100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26104 $as_echo "$ac_try_echo") >&5
26105 (eval "$ac_compile") 2>conftest.er1
26107 grep -v '^ *+' conftest.er1 >conftest.err
26109 cat conftest.err >&5
26110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } && {
26112 test -z "$ac_c_werror_flag" ||
26113 test ! -s conftest.err
26114 } && test -s conftest.$ac_objext; then
26117 $as_echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26120 ac_cv_type_socklen_t=yes
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26125 $as_echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26134 $as_echo "$ac_cv_type_socklen_t" >&6; }
26135 if test "x$ac_cv_type_socklen_t" = x""yes; then
26139 cat >>confdefs.h <<\_ACEOF
26140 #define socklen_t int
26148 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
26150 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
26154 SRCDIRS="Parser Grammar Objects Python Modules Mac"
26155 { $as_echo "$as_me:$LINENO: checking for build directories" >&5
26156 $as_echo_n "checking for build directories... " >&6; }
26157 for dir in $SRCDIRS; do
26158 if test ! -d $dir; then
26162 { $as_echo "$as_me:$LINENO: result: done" >&5
26163 $as_echo "done" >&6; }
26165 # generate output files
26166 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
26168 cat >confcache <<\_ACEOF
26169 # This file is a shell script that caches the results of configure
26170 # tests run on this system so they can be shared between configure
26171 # scripts and configure runs, see configure's option --config-cache.
26172 # It is not useful on other systems. If it contains results you don't
26173 # want to keep, you may remove or edit it.
26175 # config.status only pays attention to the cache file if you give it
26176 # the --recheck option to rerun configure.
26178 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
26179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26180 # following values.
26184 # The following way of writing the cache mishandles newlines in values,
26185 # but we know of no workaround that is simple, portable, and efficient.
26186 # So, we kill variables containing newlines.
26187 # Ultrix sh set writes to stderr and can't be redirected directly,
26188 # and sets the high bit in the cache file unless we assign to the vars.
26190 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26191 eval ac_val
=\$
$ac_var
26195 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26196 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26199 _ | IFS | as_nl
) ;; #(
26200 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26201 *) $as_unset $ac_var ;;
26207 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26208 *${as_nl}ac_space
=\
*)
26209 # `set' does not quote correctly, so add quotes (double-quote
26210 # substitution turns \\\\ into \\, and sed turns \\ into \).
26213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26216 # `set' quotes correctly as required by POSIX, so do not add quotes.
26217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26228 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26230 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26231 if test -w "$cache_file"; then
26232 test "x$cache_file" != "x/dev/null" &&
26233 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26234 $as_echo "$as_me: updating cache $cache_file" >&6;}
26235 cat confcache
>$cache_file
26237 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26238 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26243 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26244 # Let make expand exec_prefix.
26245 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26247 DEFS
=-DHAVE_CONFIG_H
26251 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26252 # 1. Remove the extension, and $U if already installed.
26253 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26254 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26256 # will be set to the directory where LIBOBJS objects are built.
26257 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26258 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26260 LIBOBJS
=$ac_libobjs
26262 LTLIBOBJS
=$ac_ltlibobjs
26267 : ${CONFIG_STATUS=./config.status}
26269 ac_clean_files_save
=$ac_clean_files
26270 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26271 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26272 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26273 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26275 # Generated by $as_me.
26276 # Run this file to recreate the current configuration.
26277 # Compiler output produced by configure, useful for debugging
26278 # configure, is in config.log if it exists.
26281 ac_cs_recheck=false
26283 SHELL=\${CONFIG_SHELL-$SHELL}
26286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26287 ## --------------------- ##
26288 ## M4sh Initialization. ##
26289 ## --------------------- ##
26291 # Be more Bourne compatible
26292 DUALCASE
=1; export DUALCASE
# for MKS sh
26293 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26296 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26297 # is contrary to our usage. Disable this feature.
26298 alias -g '${1+"$@"}'='"$@"'
26299 setopt NO_GLOB_SUBST
26301 case `(set -o) 2>/dev/null` in
26302 *posix
*) set -o posix
;;
26311 # Avoid depending upon Character Ranges.
26312 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26313 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26314 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26315 as_cr_digits
='0123456789'
26316 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26321 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26322 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26325 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26326 as_echo='printf %s
\n'
26327 as_echo_n='printf %s
'
26329 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26330 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26331 as_echo_n='/usr
/ucb
/echo -n'
26333 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26334 as_echo_n_body='eval
26338 expr "X$arg" : "X\\(.*\\)$as_nl";
26339 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26341 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26343 export as_echo_n_body
26344 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26346 export as_echo_body
26347 as_echo='sh
-c $as_echo_body as_echo
'
26350 # The user is always right.
26351 if test "${PATH_SEPARATOR+set}" != set; then
26353 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26354 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26359 # Support unset when possible.
26360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26368 # We need space, tab and new line, in precisely that order. Quoting is
26369 # there to prevent editors from complaining about space-tab.
26370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26371 # splitting by setting IFS to empty value.)
26374 # Find who we are. Look in the path if we contain no directory separator.
26376 *[\\/]* ) as_myself=$0 ;;
26377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26378 for as_dir in $PATH
26381 test -z "$as_dir" && as_dir=.
26382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26388 # We did not find ourselves, most probably we were run as `sh COMMAND'
26389 # in which case we are not to be found in the path.
26390 if test "x$as_myself" = x
; then
26393 if test ! -f "$as_myself"; then
26394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26395 { (exit 1); exit 1; }
26398 # Work around bugs in pre-3.0 UWIN ksh.
26399 for as_var
in ENV MAIL MAILPATH
26400 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26412 # Required to use basename.
26413 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26414 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26420 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26421 as_basename
=basename
26427 # Name of the executable.
26428 as_me
=`$as_basename -- "$0" ||
26429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26430 X"$0" : 'X\(//\)$' \| \
26431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26433 sed '/^.*\/\([^/][^/]*\)\/*$/{
26452 as_lineno_1
=$LINENO
26453 as_lineno_2
=$LINENO
26454 test "x$as_lineno_1" != "x$as_lineno_2" &&
26455 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26457 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26458 # uniformly replaced by the line number. The first 'sed' inserts a
26459 # line-number line after each line using $LINENO; the second 'sed'
26460 # does the real work. The second script uses 'N' to pair each
26461 # line-number line with the line containing $LINENO, and appends
26462 # trailing '-' during substitution so that $LINENO is not a special
26463 # case at line end.
26464 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26465 # scripts with optimization help from Paolo Bonzini. Blame Lee
26466 # E. McMahon (1931-1989) for sed's syntax. :-)
26478 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26481 ' >$as_me.lineno
&&
26482 chmod +x
"$as_me.lineno" ||
26483 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26484 { (exit 1); exit 1; }; }
26486 # Don't try to exec as it changes $[0], causing all sort of problems
26487 # (the dirname of $[0] is not the place where we might find the
26488 # original and so on. Autoconf is especially sensitive to this).
26489 .
"./$as_me.lineno"
26490 # Exit status is that of the last command.
26495 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26501 ECHO_C
= ECHO_N
= ECHO_T
=
26502 case `echo -n x` in
26504 case `echo 'x\c'` in
26505 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26511 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26512 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26518 rm -f conf$$ conf$$.exe conf$$.
file
26519 if test -d conf$$.dir
; then
26520 rm -f conf$$.dir
/conf$$.
file
26523 mkdir conf$$.dir
2>/dev
/null
26525 if (echo >conf$$.
file) 2>/dev
/null
; then
26526 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26528 # ... but there are two gotchas:
26529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26531 # In both cases, we have to default to `cp -p'.
26532 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26534 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26542 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26543 rmdir conf$$.dir
2>/dev
/null
26545 if mkdir
-p .
2>/dev
/null
; then
26548 test -d .
/-p && rmdir .
/-p
26552 if test -x / >/dev
/null
2>&1; then
26553 as_test_x
='test -x'
26555 if ls -dL / >/dev
/null
2>&1; then
26562 if test -d "$1"; then
26568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26569 ???[sx]*):;;*)false;;esac;fi
26573 as_executable_p
=$as_test_x
26575 # Sed expression to map a string onto a valid CPP name.
26576 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26578 # Sed expression to map a string onto a valid variable name.
26579 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26584 # Save the log message, to keep $[0] and so on meaningful, and to
26585 # report actual input values of CONFIG_FILES etc. instead of their
26586 # values after options handling.
26588 This file was extended by python $as_me 2.7, which was
26589 generated by GNU Autoconf 2.63. Invocation command line was
26591 CONFIG_FILES = $CONFIG_FILES
26592 CONFIG_HEADERS = $CONFIG_HEADERS
26593 CONFIG_LINKS = $CONFIG_LINKS
26594 CONFIG_COMMANDS = $CONFIG_COMMANDS
26597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26602 case $ac_config_files in *"
26603 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26606 case $ac_config_headers in *"
26607 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26612 # Files that config.status was made for.
26613 config_files="`echo $ac_config_files`"
26614 config_headers="`echo $ac_config_headers`"
26618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26620 \`$as_me' instantiates files from templates according to the
26621 current configuration.
26623 Usage: $0 [OPTION]... [FILE]...
26625 -h, --help print this help, then exit
26626 -V, --version print version number and configuration settings, then exit
26627 -q, --quiet, --silent
26628 do not print progress messages
26629 -d, --debug don't remove temporary files
26630 --recheck update $as_me by reconfiguring in the same conditions
26631 --file=FILE[:TEMPLATE]
26632 instantiate the configuration file FILE
26633 --header=FILE[:TEMPLATE]
26634 instantiate the configuration header FILE
26636 Configuration files:
26639 Configuration headers:
26642 Report bugs to <bug-autoconf@gnu.org>."
26645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26647 python config.status 2.7
26648 configured by $0, generated by GNU Autoconf 2.63,
26649 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26651 Copyright (C) 2008 Free Software Foundation, Inc.
26652 This config.status script is free software; the Free Software Foundation
26653 gives unlimited permission to copy, distribute and modify it."
26658 test -n "\$AWK" || AWK=awk
26661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26662 # The default lists apply if the user does not specify any file.
26668 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26669 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26680 # Handling of the options.
26681 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26683 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26684 $as_echo "$ac_cs_version"; exit ;;
26685 --debug |
--debu |
--deb |
--de |
--d |
-d )
26687 --file |
--fil |
--fi |
--f )
26690 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26692 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26693 ac_need_defaults
=false
;;
26694 --header |
--heade |
--head |
--hea )
26697 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26699 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26700 ac_need_defaults
=false
;;
26702 # Conflict between --help and --header
26703 { $as_echo "$as_me: error: ambiguous option: $1
26704 Try \`$0 --help' for more information." >&2
26705 { (exit 1); exit 1; }; };;
26706 --help |
--hel |
-h )
26707 $as_echo "$ac_cs_usage"; exit ;;
26708 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26709 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26712 # This is an error.
26713 -*) { $as_echo "$as_me: error: unrecognized option: $1
26714 Try \`$0 --help' for more information." >&2
26715 { (exit 1); exit 1; }; } ;;
26717 *) ac_config_targets
="$ac_config_targets $1"
26718 ac_need_defaults
=false
;;
26724 ac_configure_extra_args
=
26726 if $ac_cs_silent; then
26728 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26733 if \$ac_cs_recheck; then
26734 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26737 CONFIG_SHELL='$SHELL'
26738 export CONFIG_SHELL
26743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26748 ## Running $as_me. ##
26754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26759 # Handling of arguments.
26760 for ac_config_target
in $ac_config_targets
26762 case $ac_config_target in
26763 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
26764 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
26765 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26766 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
26767 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26768 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26769 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
26770 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
26771 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
26773 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26774 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26775 { (exit 1); exit 1; }; };;
26780 # If the user did not use the arguments to specify the items to instantiate,
26781 # then the envvar interface is used. Set only those that are not.
26782 # We use the long form for the default assignment because of an extremely
26783 # bizarre bug on SunOS 4.1.3.
26784 if $ac_need_defaults; then
26785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26789 # Have a temporary directory for convenience. Make it in the build tree
26790 # simply because there is no reason against having it here, and in addition,
26791 # creating and moving files from /tmp can sometimes cause problems.
26792 # Hook for its removal unless debugging.
26793 # Note that there is a small window in which the directory will not be cleaned:
26794 # after its creation but before its name has been assigned to `$tmp'.
26798 trap 'exit_status=$?
26799 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26801 trap '{ (exit 1); exit 1; }' 1 2 13 15
26803 # Create a (secure) tmp directory for tmp files.
26806 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26807 test -n "$tmp" && test -d "$tmp"
26810 tmp
=.
/conf$$
-$RANDOM
26811 (umask 077 && mkdir
"$tmp")
26814 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26815 { (exit 1); exit 1; }
26818 # Set up the scripts for CONFIG_FILES section.
26819 # No need to generate them if there are no CONFIG_FILES.
26820 # This happens for instance with `./config.status config.h'.
26821 if test -n "$CONFIG_FILES"; then
26826 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26827 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26830 ac_cs_awk_cr
=$ac_cr
26833 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26838 echo "cat >conf$$subs.awk <<_ACEOF" &&
26839 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26841 } >conf$$subs.sh ||
26842 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26843 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26844 { (exit 1); exit 1; }; }
26845 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26847 for ac_last_try in false false false false false :; do
26848 . ./conf$$subs.sh ||
26849 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26850 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26851 { (exit 1); exit 1; }; }
26853 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26854 if test $ac_delim_n = $ac_delim_num; then
26856 elif $ac_last_try; then
26857 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26858 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26859 { (exit 1); exit 1; }; }
26861 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26864 rm -f conf$$subs.sh
26866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26867 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26871 s/^/S["/; s
/!.
*/"]=/
26881 s/\(.\{148\}\).*/\1/
26883 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26888 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26895 s/\(.\{148\}\).*/\1/
26897 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26901 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26906 ' <conf$$subs.awk | sed '
26911 ' >>$CONFIG_STATUS || ac_write_fail=1
26912 rm -f conf$$subs.awk
26913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26915 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26916 for (key in S) S_is_set[key] = 1
26922 nfields = split(line, field, "@
")
26924 len = length(field[1])
26925 for (i = 2; i < nfields; i++) {
26927 keylen = length(key)
26928 if (S_is_set[key]) {
26930 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26931 len += length(value) + length(field[++i])
26942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26943 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26944 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26947 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26948 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26949 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26950 { (exit 1); exit 1; }; }
26953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26955 # trailing colons and then remove the whole line if VPATH becomes empty
26956 # (actually we leave an empty line to preserve line numbers).
26957 if test "x
$srcdir" = x.; then
26958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26959 s/:*\$(srcdir):*/:/
26960 s/:*\${srcdir}:*/:/
26962 s/^\([^=]*=[ ]*\):*/\1/
26968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26969 fi # test -n "$CONFIG_FILES"
26971 # Set up the scripts for CONFIG_HEADERS section.
26972 # No need to generate them if there are no CONFIG_HEADERS.
26973 # This happens for instance with `./config.status Makefile'.
26974 if test -n "$CONFIG_HEADERS"; then
26975 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26979 # Transform confdefs.h into an awk script `defines.awk', embedded as
26980 # here-document in config.status, that substitutes the proper values into
26981 # config.h.in to produce config.h.
26983 # Create a delimiter string that does not exist in confdefs.h, to ease
26984 # handling of long lines.
26986 for ac_last_try in false false :; do
26987 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26988 if test -z "$ac_t"; then
26990 elif $ac_last_try; then
26991 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26992 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26993 { (exit 1); exit 1; }; }
26995 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26999 # For the awk script, D is an array of macro values keyed by name,
27000 # likewise P contains macro parameters if any. Preserve backslash
27001 # newline sequences.
27003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27005 s/.\{148\}/&'"$ac_delim"'/g
27008 s/^[ ]*#[ ]*define[ ][ ]*/ /
27015 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27017 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27022 D["\
1"]=" \
3\\\\\\n
"\\/p
27024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27029 s/.\{148\}/&'"$ac_delim"'/g
27034 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27037 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27039 ' <confdefs.h | sed '
27040 s/'"$ac_delim"'/"\\\
27041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27044 for (key in D) D_is_set[key] = 1
27047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27049 split(line, arg, " ")
27050 if (arg[1] == "#") {
27054 defundef
= substr
(arg
[1], 2)
27057 split(mac1
, mac2
, "(") #)
27059 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27060 if (D_is_set
[macro
]) {
27061 # Preserve the white space surrounding the "#".
27062 print prefix
"define", macro P
[macro
] D
[macro
]
27065 # Replace #undef with comments. This is necessary, for example,
27066 # in the case of _POSIX_SOURCE, which is predefined and required
27067 # on some systems where configure will not decide to define it.
27068 if (defundef
== "undef") {
27069 print
"/*", prefix defundef
, macro
, "*/"
27077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27078 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27079 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27080 { (exit 1); exit 1; }; }
27081 fi # test -n "$CONFIG_HEADERS"
27084 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
27089 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27091 case $ac_mode$ac_tag in
27093 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27094 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27095 { (exit 1); exit 1; }; };;
27096 :[FH
]-) ac_tag
=-:-;;
27097 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27114 -) ac_f
="$tmp/stdin";;
27115 *) # Look for the file first in the build tree, then in the source tree
27116 # (if the path is not absolute). The absolute path cannot be DOS-style,
27117 # because $ac_f cannot contain `:'.
27121 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27123 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27124 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27125 { (exit 1); exit 1; }; };;
27127 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27128 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27131 # Let's still pretend it is `configure' which instantiates (i.e., don't
27132 # use $as_me), people would be surprised to read:
27133 # /* config.h. Generated by config.status. */
27134 configure_input
='Generated from '`
27135 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27137 if test x
"$ac_file" != x-
; then
27138 configure_input
="$ac_file. $configure_input"
27139 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27140 $as_echo "$as_me: creating $ac_file" >&6;}
27142 # Neutralize special characters interpreted by sed in replacement strings.
27143 case $configure_input in #(
27144 *\
&* |
*\|
* |
*\\* )
27145 ac_sed_conf_input
=`$as_echo "$configure_input" |
27146 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27147 *) ac_sed_conf_input
=$configure_input;;
27151 *:-:* |
*:-) cat >"$tmp/stdin" \
27152 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27153 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27154 { (exit 1); exit 1; }; } ;;
27159 ac_dir
=`$as_dirname -- "$ac_file" ||
27160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27161 X"$ac_file" : 'X\(//\)[^/]' \| \
27162 X"$ac_file" : 'X\(//\)$' \| \
27163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27164 $as_echo X"$ac_file" |
27165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27169 /^X\(\/\/\)[^/].*/{
27184 -*) as_dir
=.
/$as_dir;;
27186 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27190 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27191 *) as_qdir
=$as_dir;;
27193 as_dirs
="'$as_qdir' $as_dirs"
27194 as_dir
=`$as_dirname -- "$as_dir" ||
27195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27196 X"$as_dir" : 'X\(//\)[^/]' \| \
27197 X"$as_dir" : 'X\(//\)$' \| \
27198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27199 $as_echo X"$as_dir" |
27200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27204 /^X\(\/\/\)[^/].*/{
27217 test -d "$as_dir" && break
27219 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27220 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27221 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27222 { (exit 1); exit 1; }; }; }
27226 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27228 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27229 # A ".." for each directory in $ac_dir_suffix.
27230 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27231 case $ac_top_builddir_sub in
27232 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27233 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27236 ac_abs_top_builddir
=$ac_pwd
27237 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27238 # for backward compatibility:
27239 ac_top_builddir
=$ac_top_build_prefix
27242 .
) # We are building in place.
27244 ac_top_srcdir
=$ac_top_builddir_sub
27245 ac_abs_top_srcdir
=$ac_pwd ;;
27246 [\\/]* | ?
:[\\/]* ) # Absolute name.
27247 ac_srcdir
=$srcdir$ac_dir_suffix;
27248 ac_top_srcdir
=$srcdir
27249 ac_abs_top_srcdir
=$srcdir ;;
27250 *) # Relative name.
27251 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27252 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27253 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27255 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27265 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27266 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27271 # If the template does not know about datarootdir, expand it.
27272 # FIXME: This hack should be removed a few years after 2.60.
27273 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27287 *datarootdir
*) ac_datarootdir_seen
=yes;;
27288 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27289 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27293 ac_datarootdir_hack='
27294 s&@datadir@&$datadir&g
27295 s&@docdir@&$docdir&g
27296 s&@infodir@&$infodir&g
27297 s&@localedir@&$localedir&g
27298 s&@mandir@&$mandir&g
27299 s&\\\${datarootdir}&$datarootdir&g' ;;
27303 # Neutralize VPATH when `$srcdir' = `.'.
27304 # Shell code in configure.ac might set extrasub.
27305 # FIXME: do we really want to maintain this feature?
27306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27307 ac_sed_extra="$ac_vpsub
27310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27312 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27313 s|@configure_input@|
$ac_sed_conf_input|
;t t
27314 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27315 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27316 s
&@srcdir@
&$ac_srcdir&;t t
27317 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27318 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27319 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27320 s
&@builddir@
&$ac_builddir&;t t
27321 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27322 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27323 s
&@INSTALL@
&$ac_INSTALL&;t t
27324 $ac_datarootdir_hack
27326 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27327 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27328 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27329 { (exit 1); exit 1; }; }
27331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27332 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27334 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27335 which seems to be undefined. Please make sure it is defined." >&5
27336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27337 which seems to be undefined. Please make sure it is defined." >&2;}
27341 -) cat "$tmp/out" && rm -f "$tmp/out";;
27342 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27344 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27345 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27346 { (exit 1); exit 1; }; }
27352 if test x"$ac_file" != x-; then
27354 $as_echo "/* $configure_input */" \
27355 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27356 } >"$tmp/config.h" \
27357 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27358 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27359 { (exit 1); exit 1; }; }
27360 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27361 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27362 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27365 mv "$tmp/config.h" "$ac_file" \
27366 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27367 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27368 { (exit 1); exit 1; }; }
27371 $as_echo "/* $configure_input */" \
27372 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27373 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27374 $as_echo "$as_me: error: could not create -" >&2;}
27375 { (exit 1); exit 1; }; }
27385 { (exit 0); exit 0; }
27387 chmod +x $CONFIG_STATUS
27388 ac_clean_files=$ac_clean_files_save
27390 test $ac_write_fail = 0 ||
27391 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27392 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27393 { (exit 1); exit 1; }; }
27396 # configure is writing to config.log, and then calls config.status.
27397 # config.status does its own redirection, appending to config.log.
27398 # Unfortunately, on DOS this fails, as config.log is still kept open
27399 # by configure, so config.status won't be able to
write to it
; its
27400 # output is simply discarded. So we exec the FD to /dev/null,
27401 # effectively closing config.log, so it can be properly (re)opened and
27402 # appended to by config.status. When coming back to configure, we
27403 # need to make the FD available again.
27404 if test "$no_create" != yes; then
27406 ac_config_status_args
=
27407 test "$silent" = yes &&
27408 ac_config_status_args
="$ac_config_status_args --quiet"
27410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27413 # would make configure fail if this is the last instruction.
27414 $ac_cs_success ||
{ (exit 1); exit 1; }
27416 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27417 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27418 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27422 echo "creating Modules/Setup"
27423 if test ! -f Modules
/Setup
27425 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27428 echo "creating Modules/Setup.local"
27429 if test ! -f Modules
/Setup.
local
27431 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27434 echo "creating Makefile"
27435 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27436 -s Modules Modules
/Setup.config \
27437 Modules
/Setup.
local Modules
/Setup
27439 case $ac_sys_system in
27441 { $as_echo "$as_me:$LINENO: WARNING:
27443 Support for BeOS is deprecated as of Python 2.6.
27444 See PEP 11 for the gory details.
27446 $as_echo "$as_me: WARNING:
27448 Support for BeOS is deprecated as of Python 2.6.
27449 See PEP 11 for the gory details.
27455 mv config.c Modules