2 # From configure.in Revision: 80577 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for python 3.1.
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
='3.1'
601 PACKAGE_STRING
='python 3.1'
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
648 HAVE_GETHOSTBYNAME_R_3_ARG
649 HAVE_GETHOSTBYNAME_R_5_ARG
650 HAVE_GETHOSTBYNAME_R_6_ARG
703 EXPORT_MACOSX_DEPLOYMENT_TARGET
704 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
707 FRAMEWORKUNIXTOOLSPREFIX
708 FRAMEWORKALTINSTALLLAST
709 FRAMEWORKALTINSTALLFIRST
711 FRAMEWORKINSTALLFIRST
712 PYTHONFRAMEWORKINSTALLDIR
713 PYTHONFRAMEWORKPREFIX
715 PYTHONFRAMEWORKIDENTIFIER
751 program_transform_name
763 enable_option_checking
786 with_wctype_functions
794 ac_precious_vars
='build_alias
805 # Initialize some variables set by options.
807 ac_init_version
=false
808 ac_unrecognized_opts
=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
819 program_transform_name
=s
,x
,x
,
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir
='${exec_prefix}/bin'
834 sbindir
='${exec_prefix}/sbin'
835 libexecdir
='${exec_prefix}/libexec'
836 datarootdir
='${prefix}/share'
837 datadir
='${datarootdir}'
838 sysconfdir
='${prefix}/etc'
839 sharedstatedir
='${prefix}/com'
840 localstatedir
='${prefix}/var'
841 includedir
='${prefix}/include'
842 oldincludedir
='/usr/include'
843 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir
='${datarootdir}/info'
849 libdir
='${exec_prefix}/lib'
850 localedir
='${datarootdir}/locale'
851 mandir
='${datarootdir}/man'
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\
$ac_option
865 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
875 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
877 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
880 -build |
--build |
--buil |
--bui |
--bu)
881 ac_prev
=build_alias
;;
882 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
883 build_alias
=$ac_optarg ;;
885 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
886 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
887 ac_prev
=cache_file
;;
888 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
889 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
890 cache_file
=$ac_optarg ;;
893 cache_file
=config.cache
;;
895 -datadir |
--datadir |
--datadi |
--datad)
897 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
898 datadir
=$ac_optarg ;;
900 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
901 |
--dataroo |
--dataro |
--datar)
902 ac_prev
=datarootdir
;;
903 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
904 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
905 datarootdir
=$ac_optarg ;;
907 -disable-* |
--disable-*)
908 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
911 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
912 { (exit 1); exit 1; }; }
913 ac_useropt_orig
=$ac_useropt
914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep
=', ';;
922 eval enable_
$ac_useropt=no
;;
924 -docdir |
--docdir |
--docdi |
--doc |
--do)
926 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
929 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
931 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
934 -enable-* |
--enable-*)
935 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
938 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
939 { (exit 1); exit 1; }; }
940 ac_useropt_orig
=$ac_useropt
941 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
946 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep
=', ';;
949 eval enable_
$ac_useropt=\
$ac_optarg ;;
951 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
952 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
953 |
--exec |
--exe |
--ex)
954 ac_prev
=exec_prefix
;;
955 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
956 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
957 |
--exec=* |
--exe=* |
--ex=*)
958 exec_prefix
=$ac_optarg ;;
960 -gas |
--gas |
--ga |
--g)
961 # Obsolete; use --with-gas.
964 -help |
--help |
--hel |
--he |
-h)
966 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
967 ac_init_help
=recursive
;;
968 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
969 ac_init_help
=short
;;
971 -host |
--host |
--hos |
--ho)
972 ac_prev
=host_alias
;;
973 -host=* |
--host=* |
--hos=* |
--ho=*)
974 host_alias
=$ac_optarg ;;
976 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
978 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
980 htmldir
=$ac_optarg ;;
982 -includedir |
--includedir |
--includedi |
--included |
--include \
983 |
--includ |
--inclu |
--incl |
--inc)
984 ac_prev
=includedir
;;
985 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
986 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
987 includedir
=$ac_optarg ;;
989 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
991 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
992 infodir
=$ac_optarg ;;
994 -libdir |
--libdir |
--libdi |
--libd)
996 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
999 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1000 |
--libexe |
--libex |
--libe)
1001 ac_prev
=libexecdir
;;
1002 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1003 |
--libexe=* |
--libex=* |
--libe=*)
1004 libexecdir
=$ac_optarg ;;
1006 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1007 ac_prev
=localedir
;;
1008 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1009 localedir
=$ac_optarg ;;
1011 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1012 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1013 ac_prev
=localstatedir
;;
1014 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1015 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1016 localstatedir
=$ac_optarg ;;
1018 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1020 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1021 mandir
=$ac_optarg ;;
1023 -nfp |
--nfp |
--nf)
1024 # Obsolete; use --without-fp.
1027 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1028 |
--no-cr |
--no-c |
-n)
1031 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1032 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1035 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1036 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1037 |
--oldin |
--oldi |
--old |
--ol |
--o)
1038 ac_prev
=oldincludedir
;;
1039 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1040 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1041 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1042 oldincludedir
=$ac_optarg ;;
1044 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1046 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1047 prefix
=$ac_optarg ;;
1049 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1050 |
--program-pre |
--program-pr |
--program-p)
1051 ac_prev
=program_prefix
;;
1052 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1053 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1054 program_prefix
=$ac_optarg ;;
1056 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1057 |
--program-suf |
--program-su |
--program-s)
1058 ac_prev
=program_suffix
;;
1059 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1060 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1061 program_suffix
=$ac_optarg ;;
1063 -program-transform-name |
--program-transform-name \
1064 |
--program-transform-nam |
--program-transform-na \
1065 |
--program-transform-n |
--program-transform- \
1066 |
--program-transform |
--program-transfor \
1067 |
--program-transfo |
--program-transf \
1068 |
--program-trans |
--program-tran \
1069 |
--progr-tra |
--program-tr |
--program-t)
1070 ac_prev
=program_transform_name
;;
1071 -program-transform-name=* |
--program-transform-name=* \
1072 |
--program-transform-nam=* |
--program-transform-na=* \
1073 |
--program-transform-n=* |
--program-transform-=* \
1074 |
--program-transform=* |
--program-transfor=* \
1075 |
--program-transfo=* |
--program-transf=* \
1076 |
--program-trans=* |
--program-tran=* \
1077 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1078 program_transform_name
=$ac_optarg ;;
1080 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1082 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1083 pdfdir
=$ac_optarg ;;
1085 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1087 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1090 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1091 |
-silent |
--silent |
--silen |
--sile |
--sil)
1094 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1096 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1098 sbindir
=$ac_optarg ;;
1100 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1101 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1102 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1104 ac_prev
=sharedstatedir
;;
1105 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1106 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1107 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1109 sharedstatedir
=$ac_optarg ;;
1111 -site |
--site |
--sit)
1113 -site=* |
--site=* |
--sit=*)
1116 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1118 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1119 srcdir
=$ac_optarg ;;
1121 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1122 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1123 ac_prev
=sysconfdir
;;
1124 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1125 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1126 sysconfdir
=$ac_optarg ;;
1128 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1129 ac_prev
=target_alias
;;
1130 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1131 target_alias
=$ac_optarg ;;
1133 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1136 -version |
--version |
--versio |
--versi |
--vers |
-V)
1137 ac_init_version
=: ;;
1140 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1143 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_useropt_orig
=$ac_useropt
1146 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1151 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep
=', ';;
1154 eval with_
$ac_useropt=\
$ac_optarg ;;
1156 -without-* |
--without-*)
1157 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1160 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_useropt_orig
=$ac_useropt
1163 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1168 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep
=', ';;
1171 eval with_
$ac_useropt=no
;;
1174 # Obsolete; use --with-x.
1177 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1178 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1179 ac_prev
=x_includes
;;
1180 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1181 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1182 x_includes
=$ac_optarg ;;
1184 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1185 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1186 ac_prev
=x_libraries
;;
1187 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1188 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1189 x_libraries
=$ac_optarg ;;
1191 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1192 Try \`$0 --help' for more information." >&2
1193 { (exit 1); exit 1; }; }
1197 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1200 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1201 { (exit 1); exit 1; }; }
1202 eval $ac_envvar=\
$ac_optarg
1203 export $ac_envvar ;;
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1216 if test -n "$ac_prev"; then
1217 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1218 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1219 { (exit 1); exit 1; }; }
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1225 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1226 { (exit 1); exit 1; }; } ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 # Check all directory arguments for consistency.
1232 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val
=\$
$ac_var
1238 # Remove trailing slashes.
1241 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\
$ac_val;;
1244 # Be sure to have absolute directory names.
1246 [\\/$
]* | ?
:[\\/]* ) continue;;
1247 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1249 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1250 { (exit 1); exit 1; }; }
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1258 target
=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x
; then
1262 if test "x$build_alias" = x
; then
1263 cross_compiling
=maybe
1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1272 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1274 test "$silent" = yes && exec 6>/dev
/null
1277 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di
=`ls -di .` &&
1279 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1280 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1281 { (exit 1); exit 1; }; }
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1284 { (exit 1); exit 1; }; }
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted
=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir
=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted
=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1323 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1324 { (exit 1); exit 1; }; }
1326 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1329 { (exit 1); exit 1; }; }
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1339 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 for ac_var
in $ac_precious_vars; do
1342 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1344 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1355 \`configure' configures python 3.1 to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive
) echo "Configuration of python 3.1:";;
1421 --disable-option-checking ignore unrecognized
--enable/--with options
1422 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1423 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1424 --enable-universalsdk[=SDKDIR
]
1425 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1426 --enable-framework[=INSTALLDIR
]
1427 Build
(MacOSX|Darwin
) framework
1428 --enable-shared disable
/enable building shared python library
1429 --enable-profiling enable C-level code profiling
1430 --enable-ipv6 Enable ipv6
(with ipv4
) support
1431 --disable-ipv6 Disable ipv6 support
1432 --enable-big-digits[=BITS
]
1433 use big digits
for Python longs
[BITS
=30]
1436 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1437 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1438 --with-universal-archs=ARCH
1439 select architectures
for universal build
("32-bit",
1440 "64-bit", "3-way", "intel" or
"all")
1441 --with-framework-name=FRAMEWORK
1442 specify an alternate name of the framework built
1443 with
--enable-framework
1444 --without-gcc never use gcc
1445 --with-cxx-main=<compiler
>
1446 compile main
() and link python executable with C
++
1448 --with-suffix=.exe
set executable suffix
1449 --with-pydebug build with Py_DEBUG defined
1450 --with-libs='lib1 ...' link against additional libs
1451 --with-system-ffi build _ctypes module using an installed ffi library
1452 --with-dbmliborder=db1
:db2
:...
1453 order to check db backends
for dbm. Valid value is a
1454 colon separated string with the backend names
1455 `ndbm', `gdbm
' and `bdb'.
1456 --with-signal-module disable
/enable signal module
1457 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1458 --with(out
)-threads[=DIRECTORY
]
1459 disable
/enable thread support
1460 --with(out
)-thread[=DIRECTORY
]
1461 deprecated
; use
--with(out
)-threads
1462 --with-pth use GNU pth threading libraries
1463 --with(out
)-doc-strings disable
/enable documentation
strings
1464 --with(out
)-tsc enable
/disable timestamp counter profile
1465 --with(out
)-pymalloc disable
/enable specialized mallocs
1466 --with-wctype-functions use wctype.h functions
1467 --with-fpectl enable SIGFPE catching
1468 --with-libm=STRING math library
1469 --with-libc=STRING C library
1470 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1471 --with-computed-gotos Use computed gotos
/ threaded dispatch
in evaluation
1472 loop
(not available on all compilers
)
1474 Some influential environment variables
:
1475 CC C compiler
command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1478 nonstandard directory
<lib dir
>
1479 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1480 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1481 you have headers
in a nonstandard directory
<include dir
>
1484 Use these variables to override the choices made by
`configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to <http://bugs.python.org/>.
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1517 .) # We are building in place.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1550 python configure 3.1
1551 generated by GNU Autoconf 2.63
1553 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1554 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1560 cat >config.log <<_ACEOF
1561 This file contains any messages produced by compilers while
1562 running configure, to aid debugging if configure makes a mistake.
1564 It was created by python $as_me 3.1, which was
1565 generated by GNU Autoconf 2.63. Invocation command line was
1577 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1578 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1579 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1580 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1581 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1583 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1584 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1586 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1587 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1588 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1589 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1590 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1591 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1592 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 test -z "$as_dir" && as_dir=.
1601 $as_echo "PATH: $as_dir"
1617 # Keep a trace of the command line.
1618 # Strip out --no-create and --no-recursion so they do not pile up.
1619 # Strip out --silent because we don't want to record it for future runs.
1620 # Also quote any args containing shell meta-characters.
1621 # Make two passes to allow for proper duplicate-argument suppression.
1625 ac_must_keep_next=false
1631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633 | -silent | --silent | --silen | --sile | --sil)
1636 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1639 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1641 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642 if test $ac_must_keep_next = true; then
1643 ac_must_keep_next=false # Got value, back to normal.
1646 *=* | --config-cache | -C | -disable-* | --disable-* \
1647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649 | -with-* | --with-* | -without-* | --without-* | --x)
1650 case "$ac_configure_args0 " in
1651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1654 -* ) ac_must_keep_next=true ;;
1657 ac_configure_args="$ac_configure_args '$ac_arg'"
1662 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1663 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1665 # When interrupted or exit'd, cleanup temporary files, and complete
1666 # config.log. We remove comments because anyway the quotes in there
1667 # would cause problems or look ugly.
1668 # WARNING: Use '\'' to represent an apostrophe within the trap.
1669 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1670 trap 'exit_status=$?
1671 # Save into config.log some information that might help in debugging.
1676 ## ---------------- ##
1677 ## Cache variables. ##
1678 ## ---------------- ##
1681 # The following way of writing the cache mishandles newlines in values,
1683 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1684 eval ac_val=\$$ac_var
1688 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1689 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1692 _ | IFS | as_nl) ;; #(
1693 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1694 *) $as_unset $ac_var ;;
1699 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1700 *${as_nl}ac_space=\ *)
1702 "s/'\''/'\''\\\\'\'''\''/g;
1703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714 ## ----------------- ##
1715 ## Output variables. ##
1716 ## ----------------- ##
1719 for ac_var in $ac_subst_vars
1721 eval ac_val=\$$ac_var
1723 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 $as_echo "$ac_var='\''$ac_val'\''"
1729 if test -n "$ac_subst_files"; then
1731 ## ------------------- ##
1732 ## File substitutions. ##
1733 ## ------------------- ##
1736 for ac_var in $ac_subst_files
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 $as_echo "$ac_var='\''$ac_val'\''"
1747 if test -s confdefs.h; then
1757 test "$ac_signal" != 0 &&
1758 $as_echo "$as_me: caught signal $ac_signal"
1759 $as_echo "$as_me: exit $exit_status"
1761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1765 for ac_signal in 1 2 13 15; do
1766 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1771 rm -f -r conftest* confdefs.h
1773 # Predefined preprocessor variables.
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_NAME "$PACKAGE_NAME"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_STRING "$PACKAGE_STRING"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1800 # Let the site file select an alternate cache file if it wants to.
1801 # Prefer an explicitly selected file to automatically selected ones.
1804 if test -n "$CONFIG_SITE"; then
1805 ac_site_file1=$CONFIG_SITE
1806 elif test "x$prefix" != xNONE; then
1807 ac_site_file1=$prefix/share/config.site
1808 ac_site_file2=$prefix/etc/config.site
1810 ac_site_file1=$ac_default_prefix/share/config.site
1811 ac_site_file2=$ac_default_prefix/etc/config.site
1813 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1815 test "x$ac_site_file" = xNONE && continue
1816 if test -r "$ac_site_file"; then
1817 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1818 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1819 sed 's/^/| /' "$ac_site_file" >&5
1824 if test -r "$cache_file"; then
1825 # Some versions of bash will fail to source /dev/null (special
1826 # files actually), so we avoid doing that.
1827 if test -f "$cache_file"; then
1828 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1829 $as_echo "$as_me: loading cache $cache_file" >&6;}
1831 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1832 *) . "./$cache_file";;
1836 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1837 $as_echo "$as_me: creating cache $cache_file" >&6;}
1841 # Check that the precious variables saved in the cache have kept the same
1843 ac_cache_corrupted=false
1844 for ac_var in $ac_precious_vars; do
1845 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1846 eval ac_new_set=\$ac_env_${ac_var}_set
1847 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1848 eval ac_new_val=\$ac_env_${ac_var}_value
1849 case $ac_old_set,$ac_new_set in
1851 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1852 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1855 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1856 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1860 if test "x$ac_old_val" != "x$ac_new_val"; then
1861 # differences in whitespace do not lead to failure.
1862 ac_old_val_w=`echo x
$ac_old_val`
1863 ac_new_val_w=`echo x
$ac_new_val`
1864 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1865 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1867 ac_cache_corrupted=:
1869 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1870 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1871 eval $ac_var=\$ac_old_val
1873 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1874 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1875 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1876 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1879 # Pass precious variables to config.status.
1880 if test "$ac_new_set" = set; then
1882 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1883 *) ac_arg=$ac_var=$ac_new_val ;;
1885 case " $ac_configure_args " in
1886 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1887 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891 if $ac_cache_corrupted; then
1892 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1894 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1897 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1898 { (exit 1); exit 1; }; }
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 ac_config_headers="$ac_config_headers pyconfig.h
"
1937 if test "$prefix" != "/"; then
1938 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1946 # We don't use PACKAGE_ variables, and they cause conflicts
1947 # with other autoconf-based packages that include Python.h
1948 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1950 mv confdefs.h.new confdefs.h
1958 # The later defininition of _XOPEN_SOURCE disables certain features
1959 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1961 cat >>confdefs.h <<\_ACEOF
1962 #define _GNU_SOURCE 1
1966 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1967 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1970 cat >>confdefs.h <<\_ACEOF
1971 #define _NETBSD_SOURCE 1
1975 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1976 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1979 cat >>confdefs.h <<\_ACEOF
1980 #define __BSD_VISIBLE 1
1984 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1985 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1987 cat >>confdefs.h <<\_ACEOF
1988 #define _BSD_TYPES 1
1992 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1993 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1996 cat >>confdefs.h <<\_ACEOF
1997 #define _DARWIN_C_SOURCE 1
2002 define_xopen_source=yes
2004 # Arguments passed to configure.
2006 CONFIG_ARGS="$ac_configure_args"
2008 { $as_echo "$as_me:$LINENO: checking
for --enable-universalsdk" >&5
2009 $as_echo_n "checking
for --enable-universalsdk...
" >&6; }
2010 # Check whether --enable-universalsdk was given.
2011 if test "${enable_universalsdk+set}" = set; then
2012 enableval=$enable_universalsdk;
2015 enableval=/Developer/SDKs/MacOSX10.4u.sdk
2016 if test ! -d "${enableval}"
2025 enable_universalsdk=
2028 UNIVERSALSDK=$enableval
2029 if test ! -d "${UNIVERSALSDK}"
2031 { { $as_echo "$as_me:$LINENO: error
: --enable-universalsdk specifies non-existing SDK
: ${UNIVERSALSDK}" >&5
2032 $as_echo "$as_me: error
: --enable-universalsdk specifies non-existing SDK
: ${UNIVERSALSDK}" >&2;}
2033 { (exit 1); exit 1; }; }
2042 enable_universalsdk=
2046 if test -n "${UNIVERSALSDK}"
2048 { $as_echo "$as_me:$LINENO: result
: ${UNIVERSALSDK}" >&5
2049 $as_echo "${UNIVERSALSDK}" >&6; }
2051 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2052 $as_echo "no
" >&6; }
2058 UNIVERSAL_ARCHS="32-bit"
2061 { $as_echo "$as_me:$LINENO: checking
for --with-universal-archs" >&5
2062 $as_echo_n "checking
for --with-universal-archs...
" >&6; }
2064 # Check whether --with-universal-archs was given.
2065 if test "${with_universal_archs+set}" = set; then
2066 withval=$with_universal_archs;
2067 { $as_echo "$as_me:$LINENO: result
: $withval" >&5
2068 $as_echo "$withval" >&6; }
2069 UNIVERSAL_ARCHS="$withval"
2073 { $as_echo "$as_me:$LINENO: result
: 32-bit" >&5
2074 $as_echo "32-bit" >&6; }
2082 # Check whether --with-framework-name was given.
2083 if test "${with_framework_name+set}" = set; then
2084 withval=$with_framework_name;
2085 PYTHONFRAMEWORK=${withval}
2086 PYTHONFRAMEWORKDIR=${withval}.framework
2087 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
2091 PYTHONFRAMEWORK=Python
2092 PYTHONFRAMEWORKDIR=Python.framework
2093 PYTHONFRAMEWORKIDENTIFIER=org.python.python
2097 # Check whether --enable-framework was given.
2098 if test "${enable_framework+set}" = set; then
2099 enableval=$enable_framework;
2102 enableval=/Library/Frameworks
2107 PYTHONFRAMEWORKDIR=no-framework
2108 PYTHONFRAMEWORKPREFIX=
2109 PYTHONFRAMEWORKINSTALLDIR=
2110 FRAMEWORKINSTALLFIRST=
2111 FRAMEWORKINSTALLLAST=
2112 FRAMEWORKALTINSTALLFIRST=
2113 FRAMEWORKALTINSTALLLAST=
2114 if test "x
${prefix}" = "xNONE
"; then
2115 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2117 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2122 PYTHONFRAMEWORKPREFIX=$enableval
2123 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2124 FRAMEWORKINSTALLFIRST="frameworkinstallstructure
"
2125 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure
"
2126 case "${UNIVERSAL_ARCHS}" in
2128 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way
"
2129 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way
"
2132 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
"
2133 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools
"
2137 if test "x
${prefix}" = "xNONE
" ; then
2138 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2140 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2142 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2144 # Add files for Mac specific code to the list of output
2146 ac_config_files="$ac_config_files Mac
/Makefile
"
2148 ac_config_files="$ac_config_files Mac
/PythonLauncher
/Makefile
"
2150 ac_config_files="$ac_config_files Mac
/Resources
/framework
/Info.plist
"
2152 ac_config_files="$ac_config_files Mac
/Resources
/app
/Info.plist
"
2159 PYTHONFRAMEWORKDIR=no-framework
2160 PYTHONFRAMEWORKPREFIX=
2161 PYTHONFRAMEWORKINSTALLDIR=
2162 FRAMEWORKINSTALLFIRST=
2163 FRAMEWORKINSTALLLAST=
2164 FRAMEWORKALTINSTALLFIRST=
2165 FRAMEWORKALTINSTALLLAST=
2166 if test "x
${prefix}" = "xNONE
" ; then
2167 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2169 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2173 if test "$UNIVERSAL_ARCHS" = "all
"
2175 FRAMEWORKINSTALLLAST=update4wayuniversal
2176 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2193 ## AC_HELP_STRING(--with-dyld,
2194 ## Use (OpenStep|Rhapsody) dynamic linker))
2196 # Set name for machine-dependent library files
2198 { $as_echo "$as_me:$LINENO: checking MACHDEP
" >&5
2199 $as_echo_n "checking MACHDEP...
" >&6; }
2200 if test -z "$MACHDEP"
2202 ac_sys_system=`uname -s`
2203 if test "$ac_sys_system" = "AIX
" \
2204 -o "$ac_sys_system" = "UnixWare
" -o "$ac_sys_system" = "OpenUNIX
"; then
2205 ac_sys_release=`uname -v`
2207 ac_sys_release=`uname -r`
2209 ac_md_system=`echo $ac_sys_system |
2210 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2211 ac_md_release=`echo $ac_sys_release |
2212 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2213 MACHDEP="$ac_md_system$ac_md_release"
2216 cygwin*) MACHDEP="cygwin
";;
2217 darwin*) MACHDEP="darwin
";;
2218 atheos*) MACHDEP="atheos
";;
2219 irix646) MACHDEP="irix6
";;
2220 '') MACHDEP="unknown
";;
2224 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2225 # disable features if it is defined, without any means to access these
2226 # features as extensions. For these systems, we skip the definition of
2227 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2228 # some feature, make sure there is no alternative way to access this
2229 # feature. Also, when using wildcards, make sure you have verified the
2230 # need for not defining _XOPEN_SOURCE on all systems matching the
2231 # wildcard, and that the wildcard does not include future systems
2232 # (which may remove their limitations).
2233 case $ac_sys_system/$ac_sys_release in
2234 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2235 # even though select is a POSIX function. Reported by J. Ribbens.
2236 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2237 # In addition, Stefan Krah confirms that issue #1244610 exists through
2238 # OpenBSD 4.6, but is fixed in 4.7.
2239 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2240 define_xopen_source=no
2241 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2242 # also defined. This can be overridden by defining _BSD_SOURCE
2243 # As this has a different meaning on Linux, only define it on OpenBSD
2245 cat >>confdefs.h <<\_ACEOF
2246 #define _BSD_SOURCE 1
2251 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2252 # also defined. This can be overridden by defining _BSD_SOURCE
2253 # As this has a different meaning on Linux, only define it on OpenBSD
2255 cat >>confdefs.h <<\_ACEOF
2256 #define _BSD_SOURCE 1
2260 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2261 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2263 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2264 define_xopen_source=no;;
2265 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2266 # of union __?sigval. Reported by Stuart Bishop.
2268 define_xopen_source=no;;
2269 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2270 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2271 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2272 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2273 define_xopen_source=no;;
2274 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2275 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2277 define_xopen_source=no;;
2278 # On FreeBSD 4, the math functions C89 does not cover are never defined
2279 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2281 define_xopen_source=no;;
2282 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2283 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2284 # identifies itself as Darwin/7.*
2285 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2286 # disables platform specific features beyond repair.
2287 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2288 # has no effect, don't bother defining them
2290 define_xopen_source=no;;
2292 define_xopen_source=no;;
2293 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2294 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2295 # or has another value. By not (re)defining it, the defaults come in place.
2297 define_xopen_source=no;;
2299 if test `uname -r` -eq 1; then
2300 define_xopen_source=no
2303 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2304 # defining NI_NUMERICHOST.
2306 define_xopen_source=no
2311 if test $define_xopen_source = yes
2313 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2314 # defined precisely as g++ defines it
2315 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2317 case $ac_sys_system/$ac_sys_release in
2318 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2320 cat >>confdefs.h <<\_ACEOF
2321 #define _XOPEN_SOURCE 500
2327 cat >>confdefs.h <<\_ACEOF
2328 #define _XOPEN_SOURCE 600
2334 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2335 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2336 # several APIs are not declared. Since this is also needed in some
2337 # cases for HP-UX, we define it globally.
2338 # except for Solaris 10, where it must not be defined,
2339 # as it implies XPG4.2
2340 case $ac_sys_system/$ac_sys_release in
2345 cat >>confdefs.h <<\_ACEOF
2346 #define _XOPEN_SOURCE_EXTENDED 1
2353 cat >>confdefs.h <<\_ACEOF
2354 #define _POSIX_C_SOURCE 200112L
2361 # SGI compilers allow the specification of the both the ABI and the
2362 # ISA on the command line. Depending on the values of these switches,
2363 # different and often incompatable code will be generated.
2365 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2366 # thus supply support for various ABI/ISA combinations. The MACHDEP
2367 # variable is also adjusted.
2370 if test ! -z "$SGI_ABI"
2373 LDFLAGS="$SGI_ABI $LDFLAGS"
2374 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2376 { $as_echo "$as_me:$LINENO: result
: $MACHDEP" >&5
2377 $as_echo "$MACHDEP" >&6; }
2379 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2380 # it may influence the way we can build extensions, so distutils
2384 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2385 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2387 { $as_echo "$as_me:$LINENO: checking machine
type as reported by uname
-m" >&5
2388 $as_echo_n "checking machine
type as reported by uname
-m...
" >&6; }
2389 ac_sys_machine=`uname -m`
2390 { $as_echo "$as_me:$LINENO: result
: $ac_sys_machine" >&5
2391 $as_echo "$ac_sys_machine" >&6; }
2393 # checks for alternative programs
2395 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2396 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2397 # just to get things to compile and link. Users are free to override OPT
2398 # when running configure or make. The build should not break if they do.
2399 # BASECFLAGS should generally not be messed with, however.
2401 # XXX shouldn't some/most/all of this code be merged with the stuff later
2402 # on that fiddles with OPT and BASECFLAGS?
2403 { $as_echo "$as_me:$LINENO: checking
for --without-gcc" >&5
2404 $as_echo_n "checking
for --without-gcc...
" >&6; }
2406 # Check whether --with-gcc was given.
2407 if test "${with_gcc+set}" = set; then
2415 without_gcc=$withval;;
2419 case $ac_sys_system in
2426 { $as_echo "$as_me:$LINENO: result
: $without_gcc" >&5
2427 $as_echo "$without_gcc" >&6; }
2429 # If the user switches compilers, we can't believe the cache
2430 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2432 { { $as_echo "$as_me:$LINENO: error
: cached CC is different
-- throw away
$cache_file
2433 (it is also a good idea to
do 'make clean' before compiling
)" >&5
2434 $as_echo "$as_me: error
: cached CC is different
-- throw away
$cache_file
2435 (it is also a good idea to
do 'make clean' before compiling
)" >&2;}
2436 { (exit 1); exit 1; }; }
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2447 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2448 $as_echo_n "checking
for $ac_word...
" >&6; }
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450 $as_echo_n "(cached
) " >&6
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2463 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2473 if test -n "$CC"; then
2474 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2475 $as_echo "$CC" >&6; }
2477 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2478 $as_echo "no
" >&6; }
2483 if test -z "$ac_cv_prog_CC"; then
2485 # Extract the first word of "gcc
", so it can be a program name with args.
2486 set dummy gcc; ac_word=$2
2487 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2488 $as_echo_n "checking
for $ac_word...
" >&6; }
2489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2490 $as_echo_n "(cached
) " >&6
2492 if test -n "$ac_ct_CC"; then
2493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_CC="gcc
"
2503 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513 if test -n "$ac_ct_CC"; then
2514 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2515 $as_echo "$ac_ct_CC" >&6; }
2517 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2518 $as_echo "no
" >&6; }
2521 if test "x
$ac_ct_CC" = x; then
2524 case $cross_compiling:$ac_tool_warned in
2526 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2527 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2528 ac_tool_warned=yes ;;
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}cc; ac_word=$2
2540 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2541 $as_echo_n "checking
for $ac_word...
" >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543 $as_echo_n "(cached
) " >&6
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2556 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2566 if test -n "$CC"; then
2567 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2568 $as_echo "$CC" >&6; }
2570 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2571 $as_echo "no
" >&6; }
2577 if test -z "$CC"; then
2578 # Extract the first word of "cc
", so it can be a program name with args.
2579 set dummy cc; ac_word=$2
2580 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2581 $as_echo_n "checking
for $ac_word...
" >&6; }
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 $as_echo_n "(cached
) " >&6
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2597 ac_prog_rejected=yes
2601 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2608 if test $ac_prog_rejected = yes; then
2609 # We found a bogon in the path, so make sure we never use it.
2610 set dummy $ac_cv_prog_CC
2612 if test $# != 0; then
2613 # We chose a different compiler from the bogus one.
2614 # However, it has the same basename, so the bogon will be chosen
2615 # first if we set CC to just the basename; use the full file name.
2617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2623 if test -n "$CC"; then
2624 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2625 $as_echo "$CC" >&6; }
2627 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2628 $as_echo "no
" >&6; }
2633 if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
2635 for ac_prog in cl.exe
2637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2639 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2640 $as_echo_n "checking
for $ac_word...
" >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642 $as_echo_n "(cached
) " >&6
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2665 if test -n "$CC"; then
2666 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2667 $as_echo "$CC" >&6; }
2669 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2670 $as_echo "no
" >&6; }
2674 test -n "$CC" && break
2677 if test -z "$CC"; then
2679 for ac_prog in cl.exe
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2684 $as_echo_n "checking
for $ac_word...
" >&6; }
2685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2686 $as_echo_n "(cached
) " >&6
2688 if test -n "$ac_ct_CC"; then
2689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_ac_ct_CC="$ac_prog"
2699 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709 if test -n "$ac_ct_CC"; then
2710 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2711 $as_echo "$ac_ct_CC" >&6; }
2713 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2714 $as_echo "no
" >&6; }
2718 test -n "$ac_ct_CC" && break
2721 if test "x
$ac_ct_CC" = x; then
2724 case $cross_compiling:$ac_tool_warned in
2726 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2727 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2728 ac_tool_warned=yes ;;
2737 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details.
" >&5
2741 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2742 See \
`config.log' for more details." >&2;}
2743 { (exit 1); exit 1; }; }; }
2745 # Provide some information about the compiler.
2746 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2749 { (ac_try="$ac_compiler --version >&5"
2751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2752 *) ac_try_echo
=$ac_try;;
2754 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2755 $as_echo "$ac_try_echo") >&5
2756 (eval "$ac_compiler --version >&5") 2>&5
2758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760 { (ac_try
="$ac_compiler -v >&5"
2762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2766 $as_echo "$ac_try_echo") >&5
2767 (eval "$ac_compiler -v >&5") 2>&5
2769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771 { (ac_try="$ac_compiler -V >&5"
2773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2774 *) ac_try_echo
=$ac_try;;
2776 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_compiler -V >&5") 2>&5
2780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }
2783 cat >conftest.
$ac_ext <<_ACEOF
2786 cat confdefs.h
>>conftest.
$ac_ext
2787 cat >>conftest.
$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2798 ac_clean_files_save
=$ac_clean_files
2799 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2800 # Try to create an executable without -o first, disregard a.out.
2801 # It will help us diagnose broken compilers, and finding out an intuition
2803 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2804 $as_echo_n "checking for C compiler default output file name... " >&6; }
2805 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2807 # The possible output files:
2808 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2811 for ac_file
in $ac_files
2814 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2815 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2820 if { (ac_try
="$ac_link_default"
2822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2826 $as_echo "$ac_try_echo") >&5
2827 (eval "$ac_link_default") 2>&5
2829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; then
2831 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2832 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2833 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2834 # so that the user can short-circuit this test for compilers unknown to
2836 for ac_file in $ac_files ''
2838 test -f "$ac_file" || continue
2840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2843 # We found the default executable, but exeext='' is most
2847 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 # We set ac_cv_exeext here because the later test for it is not
2852 # safe: cross compilers may not add the suffix if given an `-o'
2853 # argument, so we may need to know it at that point already.
2854 # Even if this section looks crufty: it has the advantage of
2861 test "$ac_cv_exeext" = no && ac_cv_exeext=
2867 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2868 $as_echo "$ac_file" >&6; }
2869 if test -z "$ac_file"; then
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's
/^
/|
/' conftest.$ac_ext >&5
2873 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2875 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2876 See \`config.log
' for more details." >&5
2877 $as_echo "$as_me: error: C compiler cannot create executables
2878 See \`config.log' for more details.
" >&2;}
2879 { (exit 77); exit 77; }; }; }
2882 ac_exeext=$ac_cv_exeext
2884 # Check that the compiler produces executables we can run. If not, either
2885 # the compiler is broken, or we cross compile.
2886 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2887 $as_echo_n "checking whether the C compiler works...
" >&6; }
2888 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2889 # If not cross compiling, check that we can run a simple program.
2890 if test "$cross_compiling" != yes; then
2891 if { ac_try='./$ac_file'
2892 { (case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2897 $as_echo "$ac_try_echo") >&5
2898 (eval "$ac_try") 2>&5
2900 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2901 (exit $ac_status); }; }; then
2904 if test "$cross_compiling" = maybe; then
2907 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \
`config.log' for more details." >&5
2912 $as_echo "$as_me: error: cannot run C compiled programs.
2913 If you meant to cross compile, use \`--host'.
2914 See \`config.log' for more details.
" >&2;}
2915 { (exit 1); exit 1; }; }; }
2919 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2920 $as_echo "yes" >&6; }
2922 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2923 ac_clean_files=$ac_clean_files_save
2924 # Check that the compiler produces executables we can run. If not, either
2925 # the compiler is broken, or we cross compile.
2926 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2927 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2928 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2929 $as_echo "$cross_compiling" >&6; }
2931 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2932 $as_echo_n "checking
for suffix of executables...
" >&6; }
2933 if { (ac_try="$ac_link"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2939 $as_echo "$ac_try_echo") >&5
2940 (eval "$ac_link") 2>&5
2942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2943 (exit $ac_status); }; then
2944 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2945 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2946 # work properly (i.e., refer to `conftest.exe'), while it won't with
2948 for ac_file in conftest.exe conftest conftest.*; do
2949 test -f "$ac_file" || continue
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2952 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2958 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2960 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2961 See \`config.log' for more details.
" >&5
2962 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2963 See \
`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }; }
2967 rm -f conftest$ac_cv_exeext
2968 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2969 $as_echo "$ac_cv_exeext" >&6; }
2971 rm -f conftest.$ac_ext
2972 EXEEXT=$ac_cv_exeext
2974 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2975 $as_echo_n "checking for suffix of object files... " >&6; }
2976 if test "${ac_cv_objext+set}" = set; then
2977 $as_echo_n "(cached) " >&6
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2994 rm -f conftest.o conftest.obj
2995 if { (ac_try="$ac_compile"
2997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2998 *) ac_try_echo
=$ac_try;;
3000 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3001 $as_echo "$ac_try_echo") >&5
3002 (eval "$ac_compile") 2>&5
3004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; then
3006 for ac_file
in conftest.o conftest.obj conftest.
*; do
3007 test -f "$ac_file" ||
continue;
3009 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3010 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3015 $as_echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.
$ac_ext >&5
3018 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3021 See \`config.log' for more details." >&5
3022 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3023 See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }; }
3027 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3029 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3030 $as_echo "$ac_cv_objext" >&6; }
3031 OBJEXT
=$ac_cv_objext
3033 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3034 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3035 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3036 $as_echo_n "(cached) " >&6
3038 cat >conftest.
$ac_ext <<_ACEOF
3041 cat confdefs.h
>>conftest.
$ac_ext
3042 cat >>conftest.
$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3056 rm -f conftest.
$ac_objext
3057 if { (ac_try
="$ac_compile"
3059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063 $as_echo "$ac_try_echo") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && {
3071 test -z "$ac_c_werror_flag" ||
3072 test ! -s conftest.err
3073 } && test -s conftest.$ac_objext; then
3076 $as_echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3086 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3088 if test $ac_compiler_gnu = yes; then
3093 ac_test_CFLAGS=${CFLAGS+set}
3094 ac_save_CFLAGS=$CFLAGS
3095 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3096 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3097 if test "${ac_cv_prog_cc_g+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3123 *) ac_try_echo
=$ac_try;;
3125 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3126 $as_echo "$ac_try_echo") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3129 grep -v '^ *+' conftest.er1
>conftest.err
3131 cat conftest.err
>&5
3132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.
$ac_objext; then
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.
$ac_ext >&5
3143 cat >conftest.
$ac_ext <<_ACEOF
3146 cat confdefs.h
>>conftest.
$ac_ext
3147 cat >>conftest.
$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3158 rm -f conftest.
$ac_objext
3159 if { (ac_try
="$ac_compile"
3161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3202 *) ac_try_echo
=$ac_try;;
3204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3205 $as_echo "$ac_try_echo") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1
>conftest.err
3210 cat conftest.err
>&5
3211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.
$ac_objext; then
3218 $as_echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.
$ac_ext >&5
3224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3231 ac_c_werror_flag
=$ac_save_c_werror_flag
3233 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3234 $as_echo "$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS
=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3244 if test "$GCC" = yes; then
3250 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252 if test "${ac_cv_prog_cc_c89+set}" = set; then
3253 $as_echo_n "(cached) " >&6
3255 ac_cv_prog_cc_c89
=no
3257 cat >conftest.
$ac_ext <<_ACEOF
3260 cat confdefs.h
>>conftest.
$ac_ext
3261 cat >>conftest.
$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3265 #include <sys/types.h>
3266 #include <sys/stat.h>
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3281 s = g (p, va_arg (v,int));
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
3289 as 'x'. The following induces an error, until -std is added to get
3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
3292 that's true only with -std. */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC
="$ac_save_CC $ac_arg"
3318 rm -f conftest.
$ac_objext
3319 if { (ac_try
="$ac_compile"
3321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325 $as_echo "$ac_try_echo") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && {
3333 test -z "$ac_c_werror_flag" ||
3334 test ! -s conftest.err
3335 } && test -s conftest.$ac_objext; then
3336 ac_cv_prog_cc_c89=$ac_arg
3338 $as_echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f core conftest.err conftest.$ac_objext
3345 test "x$ac_cv_prog_cc_c89" != "xno" && break
3347 rm -f conftest.$ac_ext
3352 case "x$ac_cv_prog_cc_c89" in
3354 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3355 $as_echo "none needed" >&6; } ;;
3357 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3358 $as_echo "unsupported" >&6; } ;;
3360 CC="$CC $ac_cv_prog_cc_c89"
3361 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3362 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 { $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3376 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
3378 # Check whether --with-cxx_main was given.
3379 if test "${with_cxx_main+set}" = set; then
3380 withval=$with_cxx_main;
3383 no) with_cxx_main=no
3385 yes) with_cxx_main=yes
3387 *) with_cxx_main=yes
3401 { $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3402 $as_echo "$with_cxx_main" >&6; }
3408 gcc) # Extract the first word of "g++", so it can be a program name with args.
3409 set dummy g++; ac_word=$2
3410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_path_CXX+set}" = set; then
3413 $as_echo_n "(cached) " >&6
3417 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in notfound
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3440 if test -n "$CXX"; then
3441 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3442 $as_echo "$CXX" >&6; }
3444 { $as_echo "$as_me:$LINENO: result: no" >&5
3445 $as_echo "no" >&6; }
3449 cc) # Extract the first word of "c++", so it can be a program name with args.
3450 set dummy c++; ac_word=$2
3451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if test "${ac_cv_path_CXX+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3458 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in notfound
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3481 if test -n "$CXX"; then
3482 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3483 $as_echo "$CXX" >&6; }
3485 { $as_echo "$as_me:$LINENO: result: no" >&5
3486 $as_echo "no" >&6; }
3491 if test "$CXX" = "notfound"
3498 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_CXX+set}" = set; then
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$CXX"; then
3508 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_CXX="$ac_prog"
3518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 if test -n "$CXX"; then
3529 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3530 $as_echo "$CXX" >&6; }
3532 { $as_echo "$as_me:$LINENO: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$CXX" && break
3539 test -n "$CXX" || CXX="notfound"
3541 if test "$CXX" = "notfound"
3546 if test "$preset_cxx" != "$CXX"
3548 { $as_echo "$as_me:$LINENO: WARNING:
3550 By default, distutils will build C++ extension modules with \"$CXX\".
3551 If this is not intended, then set CXX on the configure command line.
3553 $as_echo "$as_me: WARNING:
3555 By default, distutils will build C++ extension modules with \"$CXX\".
3556 If this is not intended, then set CXX on the configure command line.
3561 # checks for UNIX variants that set C preprocessor variables
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3569 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3570 # On Suns, sometimes $CPP names a directory.
3571 if test -n "$CPP" && test -d "$CPP"; then
3574 if test -z "$CPP"; then
3575 if test "${ac_cv_prog_CPP+set}" = set; then
3576 $as_echo_n "(cached) " >&6
3578 # Double quotes because CPP needs to be expanded
3579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3582 for ac_c_preproc_warn_flag in '' yes
3584 # Use a header file that comes with gcc, so configuring glibc
3585 # with a fresh cross-compiler works.
3586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3587 # <limits.h> exists even on freestanding compilers.
3588 # On the NeXT, cc -E runs the code through the compiler's parser,
3589 # not just through cpp. "Syntax error" is here to catch this case.
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3597 # include <limits.h>
3599 # include <assert.h>
3603 if { (ac_try="$ac_cpp conftest.$ac_ext"
3605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3606 *) ac_try_echo
=$ac_try;;
3608 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3609 $as_echo "$ac_try_echo") >&5
3610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3612 grep -v '^ *+' conftest.er1
>conftest.err
3614 cat conftest.err
>&5
3615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev
/null
&& {
3617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.
$ac_ext >&5
3625 # Broken: fails on valid input.
3629 rm -f conftest.err conftest.
$ac_ext
3631 # OK, works on sane cases. Now check whether nonexistent headers
3632 # can be detected and how.
3633 cat >conftest.
$ac_ext <<_ACEOF
3636 cat confdefs.h
>>conftest.
$ac_ext
3637 cat >>conftest.
$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 #include <ac_nonexistent.h>
3641 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3647 $as_echo "$ac_try_echo") >&5
3648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev/null && {
3655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3658 # Broken: success on invalid input.
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 # Passes both tests.
3669 rm -f conftest.err conftest.$ac_ext
3672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3673 rm -f conftest.err conftest.
$ac_ext
3674 if $ac_preproc_ok; then
3686 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3687 $as_echo "$CPP" >&6; }
3689 for ac_c_preproc_warn_flag
in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.
$ac_ext <<_ACEOF
3700 cat confdefs.h
>>conftest.
$ac_ext
3701 cat >>conftest.
$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3704 # include <limits.h>
3706 # include <assert.h>
3710 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716 $as_echo "$ac_try_echo") >&5
3717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null && {
3724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725 test ! -s conftest.err
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 # Broken: fails on valid input.
3736 rm -f conftest.err conftest.$ac_ext
3738 # OK, works on sane cases. Now check whether nonexistent headers
3739 # can be detected and how.
3740 cat >conftest.$ac_ext <<_ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3748 if { (ac_try="$ac_cpp conftest.$ac_ext"
3750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3751 *) ac_try_echo
=$ac_try;;
3753 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3754 $as_echo "$ac_try_echo") >&5
3755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3757 grep -v '^ *+' conftest.er1
>conftest.err
3759 cat conftest.err
>&5
3760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev
/null
&& {
3762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3765 # Broken: success on invalid input.
3768 $as_echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.
$ac_ext >&5
3771 # Passes both tests.
3776 rm -f conftest.err conftest.
$ac_ext
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.
$ac_ext
3781 if $ac_preproc_ok; then
3784 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3787 See \`config.log' for more details." >&5
3788 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3789 See \`config.log' for more details." >&2;}
3790 { (exit 1); exit 1; }; }; }
3794 ac_cpp
='$CPP $CPPFLAGS'
3795 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3800 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3801 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3802 if test "${ac_cv_path_GREP+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3805 if test -z "$GREP"; then
3806 ac_path_GREP_found
=false
3807 # Loop through the user's path and test for each of PROGNAME-LIST
3808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3809 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3812 test -z "$as_dir" && as_dir
=.
3813 for ac_prog
in grep ggrep
; do
3814 for ac_exec_ext
in '' $ac_executable_extensions; do
3815 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3816 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3817 # Check for GNU ac_path_GREP and select it if it is found.
3818 # Check for GNU $ac_path_GREP
3819 case `"$ac_path_GREP" --version 2>&1` in
3821 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3824 $as_echo_n 0123456789 >"conftest.in"
3827 cat "conftest.in" "conftest.in" >"conftest.tmp"
3828 mv "conftest.tmp" "conftest.in"
3829 cp "conftest.in" "conftest.nl"
3830 $as_echo 'GREP' >> "conftest.nl"
3831 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3832 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3833 ac_count
=`expr $ac_count + 1`
3834 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3835 # Best one so far, save it but keep looking for a better one
3836 ac_cv_path_GREP
="$ac_path_GREP"
3837 ac_path_GREP_max
=$ac_count
3839 # 10*(2^10) chars as input seems more than enough
3840 test $ac_count -gt 10 && break
3842 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3845 $ac_path_GREP_found && break 3
3850 if test -z "$ac_cv_path_GREP"; then
3851 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3852 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3853 { (exit 1); exit 1; }; }
3856 ac_cv_path_GREP
=$GREP
3860 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3861 $as_echo "$ac_cv_path_GREP" >&6; }
3862 GREP
="$ac_cv_path_GREP"
3865 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3866 $as_echo_n "checking for egrep... " >&6; }
3867 if test "${ac_cv_path_EGREP+set}" = set; then
3868 $as_echo_n "(cached) " >&6
3870 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3871 then ac_cv_path_EGREP
="$GREP -E"
3873 if test -z "$EGREP"; then
3874 ac_path_EGREP_found
=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3877 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3880 test -z "$as_dir" && as_dir
=.
3881 for ac_prog
in egrep; do
3882 for ac_exec_ext
in '' $ac_executable_extensions; do
3883 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3884 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3885 # Check for GNU ac_path_EGREP and select it if it is found.
3886 # Check for GNU $ac_path_EGREP
3887 case `"$ac_path_EGREP" --version 2>&1` in
3889 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3892 $as_echo_n 0123456789 >"conftest.in"
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 $as_echo 'EGREP' >> "conftest.nl"
3899 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3900 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3901 ac_count
=`expr $ac_count + 1`
3902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_EGREP
="$ac_path_EGREP"
3905 ac_path_EGREP_max
=$ac_count
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3910 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3913 $ac_path_EGREP_found && break 3
3918 if test -z "$ac_cv_path_EGREP"; then
3919 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3920 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3921 { (exit 1); exit 1; }; }
3924 ac_cv_path_EGREP
=$EGREP
3929 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3930 $as_echo "$ac_cv_path_EGREP" >&6; }
3931 EGREP
="$ac_cv_path_EGREP"
3934 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3935 $as_echo_n "checking for ANSI C header files... " >&6; }
3936 if test "${ac_cv_header_stdc+set}" = set; then
3937 $as_echo_n "(cached) " >&6
3939 cat >conftest.
$ac_ext <<_ACEOF
3942 cat confdefs.h
>>conftest.
$ac_ext
3943 cat >>conftest.
$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3958 rm -f conftest.
$ac_objext
3959 if { (ac_try
="$ac_compile"
3961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3968 grep -v '^ *+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3976 ac_cv_header_stdc=yes
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_header_stdc=no
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 if test $ac_cv_header_stdc = yes; then
3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 $EGREP "memchr" >/dev/null 2>&1; then
4001 ac_cv_header_stdc=no
4007 if test $ac_cv_header_stdc = yes; then
4008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "free" >/dev/null 2>&1; then
4022 ac_cv_header_stdc=no
4028 if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030 if test "$cross_compiling" = yes; then
4033 cat >conftest.$ac_ext <<_ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4041 #if ((' ' & 0x0FF) == 0x020)
4042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4045 # define ISLOWER(c) \
4046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4064 rm -f conftest$ac_exeext
4065 if { (ac_try="$ac_link"
4067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4068 *) ac_try_echo
=$ac_try;;
4070 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4071 $as_echo "$ac_try_echo") >&5
4072 (eval "$ac_link") 2>&5
4074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4076 { (case "(($ac_try" in
4077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4081 $as_echo "$ac_try_echo") >&5
4082 (eval "$ac_try") 2>&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4088 $as_echo "$as_me: program exited with status $ac_status" >&5
4089 $as_echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4093 ac_cv_header_stdc=no
4095 rm -rf conftest.dSYM
4096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4103 $as_echo "$ac_cv_header_stdc" >&6; }
4104 if test $ac_cv_header_stdc = yes; then
4106 cat >>confdefs.h <<\_ACEOF
4107 #define STDC_HEADERS 1
4112 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4122 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4123 inttypes.h stdint.h unistd.h
4125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4127 $as_echo_n "checking for $ac_header... " >&6; }
4128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4129 $as_echo_n "(cached) " >&6
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 $ac_includes_default
4139 #include <$ac_header>
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4145 *) ac_try_echo
=$ac_try;;
4147 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_compile") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1
>conftest.err
4153 cat conftest.err
>&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && {
4156 test -z "$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4158 } && test -s conftest.
$ac_objext; then
4159 eval "$as_ac_Header=yes"
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.
$ac_ext >&5
4164 eval "$as_ac_Header=no"
4167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4169 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4170 $as_echo "$as_val"'`
4171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4172 $as_echo "$ac_res" >&6; }
4173 as_val
=`eval 'as_val=${'$as_ac_Header'}
4174 $as_echo "$as_val"'`
4175 if test "x$as_val" = x
""yes; then
4176 cat >>confdefs.h
<<_ACEOF
4177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4186 if test "${ac_cv_header_minix_config_h+set}" = set; then
4187 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4188 $as_echo_n "checking for minix/config.h... " >&6; }
4189 if test "${ac_cv_header_minix_config_h+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4193 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4195 # Is the header compilable?
4196 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4197 $as_echo_n "checking minix/config.h usability... " >&6; }
4198 cat >conftest.
$ac_ext <<_ACEOF
4201 cat confdefs.h
>>conftest.
$ac_ext
4202 cat >>conftest.
$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 $ac_includes_default
4205 #include <minix/config.h>
4207 rm -f conftest.
$ac_objext
4208 if { (ac_try
="$ac_compile"
4210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4214 $as_echo "$ac_try_echo") >&5
4215 (eval "$ac_compile") 2>conftest.er1
4217 grep -v '^ *+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } && {
4222 test -z "$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 } && test -s conftest.$ac_objext; then
4225 ac_header_compiler=yes
4227 $as_echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 ac_header_compiler=no
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4235 $as_echo "$ac_header_compiler" >&6; }
4237 # Is the header present?
4238 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4239 $as_echo_n "checking minix/config.h presence... " >&6; }
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #include <minix/config.h>
4248 if { (ac_try="$ac_cpp conftest.$ac_ext"
4250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4251 *) ac_try_echo
=$ac_try;;
4253 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4254 $as_echo "$ac_try_echo") >&5
4255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4257 grep -v '^ *+' conftest.er1
>conftest.err
4259 cat conftest.err
>&5
4260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } >/dev
/null
&& {
4262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4265 ac_header_preproc
=yes
4267 $as_echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.
$ac_ext >&5
4270 ac_header_preproc
=no
4273 rm -f conftest.err conftest.
$ac_ext
4274 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4275 $as_echo "$ac_header_preproc" >&6; }
4277 # So? What about this header?
4278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4280 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4281 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4282 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4283 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4284 ac_header_preproc
=yes
4287 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4288 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4289 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4290 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4291 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4292 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4293 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4294 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4295 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4296 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4297 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4298 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4300 ## -------------------------------------- ##
4301 ## Report this to http://bugs.python.org/ ##
4302 ## -------------------------------------- ##
4304 ) |
sed "s/^/$as_me: WARNING: /" >&2
4307 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4308 $as_echo_n "checking for minix/config.h... " >&6; }
4309 if test "${ac_cv_header_minix_config_h+set}" = set; then
4310 $as_echo_n "(cached) " >&6
4312 ac_cv_header_minix_config_h
=$ac_header_preproc
4314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4315 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4318 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4325 if test "$MINIX" = yes; then
4327 cat >>confdefs.h
<<\_ACEOF
4328 #define _POSIX_SOURCE 1
4332 cat >>confdefs.h
<<\_ACEOF
4333 #define _POSIX_1_SOURCE 2
4337 cat >>confdefs.h
<<\_ACEOF
4345 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4346 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4347 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4348 $as_echo_n "(cached) " >&6
4350 cat >conftest.
$ac_ext <<_ACEOF
4353 cat confdefs.h
>>conftest.
$ac_ext
4354 cat >>conftest.
$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4357 # define __EXTENSIONS__ 1
4358 $ac_includes_default
4367 rm -f conftest.
$ac_objext
4368 if { (ac_try
="$ac_compile"
4370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4374 $as_echo "$ac_try_echo") >&5
4375 (eval "$ac_compile") 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && {
4382 test -z "$ac_c_werror_flag" ||
4383 test ! -s conftest.err
4384 } && test -s conftest.$ac_objext; then
4385 ac_cv_safe_to_define___extensions__=yes
4387 $as_echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_cv_safe_to_define___extensions__=no
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4396 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4397 test $ac_cv_safe_to_define___extensions__ = yes &&
4398 cat >>confdefs.h <<\_ACEOF
4399 #define __EXTENSIONS__ 1
4402 cat >>confdefs.h <<\_ACEOF
4403 #define _ALL_SOURCE 1
4406 cat >>confdefs.h <<\_ACEOF
4407 #define _GNU_SOURCE 1
4410 cat >>confdefs.h <<\_ACEOF
4411 #define _POSIX_PTHREAD_SEMANTICS 1
4414 cat >>confdefs.h <<\_ACEOF
4415 #define _TANDEM_SOURCE 1
4420 # Check for unsupported systems
4421 case $ac_sys_system/$ac_sys_release in
4423 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
4424 echo See README for details.
4429 { $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5
4430 $as_echo_n "checking for --with-suffix... " >&6; }
4432 # Check whether --with-suffix was given.
4433 if test "${with_suffix+set}" = set; then
4434 withval=$with_suffix;
4438 *) EXEEXT=$withval;;
4442 { $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5
4443 $as_echo "$EXEEXT" >&6; }
4445 # Test whether we're running on a non-case-sensitive system, in which
4446 # case we give a warning if no ext is given
4448 { $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
4449 $as_echo_n "checking for case-insensitive build directory... " >&6; }
4450 if test ! -d CaseSensitiveTestDir; then
4451 mkdir CaseSensitiveTestDir
4454 if test -d casesensitivetestdir
4456 { $as_echo "$as_me:$LINENO: result: yes" >&5
4457 $as_echo "yes" >&6; }
4460 { $as_echo "$as_me:$LINENO: result: no" >&5
4461 $as_echo "no" >&6; }
4464 rmdir CaseSensitiveTestDir
4469 gcc) CC="$CC -D_HAVE_BSDI";;
4473 case $ac_sys_system in
4476 cc|*/cc) CC="$CC -Ae";;
4479 # Some functions have a prototype only with that define, e.g. confstr
4481 cat >>confdefs.h <<\_ACEOF
4482 #define __EXTENSIONS__ 1
4490 { $as_echo "$as_me:$LINENO: checking LIBRARY" >&5
4491 $as_echo_n "checking LIBRARY... " >&6; }
4492 if test -z "$LIBRARY"
4494 LIBRARY='libpython$(VERSION).a'
4496 { $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5
4497 $as_echo "$LIBRARY" >&6; }
4499 # LDLIBRARY is the name of the library to link against (as opposed to the
4500 # name of the library into which to insert object files). BLDLIBRARY is also
4501 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
4502 # is blank as the main program is not linked directly against LDLIBRARY.
4503 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
4504 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
4505 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
4506 # DLLLIBRARY is the shared (i.e., DLL) library.
4508 # RUNSHARED is used to run shared python without installed libraries
4510 # INSTSONAME is the name of the shared library that will be use to install
4511 # on the system - some systems like version suffix, others don't
4518 LDLIBRARY="$LIBRARY"
4519 BLDLIBRARY='$(LDLIBRARY)'
4520 INSTSONAME='$(LDLIBRARY)'
4525 # LINKCC is the command that links the python executable -- default is $(CC).
4526 # If CXX is set, and if it is needed to link a main function that was
4527 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
4528 # python might then depend on the C++ runtime
4529 # This is altered for AIX in order to build the export list before
4532 { $as_echo "$as_me:$LINENO: checking LINKCC" >&5
4533 $as_echo_n "checking LINKCC... " >&6; }
4534 if test -z "$LINKCC"
4536 LINKCC='$(PURIFY) $(MAINCC)'
4537 case $ac_sys_system in
4540 if test $ac_sys_release -ge 5 -o \
4541 $ac_sys_release -eq 4 -a `uname
-r` -ge 2 ; then
4544 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4546 # qcc must be used because the other compilers do not
4551 { $as_echo "$as_me:$LINENO: result: $LINKCC" >&5
4552 $as_echo "$LINKCC" >&6; }
4554 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4555 # make sure we default having it set to "no": this is used by
4556 # distutils.unixccompiler to know if it should add --enable-new-dtags
4557 # to linker command lines, and failing to detect GNU ld simply results
4558 # in the same bahaviour as before.
4560 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4561 $as_echo_n "checking for GNU ld... " >&6; }
4563 if test "$GCC" = yes; then
4564 ac_prog=`$CC -print-prog-name=ld
`
4566 case `"$ac_prog" -V 2>&1 < /dev
/null
` in
4572 { $as_echo "$as_me:$LINENO: result: $GNULD" >&5
4573 $as_echo "$GNULD" >&6; }
4575 { $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5
4576 $as_echo_n "checking for --enable-shared... " >&6; }
4577 # Check whether --enable-shared was given.
4578 if test "${enable_shared+set}" = set; then
4579 enableval=$enable_shared;
4583 if test -z "$enable_shared"
4585 case $ac_sys_system in
4587 enable_shared="yes";;
4589 enable_shared="no";;
4592 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
4593 $as_echo "$enable_shared" >&6; }
4595 { $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4596 $as_echo_n "checking for --enable-profiling... " >&6; }
4597 # Check whether --enable-profiling was given.
4598 if test "${enable_profiling+set}" = set; then
4599 enableval=$enable_profiling; ac_save_cc="$CC"
4601 if test "$cross_compiling" = yes; then
4602 ac_enable_profiling="no"
4604 cat >conftest.$ac_ext <<_ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 int main() { return 0; }
4612 rm -f conftest$ac_exeext
4613 if { (ac_try="$ac_link"
4615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4616 *) ac_try_echo
=$ac_try;;
4618 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4619 $as_echo "$ac_try_echo") >&5
4620 (eval "$ac_link") 2>&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4624 { (case "(($ac_try" in
4625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4629 $as_echo "$ac_try_echo") >&5
4630 (eval "$ac_try") 2>&5
4632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_enable_profiling="yes"
4636 $as_echo "$as_me: program exited with status $ac_status" >&5
4637 $as_echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4641 ac_enable_profiling="no"
4643 rm -rf conftest.dSYM
4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4651 { $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4652 $as_echo "$ac_enable_profiling" >&6; }
4654 case "$ac_enable_profiling" in
4656 BASECFLAGS="-pg $BASECFLAGS"
4657 LDFLAGS="-pg $LDFLAGS"
4661 { $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4662 $as_echo_n "checking LDLIBRARY... " >&6; }
4664 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4665 # library that we build, but we do not want to link against it (we
4666 # will find it with a -framework option). For this reason there is an
4667 # extra variable BLDLIBRARY against which Python and the extension
4668 # modules are linked, BLDLIBRARY. This is normally the same as
4669 # LDLIBRARY, but empty for MacOSX framework builds.
4670 if test "$enable_framework"
4672 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4673 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4676 BLDLIBRARY='$(LDLIBRARY)'
4679 # Other platforms follow
4680 if test $enable_shared = "yes"; then
4682 cat >>confdefs.h <<\_ACEOF
4683 #define Py_ENABLE_SHARED 1
4686 case $ac_sys_system in
4688 LDLIBRARY='libpython$(VERSION).dll.a'
4689 DLLLIBRARY='libpython$(VERSION).dll'
4692 LDLIBRARY='libpython$(VERSION).so'
4693 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4694 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4695 INSTSONAME="$LDLIBRARY".$SOVERSION
4697 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4698 LDLIBRARY='libpython$(VERSION).so'
4699 BLDLIBRARY='-L. -lpython$(VERSION)'
4700 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4701 case $ac_sys_system in
4703 SOVERSION=`echo $SOVERSION|cut
-d "." -f 1`
4706 INSTSONAME="$LDLIBRARY".$SOVERSION
4711 LDLIBRARY='libpython$(VERSION).so'
4714 LDLIBRARY='libpython$(VERSION).sl'
4717 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4718 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4721 LDLIBRARY='libpython$(VERSION).so'
4722 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4723 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4726 LDLIBRARY='libpython$(VERSION).so'
4727 BLDLIBRARY='-L. -lpython$(VERSION)'
4728 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4731 LDLIBRARY='libpython$(VERSION).dylib'
4732 BLDLIBRARY='-L. -lpython$(VERSION)'
4733 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4737 else # shared is disabled
4738 case $ac_sys_system in
4740 BLDLIBRARY='$(LIBRARY)'
4741 LDLIBRARY='libpython$(VERSION).dll.a'
4746 { $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4747 $as_echo "$LDLIBRARY" >&6; }
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_RANLIB+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4757 if test -n "$RANLIB"; then
4758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 RANLIB=$ac_cv_prog_RANLIB
4778 if test -n "$RANLIB"; then
4779 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4780 $as_echo "$RANLIB" >&6; }
4782 { $as_echo "$as_me:$LINENO: result: no" >&5
4783 $as_echo "no" >&6; }
4788 if test -z "$ac_cv_prog_RANLIB"; then
4789 ac_ct_RANLIB=$RANLIB
4790 # Extract the first word of "ranlib", so it can be a program name with args.
4791 set dummy ranlib; ac_word=$2
4792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4795 $as_echo_n "(cached) " >&6
4797 if test -n "$ac_ct_RANLIB"; then
4798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_ac_ct_RANLIB="ranlib"
4808 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4818 if test -n "$ac_ct_RANLIB"; then
4819 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4820 $as_echo "$ac_ct_RANLIB" >&6; }
4822 { $as_echo "$as_me:$LINENO: result: no" >&5
4823 $as_echo "no" >&6; }
4826 if test "x$ac_ct_RANLIB" = x; then
4829 case $cross_compiling:$ac_tool_warned in
4831 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4835 RANLIB=$ac_ct_RANLIB
4838 RANLIB="$ac_cv_prog_RANLIB"
4842 for ac_prog in ar aal
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if test "${ac_cv_prog_AR+set}" = set; then
4849 $as_echo_n "(cached) " >&6
4851 if test -n "$AR"; then
4852 ac_cv_prog_AR="$AR" # Let the user override the test.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_AR="$ac_prog"
4862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 if test -n "$AR"; then
4873 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4874 $as_echo "$AR" >&6; }
4876 { $as_echo "$as_me:$LINENO: result: no" >&5
4877 $as_echo "no" >&6; }
4881 test -n "$AR" && break
4883 test -n "$AR" || AR="ar"
4886 # tweak ARFLAGS only if the user didn't set it on the command line
4888 if test -z "$ARFLAGS"
4894 # Extract the first word of "svnversion", so it can be a program name with args.
4895 set dummy svnversion; ac_word=$2
4896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4899 $as_echo_n "(cached) " >&6
4901 if test -n "$SVNVERSION"; then
4902 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_prog_SVNVERSION="found"
4912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4922 SVNVERSION=$ac_cv_prog_SVNVERSION
4923 if test -n "$SVNVERSION"; then
4924 { $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4925 $as_echo "$SVNVERSION" >&6; }
4927 { $as_echo "$as_me:$LINENO: result: no" >&5
4928 $as_echo "no" >&6; }
4932 if test $SVNVERSION = found
4934 SVNVERSION="svnversion \$(srcdir)"
4936 SVNVERSION="echo Unversioned directory"
4941 # install -d does not work on BSDI or HP-UX
4942 if test -z "$INSTALL"
4944 INSTALL="${srcdir}/install-sh -c"
4948 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4949 if test -f "$ac_dir/install-sh"; then
4951 ac_install_sh="$ac_aux_dir/install-sh -c"
4953 elif test -f "$ac_dir/install.sh"; then
4955 ac_install_sh="$ac_aux_dir/install.sh -c"
4957 elif test -f "$ac_dir/shtool"; then
4959 ac_install_sh="$ac_aux_dir/shtool install -c"
4963 if test -z "$ac_aux_dir"; then
4964 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4965 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4966 { (exit 1); exit 1; }; }
4969 # These three variables are undocumented and unsupported,
4970 # and are intended to be withdrawn in a future Autoconf release.
4971 # They can cause serious problems if a builder's source tree is in a directory
4972 # whose full name contains unusual characters.
4973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4978 # Find a good install program. We prefer a C program (faster),
4979 # so one script is as good as another. But avoid the broken or
4980 # incompatible versions:
4981 # SysV /etc/install, /usr/sbin/install
4982 # SunOS /usr/etc/install
4983 # IRIX /sbin/install
4985 # AmigaOS /C/install, which installs bootblocks on floppy discs
4986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4989 # OS/2's system install, which has a completely different semantic
4990 # ./install, which can be erroneously created by make from ./install.sh.
4991 # Reject install programs that cannot install multiple files.
4992 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4993 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4994 if test -z "$INSTALL"; then
4995 if test "${ac_cv_path_install+set}" = set; then
4996 $as_echo_n "(cached) " >&6
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 # Account for people who put trailing slashes in PATH elements.
5005 ./ | .// | /cC/* | \
5006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5010 # OSF1 and SCO ODT 3.0 have their own names for install.
5011 # Don't use installbsd from OSF since it installs stuff as root
5013 for ac_prog in ginstall scoinst install; do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5016 if test $ac_prog = install &&
5017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5018 # AIX install. It has an incompatible calling convention.
5020 elif test $ac_prog = install &&
5021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5022 # program-specific install script used by HP pwplus--don't use.
5025 rm -rf conftest.one conftest.two conftest.dir
5026 echo one > conftest.one
5027 echo two > conftest.two
5029 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5030 test -s conftest.one && test -s conftest.two &&
5031 test -s conftest.dir/conftest.one &&
5032 test -s conftest.dir/conftest.two
5034 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5047 rm -rf conftest.one conftest.two conftest.dir
5050 if test "${ac_cv_path_install+set}" = set; then
5051 INSTALL=$ac_cv_path_install
5053 # As a last resort, use the slow shell script. Don't cache a
5054 # value for INSTALL within a source directory, because that will
5055 # break other packages using the cache if that directory is
5056 # removed, or if the value is a relative name.
5057 INSTALL=$ac_install_sh
5060 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5061 $as_echo "$INSTALL" >&6; }
5063 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5064 # It thinks the first close brace ends the variable substitution.
5065 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5067 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5069 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5072 # Not every filesystem supports hard links
5074 if test -z "$LN" ; then
5075 case $ac_sys_system in
5076 CYGWIN*) LN="ln -s";;
5077 atheos*) LN="ln -s";;
5082 # Check for --with-pydebug
5083 { $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5
5084 $as_echo_n "checking for --with-pydebug... " >&6; }
5086 # Check whether --with-pydebug was given.
5087 if test "${with_pydebug+set}" = set; then
5088 withval=$with_pydebug;
5089 if test "$withval" != no
5092 cat >>confdefs.h <<\_ACEOF
5096 { $as_echo "$as_me:$LINENO: result: yes" >&5
5097 $as_echo "yes" >&6; };
5099 else { $as_echo "$as_me:$LINENO: result: no" >&5
5100 $as_echo "no" >&6; }; Py_DEBUG='false'
5103 { $as_echo "$as_me:$LINENO: result: no" >&5
5104 $as_echo "no" >&6; }
5108 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5109 # merged with this chunk of code?
5111 # Optimizer/debugger flags
5112 # ------------------------
5113 # (The following bit of code is complicated enough - please keep things
5114 # indented properly. Just pretend you're editing Python code. ;-)
5116 # There are two parallel sets of case statements below, one that checks to
5117 # see if OPT was set and one that does BASECFLAGS setting based upon
5118 # compiler and platform. BASECFLAGS tweaks need to be made even if the
5121 # tweak OPT based on compiler and platform, only if the user didn't set
5122 # it on the command line
5124 if test "${OPT-unset}" = "unset"
5128 if test "$CC" != 'g++' ; then
5129 STRICT_PROTO="-Wstrict-prototypes"
5131 # For gcc 4.x we need to use -fwrapv so lets check if its supported
5132 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
5135 case $ac_cv_prog_cc_g in
5137 if test "$Py_DEBUG" = 'true' ; then
5138 # Optimization messes up debuggers, so turn it off for
5140 OPT="-g -Wall $STRICT_PROTO"
5142 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
5146 OPT="-O3 -Wall $STRICT_PROTO"
5149 case $ac_sys_system in
5150 SCO_SV*) OPT="$OPT -m486 -DSCO5"
5163 # The -arch flags for universal builds on OSX
5164 UNIVERSAL_ARCH_FLAGS=
5167 # tweak BASECFLAGS based on compiler and platform
5170 # Python violates C99 rules, by casting between incompatible
5171 # pointer types. GCC may generate bad code as a result of that,
5172 # so use -fno-strict-aliasing if supported.
5173 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
5174 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5176 CC="$CC -fno-strict-aliasing"
5177 if test "$cross_compiling" = yes; then
5178 ac_cv_no_strict_aliasing_ok=no
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 int main() { return 0; }
5188 rm -f conftest$ac_exeext
5189 if { (ac_try="$ac_link"
5191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5192 *) ac_try_echo
=$ac_try;;
5194 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5195 $as_echo "$ac_try_echo") >&5
5196 (eval "$ac_link") 2>&5
5198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5200 { (case "(($ac_try" in
5201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206 (eval "$ac_try") 2>&5
5208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_no_strict_aliasing_ok=yes
5212 $as_echo "$as_me: program exited with status $ac_status" >&5
5213 $as_echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5217 ac_cv_no_strict_aliasing_ok=no
5219 rm -rf conftest.dSYM
5220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5225 { $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
5226 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5227 if test $ac_cv_no_strict_aliasing_ok = yes
5229 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5232 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
5233 # support. Without this, treatment of subnormals doesn't follow
5235 case $ac_sys_machine in
5237 BASECFLAGS="$BASECFLAGS -mieee"
5241 case $ac_sys_system in
5243 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
5245 # is there any other compiler on Darwin besides gcc?
5247 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
5248 # used to be here, but non-Apple gcc doesn't accept them.
5249 if test "${CC}" = gcc
5251 { $as_echo "$as_me:$LINENO: checking which compiler should be used" >&5
5252 $as_echo_n "checking which compiler should be used... " >&6; }
5253 case "${UNIVERSALSDK}" in
5255 # Build using 10.4 SDK, force usage of gcc when the
5256 # compiler is gcc, otherwise the user will get very
5257 # confusing error messages when building on OSX 10.6
5262 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5263 $as_echo "$CC" >&6; }
5267 if test "${enable_universalsdk}"; then
5268 UNIVERSAL_ARCH_FLAGS=""
5269 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
5271 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
5273 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5274 ARCH_RUN_32BIT="true"
5275 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
5277 elif test "$UNIVERSAL_ARCHS" = "all" ; then
5278 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
5279 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
5280 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
5281 LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64"
5283 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
5284 ARCH_RUN_32BIT="/usr/bin/arch -i386"
5285 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
5286 LIPO_32BIT_FLAGS="-extract i386"
5287 LIPO_64BIT_FLAGS="-extract x86_64"
5289 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
5290 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
5291 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
5292 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
5293 LIPO_64BIT_FLAGS="-extract x86_64"
5296 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
5297 $as_echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
5298 { (exit 1); exit 1; }; }
5303 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
5304 if test "${UNIVERSALSDK}" != "/"
5306 CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
5307 LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
5308 CPPFLAGSFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
5312 # Calculate the right deployment target for this build.
5314 cur_target=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
5315 if test ${cur_target} '>' 10.2; then
5317 if test ${enable_universalsdk}; then
5318 if test "${UNIVERSAL_ARCHS}" = "all"; then
5319 # Ensure that the default platform for a
5320 # 4-way universal build is OSX 10.5,
5321 # that's the first OS release where
5322 # 4-way builds make sense.
5325 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
5328 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
5331 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
5335 if test `/usr
/bin
/arch
` = "i386"; then
5336 # On Intel macs default to a deployment
5337 # target of 10.4, that's the first OSX
5338 # release with Intel support.
5343 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
5345 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
5346 # environment with a value that is the same as what we'll use
5347 # in the Makefile to ensure that we'll get the same compiler
5348 # environment during configure and build time.
5349 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
5350 export MACOSX_DEPLOYMENT_TARGET
5351 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
5355 BASECFLAGS="$BASECFLAGS -mieee"
5361 case $ac_sys_system in
5362 OpenUNIX*|UnixWare*)
5363 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5366 BASECFLAGS="$BASECFLAGS -ieee -std"
5369 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
5375 if test "$Py_DEBUG" = 'true'; then
5381 if test "$ac_arch_flags"
5383 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
5386 # disable check for icc since it seems to pass, but generates a warning
5389 ac_cv_opt_olimit_ok=no
5392 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
5393 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5394 if test "${ac_cv_opt_olimit_ok+set}" = set; then
5395 $as_echo_n "(cached) " >&6
5398 CC="$CC -OPT:Olimit=0"
5399 if test "$cross_compiling" = yes; then
5400 ac_cv_opt_olimit_ok=no
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 int main() { return 0; }
5410 rm -f conftest$ac_exeext
5411 if { (ac_try="$ac_link"
5413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5414 *) ac_try_echo
=$ac_try;;
5416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5417 $as_echo "$ac_try_echo") >&5
5418 (eval "$ac_link") 2>&5
5420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5422 { (case "(($ac_try" in
5423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427 $as_echo "$ac_try_echo") >&5
5428 (eval "$ac_try") 2>&5
5430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_cv_opt_olimit_ok=yes
5434 $as_echo "$as_me: program exited with status $ac_status" >&5
5435 $as_echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5439 ac_cv_opt_olimit_ok=no
5441 rm -rf conftest.dSYM
5442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5449 { $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
5450 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
5451 if test $ac_cv_opt_olimit_ok = yes; then
5452 case $ac_sys_system in
5453 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5454 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5459 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5463 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
5464 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5465 if test "${ac_cv_olimit_ok+set}" = set; then
5466 $as_echo_n "(cached) " >&6
5469 CC="$CC -Olimit 1500"
5470 if test "$cross_compiling" = yes; then
5473 cat >conftest.$ac_ext <<_ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 int main() { return 0; }
5481 rm -f conftest$ac_exeext
5482 if { (ac_try="$ac_link"
5484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5485 *) ac_try_echo
=$ac_try;;
5487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5488 $as_echo "$ac_try_echo") >&5
5489 (eval "$ac_link") 2>&5
5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5493 { (case "(($ac_try" in
5494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5498 $as_echo "$ac_try_echo") >&5
5499 (eval "$ac_try") 2>&5
5501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5505 $as_echo "$as_me: program exited with status $ac_status" >&5
5506 $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5512 rm -rf conftest.dSYM
5513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
5521 $as_echo "$ac_cv_olimit_ok" >&6; }
5522 if test $ac_cv_olimit_ok = yes; then
5523 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5527 # Check whether GCC supports PyArg_ParseTuple format
5528 if test "$GCC" = "yes"
5530 { $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
5531 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
5533 CFLAGS="$CFLAGS -Werror"
5534 cat >conftest.$ac_ext <<_ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5541 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
5551 rm -f conftest.$ac_objext
5552 if { (ac_try="$ac_compile"
5554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5555 *) ac_try_echo
=$ac_try;;
5557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5558 $as_echo "$ac_try_echo") >&5
5559 (eval "$ac_compile") 2>conftest.er1
5561 grep -v '^ *+' conftest.er1
>conftest.err
5563 cat conftest.err
>&5
5564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest.
$ac_objext; then
5570 cat >>confdefs.h
<<\_ACEOF
5571 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
5574 { $as_echo "$as_me:$LINENO: result: yes" >&5
5575 $as_echo "yes" >&6; }
5577 $as_echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.
$ac_ext >&5
5580 { $as_echo "$as_me:$LINENO: result: no" >&5
5581 $as_echo "no" >&6; }
5585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5589 # On some compilers, pthreads are available without further options
5590 # (e.g. MacOS X). On some of these systems, the compiler will not
5591 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5592 # So we have to see first whether pthreads are available without
5593 # options before we can check whether -Kpthread improves anything.
5594 { $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5595 $as_echo_n "checking whether pthreads are available without options... " >&6; }
5596 if test "${ac_cv_pthread_is_default+set}" = set; then
5597 $as_echo_n "(cached) " >&6
5599 if test "$cross_compiling" = yes; then
5600 ac_cv_pthread_is_default
=no
5602 cat >conftest.
$ac_ext <<_ACEOF
5605 cat confdefs.h
>>conftest.
$ac_ext
5606 cat >>conftest.
$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5609 #include <pthread.h>
5611 void* routine(void* p){return NULL;}
5615 if(pthread_create(&p,NULL,routine,NULL)!=0)
5617 (void)pthread_detach(p);
5622 rm -f conftest
$ac_exeext
5623 if { (ac_try
="$ac_link"
5625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629 $as_echo "$ac_try_echo") >&5
5630 (eval "$ac_link") 2>&5
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5634 { (case "(($ac_try" in
5635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5636 *) ac_try_echo
=$ac_try;;
5638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5639 $as_echo "$ac_try_echo") >&5
5640 (eval "$ac_try") 2>&5
5642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5645 ac_cv_pthread_is_default
=yes
5650 $as_echo "$as_me: program exited with status $ac_status" >&5
5651 $as_echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.
$ac_ext >&5
5655 ac_cv_pthread_is_default
=no
5657 rm -rf conftest.dSYM
5658 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5665 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5666 $as_echo "$ac_cv_pthread_is_default" >&6; }
5669 if test $ac_cv_pthread_is_default = yes
5673 # -Kpthread, if available, provides the right #defines
5674 # and linker options to make pthread_create available
5675 # Some compilers won't report that they do not support -Kpthread,
5676 # so we need to run a program to see whether it really made the
5677 # function available.
5678 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5679 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
5680 if test "${ac_cv_kpthread+set}" = set; then
5681 $as_echo_n "(cached) " >&6
5685 if test "$cross_compiling" = yes; then
5688 cat >conftest.
$ac_ext <<_ACEOF
5691 cat confdefs.h
>>conftest.
$ac_ext
5692 cat >>conftest.
$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5695 #include <pthread.h>
5697 void* routine(void* p){return NULL;}
5701 if(pthread_create(&p,NULL,routine,NULL)!=0)
5703 (void)pthread_detach(p);
5708 rm -f conftest
$ac_exeext
5709 if { (ac_try
="$ac_link"
5711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5715 $as_echo "$ac_try_echo") >&5
5716 (eval "$ac_link") 2>&5
5718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5720 { (case "(($ac_try" in
5721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5722 *) ac_try_echo
=$ac_try;;
5724 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726 (eval "$ac_try") 2>&5
5728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5732 $as_echo "$as_me: program exited with status $ac_status" >&5
5733 $as_echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.
$ac_ext >&5
5739 rm -rf conftest.dSYM
5740 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5747 { $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5748 $as_echo "$ac_cv_kpthread" >&6; }
5751 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
5753 # -Kthread, if available, provides the right #defines
5754 # and linker options to make pthread_create available
5755 # Some compilers won't report that they do not support -Kthread,
5756 # so we need to run a program to see whether it really made the
5757 # function available.
5758 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5759 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
5760 if test "${ac_cv_kthread+set}" = set; then
5761 $as_echo_n "(cached) " >&6
5765 if test "$cross_compiling" = yes; then
5768 cat >conftest.
$ac_ext <<_ACEOF
5771 cat confdefs.h
>>conftest.
$ac_ext
5772 cat >>conftest.
$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5775 #include <pthread.h>
5777 void* routine(void* p){return NULL;}
5781 if(pthread_create(&p,NULL,routine,NULL)!=0)
5783 (void)pthread_detach(p);
5788 rm -f conftest
$ac_exeext
5789 if { (ac_try
="$ac_link"
5791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5795 $as_echo "$ac_try_echo") >&5
5796 (eval "$ac_link") 2>&5
5798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5800 { (case "(($ac_try" in
5801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5802 *) ac_try_echo
=$ac_try;;
5804 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806 (eval "$ac_try") 2>&5
5808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5812 $as_echo "$as_me: program exited with status $ac_status" >&5
5813 $as_echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.
$ac_ext >&5
5819 rm -rf conftest.dSYM
5820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5827 { $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5828 $as_echo "$ac_cv_kthread" >&6; }
5831 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
5833 # -pthread, if available, provides the right #defines
5834 # and linker options to make pthread_create available
5835 # Some compilers won't report that they do not support -pthread,
5836 # so we need to run a program to see whether it really made the
5837 # function available.
5838 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5839 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
5840 if test "${ac_cv_thread+set}" = set; then
5841 $as_echo_n "(cached) " >&6
5845 if test "$cross_compiling" = yes; then
5848 cat >conftest.
$ac_ext <<_ACEOF
5851 cat confdefs.h
>>conftest.
$ac_ext
5852 cat >>conftest.
$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5855 #include <pthread.h>
5857 void* routine(void* p){return NULL;}
5861 if(pthread_create(&p,NULL,routine,NULL)!=0)
5863 (void)pthread_detach(p);
5868 rm -f conftest
$ac_exeext
5869 if { (ac_try
="$ac_link"
5871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5875 $as_echo "$ac_try_echo") >&5
5876 (eval "$ac_link") 2>&5
5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5880 { (case "(($ac_try" in
5881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5882 *) ac_try_echo
=$ac_try;;
5884 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_try") 2>&5
5888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5892 $as_echo "$as_me: program exited with status $ac_status" >&5
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.
$ac_ext >&5
5899 rm -rf conftest.dSYM
5900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5907 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5908 $as_echo "$ac_cv_pthread" >&6; }
5911 # If we have set a CC compiler flag for thread support then
5912 # check if it works for CXX, too.
5916 { $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5917 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
5920 if test "$ac_cv_kpthread" = "yes"
5922 CXX
="$CXX -Kpthread"
5923 ac_cv_cxx_thread
=yes
5924 elif test "$ac_cv_kthread" = "yes"
5927 ac_cv_cxx_thread
=yes
5928 elif test "$ac_cv_pthread" = "yes"
5931 ac_cv_cxx_thread
=yes
5934 if test $ac_cv_cxx_thread = yes
5936 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
5937 $CXX -c conftest.
$ac_ext 2>&5
5938 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
5939 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
5941 ac_cv_cxx_thread
=yes
5947 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5948 $as_echo "$ac_cv_cxx_thread" >&6; }
5953 # checks for header files
5954 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5955 $as_echo_n "checking for ANSI C header files... " >&6; }
5956 if test "${ac_cv_header_stdc+set}" = set; then
5957 $as_echo_n "(cached) " >&6
5959 cat >conftest.
$ac_ext <<_ACEOF
5962 cat confdefs.h
>>conftest.
$ac_ext
5963 cat >>conftest.
$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5978 rm -f conftest.
$ac_objext
5979 if { (ac_try
="$ac_compile"
5981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5985 $as_echo "$ac_try_echo") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5988 grep -v '^ *+' conftest.er1 >conftest.err
5990 cat conftest.err >&5
5991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && {
5993 test -z "$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest.$ac_objext; then
5996 ac_cv_header_stdc=yes
5998 $as_echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_cv_header_stdc=no
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 if test $ac_cv_header_stdc = yes; then
6007 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then
6021 ac_cv_header_stdc=no
6027 if test $ac_cv_header_stdc = yes; then
6028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6029 cat >conftest.$ac_ext <<_ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039 $EGREP "free" >/dev/null 2>&1; then
6042 ac_cv_header_stdc=no
6048 if test $ac_cv_header_stdc = yes; then
6049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6050 if test "$cross_compiling" = yes; then
6053 cat >conftest.$ac_ext <<_ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6061 #if ((' ' & 0x0FF) == 0x020)
6062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6065 # define ISLOWER(c) \
6066 (('a' <= (c) && (c) <= 'i') \
6067 || ('j' <= (c) && (c) <= 'r') \
6068 || ('s' <= (c) && (c) <= 'z'))
6069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6077 for (i = 0; i < 256; i++)
6078 if (XOR (islower (i), ISLOWER (i))
6079 || toupper (i) != TOUPPER (i))
6084 rm -f conftest$ac_exeext
6085 if { (ac_try="$ac_link"
6087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6088 *) ac_try_echo
=$ac_try;;
6090 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6091 $as_echo "$ac_try_echo") >&5
6092 (eval "$ac_link") 2>&5
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6096 { (case "(($ac_try" in
6097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6101 $as_echo "$ac_try_echo") >&5
6102 (eval "$ac_try") 2>&5
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6108 $as_echo "$as_me: program exited with status $ac_status" >&5
6109 $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_cv_header_stdc=no
6115 rm -rf conftest.dSYM
6116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6123 $as_echo "$ac_cv_header_stdc" >&6; }
6124 if test $ac_cv_header_stdc = yes; then
6126 cat >>confdefs.h <<\_ACEOF
6127 #define STDC_HEADERS 1
6186 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6188 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6189 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6191 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
6192 sys/lock.h sys/mkdev.h sys/modem.h \
6193 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6194 sys/termio.h sys/time.h \
6195 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6196 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6197 bluetooth/bluetooth.h linux/tipc.h
6199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 $as_echo_n "checking for $ac_header... " >&6; }
6203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6204 $as_echo_n "(cached) " >&6
6206 ac_res=`eval 'as_val=${'$as_ac_Header'}
6207 $as_echo "$as_val"'`
6208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6209 $as_echo "$ac_res" >&6; }
6211 # Is the header compilable?
6212 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6213 $as_echo_n "checking $ac_header usability... " >&6; }
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 $ac_includes_default
6221 #include <$ac_header>
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6227 *) ac_try_echo
=$ac_try;;
6229 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6230 $as_echo "$ac_try_echo") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6233 grep -v '^ *+' conftest.er1
>conftest.err
6235 cat conftest.err
>&5
6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest.
$ac_objext; then
6241 ac_header_compiler
=yes
6243 $as_echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.
$ac_ext >&5
6246 ac_header_compiler
=no
6249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251 $as_echo "$ac_header_compiler" >&6; }
6253 # Is the header present?
6254 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6255 $as_echo_n "checking $ac_header presence... " >&6; }
6256 cat >conftest.
$ac_ext <<_ACEOF
6259 cat confdefs.h
>>conftest.
$ac_ext
6260 cat >>conftest.
$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <$ac_header>
6264 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6270 $as_echo "$ac_try_echo") >&5
6271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6273 grep -v '^ *+' conftest.er1 >conftest.err
6275 cat conftest.err >&5
6276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } >/dev/null && {
6278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6279 test ! -s conftest.err
6281 ac_header_preproc=yes
6283 $as_echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_header_preproc=no
6289 rm -f conftest.err conftest.$ac_ext
6290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6291 $as_echo "$ac_header_preproc" >&6; }
6293 # So? What about this header?
6294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6297 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6300 ac_header_preproc=yes
6303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6304 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6306 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6308 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6310 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6314 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6316 ## -------------------------------------- ##
6317 ## Report this to http://bugs.python.org/ ##
6318 ## -------------------------------------- ##
6320 ) | sed "s/^/$as_me: WARNING: /" >&2
6323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 $as_echo_n "checking for $ac_header... " >&6; }
6325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6326 $as_echo_n "(cached) " >&6
6328 eval "$as_ac_Header=\$ac_header_preproc"
6330 ac_res=`eval 'as_val=${'$as_ac_Header'}
6331 $as_echo "$as_val"'`
6332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6336 as_val=`eval 'as_val=${'$as_ac_Header'}
6337 $as_echo "$as_val"'`
6338 if test "x$as_val" = x""yes; then
6339 cat >>confdefs.h <<_ACEOF
6340 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6354 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
6355 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6356 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6358 $as_echo_n "(cached) " >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <sys/types.h>
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6382 *) ac_try_echo
=$ac_try;;
6384 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6388 grep -v '^ *+' conftest.er1
>conftest.err
6390 cat conftest.err
>&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.
$ac_objext; then
6396 eval "$as_ac_Header=yes"
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.
$ac_ext >&5
6401 eval "$as_ac_Header=no"
6404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6406 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6407 $as_echo "$as_val"'`
6408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6409 $as_echo "$ac_res" >&6; }
6410 as_val
=`eval 'as_val=${'$as_ac_Header'}
6411 $as_echo "$as_val"'`
6412 if test "x$as_val" = x
""yes; then
6413 cat >>confdefs.h
<<_ACEOF
6414 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6417 ac_header_dirent
=$ac_hdr; break
6421 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6422 if test $ac_header_dirent = dirent.h
; then
6423 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6424 $as_echo_n "checking for library containing opendir... " >&6; }
6425 if test "${ac_cv_search_opendir+set}" = set; then
6426 $as_echo_n "(cached) " >&6
6428 ac_func_search_save_LIBS
=$LIBS
6429 cat >conftest.
$ac_ext <<_ACEOF
6432 cat confdefs.h
>>conftest.
$ac_ext
6433 cat >>conftest.
$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6436 /* Override any GCC internal prototype to avoid an error.
6437 Use char because int might match the return type of a GCC
6438 builtin and then its argument prototype would still apply. */
6451 for ac_lib
in '' dir
; do
6452 if test -z "$ac_lib"; then
6453 ac_res
="none required"
6456 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6458 rm -f conftest.
$ac_objext conftest
$ac_exeext
6459 if { (ac_try
="$ac_link"
6461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6465 $as_echo "$ac_try_echo") >&5
6466 (eval "$ac_link") 2>conftest.er1
6468 grep -v '^ *+' conftest.er1 >conftest.err
6470 cat conftest.err >&5
6471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest$ac_exeext && {
6476 test "$cross_compiling" = yes ||
6477 $as_test_x conftest$ac_exeext
6479 ac_cv_search_opendir=$ac_res
6481 $as_echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6487 rm -rf conftest.dSYM
6488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6490 if test "${ac_cv_search_opendir+set}" = set; then
6494 if test "${ac_cv_search_opendir+set}" = set; then
6497 ac_cv_search_opendir=no
6500 LIBS=$ac_func_search_save_LIBS
6502 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6503 $as_echo "$ac_cv_search_opendir" >&6; }
6504 ac_res=$ac_cv_search_opendir
6505 if test "$ac_res" != no; then
6506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6511 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6512 $as_echo_n "checking for library containing opendir... " >&6; }
6513 if test "${ac_cv_search_opendir+set}" = set; then
6514 $as_echo_n "(cached) " >&6
6516 ac_func_search_save_LIBS=$LIBS
6517 cat >conftest.$ac_ext <<_ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6524 /* Override any GCC internal prototype to avoid an error.
6525 Use char because int might match the return type of a GCC
6526 builtin and then its argument prototype would still apply. */
6539 for ac_lib in '' x; do
6540 if test -z "$ac_lib"; then
6541 ac_res="none required"
6544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6546 rm -f conftest.$ac_objext conftest$ac_exeext
6547 if { (ac_try="$ac_link"
6549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6550 *) ac_try_echo
=$ac_try;;
6552 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6553 $as_echo "$ac_try_echo") >&5
6554 (eval "$ac_link") 2>conftest.er1
6556 grep -v '^ *+' conftest.er1
>conftest.err
6558 cat conftest.err
>&5
6559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest
$ac_exeext && {
6564 test "$cross_compiling" = yes ||
6565 $as_test_x conftest
$ac_exeext
6567 ac_cv_search_opendir
=$ac_res
6569 $as_echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.
$ac_ext >&5
6575 rm -rf conftest.dSYM
6576 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6578 if test "${ac_cv_search_opendir+set}" = set; then
6582 if test "${ac_cv_search_opendir+set}" = set; then
6585 ac_cv_search_opendir
=no
6588 LIBS
=$ac_func_search_save_LIBS
6590 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6591 $as_echo "$ac_cv_search_opendir" >&6; }
6592 ac_res
=$ac_cv_search_opendir
6593 if test "$ac_res" != no
; then
6594 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6600 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6601 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6602 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6603 $as_echo_n "(cached) " >&6
6605 cat >conftest.
$ac_ext <<_ACEOF
6608 cat confdefs.h
>>conftest.
$ac_ext
6609 cat >>conftest.
$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <sys/types.h>
6615 return makedev(0, 0);
6620 rm -f conftest.
$ac_objext conftest
$ac_exeext
6621 if { (ac_try
="$ac_link"
6623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6627 $as_echo "$ac_try_echo") >&5
6628 (eval "$ac_link") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest$ac_exeext && {
6638 test "$cross_compiling" = yes ||
6639 $as_test_x conftest$ac_exeext
6641 ac_cv_header_sys_types_h_makedev=yes
6643 $as_echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_cv_header_sys_types_h_makedev=no
6649 rm -rf conftest.dSYM
6650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6651 conftest$ac_exeext conftest.$ac_ext
6654 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6655 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6657 if test $ac_cv_header_sys_types_h_makedev = no; then
6658 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6659 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6660 $as_echo_n "checking for sys/mkdev.h... " >&6; }
6661 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6662 $as_echo_n "(cached) " >&6
6664 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6665 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
6667 # Is the header compilable?
6668 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6669 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 $ac_includes_default
6677 #include <sys/mkdev.h>
6679 rm -f conftest.$ac_objext
6680 if { (ac_try="$ac_compile"
6682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6683 *) ac_try_echo
=$ac_try;;
6685 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6686 $as_echo "$ac_try_echo") >&5
6687 (eval "$ac_compile") 2>conftest.er1
6689 grep -v '^ *+' conftest.er1
>conftest.err
6691 cat conftest.err
>&5
6692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest.
$ac_objext; then
6697 ac_header_compiler
=yes
6699 $as_echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.
$ac_ext >&5
6702 ac_header_compiler
=no
6705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6706 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6707 $as_echo "$ac_header_compiler" >&6; }
6709 # Is the header present?
6710 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6711 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
6712 cat >conftest.
$ac_ext <<_ACEOF
6715 cat confdefs.h
>>conftest.
$ac_ext
6716 cat >>conftest.
$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 #include <sys/mkdev.h>
6720 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev/null && {
6734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6737 ac_header_preproc=yes
6739 $as_echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 ac_header_preproc=no
6745 rm -f conftest.err conftest.$ac_ext
6746 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6747 $as_echo "$ac_header_preproc" >&6; }
6749 # So? What about this header?
6750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6752 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6753 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6754 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6755 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6756 ac_header_preproc=yes
6759 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6760 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6761 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6762 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6763 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6764 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6765 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6766 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6767 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6768 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6769 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6770 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6772 ## -------------------------------------- ##
6773 ## Report this to http://bugs.python.org/ ##
6774 ## -------------------------------------- ##
6776 ) | sed "s/^/$as_me: WARNING: /" >&2
6779 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6780 $as_echo_n "checking for sys/mkdev.h... " >&6; }
6781 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6782 $as_echo_n "(cached) " >&6
6784 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6787 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
6790 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
6792 cat >>confdefs.h <<\_ACEOF
6793 #define MAJOR_IN_MKDEV 1
6800 if test $ac_cv_header_sys_mkdev_h = no; then
6801 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6802 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6803 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
6804 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6805 $as_echo_n "(cached) " >&6
6807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6808 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
6810 # Is the header compilable?
6811 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6812 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
6813 cat >conftest.$ac_ext <<_ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_includes_default
6820 #include <sys/sysmacros.h>
6822 rm -f conftest.$ac_objext
6823 if { (ac_try="$ac_compile"
6825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6826 *) ac_try_echo
=$ac_try;;
6828 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6829 $as_echo "$ac_try_echo") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1
>conftest.err
6834 cat conftest.err
>&5
6835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.
$ac_objext; then
6840 ac_header_compiler
=yes
6842 $as_echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.
$ac_ext >&5
6845 ac_header_compiler
=no
6848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6849 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6850 $as_echo "$ac_header_compiler" >&6; }
6852 # Is the header present?
6853 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6854 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
6855 cat >conftest.
$ac_ext <<_ACEOF
6858 cat confdefs.h
>>conftest.
$ac_ext
6859 cat >>conftest.
$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <sys/sysmacros.h>
6863 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6869 $as_echo "$ac_try_echo") >&5
6870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } >/dev/null && {
6877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6880 ac_header_preproc=yes
6882 $as_echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_header_preproc=no
6888 rm -f conftest.err conftest.$ac_ext
6889 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6890 $as_echo "$ac_header_preproc" >&6; }
6892 # So? What about this header?
6893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6895 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6896 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6897 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6898 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6899 ac_header_preproc=yes
6902 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6903 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6904 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6905 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6906 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6907 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6908 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6909 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6910 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6911 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6912 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6913 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6915 ## -------------------------------------- ##
6916 ## Report this to http://bugs.python.org/ ##
6917 ## -------------------------------------- ##
6919 ) | sed "s/^/$as_me: WARNING: /" >&2
6922 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6923 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
6924 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6925 $as_echo_n "(cached) " >&6
6927 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6929 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6930 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
6933 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define MAJOR_IN_SYSMACROS 1
6946 # On Solaris, term.h requires curses.h
6948 for ac_header in term.h
6950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6952 $as_echo_n "checking for $ac_header... " >&6; }
6953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6954 $as_echo_n "(cached) " >&6
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6963 #ifdef HAVE_CURSES_H
6968 #include <$ac_header>
6970 rm -f conftest.$ac_objext
6971 if { (ac_try="$ac_compile"
6973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6974 *) ac_try_echo
=$ac_try;;
6976 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6977 $as_echo "$ac_try_echo") >&5
6978 (eval "$ac_compile") 2>conftest.er1
6980 grep -v '^ *+' conftest.er1
>conftest.err
6982 cat conftest.err
>&5
6983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest.
$ac_objext; then
6988 eval "$as_ac_Header=yes"
6990 $as_echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.
$ac_ext >&5
6993 eval "$as_ac_Header=no"
6996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6998 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6999 $as_echo "$as_val"'`
7000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7001 $as_echo "$ac_res" >&6; }
7002 as_val
=`eval 'as_val=${'$as_ac_Header'}
7003 $as_echo "$as_val"'`
7004 if test "x$as_val" = x
""yes; then
7005 cat >>confdefs.h
<<_ACEOF
7006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7014 # On Linux, netlink.h requires asm/types.h
7016 for ac_header
in linux
/netlink.h
7018 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7019 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7020 $as_echo_n "checking for $ac_header... " >&6; }
7021 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7022 $as_echo_n "(cached) " >&6
7024 cat >conftest.
$ac_ext <<_ACEOF
7027 cat confdefs.h
>>conftest.
$ac_ext
7028 cat >>conftest.
$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7031 #ifdef HAVE_ASM_TYPES_H
7032 #include <asm/types.h>
7034 #ifdef HAVE_SYS_SOCKET_H
7035 #include <sys/socket.h>
7039 #include <$ac_header>
7041 rm -f conftest.
$ac_objext
7042 if { (ac_try
="$ac_compile"
7044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048 $as_echo "$ac_try_echo") >&5
7049 (eval "$ac_compile") 2>conftest.er1
7051 grep -v '^ *+' conftest.er1 >conftest.err
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest.$ac_objext; then
7059 eval "$as_ac_Header=yes"
7061 $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7064 eval "$as_ac_Header=no"
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 ac_res=`eval 'as_val=${'$as_ac_Header'}
7070 $as_echo "$as_val"'`
7071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7072 $as_echo "$ac_res" >&6; }
7073 as_val=`eval 'as_val=${'$as_ac_Header'}
7074 $as_echo "$as_val"'`
7075 if test "x$as_val" = x""yes; then
7076 cat >>confdefs.h <<_ACEOF
7077 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7085 # checks for typedefs
7087 { $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
7088 $as_echo_n "checking for clock_t in time.h... " >&6; }
7089 cat >conftest.$ac_ext <<_ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "clock_t" >/dev/null 2>&1; then
7104 cat >>confdefs.h <<\_ACEOF
7105 #define clock_t long
7112 { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
7113 $as_echo "$was_it_defined" >&6; }
7115 # Check whether using makedev requires defining _OSF_SOURCE
7116 { $as_echo "$as_me:$LINENO: checking for makedev" >&5
7117 $as_echo_n "checking for makedev... " >&6; }
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7125 #if defined(MAJOR_IN_MKDEV)
7126 #include <sys/mkdev.h>
7127 #elif defined(MAJOR_IN_SYSMACROS)
7128 #include <sys/sysmacros.h>
7130 #include <sys/types.h>
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (ac_try="$ac_link"
7143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7144 *) ac_try_echo
=$ac_try;;
7146 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7147 $as_echo "$ac_try_echo") >&5
7148 (eval "$ac_link") 2>conftest.er1
7150 grep -v '^ *+' conftest.er1
>conftest.err
7152 cat conftest.err
>&5
7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest
$ac_exeext && {
7158 test "$cross_compiling" = yes ||
7159 $as_test_x conftest
$ac_exeext
7161 ac_cv_has_makedev
=yes
7163 $as_echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.
$ac_ext >&5
7166 ac_cv_has_makedev
=no
7169 rm -rf conftest.dSYM
7170 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7171 conftest
$ac_exeext conftest.
$ac_ext
7172 if test "$ac_cv_has_makedev" = "no"; then
7173 # we didn't link, try if _OSF_SOURCE will allow us to link
7174 cat >conftest.
$ac_ext <<_ACEOF
7177 cat confdefs.h
>>conftest.
$ac_ext
7178 cat >>conftest.
$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7181 #define _OSF_SOURCE 1
7182 #include <sys/types.h>
7192 rm -f conftest.
$ac_objext conftest
$ac_exeext
7193 if { (ac_try
="$ac_link"
7195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199 $as_echo "$ac_try_echo") >&5
7200 (eval "$ac_link") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1 >conftest.err
7204 cat conftest.err >&5
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest$ac_exeext && {
7210 test "$cross_compiling" = yes ||
7211 $as_test_x conftest$ac_exeext
7213 ac_cv_has_makedev=yes
7215 $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_has_makedev=no
7221 rm -rf conftest.dSYM
7222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223 conftest$ac_exeext conftest.$ac_ext
7224 if test "$ac_cv_has_makedev" = "yes"; then
7226 cat >>confdefs.h <<\_ACEOF
7227 #define _OSF_SOURCE 1
7232 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
7233 $as_echo "$ac_cv_has_makedev" >&6; }
7234 if test "$ac_cv_has_makedev" = "yes"; then
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_MAKEDEV 1
7242 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7243 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7244 # defined, but the compiler does not support pragma redefine_extname,
7245 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7246 # structures (such as rlimit64) without declaring them. As a
7247 # work-around, disable LFS on such configurations
7250 { $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
7251 $as_echo_n "checking Solaris LFS bug... " >&6; }
7252 cat >conftest.$ac_ext <<_ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7259 #define _LARGEFILE_SOURCE 1
7260 #define _FILE_OFFSET_BITS 64
7261 #include <sys/resource.h>
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7275 *) ac_try_echo
=$ac_try;;
7277 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7281 grep -v '^ *+' conftest.er1
>conftest.err
7283 cat conftest.err
>&5
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.
$ac_objext; then
7291 $as_echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.
$ac_ext >&5
7297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7298 { $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
7299 $as_echo "$sol_lfs_bug" >&6; }
7300 if test "$sol_lfs_bug" = "yes"; then
7304 if test "$use_lfs" = "yes"; then
7305 # Two defines needed to enable largefile support on various platforms
7306 # These may affect some typedefs
7308 cat >>confdefs.h
<<\_ACEOF
7309 #define _LARGEFILE_SOURCE 1
7313 cat >>confdefs.h
<<\_ACEOF
7314 #define _FILE_OFFSET_BITS 64
7319 # Add some code to confdefs.h so that the test for off_t works on SCO
7320 cat >> confdefs.h
<<\EOF
7326 # Type availability checks
7327 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7328 $as_echo_n "checking for mode_t... " >&6; }
7329 if test "${ac_cv_type_mode_t+set}" = set; then
7330 $as_echo_n "(cached) " >&6
7332 ac_cv_type_mode_t
=no
7333 cat >conftest.
$ac_ext <<_ACEOF
7336 cat confdefs.h
>>conftest.
$ac_ext
7337 cat >>conftest.
$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7343 if (sizeof (mode_t))
7349 rm -f conftest.
$ac_objext
7350 if { (ac_try
="$ac_compile"
7352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7367 cat >conftest.$ac_ext <<_ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7377 if (sizeof ((mode_t)))
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7387 *) ac_try_echo
=$ac_try;;
7389 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7390 $as_echo "$ac_try_echo") >&5
7391 (eval "$ac_compile") 2>conftest.er1
7393 grep -v '^ *+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
7400 } && test -s conftest.
$ac_objext; then
7403 $as_echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.
$ac_ext >&5
7406 ac_cv_type_mode_t
=yes
7409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 $as_echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.
$ac_ext >&5
7417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7419 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7420 $as_echo "$ac_cv_type_mode_t" >&6; }
7421 if test "x$ac_cv_type_mode_t" = x
""yes; then
7425 cat >>confdefs.h
<<_ACEOF
7431 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7432 $as_echo_n "checking for off_t... " >&6; }
7433 if test "${ac_cv_type_off_t+set}" = set; then
7434 $as_echo_n "(cached) " >&6
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7453 rm -f conftest.
$ac_objext
7454 if { (ac_try
="$ac_compile"
7456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 cat >conftest.$ac_ext <<_ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7481 if (sizeof ((off_t)))
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7491 *) ac_try_echo
=$ac_try;;
7493 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7494 $as_echo "$ac_try_echo") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1
>conftest.err
7499 cat conftest.err
>&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.
$ac_objext; then
7507 $as_echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.
$ac_ext >&5
7510 ac_cv_type_off_t
=yes
7513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7515 $as_echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.
$ac_ext >&5
7521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7523 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7524 $as_echo "$ac_cv_type_off_t" >&6; }
7525 if test "x$ac_cv_type_off_t" = x
""yes; then
7529 cat >>confdefs.h
<<_ACEOF
7530 #define off_t long int
7535 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7536 $as_echo_n "checking for pid_t... " >&6; }
7537 if test "${ac_cv_type_pid_t+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7541 cat >conftest.
$ac_ext <<_ACEOF
7544 cat confdefs.h
>>conftest.
$ac_ext
7545 cat >>conftest.
$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 $ac_includes_default
7557 rm -f conftest.
$ac_objext
7558 if { (ac_try
="$ac_compile"
7560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7567 grep -v '^ *+' conftest.er1 >conftest.err
7569 cat conftest.err >&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7585 if (sizeof ((pid_t)))
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7595 *) ac_try_echo
=$ac_try;;
7597 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7598 $as_echo "$ac_try_echo") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1
>conftest.err
7603 cat conftest.err
>&5
7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.
$ac_objext; then
7611 $as_echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.
$ac_ext >&5
7614 ac_cv_type_pid_t
=yes
7617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 $as_echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.
$ac_ext >&5
7625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7627 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7628 $as_echo "$ac_cv_type_pid_t" >&6; }
7629 if test "x$ac_cv_type_pid_t" = x
""yes; then
7633 cat >>confdefs.h
<<_ACEOF
7639 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7640 $as_echo_n "checking return type of signal handlers... " >&6; }
7641 if test "${ac_cv_type_signal+set}" = set; then
7642 $as_echo_n "(cached) " >&6
7644 cat >conftest.
$ac_ext <<_ACEOF
7647 cat confdefs.h
>>conftest.
$ac_ext
7648 cat >>conftest.
$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 #include <sys/types.h>
7656 return *(signal (0, 0)) (0) == 1;
7661 rm -f conftest.
$ac_objext
7662 if { (ac_try
="$ac_compile"
7664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7668 $as_echo "$ac_try_echo") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 ac_cv_type_signal=int
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_type_signal=void
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7690 $as_echo "$ac_cv_type_signal" >&6; }
7692 cat >>confdefs.h <<_ACEOF
7693 #define RETSIGTYPE $ac_cv_type_signal
7697 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7698 $as_echo_n "checking for size_t... " >&6; }
7699 if test "${ac_cv_type_size_t+set}" = set; then
7700 $as_echo_n "(cached) " >&6
7702 ac_cv_type_size_t=no
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 $ac_includes_default
7713 if (sizeof (size_t))
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7723 *) ac_try_echo
=$ac_try;;
7725 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7726 $as_echo "$ac_try_echo") >&5
7727 (eval "$ac_compile") 2>conftest.er1
7729 grep -v '^ *+' conftest.er1
>conftest.err
7731 cat conftest.err
>&5
7732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } && {
7734 test -z "$ac_c_werror_flag" ||
7735 test ! -s conftest.err
7736 } && test -s conftest.
$ac_objext; then
7737 cat >conftest.
$ac_ext <<_ACEOF
7740 cat confdefs.h
>>conftest.
$ac_ext
7741 cat >>conftest.
$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 $ac_includes_default
7747 if (sizeof ((size_t)))
7753 rm -f conftest.
$ac_objext
7754 if { (ac_try
="$ac_compile"
7756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7760 $as_echo "$ac_try_echo") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7773 $as_echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ac_cv_type_size_t=yes
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 $as_echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7790 $as_echo "$ac_cv_type_size_t" >&6; }
7791 if test "x$ac_cv_type_size_t" = x""yes; then
7795 cat >>confdefs.h <<_ACEOF
7796 #define size_t unsigned int
7801 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7802 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7803 if test "${ac_cv_type_uid_t+set}" = set; then
7804 $as_echo_n "(cached) " >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <sys/types.h>
7815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7816 $EGREP "uid_t" >/dev/null 2>&1; then
7817 ac_cv_type_uid_t=yes
7824 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7825 $as_echo "$ac_cv_type_uid_t" >&6; }
7826 if test $ac_cv_type_uid_t = no; then
7828 cat >>confdefs.h <<\_ACEOF
7833 cat >>confdefs.h <<\_ACEOF
7840 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7841 $as_echo_n "checking for uint32_t... " >&6; }
7842 if test "${ac_cv_c_uint32_t+set}" = set; then
7843 $as_echo_n "(cached) " >&6
7846 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7847 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 $ac_includes_default
7858 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7869 *) ac_try_echo
=$ac_try;;
7871 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7872 $as_echo "$ac_try_echo") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7875 grep -v '^ *+' conftest.er1
>conftest.err
7877 cat conftest.err
>&5
7878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.
$ac_objext; then
7884 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7885 *) ac_cv_c_uint32_t
=$ac_type ;;
7889 $as_echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.
$ac_ext >&5
7895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7896 test "$ac_cv_c_uint32_t" != no
&& break
7899 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7900 $as_echo "$ac_cv_c_uint32_t" >&6; }
7901 case $ac_cv_c_uint32_t in #(
7905 cat >>confdefs.h
<<\_ACEOF
7910 cat >>confdefs.h
<<_ACEOF
7911 #define uint32_t $ac_cv_c_uint32_t
7917 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7918 $as_echo_n "checking for uint64_t... " >&6; }
7919 if test "${ac_cv_c_uint64_t+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7923 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7924 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7925 cat >conftest.
$ac_ext <<_ACEOF
7928 cat confdefs.h
>>conftest.
$ac_ext
7929 cat >>conftest.
$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7935 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7942 rm -f conftest.
$ac_objext
7943 if { (ac_try
="$ac_compile"
7945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7961 uint64_t) ac_cv_c_uint64_t=yes ;;
7962 *) ac_cv_c_uint64_t=$ac_type ;;
7966 $as_echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 test "$ac_cv_c_uint64_t" != no && break
7976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7977 $as_echo "$ac_cv_c_uint64_t" >&6; }
7978 case $ac_cv_c_uint64_t in #(
7982 cat >>confdefs.h <<\_ACEOF
7987 cat >>confdefs.h <<_ACEOF
7988 #define uint64_t $ac_cv_c_uint64_t
7994 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7995 $as_echo_n "checking for int32_t... " >&6; }
7996 if test "${ac_cv_c_int32_t+set}" = set; then
7997 $as_echo_n "(cached) " >&6
8000 for ac_type in 'int32_t' 'int' 'long int' \
8001 'long long int' 'short int' 'signed char'; do
8002 cat >conftest.$ac_ext <<_ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 $ac_includes_default
8012 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8023 *) ac_try_echo
=$ac_try;;
8025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8026 $as_echo "$ac_try_echo") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1
>conftest.err
8031 cat conftest.err
>&5
8032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.
$ac_objext; then
8037 cat >conftest.
$ac_ext <<_ACEOF
8040 cat confdefs.h
>>conftest.
$ac_ext
8041 cat >>conftest.
$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 $ac_includes_default
8047 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8048 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8055 rm -f conftest.
$ac_objext
8056 if { (ac_try
="$ac_compile"
8058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8062 $as_echo "$ac_try_echo") >&5
8063 (eval "$ac_compile") 2>conftest.er1
8065 grep -v '^ *+' conftest.er1 >conftest.err
8067 cat conftest.err >&5
8068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } && {
8070 test -z "$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 } && test -s conftest.$ac_objext; then
8075 $as_echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8079 int32_t) ac_cv_c_int32_t=yes ;;
8080 *) ac_cv_c_int32_t=$ac_type ;;
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 $as_echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 test "$ac_cv_c_int32_t" != no && break
8097 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8098 $as_echo "$ac_cv_c_int32_t" >&6; }
8099 case $ac_cv_c_int32_t in #(
8103 cat >>confdefs.h <<_ACEOF
8104 #define int32_t $ac_cv_c_int32_t
8110 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
8111 $as_echo_n "checking for int64_t... " >&6; }
8112 if test "${ac_cv_c_int64_t+set}" = set; then
8113 $as_echo_n "(cached) " >&6
8116 for ac_type in 'int64_t' 'int' 'long int' \
8117 'long long int' 'short int' 'signed char'; do
8118 cat >conftest.$ac_ext <<_ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 $ac_includes_default
8128 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8139 *) ac_try_echo
=$ac_try;;
8141 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8142 $as_echo "$ac_try_echo") >&5
8143 (eval "$ac_compile") 2>conftest.er1
8145 grep -v '^ *+' conftest.er1
>conftest.err
8147 cat conftest.err
>&5
8148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } && {
8150 test -z "$ac_c_werror_flag" ||
8151 test ! -s conftest.err
8152 } && test -s conftest.
$ac_objext; then
8153 cat >conftest.
$ac_ext <<_ACEOF
8156 cat confdefs.h
>>conftest.
$ac_ext
8157 cat >>conftest.
$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8163 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
8164 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
8171 rm -f conftest.
$ac_objext
8172 if { (ac_try
="$ac_compile"
8174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8178 $as_echo "$ac_try_echo") >&5
8179 (eval "$ac_compile") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest.$ac_objext; then
8191 $as_echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8195 int64_t) ac_cv_c_int64_t=yes ;;
8196 *) ac_cv_c_int64_t=$ac_type ;;
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 $as_echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 test "$ac_cv_c_int64_t" != no && break
8213 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
8214 $as_echo "$ac_cv_c_int64_t" >&6; }
8215 case $ac_cv_c_int64_t in #(
8219 cat >>confdefs.h <<_ACEOF
8220 #define int64_t $ac_cv_c_int64_t
8225 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8226 $as_echo_n "checking for ssize_t... " >&6; }
8227 if test "${ac_cv_type_ssize_t+set}" = set; then
8228 $as_echo_n "(cached) " >&6
8230 ac_cv_type_ssize_t=no
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8241 if (sizeof (ssize_t))
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8251 *) ac_try_echo
=$ac_try;;
8253 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8254 $as_echo "$ac_try_echo") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1
>conftest.err
8259 cat conftest.err
>&5
8260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.
$ac_objext; then
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8275 if (sizeof ((ssize_t)))
8281 rm -f conftest.
$ac_objext
8282 if { (ac_try
="$ac_compile"
8284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8288 $as_echo "$ac_try_echo") >&5
8289 (eval "$ac_compile") 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } && {
8296 test -z "$ac_c_werror_flag" ||
8297 test ! -s conftest.err
8298 } && test -s conftest.$ac_objext; then
8301 $as_echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_cv_type_ssize_t=yes
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 $as_echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8318 $as_echo "$ac_cv_type_ssize_t" >&6; }
8319 if test "x$ac_cv_type_ssize_t" = x""yes; then
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_SSIZE_T 1
8328 # Sizes of various common basic types
8329 # ANSI C requires sizeof(char) == 1, so no need to check it
8330 # The cast to long int works around a bug in the HP C Compiler
8331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8332 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
8333 # This bug is HP SR number 8606223364.
8334 { $as_echo "$as_me:$LINENO: checking size of int" >&5
8335 $as_echo_n "checking size of int... " >&6; }
8336 if test "${ac_cv_sizeof_int+set}" = set; then
8337 $as_echo_n "(cached) " >&6
8339 if test "$cross_compiling" = yes; then
8340 # Depending upon the size, compute the lo and hi bounds.
8341 cat >conftest.$ac_ext <<_ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8351 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8365 $as_echo "$ac_try_echo") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8368 grep -v '^
*+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8388 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403 (eval "$ac_compile") 2>conftest.er1
8405 grep -v '^
*+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest.$ac_objext; then
8413 ac_hi=$ac_mid; break
8415 $as_echo "$as_me: failed program was:" >&5
8416 sed 's
/^
/|
/' conftest.$ac_ext >&5
8418 ac_lo=`expr $ac_mid + 1`
8419 if test $ac_lo -le $ac_mid; then
8423 ac_mid=`expr 2 '*' $ac_mid + 1`
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 $as_echo "$as_me: failed program was:" >&5
8430 sed 's
/^
/|
/' conftest.$ac_ext >&5
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 $ac_includes_default
8442 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8456 $as_echo "$ac_try_echo") >&5
8457 (eval "$ac_compile") 2>conftest.er1
8459 grep -v '^
*+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } && {
8464 test -z "$ac_c_werror_flag" ||
8465 test ! -s conftest.err
8466 } && test -s conftest.$ac_objext; then
8469 cat >conftest.$ac_ext <<_ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 $ac_includes_default
8479 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8493 $as_echo "$ac_try_echo") >&5
8494 (eval "$ac_compile") 2>conftest.er1
8496 grep -v '^
*+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } && {
8501 test -z "$ac_c_werror_flag" ||
8502 test ! -s conftest.err
8503 } && test -s conftest.$ac_objext; then
8504 ac_lo=$ac_mid; break
8506 $as_echo "$as_me: failed program was:" >&5
8507 sed 's
/^
/|
/' conftest.$ac_ext >&5
8509 ac_hi=`expr '(' $ac_mid ')' - 1`
8510 if test $ac_mid -le $ac_hi; then
8514 ac_mid=`expr 2 '*' $ac_mid`
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 $as_echo "$as_me: failed program was:" >&5
8521 sed 's
/^
/|
/' conftest.$ac_ext >&5
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 # Binary search between lo and hi bounds.
8531 while test "x$ac_lo" != "x$ac_hi"; do
8532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8543 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
8550 rm -f conftest.$ac_objext
8551 if { (ac_try="$ac_compile"
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8557 $as_echo "$ac_try_echo") >&5
8558 (eval "$ac_compile") 2>conftest.er1
8560 grep -v '^
*+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && {
8565 test -z "$ac_c_werror_flag" ||
8566 test ! -s conftest.err
8567 } && test -s conftest.$ac_objext; then
8570 $as_echo "$as_me: failed program was:" >&5
8571 sed 's
/^
/|
/' conftest.$ac_ext >&5
8573 ac_lo=`expr '(' $ac_mid ')' + 1`
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 ?*) ac_cv_sizeof_int=$ac_lo;;
8580 '') if test "$ac_cv_type_int" = yes; then
8581 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8582 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
8583 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8584 See \`config.log
' for more details." >&5
8585 $as_echo "$as_me: error: cannot compute sizeof (int)
8586 See \`config.log' for more details.
" >&2;}
8587 { (exit 77); exit 77; }; }; }
8593 cat >conftest.$ac_ext <<_ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 $ac_includes_default
8600 static long int longval () { return (long int) (sizeof (int)); }
8601 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
8608 FILE *f = fopen ("conftest.val
", "w
");
8611 if (((long int) (sizeof (int))) < 0)
8613 long int i = longval ();
8614 if (i != ((long int) (sizeof (int))))
8616 fprintf (f, "%ld
", i);
8620 unsigned long int i = ulongval ();
8621 if (i != ((long int) (sizeof (int))))
8623 fprintf (f, "%lu
", i);
8625 /* Do not output a trailing newline, as this causes \r\n confusion
8626 on some platforms. */
8627 return ferror (f) || fclose (f) != 0;
8633 rm -f conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_link") 2>&5
8643 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8645 { (case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_try") 2>&5
8653 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_sizeof_int=`cat conftest.val`
8657 $as_echo "$as_me: program exited with status
$ac_status" >&5
8658 $as_echo "$as_me: failed program was
:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8662 if test "$ac_cv_type_int" = yes; then
8663 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
8664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8665 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8666 See \`config.log' for more details.
" >&5
8667 $as_echo "$as_me: error
: cannot compute sizeof
(int
)
8668 See \
`config.log' for more details." >&2;}
8669 { (exit 77); exit 77; }; }; }
8674 rm -rf conftest.dSYM
8675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8679 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8680 $as_echo "$ac_cv_sizeof_int" >&6; }
8684 cat >>confdefs.h <<_ACEOF
8685 #define SIZEOF_INT $ac_cv_sizeof_int
8689 # The cast to long int works around a bug in the HP C Compiler
8690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8691 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
8692 # This bug is HP SR number 8606223364.
8693 { $as_echo "$as_me:$LINENO: checking size of long" >&5
8694 $as_echo_n "checking size of long... " >&6; }
8695 if test "${ac_cv_sizeof_long+set}" = set; then
8696 $as_echo_n "(cached) " >&6
8698 if test "$cross_compiling" = yes; then
8699 # Depending upon the size, compute the lo and hi bounds.
8700 cat >conftest.$ac_ext <<_ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 $ac_includes_default
8710 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
8717 rm -f conftest.$ac_objext
8718 if { (ac_try="$ac_compile"
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8724 $as_echo "$ac_try_echo") >&5
8725 (eval "$ac_compile") 2>conftest.er1
8727 grep -v '^
*+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && {
8732 test -z "$ac_c_werror_flag" ||
8733 test ! -s conftest.err
8734 } && test -s conftest.$ac_objext; then
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8747 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8761 $as_echo "$ac_try_echo") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8764 grep -v '^
*+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 ac_hi=$ac_mid; break
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's
/^
/|
/' conftest.$ac_ext >&5
8777 ac_lo=`expr $ac_mid + 1`
8778 if test $ac_lo -le $ac_mid; then
8782 ac_mid=`expr 2 '*' $ac_mid + 1`
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 $as_echo "$as_me: failed program was:" >&5
8789 sed 's
/^
/|
/' conftest.$ac_ext >&5
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8801 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
8808 rm -f conftest.$ac_objext
8809 if { (ac_try="$ac_compile"
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815 $as_echo "$ac_try_echo") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8818 grep -v '^
*+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.$ac_objext; then
8828 cat >conftest.$ac_ext <<_ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 $ac_includes_default
8838 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8852 $as_echo "$ac_try_echo") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8855 grep -v '^
*+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.$ac_objext; then
8863 ac_lo=$ac_mid; break
8865 $as_echo "$as_me: failed program was:" >&5
8866 sed 's
/^
/|
/' conftest.$ac_ext >&5
8868 ac_hi=`expr '(' $ac_mid ')' - 1`
8869 if test $ac_mid -le $ac_hi; then
8873 ac_mid=`expr 2 '*' $ac_mid`
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 $as_echo "$as_me: failed program was:" >&5
8880 sed 's
/^
/|
/' conftest.$ac_ext >&5
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 # Binary search between lo and hi bounds.
8890 while test "x$ac_lo" != "x$ac_hi"; do
8891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 $ac_includes_default
8902 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8916 $as_echo "$ac_try_echo") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8919 grep -v '^
*+' conftest.er1 >conftest.err
8921 cat conftest.err >&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8929 $as_echo "$as_me: failed program was:" >&5
8930 sed 's
/^
/|
/' conftest.$ac_ext >&5
8932 ac_lo=`expr '(' $ac_mid ')' + 1`
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 ?*) ac_cv_sizeof_long=$ac_lo;;
8939 '') if test "$ac_cv_type_long" = yes; then
8940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8941 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
8942 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8943 See \`config.log
' for more details." >&5
8944 $as_echo "$as_me: error: cannot compute sizeof (long)
8945 See \`config.log' for more details.
" >&2;}
8946 { (exit 77); exit 77; }; }; }
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 $ac_includes_default
8959 static long int longval () { return (long int) (sizeof (long)); }
8960 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
8967 FILE *f = fopen ("conftest.val
", "w
");
8970 if (((long int) (sizeof (long))) < 0)
8972 long int i = longval ();
8973 if (i != ((long int) (sizeof (long))))
8975 fprintf (f, "%ld
", i);
8979 unsigned long int i = ulongval ();
8980 if (i != ((long int) (sizeof (long))))
8982 fprintf (f, "%lu
", i);
8984 /* Do not output a trailing newline, as this causes \r\n confusion
8985 on some platforms. */
8986 return ferror (f) || fclose (f) != 0;
8992 rm -f conftest$ac_exeext
8993 if { (ac_try="$ac_link"
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8999 $as_echo "$ac_try_echo") >&5
9000 (eval "$ac_link") 2>&5
9002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9008 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9009 $as_echo "$ac_try_echo") >&5
9010 (eval "$ac_try") 2>&5
9012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_sizeof_long=`cat conftest.val`
9016 $as_echo "$as_me: program exited with status
$ac_status" >&5
9017 $as_echo "$as_me: failed program was
:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9021 if test "$ac_cv_type_long" = yes; then
9022 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
9023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9024 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9025 See \`config.log' for more details.
" >&5
9026 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
9027 See \
`config.log' for more details." >&2;}
9028 { (exit 77); exit 77; }; }; }
9033 rm -rf conftest.dSYM
9034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9038 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9039 $as_echo "$ac_cv_sizeof_long" >&6; }
9043 cat >>confdefs.h <<_ACEOF
9044 #define SIZEOF_LONG $ac_cv_sizeof_long
9048 # The cast to long int works around a bug in the HP C Compiler
9049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9050 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
9051 # This bug is HP SR number 8606223364.
9052 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
9053 $as_echo_n "checking size of void *... " >&6; }
9054 if test "${ac_cv_sizeof_void_p+set}" = set; then
9055 $as_echo_n "(cached) " >&6
9057 if test "$cross_compiling" = yes; then
9058 # Depending upon the size, compute the lo and hi bounds.
9059 cat >conftest.$ac_ext <<_ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 $ac_includes_default
9069 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
9076 rm -f conftest.$ac_objext
9077 if { (ac_try="$ac_compile"
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9083 $as_echo "$ac_try_echo") >&5
9084 (eval "$ac_compile") 2>conftest.er1
9086 grep -v '^
*+' conftest.er1 >conftest.err
9088 cat conftest.err >&5
9089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && {
9091 test -z "$ac_c_werror_flag" ||
9092 test ! -s conftest.err
9093 } && test -s conftest.$ac_objext; then
9096 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 $ac_includes_default
9106 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
9113 rm -f conftest.$ac_objext
9114 if { (ac_try="$ac_compile"
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9120 $as_echo "$ac_try_echo") >&5
9121 (eval "$ac_compile") 2>conftest.er1
9123 grep -v '^
*+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest.$ac_objext; then
9131 ac_hi=$ac_mid; break
9133 $as_echo "$as_me: failed program was:" >&5
9134 sed 's
/^
/|
/' conftest.$ac_ext >&5
9136 ac_lo=`expr $ac_mid + 1`
9137 if test $ac_lo -le $ac_mid; then
9141 ac_mid=`expr 2 '*' $ac_mid + 1`
9144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 $as_echo "$as_me: failed program was:" >&5
9148 sed 's
/^
/|
/' conftest.$ac_ext >&5
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 $ac_includes_default
9160 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
9167 rm -f conftest.$ac_objext
9168 if { (ac_try="$ac_compile"
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9177 grep -v '^
*+' conftest.er1 >conftest.err
9179 cat conftest.err >&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest.$ac_objext; then
9187 cat >conftest.$ac_ext <<_ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 $ac_includes_default
9197 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
9204 rm -f conftest.$ac_objext
9205 if { (ac_try="$ac_compile"
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9211 $as_echo "$ac_try_echo") >&5
9212 (eval "$ac_compile") 2>conftest.er1
9214 grep -v '^
*+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } && {
9219 test -z "$ac_c_werror_flag" ||
9220 test ! -s conftest.err
9221 } && test -s conftest.$ac_objext; then
9222 ac_lo=$ac_mid; break
9224 $as_echo "$as_me: failed program was:" >&5
9225 sed 's
/^
/|
/' conftest.$ac_ext >&5
9227 ac_hi=`expr '(' $ac_mid ')' - 1`
9228 if test $ac_mid -le $ac_hi; then
9232 ac_mid=`expr 2 '*' $ac_mid`
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 $as_echo "$as_me: failed program was:" >&5
9239 sed 's
/^
/|
/' conftest.$ac_ext >&5
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 # Binary search between lo and hi bounds.
9249 while test "x$ac_lo" != "x$ac_hi"; do
9250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9261 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9275 $as_echo "$ac_try_echo") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9278 grep -v '^
*+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
9288 $as_echo "$as_me: failed program was:" >&5
9289 sed 's
/^
/|
/' conftest.$ac_ext >&5
9291 ac_lo=`expr '(' $ac_mid ')' + 1`
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 ?*) ac_cv_sizeof_void_p=$ac_lo;;
9298 '') if test "$ac_cv_type_void_p" = yes; then
9299 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9300 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
9301 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
9302 See \`config.log
' for more details." >&5
9303 $as_echo "$as_me: error: cannot compute sizeof (void *)
9304 See \`config.log' for more details.
" >&2;}
9305 { (exit 77); exit 77; }; }; }
9307 ac_cv_sizeof_void_p=0
9311 cat >conftest.$ac_ext <<_ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 $ac_includes_default
9318 static long int longval () { return (long int) (sizeof (void *)); }
9319 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
9326 FILE *f = fopen ("conftest.val
", "w
");
9329 if (((long int) (sizeof (void *))) < 0)
9331 long int i = longval ();
9332 if (i != ((long int) (sizeof (void *))))
9334 fprintf (f, "%ld
", i);
9338 unsigned long int i = ulongval ();
9339 if (i != ((long int) (sizeof (void *))))
9341 fprintf (f, "%lu
", i);
9343 /* Do not output a trailing newline, as this causes \r\n confusion
9344 on some platforms. */
9345 return ferror (f) || fclose (f) != 0;
9351 rm -f conftest$ac_exeext
9352 if { (ac_try="$ac_link"
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9358 $as_echo "$ac_try_echo") >&5
9359 (eval "$ac_link") 2>&5
9361 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9363 { (case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9367 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9368 $as_echo "$ac_try_echo") >&5
9369 (eval "$ac_try") 2>&5
9371 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9372 (exit $ac_status); }; }; then
9373 ac_cv_sizeof_void_p=`cat conftest.val`
9375 $as_echo "$as_me: program exited with status
$ac_status" >&5
9376 $as_echo "$as_me: failed program was
:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9380 if test "$ac_cv_type_void_p" = yes; then
9381 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
9382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9383 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
9384 See \`config.log' for more details.
" >&5
9385 $as_echo "$as_me: error
: cannot compute sizeof
(void
*)
9386 See \
`config.log' for more details." >&2;}
9387 { (exit 77); exit 77; }; }; }
9389 ac_cv_sizeof_void_p=0
9392 rm -rf conftest.dSYM
9393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9397 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
9398 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9402 cat >>confdefs.h <<_ACEOF
9403 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9407 # The cast to long int works around a bug in the HP C Compiler
9408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9409 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
9410 # This bug is HP SR number 8606223364.
9411 { $as_echo "$as_me:$LINENO: checking size of short" >&5
9412 $as_echo_n "checking size of short... " >&6; }
9413 if test "${ac_cv_sizeof_short+set}" = set; then
9414 $as_echo_n "(cached) " >&6
9416 if test "$cross_compiling" = yes; then
9417 # Depending upon the size, compute the lo and hi bounds.
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 $ac_includes_default
9428 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9445 grep -v '^
*+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9465 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9472 rm -f conftest.$ac_objext
9473 if { (ac_try="$ac_compile"
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9479 $as_echo "$ac_try_echo") >&5
9480 (eval "$ac_compile") 2>conftest.er1
9482 grep -v '^
*+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest.$ac_objext; then
9490 ac_hi=$ac_mid; break
9492 $as_echo "$as_me: failed program was:" >&5
9493 sed 's
/^
/|
/' conftest.$ac_ext >&5
9495 ac_lo=`expr $ac_mid + 1`
9496 if test $ac_lo -le $ac_mid; then
9500 ac_mid=`expr 2 '*' $ac_mid + 1`
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 $as_echo "$as_me: failed program was:" >&5
9507 sed 's
/^
/|
/' conftest.$ac_ext >&5
9509 cat >conftest.$ac_ext <<_ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9519 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9533 $as_echo "$ac_try_echo") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9536 grep -v '^
*+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9556 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
9563 rm -f conftest.$ac_objext
9564 if { (ac_try="$ac_compile"
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9570 $as_echo "$ac_try_echo") >&5
9571 (eval "$ac_compile") 2>conftest.er1
9573 grep -v '^
*+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest.$ac_objext; then
9581 ac_lo=$ac_mid; break
9583 $as_echo "$as_me: failed program was:" >&5
9584 sed 's
/^
/|
/' conftest.$ac_ext >&5
9586 ac_hi=`expr '(' $ac_mid ')' - 1`
9587 if test $ac_mid -le $ac_hi; then
9591 ac_mid=`expr 2 '*' $ac_mid`
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 $as_echo "$as_me: failed program was:" >&5
9598 sed 's
/^
/|
/' conftest.$ac_ext >&5
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 # Binary search between lo and hi bounds.
9608 while test "x$ac_lo" != "x$ac_hi"; do
9609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9610 cat >conftest.$ac_ext <<_ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9620 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9627 rm -f conftest.$ac_objext
9628 if { (ac_try="$ac_compile"
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$ac_try_echo") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9637 grep -v '^
*+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9647 $as_echo "$as_me: failed program was:" >&5
9648 sed 's
/^
/|
/' conftest.$ac_ext >&5
9650 ac_lo=`expr '(' $ac_mid ')' + 1`
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 ?*) ac_cv_sizeof_short=$ac_lo;;
9657 '') if test "$ac_cv_type_short" = yes; then
9658 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9659 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
9660 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9661 See \`config.log
' for more details." >&5
9662 $as_echo "$as_me: error: cannot compute sizeof (short)
9663 See \`config.log' for more details.
" >&2;}
9664 { (exit 77); exit 77; }; }; }
9666 ac_cv_sizeof_short=0
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 $ac_includes_default
9677 static long int longval () { return (long int) (sizeof (short)); }
9678 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
9685 FILE *f = fopen ("conftest.val
", "w
");
9688 if (((long int) (sizeof (short))) < 0)
9690 long int i = longval ();
9691 if (i != ((long int) (sizeof (short))))
9693 fprintf (f, "%ld
", i);
9697 unsigned long int i = ulongval ();
9698 if (i != ((long int) (sizeof (short))))
9700 fprintf (f, "%lu
", i);
9702 /* Do not output a trailing newline, as this causes \r\n confusion
9703 on some platforms. */
9704 return ferror (f) || fclose (f) != 0;
9710 rm -f conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9717 $as_echo "$ac_try_echo") >&5
9718 (eval "$ac_link") 2>&5
9720 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722 { (case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9727 $as_echo "$ac_try_echo") >&5
9728 (eval "$ac_try") 2>&5
9730 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_sizeof_short=`cat conftest.val`
9734 $as_echo "$as_me: program exited with status
$ac_status" >&5
9735 $as_echo "$as_me: failed program was
:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9739 if test "$ac_cv_type_short" = yes; then
9740 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
9741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9742 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9743 See \`config.log' for more details.
" >&5
9744 $as_echo "$as_me: error
: cannot compute sizeof
(short
)
9745 See \
`config.log' for more details." >&2;}
9746 { (exit 77); exit 77; }; }; }
9748 ac_cv_sizeof_short=0
9751 rm -rf conftest.dSYM
9752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9756 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9757 $as_echo "$ac_cv_sizeof_short" >&6; }
9761 cat >>confdefs.h <<_ACEOF
9762 #define SIZEOF_SHORT $ac_cv_sizeof_short
9766 # The cast to long int works around a bug in the HP C Compiler
9767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9768 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
9769 # This bug is HP SR number 8606223364.
9770 { $as_echo "$as_me:$LINENO: checking size of float" >&5
9771 $as_echo_n "checking size of float... " >&6; }
9772 if test "${ac_cv_sizeof_float+set}" = set; then
9773 $as_echo_n "(cached) " >&6
9775 if test "$cross_compiling" = yes; then
9776 # Depending upon the size, compute the lo and hi bounds.
9777 cat >conftest.$ac_ext <<_ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9787 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
9794 rm -f conftest.$ac_objext
9795 if { (ac_try="$ac_compile"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9801 $as_echo "$ac_try_echo") >&5
9802 (eval "$ac_compile") 2>conftest.er1
9804 grep -v '^
*+' conftest.er1 >conftest.err
9806 cat conftest.err >&5
9807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest.$ac_objext; then
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9824 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
9831 rm -f conftest.$ac_objext
9832 if { (ac_try="$ac_compile"
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9838 $as_echo "$ac_try_echo") >&5
9839 (eval "$ac_compile") 2>conftest.er1
9841 grep -v '^
*+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && {
9846 test -z "$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 } && test -s conftest.$ac_objext; then
9849 ac_hi=$ac_mid; break
9851 $as_echo "$as_me: failed program was:" >&5
9852 sed 's
/^
/|
/' conftest.$ac_ext >&5
9854 ac_lo=`expr $ac_mid + 1`
9855 if test $ac_lo -le $ac_mid; then
9859 ac_mid=`expr 2 '*' $ac_mid + 1`
9862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 $as_echo "$as_me: failed program was:" >&5
9866 sed 's
/^
/|
/' conftest.$ac_ext >&5
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9878 static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
9885 rm -f conftest.$ac_objext
9886 if { (ac_try="$ac_compile"
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9892 $as_echo "$ac_try_echo") >&5
9893 (eval "$ac_compile") 2>conftest.er1
9895 grep -v '^
*+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } && {
9900 test -z "$ac_c_werror_flag" ||
9901 test ! -s conftest.err
9902 } && test -s conftest.$ac_objext; then
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 $ac_includes_default
9915 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
9922 rm -f conftest.$ac_objext
9923 if { (ac_try="$ac_compile"
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9932 grep -v '^
*+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 ac_lo=$ac_mid; break
9942 $as_echo "$as_me: failed program was:" >&5
9943 sed 's
/^
/|
/' conftest.$ac_ext >&5
9945 ac_hi=`expr '(' $ac_mid ')' - 1`
9946 if test $ac_mid -le $ac_hi; then
9950 ac_mid=`expr 2 '*' $ac_mid`
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 $as_echo "$as_me: failed program was:" >&5
9957 sed 's
/^
/|
/' conftest.$ac_ext >&5
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 # Binary search between lo and hi bounds.
9967 while test "x$ac_lo" != "x$ac_hi"; do
9968 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9979 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
9986 rm -f conftest.$ac_objext
9987 if { (ac_try="$ac_compile"
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9993 $as_echo "$ac_try_echo") >&5
9994 (eval "$ac_compile") 2>conftest.er1
9996 grep -v '^
*+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest.$ac_objext; then
10006 $as_echo "$as_me: failed program was:" >&5
10007 sed 's
/^
/|
/' conftest.$ac_ext >&5
10009 ac_lo=`expr '(' $ac_mid ')' + 1`
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 ?*) ac_cv_sizeof_float=$ac_lo;;
10016 '') if test "$ac_cv_type_float" = yes; then
10017 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10018 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
10019 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
10020 See \`config.log
' for more details." >&5
10021 $as_echo "$as_me: error: cannot compute sizeof (float)
10022 See \`config.log' for more details.
" >&2;}
10023 { (exit 77); exit 77; }; }; }
10025 ac_cv_sizeof_float=0
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 $ac_includes_default
10036 static long int longval () { return (long int) (sizeof (float)); }
10037 static unsigned long int ulongval () { return (long int) (sizeof (float)); }
10039 #include <stdlib.h>
10044 FILE *f = fopen ("conftest.val
", "w
");
10047 if (((long int) (sizeof (float))) < 0)
10049 long int i = longval ();
10050 if (i != ((long int) (sizeof (float))))
10052 fprintf (f, "%ld
", i);
10056 unsigned long int i = ulongval ();
10057 if (i != ((long int) (sizeof (float))))
10059 fprintf (f, "%lu
", i);
10061 /* Do not output a trailing newline, as this causes \r\n confusion
10062 on some platforms. */
10063 return ferror (f) || fclose (f) != 0;
10069 rm -f conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10076 $as_echo "$ac_try_echo") >&5
10077 (eval "$ac_link") 2>&5
10079 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10081 { (case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10085 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10086 $as_echo "$ac_try_echo") >&5
10087 (eval "$ac_try") 2>&5
10089 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_sizeof_float=`cat conftest.val`
10093 $as_echo "$as_me: program exited with status
$ac_status" >&5
10094 $as_echo "$as_me: failed program was
:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 ( exit $ac_status )
10098 if test "$ac_cv_type_float" = yes; then
10099 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
10100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10101 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
10102 See \`config.log' for more details.
" >&5
10103 $as_echo "$as_me: error
: cannot compute sizeof
(float
)
10104 See \
`config.log' for more details." >&2;}
10105 { (exit 77); exit 77; }; }; }
10107 ac_cv_sizeof_float=0
10110 rm -rf conftest.dSYM
10111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10115 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
10116 $as_echo "$ac_cv_sizeof_float" >&6; }
10120 cat >>confdefs.h <<_ACEOF
10121 #define SIZEOF_FLOAT $ac_cv_sizeof_float
10125 # The cast to long int works around a bug in the HP C Compiler
10126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10127 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
10128 # This bug is HP SR number 8606223364.
10129 { $as_echo "$as_me:$LINENO: checking size of double" >&5
10130 $as_echo_n "checking size of double... " >&6; }
10131 if test "${ac_cv_sizeof_double+set}" = set; then
10132 $as_echo_n "(cached) " >&6
10134 if test "$cross_compiling" = yes; then
10135 # Depending upon the size, compute the lo and hi bounds.
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10146 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
10153 rm -f conftest.$ac_objext
10154 if { (ac_try="$ac_compile"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10160 $as_echo "$ac_try_echo") >&5
10161 (eval "$ac_compile") 2>conftest.er1
10163 grep -v '^
*+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest.$ac_objext; then
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 $ac_includes_default
10183 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
10190 rm -f conftest.$ac_objext
10191 if { (ac_try="$ac_compile"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198 (eval "$ac_compile") 2>conftest.er1
10200 grep -v '^
*+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest.$ac_objext; then
10208 ac_hi=$ac_mid; break
10210 $as_echo "$as_me: failed program was:" >&5
10211 sed 's
/^
/|
/' conftest.$ac_ext >&5
10213 ac_lo=`expr $ac_mid + 1`
10214 if test $ac_lo -le $ac_mid; then
10218 ac_mid=`expr 2 '*' $ac_mid + 1`
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224 $as_echo "$as_me: failed program was:" >&5
10225 sed 's
/^
/|
/' conftest.$ac_ext >&5
10227 cat >conftest.$ac_ext <<_ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10233 $ac_includes_default
10237 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
10244 rm -f conftest.$ac_objext
10245 if { (ac_try="$ac_compile"
10246 case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10251 $as_echo "$ac_try_echo") >&5
10252 (eval "$ac_compile") 2>conftest.er1
10254 grep -v '^
*+' conftest.er1 >conftest.err
10256 cat conftest.err >&5
10257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && {
10259 test -z "$ac_c_werror_flag" ||
10260 test ! -s conftest.err
10261 } && test -s conftest.$ac_objext; then
10264 cat >conftest.$ac_ext <<_ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 $ac_includes_default
10274 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
10281 rm -f conftest.$ac_objext
10282 if { (ac_try="$ac_compile"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10288 $as_echo "$ac_try_echo") >&5
10289 (eval "$ac_compile") 2>conftest.er1
10291 grep -v '^
*+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && {
10296 test -z "$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 } && test -s conftest.$ac_objext; then
10299 ac_lo=$ac_mid; break
10301 $as_echo "$as_me: failed program was:" >&5
10302 sed 's
/^
/|
/' conftest.$ac_ext >&5
10304 ac_hi=`expr '(' $ac_mid ')' - 1`
10305 if test $ac_mid -le $ac_hi; then
10309 ac_mid=`expr 2 '*' $ac_mid`
10312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10315 $as_echo "$as_me: failed program was:" >&5
10316 sed 's
/^
/|
/' conftest.$ac_ext >&5
10321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 # Binary search between lo and hi bounds.
10326 while test "x$ac_lo" != "x$ac_hi"; do
10327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10338 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
10345 rm -f conftest.$ac_objext
10346 if { (ac_try="$ac_compile"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10352 $as_echo "$ac_try_echo") >&5
10353 (eval "$ac_compile") 2>conftest.er1
10355 grep -v '^
*+' conftest.er1 >conftest.err
10357 cat conftest.err >&5
10358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && {
10360 test -z "$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 } && test -s conftest.$ac_objext; then
10365 $as_echo "$as_me: failed program was:" >&5
10366 sed 's
/^
/|
/' conftest.$ac_ext >&5
10368 ac_lo=`expr '(' $ac_mid ')' + 1`
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374 ?*) ac_cv_sizeof_double=$ac_lo;;
10375 '') if test "$ac_cv_type_double" = yes; then
10376 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10377 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
10378 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
10379 See \`config.log
' for more details." >&5
10380 $as_echo "$as_me: error: cannot compute sizeof (double)
10381 See \`config.log' for more details.
" >&2;}
10382 { (exit 77); exit 77; }; }; }
10384 ac_cv_sizeof_double=0
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 static long int longval () { return (long int) (sizeof (double)); }
10396 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
10398 #include <stdlib.h>
10403 FILE *f = fopen ("conftest.val
", "w
");
10406 if (((long int) (sizeof (double))) < 0)
10408 long int i = longval ();
10409 if (i != ((long int) (sizeof (double))))
10411 fprintf (f, "%ld
", i);
10415 unsigned long int i = ulongval ();
10416 if (i != ((long int) (sizeof (double))))
10418 fprintf (f, "%lu
", i);
10420 /* Do not output a trailing newline, as this causes \r\n confusion
10421 on some platforms. */
10422 return ferror (f) || fclose (f) != 0;
10428 rm -f conftest$ac_exeext
10429 if { (ac_try="$ac_link"
10430 case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10434 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10435 $as_echo "$ac_try_echo") >&5
10436 (eval "$ac_link") 2>&5
10438 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10440 { (case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10445 $as_echo "$ac_try_echo") >&5
10446 (eval "$ac_try") 2>&5
10448 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_sizeof_double=`cat conftest.val`
10452 $as_echo "$as_me: program exited with status
$ac_status" >&5
10453 $as_echo "$as_me: failed program was
:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ( exit $ac_status )
10457 if test "$ac_cv_type_double" = yes; then
10458 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
10459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10460 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
10461 See \`config.log' for more details.
" >&5
10462 $as_echo "$as_me: error
: cannot compute sizeof
(double
)
10463 See \
`config.log' for more details." >&2;}
10464 { (exit 77); exit 77; }; }; }
10466 ac_cv_sizeof_double=0
10469 rm -rf conftest.dSYM
10470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10474 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
10475 $as_echo "$ac_cv_sizeof_double" >&6; }
10479 cat >>confdefs.h <<_ACEOF
10480 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
10484 # The cast to long int works around a bug in the HP C Compiler
10485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10486 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
10487 # This bug is HP SR number 8606223364.
10488 { $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5
10489 $as_echo_n "checking size of fpos_t... " >&6; }
10490 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10491 $as_echo_n "(cached) " >&6
10493 if test "$cross_compiling" = yes; then
10494 # Depending upon the size, compute the lo and hi bounds.
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10505 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)];
10512 rm -f conftest.$ac_objext
10513 if { (ac_try="$ac_compile"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10519 $as_echo "$ac_try_echo") >&5
10520 (eval "$ac_compile") 2>conftest.er1
10522 grep -v '^
*+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest.$ac_objext; then
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10542 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
10549 rm -f conftest.$ac_objext
10550 if { (ac_try="$ac_compile"
10551 case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10556 $as_echo "$ac_try_echo") >&5
10557 (eval "$ac_compile") 2>conftest.er1
10559 grep -v '^
*+' conftest.er1 >conftest.err
10561 cat conftest.err >&5
10562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && {
10564 test -z "$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 } && test -s conftest.$ac_objext; then
10567 ac_hi=$ac_mid; break
10569 $as_echo "$as_me: failed program was:" >&5
10570 sed 's
/^
/|
/' conftest.$ac_ext >&5
10572 ac_lo=`expr $ac_mid + 1`
10573 if test $ac_lo -le $ac_mid; then
10577 ac_mid=`expr 2 '*' $ac_mid + 1`
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10583 $as_echo "$as_me: failed program was:" >&5
10584 sed 's
/^
/|
/' conftest.$ac_ext >&5
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 $ac_includes_default
10596 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)];
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10610 $as_echo "$ac_try_echo") >&5
10611 (eval "$ac_compile") 2>conftest.er1
10613 grep -v '^
*+' conftest.er1 >conftest.err
10615 cat conftest.err >&5
10616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest.$ac_objext; then
10623 cat >conftest.$ac_ext <<_ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 $ac_includes_default
10633 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)];
10640 rm -f conftest.$ac_objext
10641 if { (ac_try="$ac_compile"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10647 $as_echo "$ac_try_echo") >&5
10648 (eval "$ac_compile") 2>conftest.er1
10650 grep -v '^
*+' conftest.er1 >conftest.err
10652 cat conftest.err >&5
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && {
10655 test -z "$ac_c_werror_flag" ||
10656 test ! -s conftest.err
10657 } && test -s conftest.$ac_objext; then
10658 ac_lo=$ac_mid; break
10660 $as_echo "$as_me: failed program was:" >&5
10661 sed 's
/^
/|
/' conftest.$ac_ext >&5
10663 ac_hi=`expr '(' $ac_mid ')' - 1`
10664 if test $ac_mid -le $ac_hi; then
10668 ac_mid=`expr 2 '*' $ac_mid`
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 $as_echo "$as_me: failed program was:" >&5
10675 sed 's
/^
/|
/' conftest.$ac_ext >&5
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684 # Binary search between lo and hi bounds.
10685 while test "x$ac_lo" != "x$ac_hi"; do
10686 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10687 cat >conftest.$ac_ext <<_ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 $ac_includes_default
10697 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711 $as_echo "$ac_try_echo") >&5
10712 (eval "$ac_compile") 2>conftest.er1
10714 grep -v '^
*+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest.$ac_objext; then
10724 $as_echo "$as_me: failed program was:" >&5
10725 sed 's
/^
/|
/' conftest.$ac_ext >&5
10727 ac_lo=`expr '(' $ac_mid ')' + 1`
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10734 '') if test "$ac_cv_type_fpos_t" = yes; then
10735 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10736 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
10737 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10738 See \`config.log
' for more details." >&5
10739 $as_echo "$as_me: error: cannot compute sizeof (fpos_t)
10740 See \`config.log' for more details.
" >&2;}
10741 { (exit 77); exit 77; }; }; }
10743 ac_cv_sizeof_fpos_t=0
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 $ac_includes_default
10754 static long int longval () { return (long int) (sizeof (fpos_t)); }
10755 static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); }
10757 #include <stdlib.h>
10762 FILE *f = fopen ("conftest.val
", "w
");
10765 if (((long int) (sizeof (fpos_t))) < 0)
10767 long int i = longval ();
10768 if (i != ((long int) (sizeof (fpos_t))))
10770 fprintf (f, "%ld
", i);
10774 unsigned long int i = ulongval ();
10775 if (i != ((long int) (sizeof (fpos_t))))
10777 fprintf (f, "%lu
", i);
10779 /* Do not output a trailing newline, as this causes \r\n confusion
10780 on some platforms. */
10781 return ferror (f) || fclose (f) != 0;
10787 rm -f conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10794 $as_echo "$ac_try_echo") >&5
10795 (eval "$ac_link") 2>&5
10797 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10804 $as_echo "$ac_try_echo") >&5
10805 (eval "$ac_try") 2>&5
10807 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ac_cv_sizeof_fpos_t=`cat conftest.val`
10811 $as_echo "$as_me: program exited with status
$ac_status" >&5
10812 $as_echo "$as_me: failed program was
:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ( exit $ac_status )
10816 if test "$ac_cv_type_fpos_t" = yes; then
10817 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
10818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10819 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10820 See \`config.log' for more details.
" >&5
10821 $as_echo "$as_me: error
: cannot compute sizeof
(fpos_t
)
10822 See \
`config.log' for more details." >&2;}
10823 { (exit 77); exit 77; }; }; }
10825 ac_cv_sizeof_fpos_t=0
10828 rm -rf conftest.dSYM
10829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10833 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10834 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
10838 cat >>confdefs.h <<_ACEOF
10839 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10843 # The cast to long int works around a bug in the HP C Compiler
10844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10845 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
10846 # This bug is HP SR number 8606223364.
10847 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
10848 $as_echo_n "checking size of size_t... " >&6; }
10849 if test "${ac_cv_sizeof_size_t+set}" = set; then
10850 $as_echo_n "(cached) " >&6
10852 if test "$cross_compiling" = yes; then
10853 # Depending upon the size, compute the lo and hi bounds.
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 $ac_includes_default
10864 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
10871 rm -f conftest.$ac_objext
10872 if { (ac_try="$ac_compile"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10878 $as_echo "$ac_try_echo") >&5
10879 (eval "$ac_compile") 2>conftest.er1
10881 grep -v '^
*+' conftest.er1 >conftest.err
10883 cat conftest.err >&5
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest.$ac_objext; then
10891 cat >conftest.$ac_ext <<_ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 $ac_includes_default
10901 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10915 $as_echo "$ac_try_echo") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10918 grep -v '^
*+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.$ac_objext; then
10926 ac_hi=$ac_mid; break
10928 $as_echo "$as_me: failed program was:" >&5
10929 sed 's
/^
/|
/' conftest.$ac_ext >&5
10931 ac_lo=`expr $ac_mid + 1`
10932 if test $ac_lo -le $ac_mid; then
10936 ac_mid=`expr 2 '*' $ac_mid + 1`
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942 $as_echo "$as_me: failed program was:" >&5
10943 sed 's
/^
/|
/' conftest.$ac_ext >&5
10945 cat >conftest.$ac_ext <<_ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 $ac_includes_default
10955 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10969 $as_echo "$ac_try_echo") >&5
10970 (eval "$ac_compile") 2>conftest.er1
10972 grep -v '^
*+' conftest.er1 >conftest.err
10974 cat conftest.err >&5
10975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest.$ac_objext; then
10982 cat >conftest.$ac_ext <<_ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 $ac_includes_default
10992 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
10999 rm -f conftest.$ac_objext
11000 if { (ac_try="$ac_compile"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11006 $as_echo "$ac_try_echo") >&5
11007 (eval "$ac_compile") 2>conftest.er1
11009 grep -v '^
*+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest.$ac_objext; then
11017 ac_lo=$ac_mid; break
11019 $as_echo "$as_me: failed program was:" >&5
11020 sed 's
/^
/|
/' conftest.$ac_ext >&5
11022 ac_hi=`expr '(' $ac_mid ')' - 1`
11023 if test $ac_mid -le $ac_hi; then
11027 ac_mid=`expr 2 '*' $ac_mid`
11030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 $as_echo "$as_me: failed program was:" >&5
11034 sed 's
/^
/|
/' conftest.$ac_ext >&5
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 # Binary search between lo and hi bounds.
11044 while test "x$ac_lo" != "x$ac_hi"; do
11045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 $ac_includes_default
11056 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
11063 rm -f conftest.$ac_objext
11064 if { (ac_try="$ac_compile"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11070 $as_echo "$ac_try_echo") >&5
11071 (eval "$ac_compile") 2>conftest.er1
11073 grep -v '^
*+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest.$ac_objext; then
11083 $as_echo "$as_me: failed program was:" >&5
11084 sed 's
/^
/|
/' conftest.$ac_ext >&5
11086 ac_lo=`expr '(' $ac_mid ')' + 1`
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092 ?*) ac_cv_sizeof_size_t=$ac_lo;;
11093 '') if test "$ac_cv_type_size_t" = yes; then
11094 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11095 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
11096 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
11097 See \`config.log
' for more details." >&5
11098 $as_echo "$as_me: error: cannot compute sizeof (size_t)
11099 See \`config.log' for more details.
" >&2;}
11100 { (exit 77); exit 77; }; }; }
11102 ac_cv_sizeof_size_t=0
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 $ac_includes_default
11113 static long int longval () { return (long int) (sizeof (size_t)); }
11114 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
11116 #include <stdlib.h>
11121 FILE *f = fopen ("conftest.val
", "w
");
11124 if (((long int) (sizeof (size_t))) < 0)
11126 long int i = longval ();
11127 if (i != ((long int) (sizeof (size_t))))
11129 fprintf (f, "%ld
", i);
11133 unsigned long int i = ulongval ();
11134 if (i != ((long int) (sizeof (size_t))))
11136 fprintf (f, "%lu
", i);
11138 /* Do not output a trailing newline, as this causes \r\n confusion
11139 on some platforms. */
11140 return ferror (f) || fclose (f) != 0;
11146 rm -f conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11152 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11153 $as_echo "$ac_try_echo") >&5
11154 (eval "$ac_link") 2>&5
11156 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11158 { (case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164 (eval "$ac_try") 2>&5
11166 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_sizeof_size_t=`cat conftest.val`
11170 $as_echo "$as_me: program exited with status
$ac_status" >&5
11171 $as_echo "$as_me: failed program was
:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ( exit $ac_status )
11175 if test "$ac_cv_type_size_t" = yes; then
11176 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
11177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11178 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
11179 See \`config.log' for more details.
" >&5
11180 $as_echo "$as_me: error
: cannot compute sizeof
(size_t
)
11181 See \
`config.log' for more details." >&2;}
11182 { (exit 77); exit 77; }; }; }
11184 ac_cv_sizeof_size_t=0
11187 rm -rf conftest.dSYM
11188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11192 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
11193 $as_echo "$ac_cv_sizeof_size_t" >&6; }
11197 cat >>confdefs.h <<_ACEOF
11198 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
11202 # The cast to long int works around a bug in the HP C Compiler
11203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11204 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
11205 # This bug is HP SR number 8606223364.
11206 { $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
11207 $as_echo_n "checking size of pid_t... " >&6; }
11208 if test "${ac_cv_sizeof_pid_t+set}" = set; then
11209 $as_echo_n "(cached) " >&6
11211 if test "$cross_compiling" = yes; then
11212 # Depending upon the size, compute the lo and hi bounds.
11213 cat >conftest.$ac_ext <<_ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11223 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)];
11230 rm -f conftest.$ac_objext
11231 if { (ac_try="$ac_compile"
11232 case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11237 $as_echo "$ac_try_echo") >&5
11238 (eval "$ac_compile") 2>conftest.er1
11240 grep -v '^
*+' conftest.er1 >conftest.err
11242 cat conftest.err >&5
11243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest.$ac_objext; then
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 $ac_includes_default
11260 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11274 $as_echo "$ac_try_echo") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11277 grep -v '^
*+' conftest.er1 >conftest.err
11279 cat conftest.err >&5
11280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && {
11282 test -z "$ac_c_werror_flag" ||
11283 test ! -s conftest.err
11284 } && test -s conftest.$ac_objext; then
11285 ac_hi=$ac_mid; break
11287 $as_echo "$as_me: failed program was:" >&5
11288 sed 's
/^
/|
/' conftest.$ac_ext >&5
11290 ac_lo=`expr $ac_mid + 1`
11291 if test $ac_lo -le $ac_mid; then
11295 ac_mid=`expr 2 '*' $ac_mid + 1`
11298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 $as_echo "$as_me: failed program was:" >&5
11302 sed 's
/^
/|
/' conftest.$ac_ext >&5
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 $ac_includes_default
11314 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)];
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11328 $as_echo "$ac_try_echo") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11331 grep -v '^
*+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11351 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)];
11358 rm -f conftest.$ac_objext
11359 if { (ac_try="$ac_compile"
11360 case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11365 $as_echo "$ac_try_echo") >&5
11366 (eval "$ac_compile") 2>conftest.er1
11368 grep -v '^
*+' conftest.er1 >conftest.err
11370 cat conftest.err >&5
11371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest.$ac_objext; then
11376 ac_lo=$ac_mid; break
11378 $as_echo "$as_me: failed program was:" >&5
11379 sed 's
/^
/|
/' conftest.$ac_ext >&5
11381 ac_hi=`expr '(' $ac_mid ')' - 1`
11382 if test $ac_mid -le $ac_hi; then
11386 ac_mid=`expr 2 '*' $ac_mid`
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 $as_echo "$as_me: failed program was:" >&5
11393 sed 's
/^
/|
/' conftest.$ac_ext >&5
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 # Binary search between lo and hi bounds.
11403 while test "x$ac_lo" != "x$ac_hi"; do
11404 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11415 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11429 $as_echo "$ac_try_echo") >&5
11430 (eval "$ac_compile") 2>conftest.er1
11432 grep -v '^
*+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest.$ac_objext; then
11442 $as_echo "$as_me: failed program was:" >&5
11443 sed 's
/^
/|
/' conftest.$ac_ext >&5
11445 ac_lo=`expr '(' $ac_mid ')' + 1`
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11452 '') if test "$ac_cv_type_pid_t" = yes; then
11453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11454 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
11455 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11456 See \`config.log
' for more details." >&5
11457 $as_echo "$as_me: error: cannot compute sizeof (pid_t)
11458 See \`config.log' for more details.
" >&2;}
11459 { (exit 77); exit 77; }; }; }
11461 ac_cv_sizeof_pid_t=0
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 static long int longval () { return (long int) (sizeof (pid_t)); }
11473 static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); }
11475 #include <stdlib.h>
11480 FILE *f = fopen ("conftest.val
", "w
");
11483 if (((long int) (sizeof (pid_t))) < 0)
11485 long int i = longval ();
11486 if (i != ((long int) (sizeof (pid_t))))
11488 fprintf (f, "%ld
", i);
11492 unsigned long int i = ulongval ();
11493 if (i != ((long int) (sizeof (pid_t))))
11495 fprintf (f, "%lu
", i);
11497 /* Do not output a trailing newline, as this causes \r\n confusion
11498 on some platforms. */
11499 return ferror (f) || fclose (f) != 0;
11505 rm -f conftest$ac_exeext
11506 if { (ac_try="$ac_link"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11512 $as_echo "$ac_try_echo") >&5
11513 (eval "$ac_link") 2>&5
11515 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11517 { (case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523 (eval "$ac_try") 2>&5
11525 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 ac_cv_sizeof_pid_t=`cat conftest.val`
11529 $as_echo "$as_me: program exited with status
$ac_status" >&5
11530 $as_echo "$as_me: failed program was
:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ( exit $ac_status )
11534 if test "$ac_cv_type_pid_t" = yes; then
11535 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
11536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11537 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11538 See \`config.log' for more details.
" >&5
11539 $as_echo "$as_me: error
: cannot compute sizeof
(pid_t
)
11540 See \
`config.log' for more details." >&2;}
11541 { (exit 77); exit 77; }; }; }
11543 ac_cv_sizeof_pid_t=0
11546 rm -rf conftest.dSYM
11547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11551 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11552 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
11556 cat >>confdefs.h <<_ACEOF
11557 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11562 { $as_echo "$as_me:$LINENO: checking for long long support" >&5
11563 $as_echo_n "checking for long long support... " >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11575 long long x; x = (long long)0;
11580 rm -f conftest.$ac_objext
11581 if { (ac_try="$ac_compile"
11582 case "(($ac_try" in
11583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11584 *) ac_try_echo
=$ac_try;;
11586 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11587 $as_echo "$ac_try_echo") >&5
11588 (eval "$ac_compile") 2>conftest.er1
11590 grep -v '^ *+' conftest.er1
>conftest.err
11592 cat conftest.err
>&5
11593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } && {
11595 test -z "$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 } && test -s conftest.
$ac_objext; then
11600 cat >>confdefs.h
<<\_ACEOF
11601 #define HAVE_LONG_LONG 1
11607 $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.
$ac_ext >&5
11613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11614 { $as_echo "$as_me:$LINENO: result: $have_long_long" >&5
11615 $as_echo "$have_long_long" >&6; }
11616 if test "$have_long_long" = yes ; then
11617 # The cast to long int works around a bug in the HP C Compiler
11618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11620 # This bug is HP SR number 8606223364.
11621 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
11622 $as_echo_n "checking size of long long... " >&6; }
11623 if test "${ac_cv_sizeof_long_long+set}" = set; then
11624 $as_echo_n "(cached) " >&6
11626 if test "$cross_compiling" = yes; then
11627 # Depending upon the size, compute the lo and hi bounds.
11628 cat >conftest.
$ac_ext <<_ACEOF
11631 cat confdefs.h
>>conftest.
$ac_ext
11632 cat >>conftest.
$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 $ac_includes_default
11638 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
11645 rm -f conftest.
$ac_objext
11646 if { (ac_try
="$ac_compile"
11647 case "(($ac_try" in
11648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11652 $as_echo "$ac_try_echo") >&5
11653 (eval "$ac_compile") 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } && {
11660 test -z "$ac_c_werror_flag" ||
11661 test ! -s conftest.err
11662 } && test -s conftest.$ac_objext; then
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 $ac_includes_default
11675 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
11682 rm -f conftest.$ac_objext
11683 if { (ac_try="$ac_compile"
11684 case "(($ac_try" in
11685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11686 *) ac_try_echo
=$ac_try;;
11688 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11689 $as_echo "$ac_try_echo") >&5
11690 (eval "$ac_compile") 2>conftest.er1
11692 grep -v '^ *+' conftest.er1
>conftest.err
11694 cat conftest.err
>&5
11695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest.
$ac_objext; then
11700 ac_hi
=$ac_mid; break
11702 $as_echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.
$ac_ext >&5
11705 ac_lo
=`expr $ac_mid + 1`
11706 if test $ac_lo -le $ac_mid; then
11710 ac_mid
=`expr 2 '*' $ac_mid + 1`
11713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11716 $as_echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.
$ac_ext >&5
11719 cat >conftest.
$ac_ext <<_ACEOF
11722 cat confdefs.h
>>conftest.
$ac_ext
11723 cat >>conftest.
$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 $ac_includes_default
11729 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
11736 rm -f conftest.
$ac_objext
11737 if { (ac_try
="$ac_compile"
11738 case "(($ac_try" in
11739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11743 $as_echo "$ac_try_echo") >&5
11744 (eval "$ac_compile") 2>conftest.er1
11746 grep -v '^ *+' conftest.er1 >conftest.err
11748 cat conftest.err >&5
11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest.$ac_objext; then
11756 cat >conftest.$ac_ext <<_ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 $ac_includes_default
11766 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11777 *) ac_try_echo
=$ac_try;;
11779 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11780 $as_echo "$ac_try_echo") >&5
11781 (eval "$ac_compile") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1
>conftest.err
11785 cat conftest.err
>&5
11786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } && {
11788 test -z "$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest.
$ac_objext; then
11791 ac_lo
=$ac_mid; break
11793 $as_echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.
$ac_ext >&5
11796 ac_hi
=`expr '(' $ac_mid ')' - 1`
11797 if test $ac_mid -le $ac_hi; then
11801 ac_mid
=`expr 2 '*' $ac_mid`
11804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11807 $as_echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.
$ac_ext >&5
11813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11817 # Binary search between lo and hi bounds.
11818 while test "x$ac_lo" != "x$ac_hi"; do
11819 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11820 cat >conftest.
$ac_ext <<_ACEOF
11823 cat confdefs.h
>>conftest.
$ac_ext
11824 cat >>conftest.
$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 $ac_includes_default
11830 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
11837 rm -f conftest.
$ac_objext
11838 if { (ac_try
="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11857 $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_lo=`expr '(' $ac_mid ')' + 1`
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11867 '') if test "$ac_cv_type_long_long" = yes; then
11868 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11870 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11871 See \
`config.log' for more details." >&5
11872 $as_echo "$as_me: error: cannot compute sizeof (long long)
11873 See \`config.log
' for more details." >&2;}
11874 { (exit 77); exit 77; }; }; }
11876 ac_cv_sizeof_long_long=0
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 static long int longval () { return (long int) (sizeof (long long)); }
11888 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
11890 #include <stdlib.h>
11895 FILE *f = fopen ("conftest.val", "w");
11898 if (((long int) (sizeof (long long))) < 0)
11900 long int i = longval ();
11901 if (i != ((long int) (sizeof (long long))))
11903 fprintf (f, "%ld", i);
11907 unsigned long int i = ulongval ();
11908 if (i != ((long int) (sizeof (long long))))
11910 fprintf (f, "%lu", i);
11912 /* Do not output a trailing newline, as this causes \r\n confusion
11913 on some platforms. */
11914 return ferror (f) || fclose (f) != 0;
11920 rm -f conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11927 $as_echo "$ac_try_echo") >&5
11928 (eval "$ac_link") 2>&5
11930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
11932 { (case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11937 $as_echo "$ac_try_echo") >&5
11938 (eval "$ac_try") 2>&5
11940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_sizeof_long_long=`cat conftest.val`
11944 $as_echo "$as_me: program exited with status $ac_status" >&5
11945 $as_echo "$as_me: failed program was:" >&5
11946 sed 's
/^
/|
/' conftest.$ac_ext >&5
11948 ( exit $ac_status )
11949 if test "$ac_cv_type_long_long" = yes; then
11950 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11951 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
11952 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11953 See \`config.log
' for more details." >&5
11954 $as_echo "$as_me: error: cannot compute sizeof (long long)
11955 See \`config.log' for more details.
" >&2;}
11956 { (exit 77); exit 77; }; }; }
11958 ac_cv_sizeof_long_long=0
11961 rm -rf conftest.dSYM
11962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11966 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_long_long" >&5
11967 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11971 cat >>confdefs.h <<_ACEOF
11972 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11978 { $as_echo "$as_me:$LINENO: checking
for long double support
" >&5
11979 $as_echo_n "checking
for long double support...
" >&6; }
11980 have_long_double=no
11981 cat >conftest.$ac_ext <<_ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11991 long double x; x = (long double)0;
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.$ac_objext; then
12016 cat >>confdefs.h <<\_ACEOF
12017 #define HAVE_LONG_DOUBLE 1
12020 have_long_double=yes
12023 $as_echo "$as_me: failed program was
:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 { $as_echo "$as_me:$LINENO: result
: $have_long_double" >&5
12031 $as_echo "$have_long_double" >&6; }
12032 if test "$have_long_double" = yes ; then
12033 # The cast to long int works around a bug in the HP C Compiler
12034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12036 # This bug is HP SR number 8606223364.
12037 { $as_echo "$as_me:$LINENO: checking size of long double
" >&5
12038 $as_echo_n "checking size of long double...
" >&6; }
12039 if test "${ac_cv_sizeof_long_double+set}" = set; then
12040 $as_echo_n "(cached
) " >&6
12042 if test "$cross_compiling" = yes; then
12043 # Depending upon the size, compute the lo and hi bounds.
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12054 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
12061 rm -f conftest.$ac_objext
12062 if { (ac_try="$ac_compile"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12068 $as_echo "$ac_try_echo") >&5
12069 (eval "$ac_compile") 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12075 (exit $ac_status); } && {
12076 test -z "$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 } && test -s conftest.$ac_objext; then
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 $ac_includes_default
12091 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
12098 rm -f conftest.$ac_objext
12099 if { (ac_try="$ac_compile"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12104 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12105 $as_echo "$ac_try_echo") >&5
12106 (eval "$ac_compile") 2>conftest.er1
12108 grep -v '^ *+' conftest.er1 >conftest.err
12110 cat conftest.err >&5
12111 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12112 (exit $ac_status); } && {
12113 test -z "$ac_c_werror_flag" ||
12114 test ! -s conftest.err
12115 } && test -s conftest.$ac_objext; then
12116 ac_hi=$ac_mid; break
12118 $as_echo "$as_me: failed program was
:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 ac_lo=`expr $ac_mid + 1`
12122 if test $ac_lo -le $ac_mid; then
12126 ac_mid=`expr 2 '*' $ac_mid + 1`
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 $as_echo "$as_me: failed program was
:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 cat >conftest.$ac_ext <<_ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12145 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
12152 rm -f conftest.$ac_objext
12153 if { (ac_try="$ac_compile"
12154 case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12159 $as_echo "$ac_try_echo") >&5
12160 (eval "$ac_compile") 2>conftest.er1
12162 grep -v '^ *+' conftest.er1 >conftest.err
12164 cat conftest.err >&5
12165 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12166 (exit $ac_status); } && {
12167 test -z "$ac_c_werror_flag" ||
12168 test ! -s conftest.err
12169 } && test -s conftest.$ac_objext; then
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12182 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
12189 rm -f conftest.$ac_objext
12190 if { (ac_try="$ac_compile"
12191 case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12195 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12196 $as_echo "$ac_try_echo") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 ac_lo=$ac_mid; break
12209 $as_echo "$as_me: failed program was
:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 ac_hi=`expr '(' $ac_mid ')' - 1`
12213 if test $ac_mid -le $ac_hi; then
12217 ac_mid=`expr 2 '*' $ac_mid`
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 $as_echo "$as_me: failed program was
:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 # Binary search between lo and hi bounds.
12234 while test "x
$ac_lo" != "x
$ac_hi"; do
12235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12246 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
12253 rm -f conftest.$ac_objext
12254 if { (ac_try="$ac_compile"
12255 case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12259 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12260 $as_echo "$ac_try_echo") >&5
12261 (eval "$ac_compile") 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest.$ac_objext; then
12273 $as_echo "$as_me: failed program was
:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 ac_lo=`expr '(' $ac_mid ')' + 1`
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 ?*) ac_cv_sizeof_long_double=$ac_lo;;
12283 '') if test "$ac_cv_type_long_double" = yes; then
12284 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
12285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12286 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12287 See \`config.log' for more details.
" >&5
12288 $as_echo "$as_me: error
: cannot compute sizeof
(long double
)
12289 See \
`config.log' for more details." >&2;}
12290 { (exit 77); exit 77; }; }; }
12292 ac_cv_sizeof_long_double=0
12296 cat >conftest.$ac_ext <<_ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 static long int longval () { return (long int) (sizeof (long double)); }
12304 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
12306 #include <stdlib.h>
12311 FILE *f = fopen ("conftest.val", "w");
12314 if (((long int) (sizeof (long double))) < 0)
12316 long int i = longval ();
12317 if (i != ((long int) (sizeof (long double))))
12319 fprintf (f, "%ld", i);
12323 unsigned long int i = ulongval ();
12324 if (i != ((long int) (sizeof (long double))))
12326 fprintf (f, "%lu", i);
12328 /* Do not output a trailing newline, as this causes \r\n confusion
12329 on some platforms. */
12330 return ferror (f) || fclose (f) != 0;
12336 rm -f conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12340 *) ac_try_echo
=$ac_try;;
12342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12343 $as_echo "$ac_try_echo") >&5
12344 (eval "$ac_link") 2>&5
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12353 $as_echo "$ac_try_echo") >&5
12354 (eval "$ac_try") 2>&5
12356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_sizeof_long_double=`cat conftest.val
`
12360 $as_echo "$as_me: program exited with status $ac_status" >&5
12361 $as_echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ( exit $ac_status )
12365 if test "$ac_cv_type_long_double" = yes; then
12366 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12368 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12369 See \
`config.log' for more details." >&5
12370 $as_echo "$as_me: error: cannot compute sizeof (long double)
12371 See \`config.log
' for more details." >&2;}
12372 { (exit 77); exit 77; }; }; }
12374 ac_cv_sizeof_long_double=0
12377 rm -rf conftest.dSYM
12378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12382 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12383 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12387 cat >>confdefs.h <<_ACEOF
12388 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12395 { $as_echo "$as_me:$LINENO: checking for _Bool support" >&5
12396 $as_echo_n "checking for _Bool support... " >&6; }
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12408 _Bool x; x = (_Bool)0;
12413 rm -f conftest.$ac_objext
12414 if { (ac_try="$ac_compile"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12420 $as_echo "$ac_try_echo") >&5
12421 (eval "$ac_compile") 2>conftest.er1
12423 grep -v '^
*+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && {
12428 test -z "$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12430 } && test -s conftest.$ac_objext; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_C99_BOOL 1
12440 $as_echo "$as_me: failed program was:" >&5
12441 sed 's
/^
/|
/' conftest.$ac_ext >&5
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 { $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12448 $as_echo "$have_c99_bool" >&6; }
12449 if test "$have_c99_bool" = yes ; then
12450 # The cast to long int works around a bug in the HP C Compiler
12451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12453 # This bug is HP SR number 8606223364.
12454 { $as_echo "$as_me:$LINENO: checking size of _Bool" >&5
12455 $as_echo_n "checking size of _Bool... " >&6; }
12456 if test "${ac_cv_sizeof__Bool+set}" = set; then
12457 $as_echo_n "(cached) " >&6
12459 if test "$cross_compiling" = yes; then
12460 # Depending upon the size, compute the lo and hi bounds.
12461 cat >conftest.
$ac_ext <<_ACEOF
12464 cat confdefs.h
>>conftest.
$ac_ext
12465 cat >>conftest.
$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 $ac_includes_default
12471 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)];
12478 rm -f conftest.
$ac_objext
12479 if { (ac_try
="$ac_compile"
12480 case "(($ac_try" in
12481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12485 $as_echo "$ac_try_echo") >&5
12486 (eval "$ac_compile") 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } && {
12493 test -z "$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12495 } && test -s conftest.$ac_objext; then
12498 cat >conftest.$ac_ext <<_ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 $ac_includes_default
12508 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
12515 rm -f conftest.$ac_objext
12516 if { (ac_try="$ac_compile"
12517 case "(($ac_try" in
12518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12519 *) ac_try_echo
=$ac_try;;
12521 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12522 $as_echo "$ac_try_echo") >&5
12523 (eval "$ac_compile") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1
>conftest.err
12527 cat conftest.err
>&5
12528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && {
12530 test -z "$ac_c_werror_flag" ||
12531 test ! -s conftest.err
12532 } && test -s conftest.
$ac_objext; then
12533 ac_hi
=$ac_mid; break
12535 $as_echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.
$ac_ext >&5
12538 ac_lo
=`expr $ac_mid + 1`
12539 if test $ac_lo -le $ac_mid; then
12543 ac_mid
=`expr 2 '*' $ac_mid + 1`
12546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12549 $as_echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.
$ac_ext >&5
12552 cat >conftest.
$ac_ext <<_ACEOF
12555 cat confdefs.h
>>conftest.
$ac_ext
12556 cat >>conftest.
$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12562 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)];
12569 rm -f conftest.
$ac_objext
12570 if { (ac_try
="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12576 $as_echo "$ac_try_echo") >&5
12577 (eval "$ac_compile") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1 >conftest.err
12581 cat conftest.err >&5
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && {
12584 test -z "$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12586 } && test -s conftest.$ac_objext; then
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 $ac_includes_default
12599 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)];
12606 rm -f conftest.$ac_objext
12607 if { (ac_try="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12610 *) ac_try_echo
=$ac_try;;
12612 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12613 $as_echo "$ac_try_echo") >&5
12614 (eval "$ac_compile") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1
>conftest.err
12618 cat conftest.err
>&5
12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest.
$ac_objext; then
12624 ac_lo
=$ac_mid; break
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.
$ac_ext >&5
12629 ac_hi
=`expr '(' $ac_mid ')' - 1`
12630 if test $ac_mid -le $ac_hi; then
12634 ac_mid
=`expr 2 '*' $ac_mid`
12637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12640 $as_echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.
$ac_ext >&5
12646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12650 # Binary search between lo and hi bounds.
12651 while test "x$ac_lo" != "x$ac_hi"; do
12652 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12653 cat >conftest.
$ac_ext <<_ACEOF
12656 cat confdefs.h
>>conftest.
$ac_ext
12657 cat >>conftest.
$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12663 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
12670 rm -f conftest.
$ac_objext
12671 if { (ac_try
="$ac_compile"
12672 case "(($ac_try" in
12673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12677 $as_echo "$ac_try_echo") >&5
12678 (eval "$ac_compile") 2>conftest.er1
12680 grep -v '^ *+' conftest.er1 >conftest.err
12682 cat conftest.err >&5
12683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_lo=`expr '(' $ac_mid ')' + 1`
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12700 '') if test "$ac_cv_type__Bool" = yes; then
12701 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12703 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12704 See \
`config.log' for more details." >&5
12705 $as_echo "$as_me: error: cannot compute sizeof (_Bool)
12706 See \`config.log
' for more details." >&2;}
12707 { (exit 77); exit 77; }; }; }
12709 ac_cv_sizeof__Bool=0
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 $ac_includes_default
12720 static long int longval () { return (long int) (sizeof (_Bool)); }
12721 static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); }
12723 #include <stdlib.h>
12728 FILE *f = fopen ("conftest.val", "w");
12731 if (((long int) (sizeof (_Bool))) < 0)
12733 long int i = longval ();
12734 if (i != ((long int) (sizeof (_Bool))))
12736 fprintf (f, "%ld", i);
12740 unsigned long int i = ulongval ();
12741 if (i != ((long int) (sizeof (_Bool))))
12743 fprintf (f, "%lu", i);
12745 /* Do not output a trailing newline, as this causes \r\n confusion
12746 on some platforms. */
12747 return ferror (f) || fclose (f) != 0;
12753 rm -f conftest$ac_exeext
12754 if { (ac_try="$ac_link"
12755 case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12760 $as_echo "$ac_try_echo") >&5
12761 (eval "$ac_link") 2>&5
12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
12765 { (case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12770 $as_echo "$ac_try_echo") >&5
12771 (eval "$ac_try") 2>&5
12773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_sizeof__Bool=`cat conftest.val`
12777 $as_echo "$as_me: program exited with status $ac_status" >&5
12778 $as_echo "$as_me: failed program was:" >&5
12779 sed 's
/^
/|
/' conftest.$ac_ext >&5
12781 ( exit $ac_status )
12782 if test "$ac_cv_type__Bool" = yes; then
12783 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12784 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
12785 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12786 See \`config.log
' for more details." >&5
12787 $as_echo "$as_me: error: cannot compute sizeof (_Bool)
12788 See \`config.log' for more details.
" >&2;}
12789 { (exit 77); exit 77; }; }; }
12791 ac_cv_sizeof__Bool=0
12794 rm -rf conftest.dSYM
12795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12799 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof__Bool" >&5
12800 $as_echo "$ac_cv_sizeof__Bool" >&6; }
12804 cat >>confdefs.h <<_ACEOF
12805 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12811 { $as_echo "$as_me:$LINENO: checking
for uintptr_t
" >&5
12812 $as_echo_n "checking
for uintptr_t...
" >&6; }
12813 if test "${ac_cv_type_uintptr_t+set}" = set; then
12814 $as_echo_n "(cached
) " >&6
12816 ac_cv_type_uintptr_t=no
12817 cat >conftest.$ac_ext <<_ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 #ifdef HAVE_STDINT_H
12824 #include <stdint.h>
12830 if (sizeof (uintptr_t))
12836 rm -f conftest.$ac_objext
12837 if { (ac_try="$ac_compile"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_compile") 2>conftest.er1
12846 grep -v '^ *+' conftest.er1 >conftest.err
12848 cat conftest.err >&5
12849 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12850 (exit $ac_status); } && {
12851 test -z "$ac_c_werror_flag" ||
12852 test ! -s conftest.err
12853 } && test -s conftest.$ac_objext; then
12854 cat >conftest.$ac_ext <<_ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12860 #ifdef HAVE_STDINT_H
12861 #include <stdint.h>
12867 if (sizeof ((uintptr_t)))
12873 rm -f conftest.$ac_objext
12874 if { (ac_try="$ac_compile"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12880 $as_echo "$ac_try_echo") >&5
12881 (eval "$ac_compile") 2>conftest.er1
12883 grep -v '^ *+' conftest.er1 >conftest.err
12885 cat conftest.err >&5
12886 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest.$ac_objext; then
12893 $as_echo "$as_me: failed program was
:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_cv_type_uintptr_t=yes
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12901 $as_echo "$as_me: failed program was
:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_uintptr_t" >&5
12910 $as_echo "$ac_cv_type_uintptr_t" >&6; }
12911 if test "x
$ac_cv_type_uintptr_t" = x""yes; then
12913 cat >>confdefs.h <<_ACEOF
12914 #define HAVE_UINTPTR_T 1
12917 # The cast to long int works around a bug in the HP C Compiler
12918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12920 # This bug is HP SR number 8606223364.
12921 { $as_echo "$as_me:$LINENO: checking size of uintptr_t
" >&5
12922 $as_echo_n "checking size of uintptr_t...
" >&6; }
12923 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12924 $as_echo_n "(cached
) " >&6
12926 if test "$cross_compiling" = yes; then
12927 # Depending upon the size, compute the lo and hi bounds.
12928 cat >conftest.$ac_ext <<_ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12938 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
12945 rm -f conftest.$ac_objext
12946 if { (ac_try="$ac_compile"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12951 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12952 $as_echo "$ac_try_echo") >&5
12953 (eval "$ac_compile") 2>conftest.er1
12955 grep -v '^ *+' conftest.er1 >conftest.err
12957 cat conftest.err >&5
12958 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12959 (exit $ac_status); } && {
12960 test -z "$ac_c_werror_flag" ||
12961 test ! -s conftest.err
12962 } && test -s conftest.$ac_objext; then
12965 cat >conftest.$ac_ext <<_ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12975 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12989 $as_echo "$ac_try_echo") >&5
12990 (eval "$ac_compile") 2>conftest.er1
12992 grep -v '^ *+' conftest.er1 >conftest.err
12994 cat conftest.err >&5
12995 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12996 (exit $ac_status); } && {
12997 test -z "$ac_c_werror_flag" ||
12998 test ! -s conftest.err
12999 } && test -s conftest.$ac_objext; then
13000 ac_hi=$ac_mid; break
13002 $as_echo "$as_me: failed program was
:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13005 ac_lo=`expr $ac_mid + 1`
13006 if test $ac_lo -le $ac_mid; then
13010 ac_mid=`expr 2 '*' $ac_mid + 1`
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 $as_echo "$as_me: failed program was
:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13019 cat >conftest.$ac_ext <<_ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13025 $ac_includes_default
13029 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
13036 rm -f conftest.$ac_objext
13037 if { (ac_try="$ac_compile"
13038 case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13043 $as_echo "$ac_try_echo") >&5
13044 (eval "$ac_compile") 2>conftest.er1
13046 grep -v '^ *+' conftest.er1 >conftest.err
13048 cat conftest.err >&5
13049 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13050 (exit $ac_status); } && {
13051 test -z "$ac_c_werror_flag" ||
13052 test ! -s conftest.err
13053 } && test -s conftest.$ac_objext; then
13056 cat >conftest.$ac_ext <<_ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13066 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
13073 rm -f conftest.$ac_objext
13074 if { (ac_try="$ac_compile"
13075 case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13080 $as_echo "$ac_try_echo") >&5
13081 (eval "$ac_compile") 2>conftest.er1
13083 grep -v '^ *+' conftest.er1 >conftest.err
13085 cat conftest.err >&5
13086 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13087 (exit $ac_status); } && {
13088 test -z "$ac_c_werror_flag" ||
13089 test ! -s conftest.err
13090 } && test -s conftest.$ac_objext; then
13091 ac_lo=$ac_mid; break
13093 $as_echo "$as_me: failed program was
:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_hi=`expr '(' $ac_mid ')' - 1`
13097 if test $ac_mid -le $ac_hi; then
13101 ac_mid=`expr 2 '*' $ac_mid`
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13107 $as_echo "$as_me: failed program was
:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 # Binary search between lo and hi bounds.
13118 while test "x
$ac_lo" != "x
$ac_hi"; do
13119 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13120 cat >conftest.$ac_ext <<_ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 $ac_includes_default
13130 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
13137 rm -f conftest.$ac_objext
13138 if { (ac_try="$ac_compile"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145 (eval "$ac_compile") 2>conftest.er1
13147 grep -v '^ *+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest.$ac_objext; then
13157 $as_echo "$as_me: failed program was
:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_lo=`expr '(' $ac_mid ')' + 1`
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
13167 '') if test "$ac_cv_type_uintptr_t" = yes; then
13168 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
13169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13170 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13171 See \`config.log' for more details.
" >&5
13172 $as_echo "$as_me: error
: cannot compute sizeof
(uintptr_t
)
13173 See \
`config.log' for more details." >&2;}
13174 { (exit 77); exit 77; }; }; }
13176 ac_cv_sizeof_uintptr_t=0
13180 cat >conftest.$ac_ext <<_ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 $ac_includes_default
13187 static long int longval () { return (long int) (sizeof (uintptr_t)); }
13188 static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
13190 #include <stdlib.h>
13195 FILE *f = fopen ("conftest.val", "w");
13198 if (((long int) (sizeof (uintptr_t))) < 0)
13200 long int i = longval ();
13201 if (i != ((long int) (sizeof (uintptr_t))))
13203 fprintf (f, "%ld", i);
13207 unsigned long int i = ulongval ();
13208 if (i != ((long int) (sizeof (uintptr_t))))
13210 fprintf (f, "%lu", i);
13212 /* Do not output a trailing newline, as this causes \r\n confusion
13213 on some platforms. */
13214 return ferror (f) || fclose (f) != 0;
13220 rm -f conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13224 *) ac_try_echo
=$ac_try;;
13226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13227 $as_echo "$ac_try_echo") >&5
13228 (eval "$ac_link") 2>&5
13230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13232 { (case "(($ac_try" in
13233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13237 $as_echo "$ac_try_echo") >&5
13238 (eval "$ac_try") 2>&5
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 ac_cv_sizeof_uintptr_t=`cat conftest.val
`
13244 $as_echo "$as_me: program exited with status $ac_status" >&5
13245 $as_echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ( exit $ac_status )
13249 if test "$ac_cv_type_uintptr_t" = yes; then
13250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13252 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
13253 See \
`config.log' for more details." >&5
13254 $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
13255 See \`config.log
' for more details." >&2;}
13256 { (exit 77); exit 77; }; }; }
13258 ac_cv_sizeof_uintptr_t=0
13261 rm -rf conftest.dSYM
13262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13266 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13267 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
13271 cat >>confdefs.h <<_ACEOF
13272 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13280 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
13281 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
13282 $as_echo_n "checking size of off_t... " >&6; }
13283 if test "${ac_cv_sizeof_off_t+set}" = set; then
13284 $as_echo_n "(cached) " >&6
13286 if test "$cross_compiling" = yes; then
13287 ac_cv_sizeof_off_t
=4
13289 cat >conftest.
$ac_ext <<_ACEOF
13292 cat confdefs.h
>>conftest.
$ac_ext
13293 cat >>conftest.
$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13296 #include <sys/types.h>
13299 FILE *f=fopen("conftestval", "w");
13301 fprintf(f, "%d\n", sizeof(off_t));
13305 rm -f conftest
$ac_exeext
13306 if { (ac_try
="$ac_link"
13307 case "(($ac_try" in
13308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13312 $as_echo "$ac_try_echo") >&5
13313 (eval "$ac_link") 2>&5
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13319 *) ac_try_echo
=$ac_try;;
13321 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13322 $as_echo "$ac_try_echo") >&5
13323 (eval "$ac_try") 2>&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_sizeof_off_t
=`cat conftestval`
13329 $as_echo "$as_me: program exited with status $ac_status" >&5
13330 $as_echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.
$ac_ext >&5
13333 ( exit $ac_status )
13334 ac_cv_sizeof_off_t
=0
13336 rm -rf conftest.dSYM
13337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13344 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13345 $as_echo "$ac_cv_sizeof_off_t" >&6; }
13347 cat >>confdefs.h
<<_ACEOF
13348 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13352 { $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13353 $as_echo_n "checking whether to enable large file support... " >&6; }
13354 if test "$have_long_long" = yes
13356 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13357 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13359 cat >>confdefs.h
<<\_ACEOF
13360 #define HAVE_LARGEFILE_SUPPORT 1
13363 { $as_echo "$as_me:$LINENO: result: yes" >&5
13364 $as_echo "yes" >&6; }
13366 { $as_echo "$as_me:$LINENO: result: no" >&5
13367 $as_echo "no" >&6; }
13370 { $as_echo "$as_me:$LINENO: result: no" >&5
13371 $as_echo "no" >&6; }
13374 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13375 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
13376 $as_echo_n "checking size of time_t... " >&6; }
13377 if test "${ac_cv_sizeof_time_t+set}" = set; then
13378 $as_echo_n "(cached) " >&6
13380 if test "$cross_compiling" = yes; then
13381 ac_cv_sizeof_time_t
=4
13383 cat >conftest.
$ac_ext <<_ACEOF
13386 cat confdefs.h
>>conftest.
$ac_ext
13387 cat >>conftest.
$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13393 FILE *f=fopen("conftestval", "w");
13395 fprintf(f, "%d\n", sizeof(time_t));
13399 rm -f conftest
$ac_exeext
13400 if { (ac_try
="$ac_link"
13401 case "(($ac_try" in
13402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406 $as_echo "$ac_try_echo") >&5
13407 (eval "$ac_link") 2>&5
13409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13413 *) ac_try_echo
=$ac_try;;
13415 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13416 $as_echo "$ac_try_echo") >&5
13417 (eval "$ac_try") 2>&5
13419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_sizeof_time_t
=`cat conftestval`
13423 $as_echo "$as_me: program exited with status $ac_status" >&5
13424 $as_echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.
$ac_ext >&5
13427 ( exit $ac_status )
13428 ac_cv_sizeof_time_t
=0
13430 rm -rf conftest.dSYM
13431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13438 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13439 $as_echo "$ac_cv_sizeof_time_t" >&6; }
13441 cat >>confdefs.h
<<_ACEOF
13442 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13447 # if have pthread_t then define SIZEOF_PTHREAD_T
13449 if test "$ac_cv_kpthread" = "yes"
13450 then CC
="$CC -Kpthread"
13451 elif test "$ac_cv_kthread" = "yes"
13452 then CC
="$CC -Kthread"
13453 elif test "$ac_cv_pthread" = "yes"
13454 then CC
="$CC -pthread"
13456 { $as_echo "$as_me:$LINENO: checking for pthread_t" >&5
13457 $as_echo_n "checking for pthread_t... " >&6; }
13459 cat >conftest.
$ac_ext <<_ACEOF
13462 cat confdefs.h
>>conftest.
$ac_ext
13463 cat >>conftest.
$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 #include <pthread.h>
13469 pthread_t x; x = *(pthread_t*)0;
13474 rm -f conftest.
$ac_objext
13475 if { (ac_try
="$ac_compile"
13476 case "(($ac_try" in
13477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13481 $as_echo "$ac_try_echo") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13484 grep -v '^ *+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && {
13489 test -z "$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 } && test -s conftest.$ac_objext; then
13494 $as_echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13502 $as_echo "$have_pthread_t" >&6; }
13503 if test "$have_pthread_t" = yes ; then
13504 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13505 { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
13506 $as_echo_n "checking size of pthread_t... " >&6; }
13507 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13508 $as_echo_n "(cached) " >&6
13510 if test "$cross_compiling" = yes; then
13511 ac_cv_sizeof_pthread_t=4
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13520 #include <pthread.h>
13523 FILE *f=fopen("conftestval", "w");
13525 fprintf(f, "%d\n", sizeof(pthread_t));
13529 rm -f conftest$ac_exeext
13530 if { (ac_try="$ac_link"
13531 case "(($ac_try" in
13532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13533 *) ac_try_echo
=$ac_try;;
13535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13536 $as_echo "$ac_try_echo") >&5
13537 (eval "$ac_link") 2>&5
13539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13541 { (case "(($ac_try" in
13542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13546 $as_echo "$ac_try_echo") >&5
13547 (eval "$ac_try") 2>&5
13549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
13551 ac_cv_sizeof_pthread_t=`cat conftestval
`
13553 $as_echo "$as_me: program exited with status $ac_status" >&5
13554 $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 ( exit $ac_status )
13558 ac_cv_sizeof_pthread_t=0
13560 rm -rf conftest.dSYM
13561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13568 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13569 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
13571 cat >>confdefs.h <<_ACEOF
13572 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13581 case $ac_sys_system/$ac_sys_release in
13582 Darwin/[01567]\..*)
13583 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13586 OTHER_LIBTOOL_OPT=""
13593 case $ac_sys_system/$ac_sys_release in
13594 Darwin/[01567]\..*)
13595 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13596 if test "${enable_universalsdk}"; then
13599 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr
/bin
/arch
`"
13601 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13602 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13604 gcc_version=`gcc
-dumpversion`
13605 if test ${gcc_version} '<' 4.0
13607 LIBTOOL_CRUFT="-lcc_dynamic"
13611 if test "$cross_compiling" = yes; then
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13621 #include <unistd.h>
13622 int main(int argc, char*argv[])
13624 if (sizeof(long) == 4) {
13632 rm -f conftest$ac_exeext
13633 if { (ac_try="$ac_link"
13634 case "(($ac_try" in
13635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13636 *) ac_try_echo
=$ac_try;;
13638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13639 $as_echo "$ac_try_echo") >&5
13640 (eval "$ac_link") 2>&5
13642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13644 { (case "(($ac_try" in
13645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13649 $as_echo "$ac_try_echo") >&5
13650 (eval "$ac_try") 2>&5
13652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13656 $as_echo "$as_me: program exited with status $ac_status" >&5
13657 $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ( exit $ac_status )
13663 rm -rf conftest.dSYM
13664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13669 if test "${ac_osx_32bit}" = "yes"; then
13670 case `/usr
/bin
/arch
` in
13672 MACOSX_DEFAULT_ARCH="i386"
13675 MACOSX_DEFAULT_ARCH="ppc"
13678 { { $as_echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13679 $as_echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13680 { (exit 1); exit 1; }; }
13684 case `/usr
/bin
/arch
` in
13686 MACOSX_DEFAULT_ARCH="x86_64"
13689 MACOSX_DEFAULT_ARCH="ppc64"
13692 { { $as_echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13693 $as_echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13694 { (exit 1); exit 1; }; }
13698 #ARCH_RUN_32BIT="true"
13701 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13702 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13703 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13706 { $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5
13707 $as_echo_n "checking for --enable-framework... " >&6; }
13708 if test "$enable_framework"
13710 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13711 # -F. is needed to allow linking to the framework while
13712 # in the build location.
13714 cat >>confdefs.h <<\_ACEOF
13715 #define WITH_NEXT_FRAMEWORK 1
13718 { $as_echo "$as_me:$LINENO: result: yes" >&5
13719 $as_echo "yes" >&6; }
13720 if test $enable_shared = "yes"
13722 { { $as_echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13723 $as_echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13724 { (exit 1); exit 1; }; }
13727 { $as_echo "$as_me:$LINENO: result: no" >&5
13728 $as_echo "no" >&6; }
13731 { $as_echo "$as_me:$LINENO: checking for dyld" >&5
13732 $as_echo_n "checking for dyld... " >&6; }
13733 case $ac_sys_system/$ac_sys_release in
13736 cat >>confdefs.h <<\_ACEOF
13737 #define WITH_DYLD 1
13740 { $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5
13741 $as_echo "always on for Darwin" >&6; }
13744 { $as_echo "$as_me:$LINENO: result: no" >&5
13745 $as_echo "no" >&6; }
13749 # Set info about shared libraries.
13755 # SO is the extension of shared libraries `(including the dot
!)
13756 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13757 { $as_echo "$as_me:$LINENO: checking SO" >&5
13758 $as_echo_n "checking SO... " >&6; }
13761 case $ac_sys_system in
13772 # this might also be a termcap variable, see #610332
13774 echo '====================================================================='
13776 echo '+ WARNING: You have set SO in your environment. +'
13777 echo '+ Do you really mean to change the extension for shared libraries? +'
13778 echo '+ Continuing in 10 seconds to let you to ponder. +'
13780 echo '====================================================================='
13783 { $as_echo "$as_me:$LINENO: result: $SO" >&5
13784 $as_echo "$SO" >&6; }
13787 cat >>confdefs.h
<<_ACEOF
13788 #define SHLIB_EXT "$SO"
13791 # LDSHARED is the ld *command* used to create shared library
13792 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13793 # (Shared libraries in this instance are shared modules to be loaded into
13794 # Python, as opposed to building Python itself as a shared library.)
13795 { $as_echo "$as_me:$LINENO: checking LDSHARED" >&5
13796 $as_echo_n "checking LDSHARED... " >&6; }
13797 if test -z "$LDSHARED"
13799 case $ac_sys_system/$ac_sys_release in
13801 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13802 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13804 IRIX
/5*) LDSHARED
="ld -shared";;
13805 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13807 if test "$GCC" = "yes"
13808 then LDSHARED
='$(CC) -shared'
13809 else LDSHARED
='$(CC) -G';
13812 if test "$GCC" = "yes"
13813 then LDSHARED
='$(CC) -shared'
13814 else LDSHARED
='ld -b';
13816 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13818 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13819 if test "$enable_framework" ; then
13820 # Link against the framework. All externals should be defined.
13821 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13822 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13824 # No framework. Ignore undefined symbols, assuming they come from Python
13825 LDSHARED
="$LDSHARED -undefined suppress"
13827 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13828 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13829 if test "$enable_framework" ; then
13830 # Link against the framework. All externals should be defined.
13831 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13832 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13834 # No framework, use the Python app as bundle-loader
13835 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13836 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13839 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13840 # This allows an extension to be used in any Python
13842 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13844 if test "${enable_universalsdk}"; then
13845 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13847 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13848 BLDSHARED
="$LDSHARED"
13850 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13851 if test "$enable_framework" ; then
13852 # Link against the framework. All externals should be defined.
13853 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13854 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13856 # No framework, use the Python app as bundle-loader
13857 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13858 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13862 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13863 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13865 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13867 LDSHARED
='$(CC) -shared ${LDFLAGS}'
13869 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13872 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13874 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13877 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13878 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13881 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13885 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13886 OpenUNIX
*|UnixWare
*)
13887 if test "$GCC" = "yes"
13888 then LDSHARED
='$(CC) -shared'
13889 else LDSHARED
='$(CC) -G'
13891 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13892 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13893 atheos
*) LDSHARED
="gcc -shared";;
13897 { $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5
13898 $as_echo "$LDSHARED" >&6; }
13899 BLDSHARED
=${BLDSHARED-$LDSHARED}
13900 # CCSHARED are the C *flags* used to create objects to go into a shared
13901 # library (module) -- this is only needed for a few systems
13902 { $as_echo "$as_me:$LINENO: checking CCSHARED" >&5
13903 $as_echo_n "checking CCSHARED... " >&6; }
13904 if test -z "$CCSHARED"
13906 case $ac_sys_system/$ac_sys_release in
13907 SunOS
*) if test "$GCC" = yes;
13908 then CCSHARED
="-fPIC";
13909 elif test `uname -p` = sparc
;
13910 then CCSHARED
="-xcode=pic32";
13911 else CCSHARED
="-Kpic";
13913 hp
*|HP
*) if test "$GCC" = yes;
13914 then CCSHARED
="-fPIC";
13915 else CCSHARED
="+z";
13917 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13918 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13919 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13920 OpenUNIX
*|UnixWare
*)
13921 if test "$GCC" = "yes"
13922 then CCSHARED
="-fPIC"
13923 else CCSHARED
="-KPIC"
13926 if test "$GCC" = "yes"
13927 then CCSHARED
="-fPIC"
13928 else CCSHARED
="-Kpic -belf"
13930 IRIX
*/6*) case $CC in
13931 *gcc
*) CCSHARED
="-shared";;
13934 atheos
*) CCSHARED
="-fPIC";;
13937 { $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5
13938 $as_echo "$CCSHARED" >&6; }
13939 # LINKFORSHARED are the flags passed to the $(CC) command that links
13940 # the python executable -- this is only needed for a few systems
13941 { $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13942 $as_echo_n "checking LINKFORSHARED... " >&6; }
13943 if test -z "$LINKFORSHARED"
13945 case $ac_sys_system/$ac_sys_release in
13946 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13948 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13949 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13950 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13951 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13952 # -u libsys_s pulls in all symbols in libsys
13954 LINKFORSHARED
="$extra_undefs -framework CoreFoundation"
13955 if test "$enable_framework"
13957 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13959 LINKFORSHARED
="$LINKFORSHARED";;
13960 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13961 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13962 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13963 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13964 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13966 LINKFORSHARED
="-Wl,--export-dynamic"
13968 SunOS
/5*) case $CC in
13970 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13972 LINKFORSHARED
="-Xlinker --export-dynamic"
13976 if test $enable_shared = "no"
13978 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13981 # -Wl,-E causes the symbols to be added to the dynamic
13982 # symbol table so that they can be found when a module
13983 # is loaded. -N 2048K causes the stack size to be set
13984 # to 2048 kilobytes so that the stack doesn't overflow
13985 # when running test_compile.py.
13986 LINKFORSHARED
='-Wl,-E -N 2048K';;
13989 { $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13990 $as_echo "$LINKFORSHARED" >&6; }
13994 { $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13995 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
13996 if test ! "$LIBRARY" = "$LDLIBRARY"
13998 case $ac_sys_system in
14000 # Cygwin needs CCSHARED when building extension DLLs
14001 # but not when building the interpreter DLL.
14002 CFLAGSFORSHARED
='';;
14004 CFLAGSFORSHARED
='$(CCSHARED)'
14007 { $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14008 $as_echo "$CFLAGSFORSHARED" >&6; }
14010 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14011 # library (with --enable-shared).
14012 # For platforms on which shared libraries are not allowed to have unresolved
14013 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14014 # if it is not required, since it creates a dependency of the shared library
14015 # to LIBS. This, in turn, means that applications linking the shared libpython
14016 # don't need to link LIBS explicitly. The default should be only changed
14017 # on systems where this approach causes problems.
14019 { $as_echo "$as_me:$LINENO: checking SHLIBS" >&5
14020 $as_echo_n "checking SHLIBS... " >&6; }
14021 case "$ac_sys_system" in
14025 { $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5
14026 $as_echo "$SHLIBS" >&6; }
14029 # checks for libraries
14031 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14032 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14033 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14034 $as_echo_n "(cached) " >&6
14036 ac_check_lib_save_LIBS
=$LIBS
14038 cat >conftest.
$ac_ext <<_ACEOF
14041 cat confdefs.h
>>conftest.
$ac_ext
14042 cat >>conftest.
$ac_ext <<_ACEOF
14043 /* end confdefs.h. */
14045 /* Override any GCC internal prototype to avoid an error.
14046 Use char because int might match the return type of a GCC
14047 builtin and then its argument prototype would still apply. */
14060 rm -f conftest.
$ac_objext conftest
$ac_exeext
14061 if { (ac_try
="$ac_link"
14062 case "(($ac_try" in
14063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14067 $as_echo "$ac_try_echo") >&5
14068 (eval "$ac_link") 2>conftest.er1
14070 grep -v '^ *+' conftest.er1 >conftest.err
14072 cat conftest.err >&5
14073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest$ac_exeext && {
14078 test "$cross_compiling" = yes ||
14079 $as_test_x conftest$ac_exeext
14081 ac_cv_lib_dl_dlopen=yes
14083 $as_echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_cv_lib_dl_dlopen=no
14089 rm -rf conftest.dSYM
14090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14095 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14096 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_LIBDL 1
14104 # Dynamic linking for SunOS/Solaris and SYSV
14106 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14107 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14108 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14109 $as_echo_n "(cached) " >&6
14111 ac_check_lib_save_LIBS=$LIBS
14113 cat >conftest.$ac_ext <<_ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14130 return shl_load ();
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (ac_try="$ac_link"
14137 case "(($ac_try" in
14138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14139 *) ac_try_echo
=$ac_try;;
14141 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14142 $as_echo "$ac_try_echo") >&5
14143 (eval "$ac_link") 2>conftest.er1
14145 grep -v '^ *+' conftest.er1
>conftest.err
14147 cat conftest.err
>&5
14148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest
$ac_exeext && {
14153 test "$cross_compiling" = yes ||
14154 $as_test_x conftest
$ac_exeext
14156 ac_cv_lib_dld_shl_load
=yes
14158 $as_echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.
$ac_ext >&5
14161 ac_cv_lib_dld_shl_load
=no
14164 rm -rf conftest.dSYM
14165 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14166 conftest
$ac_exeext conftest.
$ac_ext
14167 LIBS
=$ac_check_lib_save_LIBS
14169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14170 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14171 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
14172 cat >>confdefs.h
<<_ACEOF
14173 #define HAVE_LIBDLD 1
14179 # Dynamic linking for HP-UX
14181 # only check for sem_init if thread support is requested
14182 if test "$with_threads" = "yes" -o -z "$with_threads"; then
14183 { $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5
14184 $as_echo_n "checking for library containing sem_init... " >&6; }
14185 if test "${ac_cv_search_sem_init+set}" = set; then
14186 $as_echo_n "(cached) " >&6
14188 ac_func_search_save_LIBS
=$LIBS
14189 cat >conftest.
$ac_ext <<_ACEOF
14192 cat confdefs.h
>>conftest.
$ac_ext
14193 cat >>conftest.
$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14196 /* Override any GCC internal prototype to avoid an error.
14197 Use char because int might match the return type of a GCC
14198 builtin and then its argument prototype would still apply. */
14206 return sem_init ();
14211 for ac_lib
in '' pthread rt posix4
; do
14212 if test -z "$ac_lib"; then
14213 ac_res
="none required"
14216 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14218 rm -f conftest.
$ac_objext conftest
$ac_exeext
14219 if { (ac_try
="$ac_link"
14220 case "(($ac_try" in
14221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14225 $as_echo "$ac_try_echo") >&5
14226 (eval "$ac_link") 2>conftest.er1
14228 grep -v '^ *+' conftest.er1 >conftest.err
14230 cat conftest.err >&5
14231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } && {
14233 test -z "$ac_c_werror_flag" ||
14234 test ! -s conftest.err
14235 } && test -s conftest$ac_exeext && {
14236 test "$cross_compiling" = yes ||
14237 $as_test_x conftest$ac_exeext
14239 ac_cv_search_sem_init=$ac_res
14241 $as_echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14247 rm -rf conftest.dSYM
14248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14250 if test "${ac_cv_search_sem_init+set}" = set; then
14254 if test "${ac_cv_search_sem_init+set}" = set; then
14257 ac_cv_search_sem_init=no
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14262 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
14263 $as_echo "$ac_cv_search_sem_init" >&6; }
14264 ac_res=$ac_cv_search_sem_init
14265 if test "$ac_res" != no; then
14266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14269 # 'Real Time' functions on Solaris
14270 # posix4 on Solaris 2.6
14271 # pthread (first!) on Linux
14274 # check if we need libintl for locale functions
14275 { $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
14276 $as_echo_n "checking for textdomain in -lintl... " >&6; }
14277 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
14278 $as_echo_n "(cached) " >&6
14280 ac_check_lib_save_LIBS=$LIBS
14281 LIBS="-lintl $LIBS"
14282 cat >conftest.$ac_ext <<_ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14289 /* Override any GCC internal prototype to avoid an error.
14290 Use char because int might match the return type of a GCC
14291 builtin and then its argument prototype would still apply. */
14295 char textdomain ();
14299 return textdomain ();
14304 rm -f conftest.$ac_objext conftest$ac_exeext
14305 if { (ac_try="$ac_link"
14306 case "(($ac_try" in
14307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14308 *) ac_try_echo
=$ac_try;;
14310 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14311 $as_echo "$ac_try_echo") >&5
14312 (eval "$ac_link") 2>conftest.er1
14314 grep -v '^ *+' conftest.er1
>conftest.err
14316 cat conftest.err
>&5
14317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } && {
14319 test -z "$ac_c_werror_flag" ||
14320 test ! -s conftest.err
14321 } && test -s conftest
$ac_exeext && {
14322 test "$cross_compiling" = yes ||
14323 $as_test_x conftest
$ac_exeext
14325 ac_cv_lib_intl_textdomain
=yes
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.
$ac_ext >&5
14330 ac_cv_lib_intl_textdomain
=no
14333 rm -rf conftest.dSYM
14334 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14335 conftest
$ac_exeext conftest.
$ac_ext
14336 LIBS
=$ac_check_lib_save_LIBS
14338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14339 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
14340 if test "x$ac_cv_lib_intl_textdomain" = x
""yes; then
14342 cat >>confdefs.h
<<\_ACEOF
14343 #define WITH_LIBINTL 1
14346 LIBS
="-lintl $LIBS"
14350 # checks for system dependent C++ extensions support
14351 case "$ac_sys_system" in
14352 AIX
*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14353 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
14354 cat >conftest.
$ac_ext <<_ACEOF
14357 cat confdefs.h
>>conftest.
$ac_ext
14358 cat >>conftest.
$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include "/usr/lpp/xlC/include/load.h"
14364 loadAndInit("", 0, "")
14369 rm -f conftest.
$ac_objext conftest
$ac_exeext
14370 if { (ac_try
="$ac_link"
14371 case "(($ac_try" in
14372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14376 $as_echo "$ac_try_echo") >&5
14377 (eval "$ac_link") 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext && {
14387 test "$cross_compiling" = yes ||
14388 $as_test_x conftest$ac_exeext
14391 cat >>confdefs.h <<\_ACEOF
14392 #define AIX_GENUINE_CPLUSPLUS 1
14395 { $as_echo "$as_me:$LINENO: result: yes" >&5
14396 $as_echo "yes" >&6; }
14398 $as_echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 { $as_echo "$as_me:$LINENO: result: no" >&5
14402 $as_echo "no" >&6; }
14405 rm -rf conftest.dSYM
14406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14407 conftest$ac_exeext conftest.$ac_ext;;
14411 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14412 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14413 $as_echo_n "checking for t_open in -lnsl... " >&6; }
14414 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14415 $as_echo_n "(cached) " >&6
14417 ac_check_lib_save_LIBS=$LIBS
14419 cat >conftest.$ac_ext <<_ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14426 /* Override any GCC internal prototype to avoid an error.
14427 Use char because int might match the return type of a GCC
14428 builtin and then its argument prototype would still apply. */
14441 rm -f conftest.$ac_objext conftest$ac_exeext
14442 if { (ac_try="$ac_link"
14443 case "(($ac_try" in
14444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14445 *) ac_try_echo
=$ac_try;;
14447 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14448 $as_echo "$ac_try_echo") >&5
14449 (eval "$ac_link") 2>conftest.er1
14451 grep -v '^ *+' conftest.er1
>conftest.err
14453 cat conftest.err
>&5
14454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest
$ac_exeext && {
14459 test "$cross_compiling" = yes ||
14460 $as_test_x conftest
$ac_exeext
14462 ac_cv_lib_nsl_t_open
=yes
14464 $as_echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.
$ac_ext >&5
14467 ac_cv_lib_nsl_t_open
=no
14470 rm -rf conftest.dSYM
14471 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14472 conftest
$ac_exeext conftest.
$ac_ext
14473 LIBS
=$ac_check_lib_save_LIBS
14475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14476 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
14477 if test "x$ac_cv_lib_nsl_t_open" = x
""yes; then
14481 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14482 $as_echo_n "checking for socket in -lsocket... " >&6; }
14483 if test "${ac_cv_lib_socket_socket+set}" = set; then
14484 $as_echo_n "(cached) " >&6
14486 ac_check_lib_save_LIBS
=$LIBS
14487 LIBS
="-lsocket $LIBS $LIBS"
14488 cat >conftest.
$ac_ext <<_ACEOF
14491 cat confdefs.h
>>conftest.
$ac_ext
14492 cat >>conftest.
$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14510 rm -f conftest.
$ac_objext conftest
$ac_exeext
14511 if { (ac_try
="$ac_link"
14512 case "(($ac_try" in
14513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14517 $as_echo "$ac_try_echo") >&5
14518 (eval "$ac_link") 2>conftest.er1
14520 grep -v '^ *+' conftest.er1 >conftest.err
14522 cat conftest.err >&5
14523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } && {
14525 test -z "$ac_c_werror_flag" ||
14526 test ! -s conftest.err
14527 } && test -s conftest$ac_exeext && {
14528 test "$cross_compiling" = yes ||
14529 $as_test_x conftest$ac_exeext
14531 ac_cv_lib_socket_socket=yes
14533 $as_echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 ac_cv_lib_socket_socket=no
14539 rm -rf conftest.dSYM
14540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14541 conftest$ac_exeext conftest.$ac_ext
14542 LIBS=$ac_check_lib_save_LIBS
14544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14545 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14546 if test "x$ac_cv_lib_socket_socket" = x""yes; then
14547 LIBS="-lsocket $LIBS"
14551 { $as_echo "$as_me:$LINENO: checking for --with-libs" >&5
14552 $as_echo_n "checking for --with-libs... " >&6; }
14554 # Check whether --with-libs was given.
14555 if test "${with_libs+set}" = set; then
14556 withval=$with_libs;
14557 { $as_echo "$as_me:$LINENO: result: $withval" >&5
14558 $as_echo "$withval" >&6; }
14559 LIBS="$withval $LIBS"
14562 { $as_echo "$as_me:$LINENO: result: no" >&5
14563 $as_echo "no" >&6; }
14567 # Check for use of the system libffi library
14568 { $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14569 $as_echo_n "checking for --with-system-ffi... " >&6; }
14571 # Check whether --with-system_ffi was given.
14572 if test "${with_system_ffi+set}" = set; then
14573 withval=$with_system_ffi;
14577 { $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14578 $as_echo "$with_system_ffi" >&6; }
14580 # Check for --with-dbmliborder
14581 { $as_echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14582 $as_echo_n "checking for --with-dbmliborder... " >&6; }
14584 # Check whether --with-dbmliborder was given.
14585 if test "${with_dbmliborder+set}" = set; then
14586 withval=$with_dbmliborder;
14587 if test x$with_dbmliborder = xyes
14589 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14590 $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14591 { (exit 1); exit 1; }; }
14593 for db in `echo $with_dbmliborder |
sed 's/:/ /g'`; do
14594 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14596 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14597 $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14598 { (exit 1); exit 1; }; }
14604 { $as_echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14605 $as_echo "$with_dbmliborder" >&6; }
14607 # Determine if signalmodule should be used.
14610 { $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14611 $as_echo_n "checking for --with-signal-module... " >&6; }
14613 # Check whether --with-signal-module was given.
14614 if test "${with_signal_module+set}" = set; then
14615 withval=$with_signal_module;
14619 if test -z "$with_signal_module"
14620 then with_signal_module="yes"
14622 { $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5
14623 $as_echo "$with_signal_module" >&6; }
14625 if test "${with_signal_module}" = "yes"; then
14626 USE_SIGNAL_MODULE=""
14629 USE_SIGNAL_MODULE="#"
14630 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14633 # This is used to generate Setup.config
14635 USE_THREAD_MODULE=""
14637 { $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14638 $as_echo_n "checking for --with-dec-threads... " >&6; }
14641 # Check whether --with-dec-threads was given.
14642 if test "${with_dec_threads+set}" = set; then
14643 withval=$with_dec_threads;
14644 { $as_echo "$as_me:$LINENO: result: $withval" >&5
14645 $as_echo "$withval" >&6; }
14647 if test "${with_thread+set}" != set; then
14648 with_thread="$withval";
14651 { $as_echo "$as_me:$LINENO: result: no" >&5
14652 $as_echo "no" >&6; }
14656 # Templates for things AC_DEFINEd more than once.
14657 # For a single AC_DEFINE, no template is needed.
14665 { $as_echo "$as_me:$LINENO: checking for --with-threads" >&5
14666 $as_echo_n "checking for --with-threads... " >&6; }
14668 # Check whether --with-threads was given.
14669 if test "${with_threads+set}" = set; then
14670 withval=$with_threads;
14674 # --with-thread is deprecated, but check for it anyway
14676 # Check whether --with-thread was given.
14677 if test "${with_thread+set}" = set; then
14678 withval=$with_thread; with_threads=$with_thread
14682 if test -z "$with_threads"
14683 then with_threads="yes"
14685 { $as_echo "$as_me:$LINENO: result: $with_threads" >&5
14686 $as_echo "$with_threads" >&6; }
14689 if test "$with_threads" = "no"
14691 USE_THREAD_MODULE="#"
14692 elif test "$ac_cv_pthread_is_default" = yes
14694 cat >>confdefs.h <<\_ACEOF
14695 #define WITH_THREAD 1
14698 # Defining _REENTRANT on system with POSIX threads should not hurt.
14699 cat >>confdefs.h <<\_ACEOF
14700 #define _REENTRANT 1
14704 THREADOBJ="Python/thread.o"
14705 elif test "$ac_cv_kpthread" = "yes"
14708 if test "$ac_cv_cxx_thread" = "yes"; then
14709 CXX="$CXX -Kpthread"
14711 cat >>confdefs.h <<\_ACEOF
14712 #define WITH_THREAD 1
14716 THREADOBJ="Python/thread.o"
14717 elif test "$ac_cv_kthread" = "yes"
14720 if test "$ac_cv_cxx_thread" = "yes"; then
14721 CXX="$CXX -Kthread"
14723 cat >>confdefs.h <<\_ACEOF
14724 #define WITH_THREAD 1
14728 THREADOBJ="Python/thread.o"
14729 elif test "$ac_cv_pthread" = "yes"
14732 if test "$ac_cv_cxx_thread" = "yes"; then
14733 CXX="$CXX -pthread"
14735 cat >>confdefs.h <<\_ACEOF
14736 #define WITH_THREAD 1
14740 THREADOBJ="Python/thread.o"
14742 if test ! -z "$with_threads" -a -d "$with_threads"
14743 then LDFLAGS="$LDFLAGS -L$with_threads"
14745 if test ! -z "$withval" -a -d "$withval"
14746 then LDFLAGS="$LDFLAGS -L$withval"
14749 # According to the POSIX spec, a pthreads implementation must
14750 # define _POSIX_THREADS in unistd.h. Some apparently don't
14751 # (e.g. gnu pth with pthread emulation)
14752 { $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14753 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14761 #include <unistd.h>
14762 #ifdef _POSIX_THREADS
14767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14768 $EGREP "yes" >/dev/null 2>&1; then
14769 unistd_defines_pthreads=yes
14771 unistd_defines_pthreads=no
14775 { $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14776 $as_echo "$unistd_defines_pthreads" >&6; }
14778 cat >>confdefs.h <<\_ACEOF
14779 #define _REENTRANT 1
14782 if test "${ac_cv_header_cthreads_h+set}" = set; then
14783 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
14784 $as_echo_n "checking for cthreads.h... " >&6; }
14785 if test "${ac_cv_header_cthreads_h+set}" = set; then
14786 $as_echo_n "(cached) " >&6
14788 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14789 $as_echo "$ac_cv_header_cthreads_h" >&6; }
14791 # Is the header compilable?
14792 { $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14793 $as_echo_n "checking cthreads.h usability... " >&6; }
14794 cat >conftest.$ac_ext <<_ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 $ac_includes_default
14801 #include <cthreads.h>
14803 rm -f conftest.$ac_objext
14804 if { (ac_try="$ac_compile"
14805 case "(($ac_try" in
14806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14807 *) ac_try_echo
=$ac_try;;
14809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14810 $as_echo "$ac_try_echo") >&5
14811 (eval "$ac_compile") 2>conftest.er1
14813 grep -v '^ *+' conftest.er1
>conftest.err
14815 cat conftest.err
>&5
14816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } && {
14818 test -z "$ac_c_werror_flag" ||
14819 test ! -s conftest.err
14820 } && test -s conftest.
$ac_objext; then
14821 ac_header_compiler
=yes
14823 $as_echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.
$ac_ext >&5
14826 ac_header_compiler
=no
14829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14830 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 $as_echo "$ac_header_compiler" >&6; }
14833 # Is the header present?
14834 { $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14835 $as_echo_n "checking cthreads.h presence... " >&6; }
14836 cat >conftest.
$ac_ext <<_ACEOF
14839 cat confdefs.h
>>conftest.
$ac_ext
14840 cat >>conftest.
$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <cthreads.h>
14844 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14850 $as_echo "$ac_try_echo") >&5
14851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1 >conftest.err
14855 cat conftest.err >&5
14856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } >/dev/null && {
14858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14861 ac_header_preproc=yes
14863 $as_echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_header_preproc=no
14869 rm -f conftest.err conftest.$ac_ext
14870 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14871 $as_echo "$ac_header_preproc" >&6; }
14873 # So? What about this header?
14874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14876 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14877 $as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14878 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14879 $as_echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14880 ac_header_preproc=yes
14883 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14884 $as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14885 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14886 $as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14887 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14888 $as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14889 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14890 $as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14891 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14892 $as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14893 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14894 $as_echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14896 ## -------------------------------------- ##
14897 ## Report this to http://bugs.python.org/ ##
14898 ## -------------------------------------- ##
14900 ) | sed "s/^/$as_me: WARNING: /" >&2
14903 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
14904 $as_echo_n "checking for cthreads.h... " >&6; }
14905 if test "${ac_cv_header_cthreads_h+set}" = set; then
14906 $as_echo_n "(cached) " >&6
14908 ac_cv_header_cthreads_h=$ac_header_preproc
14910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14911 $as_echo "$ac_cv_header_cthreads_h" >&6; }
14914 if test "x$ac_cv_header_cthreads_h" = x""yes; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define WITH_THREAD 1
14919 cat >>confdefs.h <<\_ACEOF
14920 #define C_THREADS 1
14924 cat >>confdefs.h <<\_ACEOF
14925 #define HURD_C_THREADS 1
14928 LIBS="$LIBS -lthreads"
14929 THREADOBJ="Python/thread.o"
14932 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14933 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14934 $as_echo_n "checking for mach/cthreads.h... " >&6; }
14935 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14936 $as_echo_n "(cached) " >&6
14938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14939 $as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
14941 # Is the header compilable?
14942 { $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14943 $as_echo_n "checking mach/cthreads.h usability... " >&6; }
14944 cat >conftest.$ac_ext <<_ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 $ac_includes_default
14951 #include <mach/cthreads.h>
14953 rm -f conftest.$ac_objext
14954 if { (ac_try="$ac_compile"
14955 case "(($ac_try" in
14956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14957 *) ac_try_echo
=$ac_try;;
14959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14960 $as_echo "$ac_try_echo") >&5
14961 (eval "$ac_compile") 2>conftest.er1
14963 grep -v '^ *+' conftest.er1
>conftest.err
14965 cat conftest.err
>&5
14966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } && {
14968 test -z "$ac_c_werror_flag" ||
14969 test ! -s conftest.err
14970 } && test -s conftest.
$ac_objext; then
14971 ac_header_compiler
=yes
14973 $as_echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.
$ac_ext >&5
14976 ac_header_compiler
=no
14979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14981 $as_echo "$ac_header_compiler" >&6; }
14983 # Is the header present?
14984 { $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14985 $as_echo_n "checking mach/cthreads.h presence... " >&6; }
14986 cat >conftest.
$ac_ext <<_ACEOF
14989 cat confdefs.h
>>conftest.
$ac_ext
14990 cat >>conftest.
$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 #include <mach/cthreads.h>
14994 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14995 case "(($ac_try" in
14996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15000 $as_echo "$ac_try_echo") >&5
15001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15003 grep -v '^ *+' conftest.er1 >conftest.err
15005 cat conftest.err >&5
15006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } >/dev/null && {
15008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15009 test ! -s conftest.err
15011 ac_header_preproc=yes
15013 $as_echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15016 ac_header_preproc=no
15019 rm -f conftest.err conftest.$ac_ext
15020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15021 $as_echo "$ac_header_preproc" >&6; }
15023 # So? What about this header?
15024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15026 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15027 $as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15028 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15029 $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15030 ac_header_preproc=yes
15033 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15034 $as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15035 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15036 $as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15037 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15038 $as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15039 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15040 $as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15041 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15042 $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15043 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15044 $as_echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15046 ## -------------------------------------- ##
15047 ## Report this to http://bugs.python.org/ ##
15048 ## -------------------------------------- ##
15050 ) | sed "s/^/$as_me: WARNING: /" >&2
15053 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15054 $as_echo_n "checking for mach/cthreads.h... " >&6; }
15055 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15056 $as_echo_n "(cached) " >&6
15058 ac_cv_header_mach_cthreads_h=$ac_header_preproc
15060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15061 $as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
15064 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then
15065 cat >>confdefs.h <<\_ACEOF
15066 #define WITH_THREAD 1
15069 cat >>confdefs.h <<\_ACEOF
15070 #define C_THREADS 1
15074 cat >>confdefs.h <<\_ACEOF
15075 #define MACH_C_THREADS 1
15078 THREADOBJ="Python/thread.o"
15081 { $as_echo "$as_me:$LINENO: checking for --with-pth" >&5
15082 $as_echo_n "checking for --with-pth... " >&6; }
15084 # Check whether --with-pth was given.
15085 if test "${with_pth+set}" = set; then
15086 withval=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5
15087 $as_echo "$withval" >&6; }
15088 cat >>confdefs.h <<\_ACEOF
15089 #define WITH_THREAD 1
15093 cat >>confdefs.h <<\_ACEOF
15098 THREADOBJ="Python/thread.o"
15100 { $as_echo "$as_me:$LINENO: result: no" >&5
15101 $as_echo "no" >&6; }
15103 # Just looking for pthread_create in libpthread is not enough:
15104 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
15105 # So we really have to include pthread.h, and then link.
15107 LIBS="$LIBS -lpthread"
15108 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15109 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15110 cat >conftest.$ac_ext <<_ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 #include <pthread.h>
15118 void * start_routine (void *arg) { exit (0); }
15123 pthread_create (NULL, NULL, start_routine, NULL)
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (ac_try="$ac_link"
15130 case "(($ac_try" in
15131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15132 *) ac_try_echo
=$ac_try;;
15134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15135 $as_echo "$ac_try_echo") >&5
15136 (eval "$ac_link") 2>conftest.er1
15138 grep -v '^ *+' conftest.er1
>conftest.err
15140 cat conftest.err
>&5
15141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest
$ac_exeext && {
15146 test "$cross_compiling" = yes ||
15147 $as_test_x conftest
$ac_exeext
15150 { $as_echo "$as_me:$LINENO: result: yes" >&5
15151 $as_echo "yes" >&6; }
15152 cat >>confdefs.h
<<\_ACEOF
15153 #define WITH_THREAD 1
15157 THREADOBJ
="Python/thread.o"
15159 $as_echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.
$ac_ext >&5
15164 { $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5
15165 $as_echo_n "checking for pthread_detach... " >&6; }
15166 if test "${ac_cv_func_pthread_detach+set}" = set; then
15167 $as_echo_n "(cached) " >&6
15169 cat >conftest.
$ac_ext <<_ACEOF
15172 cat confdefs.h
>>conftest.
$ac_ext
15173 cat >>conftest.
$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
15176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15177 #define pthread_detach innocuous_pthread_detach
15179 /* System header to define __stub macros and hopefully few prototypes,
15180 which can conflict with char pthread_detach (); below.
15181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15182 <limits.h> exists even on freestanding compilers. */
15185 # include <limits.h>
15187 # include <assert.h>
15190 #undef pthread_detach
15192 /* Override any GCC internal prototype to avoid an error.
15193 Use char because int might match the return type of a GCC
15194 builtin and then its argument prototype would still apply. */
15198 char pthread_detach ();
15199 /* The GNU C library defines this for functions which it implements
15200 to always fail with ENOSYS. Some functions are actually named
15201 something starting with __ and the normal name is an alias. */
15202 #if defined __stub_pthread_detach || defined __stub___pthread_detach
15209 return pthread_detach ();
15214 rm -f conftest.
$ac_objext conftest
$ac_exeext
15215 if { (ac_try
="$ac_link"
15216 case "(($ac_try" in
15217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15221 $as_echo "$ac_try_echo") >&5
15222 (eval "$ac_link") 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest$ac_exeext && {
15232 test "$cross_compiling" = yes ||
15233 $as_test_x conftest$ac_exeext
15235 ac_cv_func_pthread_detach=yes
15237 $as_echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_cv_func_pthread_detach=no
15243 rm -rf conftest.dSYM
15244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15245 conftest$ac_exeext conftest.$ac_ext
15247 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
15248 $as_echo "$ac_cv_func_pthread_detach" >&6; }
15249 if test "x$ac_cv_func_pthread_detach" = x""yes; then
15250 cat >>confdefs.h <<\_ACEOF
15251 #define WITH_THREAD 1
15255 THREADOBJ="Python/thread.o"
15258 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15259 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15260 $as_echo_n "checking for atheos/threads.h... " >&6; }
15261 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15262 $as_echo_n "(cached) " >&6
15264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15265 $as_echo "$ac_cv_header_atheos_threads_h" >&6; }
15267 # Is the header compilable?
15268 { $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
15269 $as_echo_n "checking atheos/threads.h usability... " >&6; }
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 $ac_includes_default
15277 #include <atheos/threads.h>
15279 rm -f conftest.$ac_objext
15280 if { (ac_try="$ac_compile"
15281 case "(($ac_try" in
15282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15283 *) ac_try_echo
=$ac_try;;
15285 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15286 $as_echo "$ac_try_echo") >&5
15287 (eval "$ac_compile") 2>conftest.er1
15289 grep -v '^ *+' conftest.er1
>conftest.err
15291 cat conftest.err
>&5
15292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } && {
15294 test -z "$ac_c_werror_flag" ||
15295 test ! -s conftest.err
15296 } && test -s conftest.
$ac_objext; then
15297 ac_header_compiler
=yes
15299 $as_echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.
$ac_ext >&5
15302 ac_header_compiler
=no
15305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15306 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15307 $as_echo "$ac_header_compiler" >&6; }
15309 # Is the header present?
15310 { $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15311 $as_echo_n "checking atheos/threads.h presence... " >&6; }
15312 cat >conftest.
$ac_ext <<_ACEOF
15315 cat confdefs.h
>>conftest.
$ac_ext
15316 cat >>conftest.
$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 #include <atheos/threads.h>
15320 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15321 case "(($ac_try" in
15322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15326 $as_echo "$ac_try_echo") >&5
15327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15329 grep -v '^ *+' conftest.er1 >conftest.err
15331 cat conftest.err >&5
15332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } >/dev/null && {
15334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15335 test ! -s conftest.err
15337 ac_header_preproc=yes
15339 $as_echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ac_header_preproc=no
15345 rm -f conftest.err conftest.$ac_ext
15346 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15347 $as_echo "$ac_header_preproc" >&6; }
15349 # So? What about this header?
15350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15352 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15353 $as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15354 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15355 $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15356 ac_header_preproc=yes
15359 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15360 $as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15361 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15362 $as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15363 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15364 $as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15365 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15366 $as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15367 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15368 $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15369 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15370 $as_echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15372 ## -------------------------------------- ##
15373 ## Report this to http://bugs.python.org/ ##
15374 ## -------------------------------------- ##
15376 ) | sed "s/^/$as_me: WARNING: /" >&2
15379 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15380 $as_echo_n "checking for atheos/threads.h... " >&6; }
15381 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15382 $as_echo_n "(cached) " >&6
15384 ac_cv_header_atheos_threads_h=$ac_header_preproc
15386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15387 $as_echo "$ac_cv_header_atheos_threads_h" >&6; }
15390 if test "x$ac_cv_header_atheos_threads_h" = x""yes; then
15391 cat >>confdefs.h <<\_ACEOF
15392 #define WITH_THREAD 1
15396 cat >>confdefs.h <<\_ACEOF
15397 #define ATHEOS_THREADS 1
15400 THREADOBJ="Python/thread.o"
15403 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15404 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
15405 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15406 $as_echo_n "(cached) " >&6
15408 ac_check_lib_save_LIBS=$LIBS
15409 LIBS="-lpthreads $LIBS"
15410 cat >conftest.$ac_ext <<_ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15423 char pthread_create ();
15427 return pthread_create ();
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (ac_try="$ac_link"
15434 case "(($ac_try" in
15435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15436 *) ac_try_echo
=$ac_try;;
15438 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15439 $as_echo "$ac_try_echo") >&5
15440 (eval "$ac_link") 2>conftest.er1
15442 grep -v '^ *+' conftest.er1
>conftest.err
15444 cat conftest.err
>&5
15445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest
$ac_exeext && {
15450 test "$cross_compiling" = yes ||
15451 $as_test_x conftest
$ac_exeext
15453 ac_cv_lib_pthreads_pthread_create
=yes
15455 $as_echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.
$ac_ext >&5
15458 ac_cv_lib_pthreads_pthread_create
=no
15461 rm -rf conftest.dSYM
15462 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15463 conftest
$ac_exeext conftest.
$ac_ext
15464 LIBS
=$ac_check_lib_save_LIBS
15466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15467 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
15468 if test "x$ac_cv_lib_pthreads_pthread_create" = x
""yes; then
15469 cat >>confdefs.h
<<\_ACEOF
15470 #define WITH_THREAD 1
15474 LIBS
="$LIBS -lpthreads"
15475 THREADOBJ
="Python/thread.o"
15478 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15479 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15480 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15481 $as_echo_n "(cached) " >&6
15483 ac_check_lib_save_LIBS
=$LIBS
15485 cat >conftest.
$ac_ext <<_ACEOF
15488 cat confdefs.h
>>conftest.
$ac_ext
15489 cat >>conftest.
$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15492 /* Override any GCC internal prototype to avoid an error.
15493 Use char because int might match the return type of a GCC
15494 builtin and then its argument prototype would still apply. */
15498 char pthread_create ();
15502 return pthread_create ();
15507 rm -f conftest.
$ac_objext conftest
$ac_exeext
15508 if { (ac_try
="$ac_link"
15509 case "(($ac_try" in
15510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15514 $as_echo "$ac_try_echo") >&5
15515 (eval "$ac_link") 2>conftest.er1
15517 grep -v '^ *+' conftest.er1 >conftest.err
15519 cat conftest.err >&5
15520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } && {
15522 test -z "$ac_c_werror_flag" ||
15523 test ! -s conftest.err
15524 } && test -s conftest$ac_exeext && {
15525 test "$cross_compiling" = yes ||
15526 $as_test_x conftest$ac_exeext
15528 ac_cv_lib_c_r_pthread_create=yes
15530 $as_echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_cv_lib_c_r_pthread_create=no
15536 rm -rf conftest.dSYM
15537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15538 conftest$ac_exeext conftest.$ac_ext
15539 LIBS=$ac_check_lib_save_LIBS
15541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15542 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15543 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
15544 cat >>confdefs.h <<\_ACEOF
15545 #define WITH_THREAD 1
15550 THREADOBJ="Python/thread.o"
15553 { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15554 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
15555 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15556 $as_echo_n "(cached) " >&6
15558 ac_check_lib_save_LIBS=$LIBS
15559 LIBS="-lpthread $LIBS"
15560 cat >conftest.$ac_ext <<_ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15567 /* Override any GCC internal prototype to avoid an error.
15568 Use char because int might match the return type of a GCC
15569 builtin and then its argument prototype would still apply. */
15573 char __pthread_create_system ();
15577 return __pthread_create_system ();
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15586 *) ac_try_echo
=$ac_try;;
15588 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15589 $as_echo "$ac_try_echo") >&5
15590 (eval "$ac_link") 2>conftest.er1
15592 grep -v '^ *+' conftest.er1
>conftest.err
15594 cat conftest.err
>&5
15595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && {
15597 test -z "$ac_c_werror_flag" ||
15598 test ! -s conftest.err
15599 } && test -s conftest
$ac_exeext && {
15600 test "$cross_compiling" = yes ||
15601 $as_test_x conftest
$ac_exeext
15603 ac_cv_lib_pthread___pthread_create_system
=yes
15605 $as_echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.
$ac_ext >&5
15608 ac_cv_lib_pthread___pthread_create_system
=no
15611 rm -rf conftest.dSYM
15612 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15613 conftest
$ac_exeext conftest.
$ac_ext
15614 LIBS
=$ac_check_lib_save_LIBS
15616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15617 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
15618 if test "x$ac_cv_lib_pthread___pthread_create_system" = x
""yes; then
15619 cat >>confdefs.h
<<\_ACEOF
15620 #define WITH_THREAD 1
15624 LIBS
="$LIBS -lpthread"
15625 THREADOBJ
="Python/thread.o"
15628 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15629 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
15630 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15631 $as_echo_n "(cached) " >&6
15633 ac_check_lib_save_LIBS
=$LIBS
15635 cat >conftest.
$ac_ext <<_ACEOF
15638 cat confdefs.h
>>conftest.
$ac_ext
15639 cat >>conftest.
$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15642 /* Override any GCC internal prototype to avoid an error.
15643 Use char because int might match the return type of a GCC
15644 builtin and then its argument prototype would still apply. */
15648 char pthread_create ();
15652 return pthread_create ();
15657 rm -f conftest.
$ac_objext conftest
$ac_exeext
15658 if { (ac_try
="$ac_link"
15659 case "(($ac_try" in
15660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15664 $as_echo "$ac_try_echo") >&5
15665 (eval "$ac_link") 2>conftest.er1
15667 grep -v '^ *+' conftest.er1 >conftest.err
15669 cat conftest.err >&5
15670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } && {
15672 test -z "$ac_c_werror_flag" ||
15673 test ! -s conftest.err
15674 } && test -s conftest$ac_exeext && {
15675 test "$cross_compiling" = yes ||
15676 $as_test_x conftest$ac_exeext
15678 ac_cv_lib_cma_pthread_create=yes
15680 $as_echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_cv_lib_cma_pthread_create=no
15686 rm -rf conftest.dSYM
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688 conftest$ac_exeext conftest.$ac_ext
15689 LIBS=$ac_check_lib_save_LIBS
15691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15692 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
15693 if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then
15694 cat >>confdefs.h <<\_ACEOF
15695 #define WITH_THREAD 1
15700 THREADOBJ="Python/thread.o"
15703 USE_THREAD_MODULE="#"
15720 rm -rf conftest.dSYM
15721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15722 conftest$ac_exeext conftest.$ac_ext
15732 { $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15733 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
15734 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15735 $as_echo_n "(cached) " >&6
15737 ac_check_lib_save_LIBS=$LIBS
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15756 return usconfig ();
15761 rm -f conftest.$ac_objext conftest$ac_exeext
15762 if { (ac_try="$ac_link"
15763 case "(($ac_try" in
15764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15765 *) ac_try_echo
=$ac_try;;
15767 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769 (eval "$ac_link") 2>conftest.er1
15771 grep -v '^ *+' conftest.er1
>conftest.err
15773 cat conftest.err
>&5
15774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest
$ac_exeext && {
15779 test "$cross_compiling" = yes ||
15780 $as_test_x conftest
$ac_exeext
15782 ac_cv_lib_mpc_usconfig
=yes
15784 $as_echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.
$ac_ext >&5
15787 ac_cv_lib_mpc_usconfig
=no
15790 rm -rf conftest.dSYM
15791 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15792 conftest
$ac_exeext conftest.
$ac_ext
15793 LIBS
=$ac_check_lib_save_LIBS
15795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15796 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
15797 if test "x$ac_cv_lib_mpc_usconfig" = x
""yes; then
15798 cat >>confdefs.h
<<\_ACEOF
15799 #define WITH_THREAD 1
15803 THREADOBJ
="Python/thread.o"
15804 USE_THREAD_MODULE
=""
15808 if test "$posix_threads" != "yes"; then
15809 { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15810 $as_echo_n "checking for thr_create in -lthread... " >&6; }
15811 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15812 $as_echo_n "(cached) " >&6
15814 ac_check_lib_save_LIBS
=$LIBS
15815 LIBS
="-lthread $LIBS"
15816 cat >conftest.
$ac_ext <<_ACEOF
15819 cat confdefs.h
>>conftest.
$ac_ext
15820 cat >>conftest.
$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15823 /* Override any GCC internal prototype to avoid an error.
15824 Use char because int might match the return type of a GCC
15825 builtin and then its argument prototype would still apply. */
15829 char thr_create ();
15833 return thr_create ();
15838 rm -f conftest.
$ac_objext conftest
$ac_exeext
15839 if { (ac_try
="$ac_link"
15840 case "(($ac_try" in
15841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15845 $as_echo "$ac_try_echo") >&5
15846 (eval "$ac_link") 2>conftest.er1
15848 grep -v '^ *+' conftest.er1 >conftest.err
15850 cat conftest.err >&5
15851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest$ac_exeext && {
15856 test "$cross_compiling" = yes ||
15857 $as_test_x conftest$ac_exeext
15859 ac_cv_lib_thread_thr_create=yes
15861 $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ac_cv_lib_thread_thr_create=no
15867 rm -rf conftest.dSYM
15868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15873 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
15874 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then
15875 cat >>confdefs.h <<\_ACEOF
15876 #define WITH_THREAD 1
15879 LIBS="$LIBS -lthread"
15880 THREADOBJ="Python/thread.o"
15881 USE_THREAD_MODULE=""
15886 if test "$USE_THREAD_MODULE" != "#"
15888 # If the above checks didn't disable threads, (at least) OSF1
15889 # needs this '-threads' argument during linking.
15890 case $ac_sys_system in
15891 OSF1) LDLAST=-threads;;
15896 if test "$posix_threads" = "yes"; then
15897 if test "$unistd_defines_pthreads" = "no"; then
15899 cat >>confdefs.h <<\_ACEOF
15900 #define _POSIX_THREADS 1
15905 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15906 case $ac_sys_system/$ac_sys_release in
15908 cat >>confdefs.h <<\_ACEOF
15909 #define HAVE_PTHREAD_DESTRUCTOR 1
15914 cat >>confdefs.h <<\_ACEOF
15915 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15920 cat >>confdefs.h <<\_ACEOF
15921 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15927 { $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15928 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
15929 if test "${ac_cv_pthread_system_supported+set}" = set; then
15930 $as_echo_n "(cached) " >&6
15932 if test "$cross_compiling" = yes; then
15933 ac_cv_pthread_system_supported=no
15935 cat >conftest.$ac_ext <<_ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 #include <pthread.h>
15942 void *foo(void *parm) {
15946 pthread_attr_t attr;
15948 if (pthread_attr_init(&attr)) exit(-1);
15949 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15950 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15954 rm -f conftest$ac_exeext
15955 if { (ac_try="$ac_link"
15956 case "(($ac_try" in
15957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15958 *) ac_try_echo
=$ac_try;;
15960 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15961 $as_echo "$ac_try_echo") >&5
15962 (eval "$ac_link") 2>&5
15964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15966 { (case "(($ac_try" in
15967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15971 $as_echo "$ac_try_echo") >&5
15972 (eval "$ac_try") 2>&5
15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15976 ac_cv_pthread_system_supported=yes
15978 $as_echo "$as_me: program exited with status $ac_status" >&5
15979 $as_echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 ( exit $ac_status )
15983 ac_cv_pthread_system_supported=no
15985 rm -rf conftest.dSYM
15986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15993 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15994 $as_echo "$ac_cv_pthread_system_supported" >&6; }
15995 if test "$ac_cv_pthread_system_supported" = "yes"; then
15997 cat >>confdefs.h <<\_ACEOF
15998 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
16003 for ac_func in pthread_sigmask
16005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16006 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16007 $as_echo_n "checking for $ac_func... " >&6; }
16008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16009 $as_echo_n "(cached) " >&6
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16019 #define $ac_func innocuous_$ac_func
16021 /* System header to define __stub macros and hopefully few prototypes,
16022 which can conflict with char $ac_func (); below.
16023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16024 <limits.h> exists even on freestanding compilers. */
16027 # include <limits.h>
16029 # include <assert.h>
16034 /* Override any GCC internal prototype to avoid an error.
16035 Use char because int might match the return type of a GCC
16036 builtin and then its argument prototype would still apply. */
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined __stub_$ac_func || defined __stub___$ac_func
16051 return $ac_func ();
16056 rm -f conftest.$ac_objext conftest$ac_exeext
16057 if { (ac_try="$ac_link"
16058 case "(($ac_try" in
16059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16060 *) ac_try_echo
=$ac_try;;
16062 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16063 $as_echo "$ac_try_echo") >&5
16064 (eval "$ac_link") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1
>conftest.err
16068 cat conftest.err
>&5
16069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest
$ac_exeext && {
16074 test "$cross_compiling" = yes ||
16075 $as_test_x conftest
$ac_exeext
16077 eval "$as_ac_var=yes"
16079 $as_echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.
$ac_ext >&5
16082 eval "$as_ac_var=no"
16085 rm -rf conftest.dSYM
16086 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16087 conftest
$ac_exeext conftest.
$ac_ext
16089 ac_res
=`eval 'as_val=${'$as_ac_var'}
16090 $as_echo "$as_val"'`
16091 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16092 $as_echo "$ac_res" >&6; }
16093 as_val
=`eval 'as_val=${'$as_ac_var'}
16094 $as_echo "$as_val"'`
16095 if test "x$as_val" = x
""yes; then
16096 cat >>confdefs.h
<<_ACEOF
16097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16099 case $ac_sys_system in
16102 cat >>confdefs.h
<<\_ACEOF
16103 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
16114 # Check for enable-ipv6
16117 { $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
16118 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
16119 # Check whether --enable-ipv6 was given.
16120 if test "${enable_ipv6+set}" = set; then
16121 enableval
=$enable_ipv6; case "$enableval" in
16123 { $as_echo "$as_me:$LINENO: result: no" >&5
16124 $as_echo "no" >&6; }
16127 *) { $as_echo "$as_me:$LINENO: result: yes" >&5
16128 $as_echo "yes" >&6; }
16129 cat >>confdefs.h
<<\_ACEOF
16130 #define ENABLE_IPV6 1
16138 if test "$cross_compiling" = yes; then
16139 { $as_echo "$as_me:$LINENO: result: no" >&5
16140 $as_echo "no" >&6; }
16144 cat >conftest.
$ac_ext <<_ACEOF
16147 cat confdefs.h
>>conftest.
$ac_ext
16148 cat >>conftest.
$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 /* AF_INET6 available check */
16151 #include <sys/types.h>
16152 #include <sys/socket.h>
16155 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
16162 rm -f conftest
$ac_exeext
16163 if { (ac_try
="$ac_link"
16164 case "(($ac_try" in
16165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16169 $as_echo "$ac_try_echo") >&5
16170 (eval "$ac_link") 2>&5
16172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16174 { (case "(($ac_try" in
16175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16176 *) ac_try_echo
=$ac_try;;
16178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16179 $as_echo "$ac_try_echo") >&5
16180 (eval "$ac_try") 2>&5
16182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 { $as_echo "$as_me:$LINENO: result: yes" >&5
16185 $as_echo "yes" >&6; }
16188 $as_echo "$as_me: program exited with status $ac_status" >&5
16189 $as_echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.
$ac_ext >&5
16192 ( exit $ac_status )
16193 { $as_echo "$as_me:$LINENO: result: no" >&5
16194 $as_echo "no" >&6; }
16197 rm -rf conftest.dSYM
16198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16203 if test "$ipv6" = "yes"; then
16204 { $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16205 $as_echo_n "checking if RFC2553 API is available... " >&6; }
16206 cat >conftest.
$ac_ext <<_ACEOF
16209 cat confdefs.h
>>conftest.
$ac_ext
16210 cat >>conftest.
$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16212 #include <sys/types.h>
16213 #include <netinet/in.h>
16217 struct sockaddr_in6 x;
16223 rm -f conftest.
$ac_objext
16224 if { (ac_try
="$ac_compile"
16225 case "(($ac_try" in
16226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16230 $as_echo "$ac_try_echo") >&5
16231 (eval "$ac_compile") 2>conftest.er1
16233 grep -v '^ *+' conftest.er1 >conftest.err
16235 cat conftest.err >&5
16236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } && {
16238 test -z "$ac_c_werror_flag" ||
16239 test ! -s conftest.err
16240 } && test -s conftest.$ac_objext; then
16241 { $as_echo "$as_me:$LINENO: result: yes" >&5
16242 $as_echo "yes" >&6; }
16245 $as_echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 { $as_echo "$as_me:$LINENO: result: no" >&5
16249 $as_echo "no" >&6; }
16253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 if test "$ipv6" = "yes"; then
16257 cat >>confdefs.h <<\_ACEOF
16258 #define ENABLE_IPV6 1
16270 if test "$ipv6" = "yes"; then
16271 { $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16272 $as_echo_n "checking ipv6 stack type... " >&6; }
16273 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16284 #include <netinet/in.h>
16285 #ifdef IPV6_INRIA_VERSION
16289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16290 $EGREP "yes" >/dev/null 2>&1; then
16297 cat >conftest.$ac_ext <<_ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16304 #include <netinet/in.h>
16309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16310 $EGREP "yes" >/dev/null 2>&1; then
16313 ipv6libdir=/usr/local/v6/lib
16320 cat >conftest.$ac_ext <<_ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16327 #include <features.h>
16328 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16333 $EGREP "yes" >/dev/null 2>&1; then
16341 if test -d /usr/inet6; then
16344 ipv6libdir=/usr/inet6/lib
16345 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16349 if test -f /etc/netconfig; then
16350 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16357 cat >conftest.$ac_ext <<_ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16364 #include <sys/param.h>
16365 #ifdef _TOSHIBA_INET6
16369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16370 $EGREP "yes" >/dev/null 2>&1; then
16373 ipv6libdir=/usr/local/v6/lib
16379 cat >conftest.$ac_ext <<_ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16386 #include </usr/local/v6/include/sys/v6config.h>
16391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16392 $EGREP "yes" >/dev/null 2>&1; then
16395 ipv6libdir=/usr/local/v6/lib;
16396 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16402 cat >conftest.$ac_ext <<_ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16409 #include <sys/param.h>
16410 #ifdef _ZETA_MINAMI_INET6
16414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16415 $EGREP "yes" >/dev/null 2>&1; then
16418 ipv6libdir=/usr/local/v6/lib
16424 if test "$ipv6type" != "unknown"; then
16428 { $as_echo "$as_me:$LINENO: result: $ipv6type" >&5
16429 $as_echo "$ipv6type" >&6; }
16432 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16433 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16434 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16435 echo "using lib$ipv6lib"
16437 if test $ipv6trylibc = "yes"; then
16440 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16441 echo "You need to fetch lib$ipv6lib.a from appropriate"
16442 echo 'ipv6 kit and compile beforehand.'
16448 { $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16449 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <Carbon/Carbon.h>
16460 FSIORefNum fRef = 0
16465 rm -f conftest.$ac_objext
16466 if { (ac_try="$ac_compile"
16467 case "(($ac_try" in
16468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16469 *) ac_try_echo
=$ac_try;;
16471 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16472 $as_echo "$ac_try_echo") >&5
16473 (eval "$ac_compile") 2>conftest.er1
16475 grep -v '^ *+' conftest.er1
>conftest.err
16477 cat conftest.err
>&5
16478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } && {
16480 test -z "$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 } && test -s conftest.
$ac_objext; then
16484 cat >>confdefs.h
<<\_ACEOF
16485 #define HAVE_OSX105_SDK 1
16488 { $as_echo "$as_me:$LINENO: result: yes" >&5
16489 $as_echo "yes" >&6; }
16491 $as_echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.
$ac_ext >&5
16494 { $as_echo "$as_me:$LINENO: result: no" >&5
16495 $as_echo "no" >&6; }
16499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16501 # Check for --with-doc-strings
16502 { $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16503 $as_echo_n "checking for --with-doc-strings... " >&6; }
16505 # Check whether --with-doc-strings was given.
16506 if test "${with_doc_strings+set}" = set; then
16507 withval
=$with_doc_strings;
16511 if test -z "$with_doc_strings"
16512 then with_doc_strings
="yes"
16514 if test "$with_doc_strings" != "no"
16517 cat >>confdefs.h
<<\_ACEOF
16518 #define WITH_DOC_STRINGS 1
16522 { $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16523 $as_echo "$with_doc_strings" >&6; }
16525 # Check for Python-specific malloc support
16526 { $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5
16527 $as_echo_n "checking for --with-tsc... " >&6; }
16529 # Check whether --with-tsc was given.
16530 if test "${with_tsc+set}" = set; then
16532 if test "$withval" != no
16535 cat >>confdefs.h
<<\_ACEOF
16539 { $as_echo "$as_me:$LINENO: result: yes" >&5
16540 $as_echo "yes" >&6; }
16541 else { $as_echo "$as_me:$LINENO: result: no" >&5
16542 $as_echo "no" >&6; }
16545 { $as_echo "$as_me:$LINENO: result: no" >&5
16546 $as_echo "no" >&6; }
16550 # Check for Python-specific malloc support
16551 { $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16552 $as_echo_n "checking for --with-pymalloc... " >&6; }
16554 # Check whether --with-pymalloc was given.
16555 if test "${with_pymalloc+set}" = set; then
16556 withval
=$with_pymalloc;
16560 if test -z "$with_pymalloc"
16561 then with_pymalloc
="yes"
16563 if test "$with_pymalloc" != "no"
16566 cat >>confdefs.h
<<\_ACEOF
16567 #define WITH_PYMALLOC 1
16571 { $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16572 $as_echo "$with_pymalloc" >&6; }
16574 # Check for --with-wctype-functions
16575 { $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16576 $as_echo_n "checking for --with-wctype-functions... " >&6; }
16578 # Check whether --with-wctype-functions was given.
16579 if test "${with_wctype_functions+set}" = set; then
16580 withval
=$with_wctype_functions;
16581 if test "$withval" != no
16584 cat >>confdefs.h
<<\_ACEOF
16585 #define WANT_WCTYPE_FUNCTIONS 1
16588 { $as_echo "$as_me:$LINENO: result: yes" >&5
16589 $as_echo "yes" >&6; }
16590 else { $as_echo "$as_me:$LINENO: result: no" >&5
16591 $as_echo "no" >&6; }
16594 { $as_echo "$as_me:$LINENO: result: no" >&5
16595 $as_echo "no" >&6; }
16599 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16603 # the dlopen() function means we might want to use dynload_shlib.o. some
16604 # platforms, such as AIX, have dlopen(), but don't want to use it.
16606 for ac_func
in dlopen
16608 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16609 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16610 $as_echo_n "checking for $ac_func... " >&6; }
16611 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16612 $as_echo_n "(cached) " >&6
16614 cat >conftest.
$ac_ext <<_ACEOF
16617 cat confdefs.h
>>conftest.
$ac_ext
16618 cat >>conftest.
$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16622 #define $ac_func innocuous_$ac_func
16624 /* System header to define __stub macros and hopefully few prototypes,
16625 which can conflict with char $ac_func (); below.
16626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16627 <limits.h> exists even on freestanding compilers. */
16630 # include <limits.h>
16632 # include <assert.h>
16637 /* Override any GCC internal prototype to avoid an error.
16638 Use char because int might match the return type of a GCC
16639 builtin and then its argument prototype would still apply. */
16644 /* The GNU C library defines this for functions which it implements
16645 to always fail with ENOSYS. Some functions are actually named
16646 something starting with __ and the normal name is an alias. */
16647 #if defined __stub_$ac_func || defined __stub___$ac_func
16654 return $ac_func ();
16659 rm -f conftest.
$ac_objext conftest
$ac_exeext
16660 if { (ac_try
="$ac_link"
16661 case "(($ac_try" in
16662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16666 $as_echo "$ac_try_echo") >&5
16667 (eval "$ac_link") 2>conftest.er1
16669 grep -v '^ *+' conftest.er1 >conftest.err
16671 cat conftest.err >&5
16672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && {
16674 test -z "$ac_c_werror_flag" ||
16675 test ! -s conftest.err
16676 } && test -s conftest$ac_exeext && {
16677 test "$cross_compiling" = yes ||
16678 $as_test_x conftest$ac_exeext
16680 eval "$as_ac_var=yes"
16682 $as_echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 eval "$as_ac_var=no"
16688 rm -rf conftest.dSYM
16689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16690 conftest$ac_exeext conftest.$ac_ext
16692 ac_res=`eval 'as_val=${'$as_ac_var'}
16693 $as_echo "$as_val"'`
16694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16695 $as_echo "$ac_res" >&6; }
16696 as_val=`eval 'as_val=${'$as_ac_var'}
16697 $as_echo "$as_val"'`
16698 if test "x$as_val" = x""yes; then
16699 cat >>confdefs.h <<_ACEOF
16700 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16707 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16708 # loading of modules.
16710 { $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16711 $as_echo_n "checking DYNLOADFILE... " >&6; }
16712 if test -z "$DYNLOADFILE"
16714 case $ac_sys_system/$ac_sys_release in
16715 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16716 if test "$ac_cv_func_dlopen" = yes
16717 then DYNLOADFILE="dynload_shlib.o"
16718 else DYNLOADFILE="dynload_aix.o"
16721 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16722 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16723 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16724 atheos*) DYNLOADFILE="dynload_atheos.o";;
16726 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16727 # out any dynamic loading
16728 if test "$ac_cv_func_dlopen" = yes
16729 then DYNLOADFILE="dynload_shlib.o"
16730 else DYNLOADFILE="dynload_stub.o"
16735 { $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16736 $as_echo "$DYNLOADFILE" >&6; }
16737 if test "$DYNLOADFILE" != "dynload_stub.o"
16740 cat >>confdefs.h <<\_ACEOF
16741 #define HAVE_DYNAMIC_LOADING 1
16746 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16749 { $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16750 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
16751 if test -z "$MACHDEP_OBJS"
16753 MACHDEP_OBJS=$extra_machdep_objs
16755 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16757 { $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16758 $as_echo "MACHDEP_OBJS" >&6; }
16760 # checks for library functions
16850 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16851 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16852 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16853 getpriority getpwent getspnam getspent getsid getwd \
16854 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16855 mremap nice pathconf pause plock poll pthread_init \
16856 putenv readlink realpath \
16857 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16859 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16860 sigaction siginterrupt sigrelse strftime strlcpy \
16861 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16862 truncate uname unsetenv utimes waitpid wait3 wait4 \
16863 wcscoll wcsftime wcsxfrm _getpty
16865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16866 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16867 $as_echo_n "checking for $ac_func... " >&6; }
16868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16869 $as_echo_n "(cached) " >&6
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16879 #define $ac_func innocuous_$ac_func
16881 /* System header to define __stub macros and hopefully few prototypes,
16882 which can conflict with char $ac_func (); below.
16883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16884 <limits.h> exists even on freestanding compilers. */
16887 # include <limits.h>
16889 # include <assert.h>
16894 /* Override any GCC internal prototype to avoid an error.
16895 Use char because int might match the return type of a GCC
16896 builtin and then its argument prototype would still apply. */
16901 /* The GNU C library defines this for functions which it implements
16902 to always fail with ENOSYS. Some functions are actually named
16903 something starting with __ and the normal name is an alias. */
16904 #if defined __stub_$ac_func || defined __stub___$ac_func
16911 return $ac_func ();
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (ac_try="$ac_link"
16918 case "(($ac_try" in
16919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16920 *) ac_try_echo
=$ac_try;;
16922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16923 $as_echo "$ac_try_echo") >&5
16924 (eval "$ac_link") 2>conftest.er1
16926 grep -v '^ *+' conftest.er1
>conftest.err
16928 cat conftest.err
>&5
16929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } && {
16931 test -z "$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 } && test -s conftest
$ac_exeext && {
16934 test "$cross_compiling" = yes ||
16935 $as_test_x conftest
$ac_exeext
16937 eval "$as_ac_var=yes"
16939 $as_echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.
$ac_ext >&5
16942 eval "$as_ac_var=no"
16945 rm -rf conftest.dSYM
16946 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16947 conftest
$ac_exeext conftest.
$ac_ext
16949 ac_res
=`eval 'as_val=${'$as_ac_var'}
16950 $as_echo "$as_val"'`
16951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16952 $as_echo "$ac_res" >&6; }
16953 as_val
=`eval 'as_val=${'$as_ac_var'}
16954 $as_echo "$as_val"'`
16955 if test "x$as_val" = x
""yes; then
16956 cat >>confdefs.h
<<_ACEOF
16957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964 # For some functions, having a definition is not sufficient, since
16965 # we want to take their address.
16966 { $as_echo "$as_me:$LINENO: checking for chroot" >&5
16967 $as_echo_n "checking for chroot... " >&6; }
16968 cat >conftest.
$ac_ext <<_ACEOF
16971 cat confdefs.h
>>conftest.
$ac_ext
16972 cat >>conftest.
$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 #include <unistd.h>
16983 rm -f conftest.
$ac_objext
16984 if { (ac_try
="$ac_compile"
16985 case "(($ac_try" in
16986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16990 $as_echo "$ac_try_echo") >&5
16991 (eval "$ac_compile") 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && {
16998 test -z "$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 } && test -s conftest.$ac_objext; then
17002 cat >>confdefs.h <<\_ACEOF
17003 #define HAVE_CHROOT 1
17006 { $as_echo "$as_me:$LINENO: result: yes" >&5
17007 $as_echo "yes" >&6; }
17009 $as_echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 { $as_echo "$as_me:$LINENO: result: no" >&5
17013 $as_echo "no" >&6; }
17017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018 { $as_echo "$as_me:$LINENO: checking for link" >&5
17019 $as_echo_n "checking for link... " >&6; }
17020 cat >conftest.$ac_ext <<_ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17026 #include <unistd.h>
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
17037 case "(($ac_try" in
17038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17039 *) ac_try_echo
=$ac_try;;
17041 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043 (eval "$ac_compile") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1
>conftest.err
17047 cat conftest.err
>&5
17048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } && {
17050 test -z "$ac_c_werror_flag" ||
17051 test ! -s conftest.err
17052 } && test -s conftest.
$ac_objext; then
17054 cat >>confdefs.h
<<\_ACEOF
17055 #define HAVE_LINK 1
17058 { $as_echo "$as_me:$LINENO: result: yes" >&5
17059 $as_echo "yes" >&6; }
17061 $as_echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.
$ac_ext >&5
17064 { $as_echo "$as_me:$LINENO: result: no" >&5
17065 $as_echo "no" >&6; }
17069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17070 { $as_echo "$as_me:$LINENO: checking for symlink" >&5
17071 $as_echo_n "checking for symlink... " >&6; }
17072 cat >conftest.
$ac_ext <<_ACEOF
17075 cat confdefs.h
>>conftest.
$ac_ext
17076 cat >>conftest.
$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include <unistd.h>
17087 rm -f conftest.
$ac_objext
17088 if { (ac_try
="$ac_compile"
17089 case "(($ac_try" in
17090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17094 $as_echo "$ac_try_echo") >&5
17095 (eval "$ac_compile") 2>conftest.er1
17097 grep -v '^ *+' conftest.er1 >conftest.err
17099 cat conftest.err >&5
17100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest.$ac_objext; then
17106 cat >>confdefs.h <<\_ACEOF
17107 #define HAVE_SYMLINK 1
17110 { $as_echo "$as_me:$LINENO: result: yes" >&5
17111 $as_echo "yes" >&6; }
17113 $as_echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 { $as_echo "$as_me:$LINENO: result: no" >&5
17117 $as_echo "no" >&6; }
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17122 { $as_echo "$as_me:$LINENO: checking for fchdir" >&5
17123 $as_echo_n "checking for fchdir... " >&6; }
17124 cat >conftest.$ac_ext <<_ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 #include <unistd.h>
17139 rm -f conftest.$ac_objext
17140 if { (ac_try="$ac_compile"
17141 case "(($ac_try" in
17142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17143 *) ac_try_echo
=$ac_try;;
17145 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17146 $as_echo "$ac_try_echo") >&5
17147 (eval "$ac_compile") 2>conftest.er1
17149 grep -v '^ *+' conftest.er1
>conftest.err
17151 cat conftest.err
>&5
17152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } && {
17154 test -z "$ac_c_werror_flag" ||
17155 test ! -s conftest.err
17156 } && test -s conftest.
$ac_objext; then
17158 cat >>confdefs.h
<<\_ACEOF
17159 #define HAVE_FCHDIR 1
17162 { $as_echo "$as_me:$LINENO: result: yes" >&5
17163 $as_echo "yes" >&6; }
17165 $as_echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.
$ac_ext >&5
17168 { $as_echo "$as_me:$LINENO: result: no" >&5
17169 $as_echo "no" >&6; }
17173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17174 { $as_echo "$as_me:$LINENO: checking for fsync" >&5
17175 $as_echo_n "checking for fsync... " >&6; }
17176 cat >conftest.
$ac_ext <<_ACEOF
17179 cat confdefs.h
>>conftest.
$ac_ext
17180 cat >>conftest.
$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17182 #include <unistd.h>
17191 rm -f conftest.
$ac_objext
17192 if { (ac_try
="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17210 cat >>confdefs.h <<\_ACEOF
17211 #define HAVE_FSYNC 1
17214 { $as_echo "$as_me:$LINENO: result: yes" >&5
17215 $as_echo "yes" >&6; }
17217 $as_echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 { $as_echo "$as_me:$LINENO: result: no" >&5
17221 $as_echo "no" >&6; }
17225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17226 { $as_echo "$as_me:$LINENO: checking for fdatasync" >&5
17227 $as_echo_n "checking for fdatasync... " >&6; }
17228 cat >conftest.$ac_ext <<_ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 #include <unistd.h>
17243 rm -f conftest.$ac_objext
17244 if { (ac_try="$ac_compile"
17245 case "(($ac_try" in
17246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17247 *) ac_try_echo
=$ac_try;;
17249 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17250 $as_echo "$ac_try_echo") >&5
17251 (eval "$ac_compile") 2>conftest.er1
17253 grep -v '^ *+' conftest.er1
>conftest.err
17255 cat conftest.err
>&5
17256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } && {
17258 test -z "$ac_c_werror_flag" ||
17259 test ! -s conftest.err
17260 } && test -s conftest.
$ac_objext; then
17262 cat >>confdefs.h
<<\_ACEOF
17263 #define HAVE_FDATASYNC 1
17266 { $as_echo "$as_me:$LINENO: result: yes" >&5
17267 $as_echo "yes" >&6; }
17269 $as_echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.
$ac_ext >&5
17272 { $as_echo "$as_me:$LINENO: result: no" >&5
17273 $as_echo "no" >&6; }
17277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17278 { $as_echo "$as_me:$LINENO: checking for epoll" >&5
17279 $as_echo_n "checking for epoll... " >&6; }
17280 cat >conftest.
$ac_ext <<_ACEOF
17283 cat confdefs.h
>>conftest.
$ac_ext
17284 cat >>conftest.
$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 #include <sys/epoll.h>
17290 void *x=epoll_create
17295 rm -f conftest.
$ac_objext
17296 if { (ac_try
="$ac_compile"
17297 case "(($ac_try" in
17298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17302 $as_echo "$ac_try_echo") >&5
17303 (eval "$ac_compile") 2>conftest.er1
17305 grep -v '^ *+' conftest.er1 >conftest.err
17307 cat conftest.err >&5
17308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } && {
17310 test -z "$ac_c_werror_flag" ||
17311 test ! -s conftest.err
17312 } && test -s conftest.$ac_objext; then
17314 cat >>confdefs.h <<\_ACEOF
17315 #define HAVE_EPOLL 1
17318 { $as_echo "$as_me:$LINENO: result: yes" >&5
17319 $as_echo "yes" >&6; }
17321 $as_echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 { $as_echo "$as_me:$LINENO: result: no" >&5
17325 $as_echo "no" >&6; }
17329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17330 { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
17331 $as_echo_n "checking for kqueue... " >&6; }
17332 cat >conftest.$ac_ext <<_ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17339 #include <sys/types.h>
17340 #include <sys/event.h>
17350 rm -f conftest.$ac_objext
17351 if { (ac_try="$ac_compile"
17352 case "(($ac_try" in
17353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17354 *) ac_try_echo
=$ac_try;;
17356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17357 $as_echo "$ac_try_echo") >&5
17358 (eval "$ac_compile") 2>conftest.er1
17360 grep -v '^ *+' conftest.er1
>conftest.err
17362 cat conftest.err
>&5
17363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest.
$ac_objext; then
17369 cat >>confdefs.h
<<\_ACEOF
17370 #define HAVE_KQUEUE 1
17373 { $as_echo "$as_me:$LINENO: result: yes" >&5
17374 $as_echo "yes" >&6; }
17376 $as_echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.
$ac_ext >&5
17379 { $as_echo "$as_me:$LINENO: result: no" >&5
17380 $as_echo "no" >&6; }
17384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17385 # On some systems (eg. FreeBSD 5), we would find a definition of the
17386 # functions ctermid_r, setgroups in the library, but no prototype
17387 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17388 # address to avoid compiler warnings and potential miscompilations
17389 # because of the missing prototypes.
17391 { $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5
17392 $as_echo_n "checking for ctermid_r... " >&6; }
17393 cat >conftest.
$ac_ext <<_ACEOF
17396 cat confdefs.h
>>conftest.
$ac_ext
17397 cat >>conftest.
$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17400 #include "confdefs.h"
17406 void* p = ctermid_r
17411 rm -f conftest.
$ac_objext
17412 if { (ac_try
="$ac_compile"
17413 case "(($ac_try" in
17414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17418 $as_echo "$ac_try_echo") >&5
17419 (eval "$ac_compile") 2>conftest.er1
17421 grep -v '^ *+' conftest.er1 >conftest.err
17423 cat conftest.err >&5
17424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest.$ac_objext; then
17430 cat >>confdefs.h <<\_ACEOF
17431 #define HAVE_CTERMID_R 1
17434 { $as_echo "$as_me:$LINENO: result: yes" >&5
17435 $as_echo "yes" >&6; }
17437 $as_echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 { $as_echo "$as_me:$LINENO: result: no" >&5
17441 $as_echo "no" >&6; }
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 { $as_echo "$as_me:$LINENO: checking for flock" >&5
17448 $as_echo_n "checking for flock... " >&6; }
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 #include "confdefs.h"
17457 #include <sys/file.h>
17467 rm -f conftest.$ac_objext
17468 if { (ac_try="$ac_compile"
17469 case "(($ac_try" in
17470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17471 *) ac_try_echo
=$ac_try;;
17473 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17474 $as_echo "$ac_try_echo") >&5
17475 (eval "$ac_compile") 2>conftest.er1
17477 grep -v '^ *+' conftest.er1
>conftest.err
17479 cat conftest.err
>&5
17480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } && {
17482 test -z "$ac_c_werror_flag" ||
17483 test ! -s conftest.err
17484 } && test -s conftest.
$ac_objext; then
17486 cat >>confdefs.h
<<\_ACEOF
17487 #define HAVE_FLOCK 1
17490 { $as_echo "$as_me:$LINENO: result: yes" >&5
17491 $as_echo "yes" >&6; }
17493 $as_echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.
$ac_ext >&5
17496 { $as_echo "$as_me:$LINENO: result: no" >&5
17497 $as_echo "no" >&6; }
17501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17503 { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
17504 $as_echo_n "checking for getpagesize... " >&6; }
17505 cat >conftest.
$ac_ext <<_ACEOF
17508 cat confdefs.h
>>conftest.
$ac_ext
17509 cat >>conftest.
$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17512 #include "confdefs.h"
17513 #include <unistd.h>
17518 void* p = getpagesize
17523 rm -f conftest.
$ac_objext
17524 if { (ac_try
="$ac_compile"
17525 case "(($ac_try" in
17526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17530 $as_echo "$ac_try_echo") >&5
17531 (eval "$ac_compile") 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest.$ac_objext; then
17542 cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_GETPAGESIZE 1
17546 { $as_echo "$as_me:$LINENO: result: yes" >&5
17547 $as_echo "yes" >&6; }
17549 $as_echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 { $as_echo "$as_me:$LINENO: result: no" >&5
17553 $as_echo "no" >&6; }
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 for ac_prog in true
17561 # Extract the first word of "$ac_prog", so it can be a program name with args.
17562 set dummy $ac_prog; ac_word=$2
17563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17564 $as_echo_n "checking for $ac_word... " >&6; }
17565 if test "${ac_cv_prog_TRUE+set}" = set; then
17566 $as_echo_n "(cached) " >&6
17568 if test -n "$TRUE"; then
17569 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17572 for as_dir in $PATH
17575 test -z "$as_dir" && as_dir=.
17576 for ac_exec_ext in '' $ac_executable_extensions; do
17577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17578 ac_cv_prog_TRUE="$ac_prog"
17579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17588 TRUE=$ac_cv_prog_TRUE
17589 if test -n "$TRUE"; then
17590 { $as_echo "$as_me:$LINENO: result: $TRUE" >&5
17591 $as_echo "$TRUE" >&6; }
17593 { $as_echo "$as_me:$LINENO: result: no" >&5
17594 $as_echo "no" >&6; }
17598 test -n "$TRUE" && break
17600 test -n "$TRUE" || TRUE="/bin/true"
17603 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17604 $as_echo_n "checking for inet_aton in -lc... " >&6; }
17605 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17606 $as_echo_n "(cached) " >&6
17608 ac_check_lib_save_LIBS=$LIBS
17610 cat >conftest.$ac_ext <<_ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17617 /* Override any GCC internal prototype to avoid an error.
17618 Use char because int might match the return type of a GCC
17619 builtin and then its argument prototype would still apply. */
17627 return inet_aton ();
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17636 *) ac_try_echo
=$ac_try;;
17638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640 (eval "$ac_link") 2>conftest.er1
17642 grep -v '^ *+' conftest.er1
>conftest.err
17644 cat conftest.err
>&5
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && {
17647 test -z "$ac_c_werror_flag" ||
17648 test ! -s conftest.err
17649 } && test -s conftest
$ac_exeext && {
17650 test "$cross_compiling" = yes ||
17651 $as_test_x conftest
$ac_exeext
17653 ac_cv_lib_c_inet_aton
=yes
17655 $as_echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.
$ac_ext >&5
17658 ac_cv_lib_c_inet_aton
=no
17661 rm -rf conftest.dSYM
17662 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17663 conftest
$ac_exeext conftest.
$ac_ext
17664 LIBS
=$ac_check_lib_save_LIBS
17666 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17667 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
17668 if test "x$ac_cv_lib_c_inet_aton" = x
""yes; then
17672 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17673 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
17674 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17675 $as_echo_n "(cached) " >&6
17677 ac_check_lib_save_LIBS
=$LIBS
17678 LIBS
="-lresolv $LIBS"
17679 cat >conftest.
$ac_ext <<_ACEOF
17682 cat confdefs.h
>>conftest.
$ac_ext
17683 cat >>conftest.
$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17696 return inet_aton ();
17701 rm -f conftest.
$ac_objext conftest
$ac_exeext
17702 if { (ac_try
="$ac_link"
17703 case "(($ac_try" in
17704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709 (eval "$ac_link") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && {
17716 test -z "$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17718 } && test -s conftest$ac_exeext && {
17719 test "$cross_compiling" = yes ||
17720 $as_test_x conftest$ac_exeext
17722 ac_cv_lib_resolv_inet_aton=yes
17724 $as_echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_lib_resolv_inet_aton=no
17730 rm -rf conftest.dSYM
17731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17732 conftest$ac_exeext conftest.$ac_ext
17733 LIBS=$ac_check_lib_save_LIBS
17735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17736 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
17737 if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define HAVE_LIBRESOLV 1
17742 LIBS="-lresolv $LIBS"
17750 # On Tru64, chflags seems to be present, but calling it will
17752 { $as_echo "$as_me:$LINENO: checking for chflags" >&5
17753 $as_echo_n "checking for chflags... " >&6; }
17754 if test "${ac_cv_have_chflags+set}" = set; then
17755 $as_echo_n "(cached) " >&6
17757 if test "$cross_compiling" = yes; then
17758 ac_cv_have_chflags=cross
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 #include <sys/stat.h>
17768 #include <unistd.h>
17769 int main(int argc, char*argv[])
17771 if(chflags(argv[0], 0) != 0)
17777 rm -f conftest$ac_exeext
17778 if { (ac_try="$ac_link"
17779 case "(($ac_try" in
17780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17781 *) ac_try_echo
=$ac_try;;
17783 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17784 $as_echo "$ac_try_echo") >&5
17785 (eval "$ac_link") 2>&5
17787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17789 { (case "(($ac_try" in
17790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17794 $as_echo "$ac_try_echo") >&5
17795 (eval "$ac_try") 2>&5
17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_have_chflags=yes
17801 $as_echo "$as_me: program exited with status $ac_status" >&5
17802 $as_echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ( exit $ac_status )
17806 ac_cv_have_chflags=no
17808 rm -rf conftest.dSYM
17809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17815 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17816 $as_echo "$ac_cv_have_chflags" >&6; }
17817 if test "$ac_cv_have_chflags" = cross ; then
17818 { $as_echo "$as_me:$LINENO: checking for chflags" >&5
17819 $as_echo_n "checking for chflags... " >&6; }
17820 if test "${ac_cv_func_chflags+set}" = set; then
17821 $as_echo_n "(cached) " >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17831 #define chflags innocuous_chflags
17833 /* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char chflags (); below.
17835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836 <limits.h> exists even on freestanding compilers. */
17839 # include <limits.h>
17841 # include <assert.h>
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17853 /* The GNU C library defines this for functions which it implements
17854 to always fail with ENOSYS. Some functions are actually named
17855 something starting with __ and the normal name is an alias. */
17856 #if defined __stub_chflags || defined __stub___chflags
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17872 *) ac_try_echo
=$ac_try;;
17874 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17875 $as_echo "$ac_try_echo") >&5
17876 (eval "$ac_link") 2>conftest.er1
17878 grep -v '^ *+' conftest.er1
>conftest.err
17880 cat conftest.err
>&5
17881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } && {
17883 test -z "$ac_c_werror_flag" ||
17884 test ! -s conftest.err
17885 } && test -s conftest
$ac_exeext && {
17886 test "$cross_compiling" = yes ||
17887 $as_test_x conftest
$ac_exeext
17889 ac_cv_func_chflags
=yes
17891 $as_echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.
$ac_ext >&5
17894 ac_cv_func_chflags
=no
17897 rm -rf conftest.dSYM
17898 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17899 conftest
$ac_exeext conftest.
$ac_ext
17901 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17902 $as_echo "$ac_cv_func_chflags" >&6; }
17903 if test "x$ac_cv_func_chflags" = x
""yes; then
17904 ac_cv_have_chflags
="yes"
17906 ac_cv_have_chflags
="no"
17910 if test "$ac_cv_have_chflags" = yes ; then
17912 cat >>confdefs.h
<<\_ACEOF
17913 #define HAVE_CHFLAGS 1
17918 { $as_echo "$as_me:$LINENO: checking for lchflags" >&5
17919 $as_echo_n "checking for lchflags... " >&6; }
17920 if test "${ac_cv_have_lchflags+set}" = set; then
17921 $as_echo_n "(cached) " >&6
17923 if test "$cross_compiling" = yes; then
17924 ac_cv_have_lchflags
=cross
17926 cat >conftest.
$ac_ext <<_ACEOF
17929 cat confdefs.h
>>conftest.
$ac_ext
17930 cat >>conftest.
$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17933 #include <sys/stat.h>
17934 #include <unistd.h>
17935 int main(int argc, char*argv[])
17937 if(lchflags(argv[0], 0) != 0)
17943 rm -f conftest
$ac_exeext
17944 if { (ac_try
="$ac_link"
17945 case "(($ac_try" in
17946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17950 $as_echo "$ac_try_echo") >&5
17951 (eval "$ac_link") 2>&5
17953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17955 { (case "(($ac_try" in
17956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17957 *) ac_try_echo
=$ac_try;;
17959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17960 $as_echo "$ac_try_echo") >&5
17961 (eval "$ac_try") 2>&5
17963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_have_lchflags
=yes
17967 $as_echo "$as_me: program exited with status $ac_status" >&5
17968 $as_echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.
$ac_ext >&5
17971 ( exit $ac_status )
17972 ac_cv_have_lchflags
=no
17974 rm -rf conftest.dSYM
17975 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17981 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17982 $as_echo "$ac_cv_have_lchflags" >&6; }
17983 if test "$ac_cv_have_lchflags" = cross
; then
17984 { $as_echo "$as_me:$LINENO: checking for lchflags" >&5
17985 $as_echo_n "checking for lchflags... " >&6; }
17986 if test "${ac_cv_func_lchflags+set}" = set; then
17987 $as_echo_n "(cached) " >&6
17989 cat >conftest.
$ac_ext <<_ACEOF
17992 cat confdefs.h
>>conftest.
$ac_ext
17993 cat >>conftest.
$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17997 #define lchflags innocuous_lchflags
17999 /* System header to define __stub macros and hopefully few prototypes,
18000 which can conflict with char lchflags (); below.
18001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18002 <limits.h> exists even on freestanding compilers. */
18005 # include <limits.h>
18007 # include <assert.h>
18012 /* Override any GCC internal prototype to avoid an error.
18013 Use char because int might match the return type of a GCC
18014 builtin and then its argument prototype would still apply. */
18019 /* The GNU C library defines this for functions which it implements
18020 to always fail with ENOSYS. Some functions are actually named
18021 something starting with __ and the normal name is an alias. */
18022 #if defined __stub_lchflags || defined __stub___lchflags
18029 return lchflags ();
18034 rm -f conftest.
$ac_objext conftest
$ac_exeext
18035 if { (ac_try
="$ac_link"
18036 case "(($ac_try" in
18037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18041 $as_echo "$ac_try_echo") >&5
18042 (eval "$ac_link") 2>conftest.er1
18044 grep -v '^ *+' conftest.er1 >conftest.err
18046 cat conftest.err >&5
18047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && {
18049 test -z "$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 } && test -s conftest$ac_exeext && {
18052 test "$cross_compiling" = yes ||
18053 $as_test_x conftest$ac_exeext
18055 ac_cv_func_lchflags=yes
18057 $as_echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_cv_func_lchflags=no
18063 rm -rf conftest.dSYM
18064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18065 conftest$ac_exeext conftest.$ac_ext
18067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
18068 $as_echo "$ac_cv_func_lchflags" >&6; }
18069 if test "x$ac_cv_func_lchflags" = x""yes; then
18070 ac_cv_have_lchflags="yes"
18072 ac_cv_have_lchflags="no"
18076 if test "$ac_cv_have_lchflags" = yes ; then
18078 cat >>confdefs.h <<\_ACEOF
18079 #define HAVE_LCHFLAGS 1
18084 case $ac_sys_system/$ac_sys_release in
18086 _CUR_CFLAGS="${CFLAGS}"
18087 _CUR_LDFLAGS="${LDFLAGS}"
18088 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
18089 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18093 { $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18094 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
18095 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18096 $as_echo_n "(cached) " >&6
18098 ac_check_lib_save_LIBS=$LIBS
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18107 /* Override any GCC internal prototype to avoid an error.
18108 Use char because int might match the return type of a GCC
18109 builtin and then its argument prototype would still apply. */
18113 char inflateCopy ();
18117 return inflateCopy ();
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (ac_try="$ac_link"
18124 case "(($ac_try" in
18125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18126 *) ac_try_echo
=$ac_try;;
18128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18129 $as_echo "$ac_try_echo") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1
>conftest.err
18134 cat conftest.err
>&5
18135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest
$ac_exeext && {
18140 test "$cross_compiling" = yes ||
18141 $as_test_x conftest
$ac_exeext
18143 ac_cv_lib_z_inflateCopy
=yes
18145 $as_echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.
$ac_ext >&5
18148 ac_cv_lib_z_inflateCopy
=no
18151 rm -rf conftest.dSYM
18152 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18153 conftest
$ac_exeext conftest.
$ac_ext
18154 LIBS
=$ac_check_lib_save_LIBS
18156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18157 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
18158 if test "x$ac_cv_lib_z_inflateCopy" = x
""yes; then
18160 cat >>confdefs.h
<<\_ACEOF
18161 #define HAVE_ZLIB_COPY 1
18167 case $ac_sys_system/$ac_sys_release in
18169 CFLAGS
="${_CUR_CFLAGS}"
18170 LDFLAGS
="${_CUR_LDFLAGS}"
18174 { $as_echo "$as_me:$LINENO: checking for hstrerror" >&5
18175 $as_echo_n "checking for hstrerror... " >&6; }
18176 cat >conftest.
$ac_ext <<_ACEOF
18179 cat confdefs.h
>>conftest.
$ac_ext
18180 cat >>conftest.
$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18183 #include "confdefs.h"
18189 void* p = hstrerror; hstrerror(0)
18194 rm -f conftest.
$ac_objext conftest
$ac_exeext
18195 if { (ac_try
="$ac_link"
18196 case "(($ac_try" in
18197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18201 $as_echo "$ac_try_echo") >&5
18202 (eval "$ac_link") 2>conftest.er1
18204 grep -v '^ *+' conftest.er1 >conftest.err
18206 cat conftest.err >&5
18207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } && {
18209 test -z "$ac_c_werror_flag" ||
18210 test ! -s conftest.err
18211 } && test -s conftest$ac_exeext && {
18212 test "$cross_compiling" = yes ||
18213 $as_test_x conftest$ac_exeext
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE_HSTRERROR 1
18220 { $as_echo "$as_me:$LINENO: result: yes" >&5
18221 $as_echo "yes" >&6; }
18223 $as_echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 { $as_echo "$as_me:$LINENO: result: no" >&5
18227 $as_echo "no" >&6; }
18231 rm -rf conftest.dSYM
18232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18233 conftest$ac_exeext conftest.$ac_ext
18235 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18236 $as_echo_n "checking for inet_aton... " >&6; }
18237 cat >conftest.$ac_ext <<_ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18244 #include "confdefs.h"
18245 #include <sys/types.h>
18246 #include <sys/socket.h>
18247 #include <netinet/in.h>
18248 #include <arpa/inet.h>
18253 void* p = inet_aton;inet_aton(0,0)
18258 rm -f conftest.$ac_objext conftest$ac_exeext
18259 if { (ac_try="$ac_link"
18260 case "(($ac_try" in
18261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18262 *) ac_try_echo
=$ac_try;;
18264 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18265 $as_echo "$ac_try_echo") >&5
18266 (eval "$ac_link") 2>conftest.er1
18268 grep -v '^ *+' conftest.er1
>conftest.err
18270 cat conftest.err
>&5
18271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } && {
18273 test -z "$ac_c_werror_flag" ||
18274 test ! -s conftest.err
18275 } && test -s conftest
$ac_exeext && {
18276 test "$cross_compiling" = yes ||
18277 $as_test_x conftest
$ac_exeext
18280 cat >>confdefs.h
<<\_ACEOF
18281 #define HAVE_INET_ATON 1
18284 { $as_echo "$as_me:$LINENO: result: yes" >&5
18285 $as_echo "yes" >&6; }
18287 $as_echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.
$ac_ext >&5
18290 { $as_echo "$as_me:$LINENO: result: no" >&5
18291 $as_echo "no" >&6; }
18295 rm -rf conftest.dSYM
18296 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18297 conftest
$ac_exeext conftest.
$ac_ext
18299 { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
18300 $as_echo_n "checking for inet_pton... " >&6; }
18301 cat >conftest.
$ac_ext <<_ACEOF
18304 cat confdefs.h
>>conftest.
$ac_ext
18305 cat >>conftest.
$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 #include "confdefs.h"
18309 #include <sys/types.h>
18310 #include <sys/socket.h>
18311 #include <netinet/in.h>
18312 #include <arpa/inet.h>
18317 void* p = inet_pton
18322 rm -f conftest.
$ac_objext
18323 if { (ac_try
="$ac_compile"
18324 case "(($ac_try" in
18325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18329 $as_echo "$ac_try_echo") >&5
18330 (eval "$ac_compile") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest.$ac_objext; then
18341 cat >>confdefs.h <<\_ACEOF
18342 #define HAVE_INET_PTON 1
18345 { $as_echo "$as_me:$LINENO: result: yes" >&5
18346 $as_echo "yes" >&6; }
18348 $as_echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 { $as_echo "$as_me:$LINENO: result: no" >&5
18352 $as_echo "no" >&6; }
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18358 # On some systems, setgroups is in unistd.h, on others, in grp.h
18359 { $as_echo "$as_me:$LINENO: checking for setgroups" >&5
18360 $as_echo_n "checking for setgroups... " >&6; }
18361 cat >conftest.$ac_ext <<_ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18368 #include "confdefs.h"
18369 #include <unistd.h>
18377 void* p = setgroups
18382 rm -f conftest.$ac_objext
18383 if { (ac_try="$ac_compile"
18384 case "(($ac_try" in
18385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18386 *) ac_try_echo
=$ac_try;;
18388 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18389 $as_echo "$ac_try_echo") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18392 grep -v '^ *+' conftest.er1
>conftest.err
18394 cat conftest.err
>&5
18395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.
$ac_objext; then
18401 cat >>confdefs.h
<<\_ACEOF
18402 #define HAVE_SETGROUPS 1
18405 { $as_echo "$as_me:$LINENO: result: yes" >&5
18406 $as_echo "yes" >&6; }
18408 $as_echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.
$ac_ext >&5
18411 { $as_echo "$as_me:$LINENO: result: no" >&5
18412 $as_echo "no" >&6; }
18416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18418 # check for openpty and forkpty
18421 for ac_func
in openpty
18423 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18424 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18425 $as_echo_n "checking for $ac_func... " >&6; }
18426 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18427 $as_echo_n "(cached) " >&6
18429 cat >conftest.
$ac_ext <<_ACEOF
18432 cat confdefs.h
>>conftest.
$ac_ext
18433 cat >>conftest.
$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18437 #define $ac_func innocuous_$ac_func
18439 /* System header to define __stub macros and hopefully few prototypes,
18440 which can conflict with char $ac_func (); below.
18441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 <limits.h> exists even on freestanding compilers. */
18445 # include <limits.h>
18447 # include <assert.h>
18452 /* Override any GCC internal prototype to avoid an error.
18453 Use char because int might match the return type of a GCC
18454 builtin and then its argument prototype would still apply. */
18459 /* The GNU C library defines this for functions which it implements
18460 to always fail with ENOSYS. Some functions are actually named
18461 something starting with __ and the normal name is an alias. */
18462 #if defined __stub_$ac_func || defined __stub___$ac_func
18469 return $ac_func ();
18474 rm -f conftest.
$ac_objext conftest
$ac_exeext
18475 if { (ac_try
="$ac_link"
18476 case "(($ac_try" in
18477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_link") 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest$ac_exeext && {
18492 test "$cross_compiling" = yes ||
18493 $as_test_x conftest$ac_exeext
18495 eval "$as_ac_var=yes"
18497 $as_echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 eval "$as_ac_var=no"
18503 rm -rf conftest.dSYM
18504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505 conftest$ac_exeext conftest.$ac_ext
18507 ac_res=`eval 'as_val=${'$as_ac_var'}
18508 $as_echo "$as_val"'`
18509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18510 $as_echo "$ac_res" >&6; }
18511 as_val=`eval 'as_val=${'$as_ac_var'}
18512 $as_echo "$as_val"'`
18513 if test "x$as_val" = x""yes; then
18514 cat >>confdefs.h <<_ACEOF
18515 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18519 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18520 $as_echo_n "checking for openpty in -lutil... " >&6; }
18521 if test "${ac_cv_lib_util_openpty+set}" = set; then
18522 $as_echo_n "(cached) " >&6
18524 ac_check_lib_save_LIBS=$LIBS
18525 LIBS="-lutil $LIBS"
18526 cat >conftest.$ac_ext <<_ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18533 /* Override any GCC internal prototype to avoid an error.
18534 Use char because int might match the return type of a GCC
18535 builtin and then its argument prototype would still apply. */
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18552 *) ac_try_echo
=$ac_try;;
18554 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18555 $as_echo "$ac_try_echo") >&5
18556 (eval "$ac_link") 2>conftest.er1
18558 grep -v '^ *+' conftest.er1
>conftest.err
18560 cat conftest.err
>&5
18561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && {
18563 test -z "$ac_c_werror_flag" ||
18564 test ! -s conftest.err
18565 } && test -s conftest
$ac_exeext && {
18566 test "$cross_compiling" = yes ||
18567 $as_test_x conftest
$ac_exeext
18569 ac_cv_lib_util_openpty
=yes
18571 $as_echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.
$ac_ext >&5
18574 ac_cv_lib_util_openpty
=no
18577 rm -rf conftest.dSYM
18578 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18579 conftest
$ac_exeext conftest.
$ac_ext
18580 LIBS
=$ac_check_lib_save_LIBS
18582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18583 $as_echo "$ac_cv_lib_util_openpty" >&6; }
18584 if test "x$ac_cv_lib_util_openpty" = x
""yes; then
18585 cat >>confdefs.h
<<\_ACEOF
18586 #define HAVE_OPENPTY 1
18588 LIBS
="$LIBS -lutil"
18590 { $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18591 $as_echo_n "checking for openpty in -lbsd... " >&6; }
18592 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18593 $as_echo_n "(cached) " >&6
18595 ac_check_lib_save_LIBS
=$LIBS
18597 cat >conftest.
$ac_ext <<_ACEOF
18600 cat confdefs.h
>>conftest.
$ac_ext
18601 cat >>conftest.
$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18619 rm -f conftest.
$ac_objext conftest
$ac_exeext
18620 if { (ac_try
="$ac_link"
18621 case "(($ac_try" in
18622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18626 $as_echo "$ac_try_echo") >&5
18627 (eval "$ac_link") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext && {
18637 test "$cross_compiling" = yes ||
18638 $as_test_x conftest$ac_exeext
18640 ac_cv_lib_bsd_openpty=yes
18642 $as_echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 ac_cv_lib_bsd_openpty=no
18648 rm -rf conftest.dSYM
18649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18654 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
18655 if test "x$ac_cv_lib_bsd_openpty" = x""yes; then
18656 cat >>confdefs.h <<\_ACEOF
18657 #define HAVE_OPENPTY 1
18670 for ac_func in forkpty
18672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18673 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18674 $as_echo_n "checking for $ac_func... " >&6; }
18675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18676 $as_echo_n "(cached) " >&6
18678 cat >conftest.$ac_ext <<_ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18686 #define $ac_func innocuous_$ac_func
18688 /* System header to define __stub macros and hopefully few prototypes,
18689 which can conflict with char $ac_func (); below.
18690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 <limits.h> exists even on freestanding compilers. */
18694 # include <limits.h>
18696 # include <assert.h>
18701 /* Override any GCC internal prototype to avoid an error.
18702 Use char because int might match the return type of a GCC
18703 builtin and then its argument prototype would still apply. */
18708 /* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711 #if defined __stub_$ac_func || defined __stub___$ac_func
18718 return $ac_func ();
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (ac_try="$ac_link"
18725 case "(($ac_try" in
18726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18727 *) ac_try_echo
=$ac_try;;
18729 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18730 $as_echo "$ac_try_echo") >&5
18731 (eval "$ac_link") 2>conftest.er1
18733 grep -v '^ *+' conftest.er1
>conftest.err
18735 cat conftest.err
>&5
18736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } && {
18738 test -z "$ac_c_werror_flag" ||
18739 test ! -s conftest.err
18740 } && test -s conftest
$ac_exeext && {
18741 test "$cross_compiling" = yes ||
18742 $as_test_x conftest
$ac_exeext
18744 eval "$as_ac_var=yes"
18746 $as_echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.
$ac_ext >&5
18749 eval "$as_ac_var=no"
18752 rm -rf conftest.dSYM
18753 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18754 conftest
$ac_exeext conftest.
$ac_ext
18756 ac_res
=`eval 'as_val=${'$as_ac_var'}
18757 $as_echo "$as_val"'`
18758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18759 $as_echo "$ac_res" >&6; }
18760 as_val
=`eval 'as_val=${'$as_ac_var'}
18761 $as_echo "$as_val"'`
18762 if test "x$as_val" = x
""yes; then
18763 cat >>confdefs.h
<<_ACEOF
18764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18768 { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18769 $as_echo_n "checking for forkpty in -lutil... " >&6; }
18770 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18771 $as_echo_n "(cached) " >&6
18773 ac_check_lib_save_LIBS
=$LIBS
18774 LIBS
="-lutil $LIBS"
18775 cat >conftest.
$ac_ext <<_ACEOF
18778 cat confdefs.h
>>conftest.
$ac_ext
18779 cat >>conftest.
$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18782 /* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18797 rm -f conftest.
$ac_objext conftest
$ac_exeext
18798 if { (ac_try
="$ac_link"
18799 case "(($ac_try" in
18800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18804 $as_echo "$ac_try_echo") >&5
18805 (eval "$ac_link") 2>conftest.er1
18807 grep -v '^ *+' conftest.er1 >conftest.err
18809 cat conftest.err >&5
18810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && {
18812 test -z "$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18814 } && test -s conftest$ac_exeext && {
18815 test "$cross_compiling" = yes ||
18816 $as_test_x conftest$ac_exeext
18818 ac_cv_lib_util_forkpty=yes
18820 $as_echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_cv_lib_util_forkpty=no
18826 rm -rf conftest.dSYM
18827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18828 conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18832 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
18833 if test "x$ac_cv_lib_util_forkpty" = x""yes; then
18834 cat >>confdefs.h <<\_ACEOF
18835 #define HAVE_FORKPTY 1
18837 LIBS="$LIBS -lutil"
18839 { $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18840 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
18841 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18842 $as_echo_n "(cached) " >&6
18844 ac_check_lib_save_LIBS=$LIBS
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18853 /* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18872 *) ac_try_echo
=$ac_try;;
18874 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18875 $as_echo "$ac_try_echo") >&5
18876 (eval "$ac_link") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1
>conftest.err
18880 cat conftest.err
>&5
18881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && {
18883 test -z "$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18885 } && test -s conftest
$ac_exeext && {
18886 test "$cross_compiling" = yes ||
18887 $as_test_x conftest
$ac_exeext
18889 ac_cv_lib_bsd_forkpty
=yes
18891 $as_echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.
$ac_ext >&5
18894 ac_cv_lib_bsd_forkpty
=no
18897 rm -rf conftest.dSYM
18898 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18899 conftest
$ac_exeext conftest.
$ac_ext
18900 LIBS
=$ac_check_lib_save_LIBS
18902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18903 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
18904 if test "x$ac_cv_lib_bsd_forkpty" = x
""yes; then
18905 cat >>confdefs.h
<<\_ACEOF
18906 #define HAVE_FORKPTY 1
18921 for ac_func
in memmove
18923 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18924 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18925 $as_echo_n "checking for $ac_func... " >&6; }
18926 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18927 $as_echo_n "(cached) " >&6
18929 cat >conftest.
$ac_ext <<_ACEOF
18932 cat confdefs.h
>>conftest.
$ac_ext
18933 cat >>conftest.
$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18937 #define $ac_func innocuous_$ac_func
18939 /* System header to define __stub macros and hopefully few prototypes,
18940 which can conflict with char $ac_func (); below.
18941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18942 <limits.h> exists even on freestanding compilers. */
18945 # include <limits.h>
18947 # include <assert.h>
18952 /* Override any GCC internal prototype to avoid an error.
18953 Use char because int might match the return type of a GCC
18954 builtin and then its argument prototype would still apply. */
18959 /* The GNU C library defines this for functions which it implements
18960 to always fail with ENOSYS. Some functions are actually named
18961 something starting with __ and the normal name is an alias. */
18962 #if defined __stub_$ac_func || defined __stub___$ac_func
18969 return $ac_func ();
18974 rm -f conftest.
$ac_objext conftest
$ac_exeext
18975 if { (ac_try
="$ac_link"
18976 case "(($ac_try" in
18977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18981 $as_echo "$ac_try_echo") >&5
18982 (eval "$ac_link") 2>conftest.er1
18984 grep -v '^ *+' conftest.er1 >conftest.err
18986 cat conftest.err >&5
18987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } && {
18989 test -z "$ac_c_werror_flag" ||
18990 test ! -s conftest.err
18991 } && test -s conftest$ac_exeext && {
18992 test "$cross_compiling" = yes ||
18993 $as_test_x conftest$ac_exeext
18995 eval "$as_ac_var=yes"
18997 $as_echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 eval "$as_ac_var=no"
19003 rm -rf conftest.dSYM
19004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19005 conftest$ac_exeext conftest.$ac_ext
19007 ac_res=`eval 'as_val=${'$as_ac_var'}
19008 $as_echo "$as_val"'`
19009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19010 $as_echo "$ac_res" >&6; }
19011 as_val=`eval 'as_val=${'$as_ac_var'}
19012 $as_echo "$as_val"'`
19013 if test "x$as_val" = x""yes; then
19014 cat >>confdefs.h <<_ACEOF
19015 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19022 # check for long file support functions
19029 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19032 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19033 $as_echo_n "checking for $ac_func... " >&6; }
19034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19035 $as_echo_n "(cached) " >&6
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19045 #define $ac_func innocuous_$ac_func
19047 /* System header to define __stub macros and hopefully few prototypes,
19048 which can conflict with char $ac_func (); below.
19049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19050 <limits.h> exists even on freestanding compilers. */
19053 # include <limits.h>
19055 # include <assert.h>
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19067 /* The GNU C library defines this for functions which it implements
19068 to always fail with ENOSYS. Some functions are actually named
19069 something starting with __ and the normal name is an alias. */
19070 #if defined __stub_$ac_func || defined __stub___$ac_func
19077 return $ac_func ();
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19086 *) ac_try_echo
=$ac_try;;
19088 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19089 $as_echo "$ac_try_echo") >&5
19090 (eval "$ac_link") 2>conftest.er1
19092 grep -v '^ *+' conftest.er1
>conftest.err
19094 cat conftest.err
>&5
19095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } && {
19097 test -z "$ac_c_werror_flag" ||
19098 test ! -s conftest.err
19099 } && test -s conftest
$ac_exeext && {
19100 test "$cross_compiling" = yes ||
19101 $as_test_x conftest
$ac_exeext
19103 eval "$as_ac_var=yes"
19105 $as_echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.
$ac_ext >&5
19108 eval "$as_ac_var=no"
19111 rm -rf conftest.dSYM
19112 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19113 conftest
$ac_exeext conftest.
$ac_ext
19115 ac_res
=`eval 'as_val=${'$as_ac_var'}
19116 $as_echo "$as_val"'`
19117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19118 $as_echo "$ac_res" >&6; }
19119 as_val
=`eval 'as_val=${'$as_ac_var'}
19120 $as_echo "$as_val"'`
19121 if test "x$as_val" = x
""yes; then
19122 cat >>confdefs.h
<<_ACEOF
19123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19133 for ac_func
in dup2 getcwd strdup
19135 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19136 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19137 $as_echo_n "checking for $ac_func... " >&6; }
19138 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19139 $as_echo_n "(cached) " >&6
19141 cat >conftest.
$ac_ext <<_ACEOF
19144 cat confdefs.h
>>conftest.
$ac_ext
19145 cat >>conftest.
$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19149 #define $ac_func innocuous_$ac_func
19151 /* System header to define __stub macros and hopefully few prototypes,
19152 which can conflict with char $ac_func (); below.
19153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19154 <limits.h> exists even on freestanding compilers. */
19157 # include <limits.h>
19159 # include <assert.h>
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19171 /* The GNU C library defines this for functions which it implements
19172 to always fail with ENOSYS. Some functions are actually named
19173 something starting with __ and the normal name is an alias. */
19174 #if defined __stub_$ac_func || defined __stub___$ac_func
19181 return $ac_func ();
19186 rm -f conftest.
$ac_objext conftest
$ac_exeext
19187 if { (ac_try
="$ac_link"
19188 case "(($ac_try" in
19189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19193 $as_echo "$ac_try_echo") >&5
19194 (eval "$ac_link") 2>conftest.er1
19196 grep -v '^ *+' conftest.er1 >conftest.err
19198 cat conftest.err >&5
19199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } && {
19201 test -z "$ac_c_werror_flag" ||
19202 test ! -s conftest.err
19203 } && test -s conftest$ac_exeext && {
19204 test "$cross_compiling" = yes ||
19205 $as_test_x conftest$ac_exeext
19207 eval "$as_ac_var=yes"
19209 $as_echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 eval "$as_ac_var=no"
19215 rm -rf conftest.dSYM
19216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19217 conftest$ac_exeext conftest.$ac_ext
19219 ac_res=`eval 'as_val=${'$as_ac_var'}
19220 $as_echo "$as_val"'`
19221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19222 $as_echo "$ac_res" >&6; }
19223 as_val=`eval 'as_val=${'$as_ac_var'}
19224 $as_echo "$as_val"'`
19225 if test "x$as_val" = x""yes; then
19226 cat >>confdefs.h <<_ACEOF
19227 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19231 case " $LIBOBJS " in
19232 *" $ac_func.$ac_objext "* ) ;;
19233 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19242 for ac_func in getpgrp
19244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19246 $as_echo_n "checking for $ac_func... " >&6; }
19247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19248 $as_echo_n "(cached) " >&6
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19258 #define $ac_func innocuous_$ac_func
19260 /* System header to define __stub macros and hopefully few prototypes,
19261 which can conflict with char $ac_func (); below.
19262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263 <limits.h> exists even on freestanding compilers. */
19266 # include <limits.h>
19268 # include <assert.h>
19273 /* Override any GCC internal prototype to avoid an error.
19274 Use char because int might match the return type of a GCC
19275 builtin and then its argument prototype would still apply. */
19280 /* The GNU C library defines this for functions which it implements
19281 to always fail with ENOSYS. Some functions are actually named
19282 something starting with __ and the normal name is an alias. */
19283 #if defined __stub_$ac_func || defined __stub___$ac_func
19290 return $ac_func ();
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19299 *) ac_try_echo
=$ac_try;;
19301 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19302 $as_echo "$ac_try_echo") >&5
19303 (eval "$ac_link") 2>conftest.er1
19305 grep -v '^ *+' conftest.er1
>conftest.err
19307 cat conftest.err
>&5
19308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } && {
19310 test -z "$ac_c_werror_flag" ||
19311 test ! -s conftest.err
19312 } && test -s conftest
$ac_exeext && {
19313 test "$cross_compiling" = yes ||
19314 $as_test_x conftest
$ac_exeext
19316 eval "$as_ac_var=yes"
19318 $as_echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.
$ac_ext >&5
19321 eval "$as_ac_var=no"
19324 rm -rf conftest.dSYM
19325 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19326 conftest
$ac_exeext conftest.
$ac_ext
19328 ac_res
=`eval 'as_val=${'$as_ac_var'}
19329 $as_echo "$as_val"'`
19330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19331 $as_echo "$ac_res" >&6; }
19332 as_val
=`eval 'as_val=${'$as_ac_var'}
19333 $as_echo "$as_val"'`
19334 if test "x$as_val" = x
""yes; then
19335 cat >>confdefs.h
<<_ACEOF
19336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19338 cat >conftest.
$ac_ext <<_ACEOF
19341 cat confdefs.h
>>conftest.
$ac_ext
19342 cat >>conftest.
$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 #include <unistd.h>
19353 rm -f conftest.
$ac_objext
19354 if { (ac_try
="$ac_compile"
19355 case "(($ac_try" in
19356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19360 $as_echo "$ac_try_echo") >&5
19361 (eval "$ac_compile") 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } && {
19368 test -z "$ac_c_werror_flag" ||
19369 test ! -s conftest.err
19370 } && test -s conftest.$ac_objext; then
19372 cat >>confdefs.h <<\_ACEOF
19373 #define GETPGRP_HAVE_ARG 1
19378 $as_echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19390 for ac_func in setpgrp
19392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19394 $as_echo_n "checking for $ac_func... " >&6; }
19395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19396 $as_echo_n "(cached) " >&6
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19406 #define $ac_func innocuous_$ac_func
19408 /* System header to define __stub macros and hopefully few prototypes,
19409 which can conflict with char $ac_func (); below.
19410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19411 <limits.h> exists even on freestanding compilers. */
19414 # include <limits.h>
19416 # include <assert.h>
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19428 /* The GNU C library defines this for functions which it implements
19429 to always fail with ENOSYS. Some functions are actually named
19430 something starting with __ and the normal name is an alias. */
19431 #if defined __stub_$ac_func || defined __stub___$ac_func
19438 return $ac_func ();
19443 rm -f conftest.$ac_objext conftest$ac_exeext
19444 if { (ac_try="$ac_link"
19445 case "(($ac_try" in
19446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19447 *) ac_try_echo
=$ac_try;;
19449 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19450 $as_echo "$ac_try_echo") >&5
19451 (eval "$ac_link") 2>conftest.er1
19453 grep -v '^ *+' conftest.er1
>conftest.err
19455 cat conftest.err
>&5
19456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && {
19458 test -z "$ac_c_werror_flag" ||
19459 test ! -s conftest.err
19460 } && test -s conftest
$ac_exeext && {
19461 test "$cross_compiling" = yes ||
19462 $as_test_x conftest
$ac_exeext
19464 eval "$as_ac_var=yes"
19466 $as_echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.
$ac_ext >&5
19469 eval "$as_ac_var=no"
19472 rm -rf conftest.dSYM
19473 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19474 conftest
$ac_exeext conftest.
$ac_ext
19476 ac_res
=`eval 'as_val=${'$as_ac_var'}
19477 $as_echo "$as_val"'`
19478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19479 $as_echo "$ac_res" >&6; }
19480 as_val
=`eval 'as_val=${'$as_ac_var'}
19481 $as_echo "$as_val"'`
19482 if test "x$as_val" = x
""yes; then
19483 cat >>confdefs.h
<<_ACEOF
19484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19486 cat >conftest.
$ac_ext <<_ACEOF
19489 cat confdefs.h
>>conftest.
$ac_ext
19490 cat >>conftest.
$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 #include <unistd.h>
19501 rm -f conftest.
$ac_objext
19502 if { (ac_try
="$ac_compile"
19503 case "(($ac_try" in
19504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19508 $as_echo "$ac_try_echo") >&5
19509 (eval "$ac_compile") 2>conftest.er1
19511 grep -v '^ *+' conftest.er1 >conftest.err
19513 cat conftest.err >&5
19514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } && {
19516 test -z "$ac_c_werror_flag" ||
19517 test ! -s conftest.err
19518 } && test -s conftest.$ac_objext; then
19520 cat >>confdefs.h <<\_ACEOF
19521 #define SETPGRP_HAVE_ARG 1
19526 $as_echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 for ac_func in gettimeofday
19540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19542 $as_echo_n "checking for $ac_func... " >&6; }
19543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19544 $as_echo_n "(cached) " >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19554 #define $ac_func innocuous_$ac_func
19556 /* System header to define __stub macros and hopefully few prototypes,
19557 which can conflict with char $ac_func (); below.
19558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19559 <limits.h> exists even on freestanding compilers. */
19562 # include <limits.h>
19564 # include <assert.h>
19569 /* Override any GCC internal prototype to avoid an error.
19570 Use char because int might match the return type of a GCC
19571 builtin and then its argument prototype would still apply. */
19576 /* The GNU C library defines this for functions which it implements
19577 to always fail with ENOSYS. Some functions are actually named
19578 something starting with __ and the normal name is an alias. */
19579 #if defined __stub_$ac_func || defined __stub___$ac_func
19586 return $ac_func ();
19591 rm -f conftest.$ac_objext conftest$ac_exeext
19592 if { (ac_try="$ac_link"
19593 case "(($ac_try" in
19594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19595 *) ac_try_echo
=$ac_try;;
19597 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19598 $as_echo "$ac_try_echo") >&5
19599 (eval "$ac_link") 2>conftest.er1
19601 grep -v '^ *+' conftest.er1
>conftest.err
19603 cat conftest.err
>&5
19604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest
$ac_exeext && {
19609 test "$cross_compiling" = yes ||
19610 $as_test_x conftest
$ac_exeext
19612 eval "$as_ac_var=yes"
19614 $as_echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.
$ac_ext >&5
19617 eval "$as_ac_var=no"
19620 rm -rf conftest.dSYM
19621 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19622 conftest
$ac_exeext conftest.
$ac_ext
19624 ac_res
=`eval 'as_val=${'$as_ac_var'}
19625 $as_echo "$as_val"'`
19626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19627 $as_echo "$ac_res" >&6; }
19628 as_val
=`eval 'as_val=${'$as_ac_var'}
19629 $as_echo "$as_val"'`
19630 if test "x$as_val" = x
""yes; then
19631 cat >>confdefs.h
<<_ACEOF
19632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19634 cat >conftest.
$ac_ext <<_ACEOF
19637 cat confdefs.h
>>conftest.
$ac_ext
19638 cat >>conftest.
$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 #include <sys/time.h>
19644 gettimeofday((struct timeval*)0,(struct timezone*)0);
19649 rm -f conftest.
$ac_objext
19650 if { (ac_try
="$ac_compile"
19651 case "(($ac_try" in
19652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19656 $as_echo "$ac_try_echo") >&5
19657 (eval "$ac_compile") 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest.$ac_objext; then
19669 $as_echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19673 cat >>confdefs.h <<\_ACEOF
19674 #define GETTIMEOFDAY_NO_TZ 1
19680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 { $as_echo "$as_me:$LINENO: checking for major" >&5
19687 $as_echo_n "checking for major... " >&6; }
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 #if defined(MAJOR_IN_MKDEV)
19696 #include <sys/mkdev.h>
19697 #elif defined(MAJOR_IN_SYSMACROS)
19698 #include <sys/sysmacros.h>
19700 #include <sys/types.h>
19707 makedev(major(0),minor(0));
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19717 *) ac_try_echo
=$ac_try;;
19719 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19720 $as_echo "$ac_try_echo") >&5
19721 (eval "$ac_link") 2>conftest.er1
19723 grep -v '^ *+' conftest.er1
>conftest.err
19725 cat conftest.err
>&5
19726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } && {
19728 test -z "$ac_c_werror_flag" ||
19729 test ! -s conftest.err
19730 } && test -s conftest
$ac_exeext && {
19731 test "$cross_compiling" = yes ||
19732 $as_test_x conftest
$ac_exeext
19736 cat >>confdefs.h
<<\_ACEOF
19737 #define HAVE_DEVICE_MACROS 1
19740 { $as_echo "$as_me:$LINENO: result: yes" >&5
19741 $as_echo "yes" >&6; }
19744 $as_echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.
$ac_ext >&5
19748 { $as_echo "$as_me:$LINENO: result: no" >&5
19749 $as_echo "no" >&6; }
19753 rm -rf conftest.dSYM
19754 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19755 conftest
$ac_exeext conftest.
$ac_ext
19757 # On OSF/1 V5.1, getaddrinfo is available, but a define
19758 # for [no]getaddrinfo in netdb.h.
19759 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19760 $as_echo_n "checking for getaddrinfo... " >&6; }
19761 cat >conftest.
$ac_ext <<_ACEOF
19764 cat confdefs.h
>>conftest.
$ac_ext
19765 cat >>conftest.
$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19768 #include <sys/types.h>
19769 #include <sys/socket.h>
19777 getaddrinfo(NULL, NULL, NULL, NULL);
19783 rm -f conftest.
$ac_objext conftest
$ac_exeext
19784 if { (ac_try
="$ac_link"
19785 case "(($ac_try" in
19786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19790 $as_echo "$ac_try_echo") >&5
19791 (eval "$ac_link") 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } && {
19798 test -z "$ac_c_werror_flag" ||
19799 test ! -s conftest.err
19800 } && test -s conftest$ac_exeext && {
19801 test "$cross_compiling" = yes ||
19802 $as_test_x conftest$ac_exeext
19805 { $as_echo "$as_me:$LINENO: result: yes" >&5
19806 $as_echo "yes" >&6; }
19807 { $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19808 $as_echo_n "checking getaddrinfo bug... " >&6; }
19809 if test "$cross_compiling" = yes; then
19810 { $as_echo "$as_me:$LINENO: result: buggy" >&5
19811 $as_echo "buggy" >&6; }
19812 buggygetaddrinfo=yes
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19821 #include <sys/types.h>
19823 #include <string.h>
19824 #include <sys/socket.h>
19825 #include <netinet/in.h>
19829 int passive, gaierr, inet4 = 0, inet6 = 0;
19830 struct addrinfo hints, *ai, *aitop;
19831 char straddr[INET6_ADDRSTRLEN], strport[16];
19833 for (passive = 0; passive <= 1; passive++) {
19834 memset(&hints, 0, sizeof(hints));
19835 hints.ai_family = AF_UNSPEC;
19836 hints.ai_flags = passive ? AI_PASSIVE : 0;
19837 hints.ai_socktype = SOCK_STREAM;
19838 hints.ai_protocol = IPPROTO_TCP;
19839 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19840 (void)gai_strerror(gaierr);
19843 for (ai = aitop; ai; ai = ai->ai_next) {
19844 if (ai->ai_addr == NULL ||
19845 ai->ai_addrlen == 0 ||
19846 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19847 straddr, sizeof(straddr), strport, sizeof(strport),
19848 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19851 switch (ai->ai_family) {
19853 if (strcmp(strport, "54321") != 0) {
19857 if (strcmp(straddr, "0.0.0.0") != 0) {
19861 if (strcmp(straddr, "127.0.0.1") != 0) {
19868 if (strcmp(strport, "54321") != 0) {
19872 if (strcmp(straddr, "::") != 0) {
19876 if (strcmp(straddr, "::1") != 0) {
19886 /* another family support? */
19892 if (!(inet4 == 0 || inet4 == 2))
19894 if (!(inet6 == 0 || inet6 == 2))
19898 freeaddrinfo(aitop);
19903 freeaddrinfo(aitop);
19908 rm -f conftest$ac_exeext
19909 if { (ac_try="$ac_link"
19910 case "(($ac_try" in
19911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19912 *) ac_try_echo
=$ac_try;;
19914 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19915 $as_echo "$ac_try_echo") >&5
19916 (eval "$ac_link") 2>&5
19918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19920 { (case "(($ac_try" in
19921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19925 $as_echo "$ac_try_echo") >&5
19926 (eval "$ac_try") 2>&5
19928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 { $as_echo "$as_me:$LINENO: result: good" >&5
19931 $as_echo "good" >&6; }
19932 buggygetaddrinfo=no
19934 $as_echo "$as_me: program exited with status $ac_status" >&5
19935 $as_echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ( exit $ac_status )
19939 { $as_echo "$as_me:$LINENO: result: buggy" >&5
19940 $as_echo "buggy" >&6; }
19941 buggygetaddrinfo=yes
19943 rm -rf conftest.dSYM
19944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19949 $as_echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19953 { $as_echo "$as_me:$LINENO: result: no" >&5
19954 $as_echo "no" >&6; }
19955 buggygetaddrinfo=yes
19959 rm -rf conftest.dSYM
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961 conftest$ac_exeext conftest.$ac_ext
19963 if test "$buggygetaddrinfo" = "yes"; then
19964 if test "$ipv6" = "yes"; then
19965 echo 'Fatal: You must get working getaddrinfo() function.'
19966 echo ' or you can specify "--disable-ipv6"'.
19971 cat >>confdefs.h <<\_ACEOF
19972 #define HAVE_GETADDRINFO 1
19977 for ac_func in getnameinfo
19979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19981 $as_echo_n "checking for $ac_func... " >&6; }
19982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19983 $as_echo_n "(cached) " >&6
19985 cat >conftest.$ac_ext <<_ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19993 #define $ac_func innocuous_$ac_func
19995 /* System header to define __stub macros and hopefully few prototypes,
19996 which can conflict with char $ac_func (); below.
19997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19998 <limits.h> exists even on freestanding compilers. */
20001 # include <limits.h>
20003 # include <assert.h>
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20015 /* The GNU C library defines this for functions which it implements
20016 to always fail with ENOSYS. Some functions are actually named
20017 something starting with __ and the normal name is an alias. */
20018 #if defined __stub_$ac_func || defined __stub___$ac_func
20025 return $ac_func ();
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (ac_try="$ac_link"
20032 case "(($ac_try" in
20033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20034 *) ac_try_echo
=$ac_try;;
20036 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20037 $as_echo "$ac_try_echo") >&5
20038 (eval "$ac_link") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1
>conftest.err
20042 cat conftest.err
>&5
20043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest
$ac_exeext && {
20048 test "$cross_compiling" = yes ||
20049 $as_test_x conftest
$ac_exeext
20051 eval "$as_ac_var=yes"
20053 $as_echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.
$ac_ext >&5
20056 eval "$as_ac_var=no"
20059 rm -rf conftest.dSYM
20060 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20061 conftest
$ac_exeext conftest.
$ac_ext
20063 ac_res
=`eval 'as_val=${'$as_ac_var'}
20064 $as_echo "$as_val"'`
20065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20066 $as_echo "$ac_res" >&6; }
20067 as_val
=`eval 'as_val=${'$as_ac_var'}
20068 $as_echo "$as_val"'`
20069 if test "x$as_val" = x
""yes; then
20070 cat >>confdefs.h
<<_ACEOF
20071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20078 # checks for structures
20079 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20080 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20081 if test "${ac_cv_header_time+set}" = set; then
20082 $as_echo_n "(cached) " >&6
20084 cat >conftest.
$ac_ext <<_ACEOF
20087 cat confdefs.h
>>conftest.
$ac_ext
20088 cat >>conftest.
$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 #include <sys/types.h>
20091 #include <sys/time.h>
20097 if ((struct tm *) 0)
20103 rm -f conftest.
$ac_objext
20104 if { (ac_try
="$ac_compile"
20105 case "(($ac_try" in
20106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20110 $as_echo "$ac_try_echo") >&5
20111 (eval "$ac_compile") 2>conftest.er1
20113 grep -v '^ *+' conftest.er1 >conftest.err
20115 cat conftest.err >&5
20116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } && {
20118 test -z "$ac_c_werror_flag" ||
20119 test ! -s conftest.err
20120 } && test -s conftest.$ac_objext; then
20121 ac_cv_header_time=yes
20123 $as_echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 ac_cv_header_time=no
20129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20132 $as_echo "$ac_cv_header_time" >&6; }
20133 if test $ac_cv_header_time = yes; then
20135 cat >>confdefs.h <<\_ACEOF
20136 #define TIME_WITH_SYS_TIME 1
20141 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20142 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20143 if test "${ac_cv_struct_tm+set}" = set; then
20144 $as_echo_n "(cached) " >&6
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <sys/types.h>
20159 int *p = &tm.tm_sec;
20165 rm -f conftest.$ac_objext
20166 if { (ac_try="$ac_compile"
20167 case "(($ac_try" in
20168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20169 *) ac_try_echo
=$ac_try;;
20171 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20172 $as_echo "$ac_try_echo") >&5
20173 (eval "$ac_compile") 2>conftest.er1
20175 grep -v '^ *+' conftest.er1
>conftest.err
20177 cat conftest.err
>&5
20178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest.
$ac_objext; then
20183 ac_cv_struct_tm
=time.h
20185 $as_echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.
$ac_ext >&5
20188 ac_cv_struct_tm
=sys
/time.h
20191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20193 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20194 $as_echo "$ac_cv_struct_tm" >&6; }
20195 if test $ac_cv_struct_tm = sys
/time.h
; then
20197 cat >>confdefs.h
<<\_ACEOF
20198 #define TM_IN_SYS_TIME 1
20203 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20204 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
20205 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20206 $as_echo_n "(cached) " >&6
20208 cat >conftest.
$ac_ext <<_ACEOF
20211 cat confdefs.h
>>conftest.
$ac_ext
20212 cat >>conftest.
$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 #include <sys/types.h>
20215 #include <$ac_cv_struct_tm>
20221 static struct tm ac_aggr;
20222 if (ac_aggr.tm_zone)
20228 rm -f conftest.
$ac_objext
20229 if { (ac_try
="$ac_compile"
20230 case "(($ac_try" in
20231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20235 $as_echo "$ac_try_echo") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest.$ac_objext; then
20246 ac_cv_member_struct_tm_tm_zone=yes
20248 $as_echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 #include <sys/types.h>
20258 #include <$ac_cv_struct_tm>
20264 static struct tm ac_aggr;
20265 if (sizeof ac_aggr.tm_zone)
20271 rm -f conftest.$ac_objext
20272 if { (ac_try="$ac_compile"
20273 case "(($ac_try" in
20274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20275 *) ac_try_echo
=$ac_try;;
20277 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20278 $as_echo "$ac_try_echo") >&5
20279 (eval "$ac_compile") 2>conftest.er1
20281 grep -v '^ *+' conftest.er1
>conftest.err
20283 cat conftest.err
>&5
20284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest.
$ac_objext; then
20289 ac_cv_member_struct_tm_tm_zone
=yes
20291 $as_echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.
$ac_ext >&5
20294 ac_cv_member_struct_tm_tm_zone
=no
20297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20302 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20303 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
20304 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
20306 cat >>confdefs.h
<<_ACEOF
20307 #define HAVE_STRUCT_TM_TM_ZONE 1
20313 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20315 cat >>confdefs.h
<<\_ACEOF
20316 #define HAVE_TM_ZONE 1
20320 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20321 $as_echo_n "checking whether tzname is declared... " >&6; }
20322 if test "${ac_cv_have_decl_tzname+set}" = set; then
20323 $as_echo_n "(cached) " >&6
20325 cat >conftest.
$ac_ext <<_ACEOF
20328 cat confdefs.h
>>conftest.
$ac_ext
20329 cat >>conftest.
$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20344 rm -f conftest.
$ac_objext
20345 if { (ac_try
="$ac_compile"
20346 case "(($ac_try" in
20347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20351 $as_echo "$ac_try_echo") >&5
20352 (eval "$ac_compile") 2>conftest.er1
20354 grep -v '^ *+' conftest.er1 >conftest.err
20356 cat conftest.err >&5
20357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } && {
20359 test -z "$ac_c_werror_flag" ||
20360 test ! -s conftest.err
20361 } && test -s conftest.$ac_objext; then
20362 ac_cv_have_decl_tzname=yes
20364 $as_echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_have_decl_tzname=no
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20373 $as_echo "$ac_cv_have_decl_tzname" >&6; }
20374 if test "x$ac_cv_have_decl_tzname" = x""yes; then
20376 cat >>confdefs.h <<_ACEOF
20377 #define HAVE_DECL_TZNAME 1
20382 cat >>confdefs.h <<_ACEOF
20383 #define HAVE_DECL_TZNAME 0
20390 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
20391 $as_echo_n "checking for tzname... " >&6; }
20392 if test "${ac_cv_var_tzname+set}" = set; then
20393 $as_echo_n "(cached) " >&6
20395 cat >conftest.$ac_ext <<_ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20402 #if !HAVE_DECL_TZNAME
20403 extern char *tzname[];
20409 return tzname[0][0];
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20418 *) ac_try_echo
=$ac_try;;
20420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20421 $as_echo "$ac_try_echo") >&5
20422 (eval "$ac_link") 2>conftest.er1
20424 grep -v '^ *+' conftest.er1
>conftest.err
20426 cat conftest.err
>&5
20427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest
$ac_exeext && {
20432 test "$cross_compiling" = yes ||
20433 $as_test_x conftest
$ac_exeext
20435 ac_cv_var_tzname
=yes
20437 $as_echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.
$ac_ext >&5
20440 ac_cv_var_tzname
=no
20443 rm -rf conftest.dSYM
20444 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20445 conftest
$ac_exeext conftest.
$ac_ext
20447 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20448 $as_echo "$ac_cv_var_tzname" >&6; }
20449 if test $ac_cv_var_tzname = yes; then
20451 cat >>confdefs.h
<<\_ACEOF
20452 #define HAVE_TZNAME 1
20458 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20459 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
20460 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20461 $as_echo_n "(cached) " >&6
20463 cat >conftest.
$ac_ext <<_ACEOF
20466 cat confdefs.h
>>conftest.
$ac_ext
20467 cat >>conftest.
$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 $ac_includes_default
20473 static struct stat ac_aggr;
20474 if (ac_aggr.st_rdev)
20480 rm -f conftest.
$ac_objext
20481 if { (ac_try
="$ac_compile"
20482 case "(($ac_try" in
20483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20487 $as_echo "$ac_try_echo") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20490 grep -v '^ *+' conftest.er1 >conftest.err
20492 cat conftest.err >&5
20493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && {
20495 test -z "$ac_c_werror_flag" ||
20496 test ! -s conftest.err
20497 } && test -s conftest.$ac_objext; then
20498 ac_cv_member_struct_stat_st_rdev=yes
20500 $as_echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 cat >conftest.$ac_ext <<_ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 $ac_includes_default
20513 static struct stat ac_aggr;
20514 if (sizeof ac_aggr.st_rdev)
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20524 *) ac_try_echo
=$ac_try;;
20526 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20527 $as_echo "$ac_try_echo") >&5
20528 (eval "$ac_compile") 2>conftest.er1
20530 grep -v '^ *+' conftest.er1
>conftest.err
20532 cat conftest.err
>&5
20533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } && {
20535 test -z "$ac_c_werror_flag" ||
20536 test ! -s conftest.err
20537 } && test -s conftest.
$ac_objext; then
20538 ac_cv_member_struct_stat_st_rdev
=yes
20540 $as_echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.
$ac_ext >&5
20543 ac_cv_member_struct_stat_st_rdev
=no
20546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20551 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20552 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
20553 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then
20555 cat >>confdefs.h
<<_ACEOF
20556 #define HAVE_STRUCT_STAT_ST_RDEV 1
20562 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20563 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
20564 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20565 $as_echo_n "(cached) " >&6
20567 cat >conftest.
$ac_ext <<_ACEOF
20570 cat confdefs.h
>>conftest.
$ac_ext
20571 cat >>conftest.
$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 $ac_includes_default
20577 static struct stat ac_aggr;
20578 if (ac_aggr.st_blksize)
20584 rm -f conftest.
$ac_objext
20585 if { (ac_try
="$ac_compile"
20586 case "(($ac_try" in
20587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20591 $as_echo "$ac_try_echo") >&5
20592 (eval "$ac_compile") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest.$ac_objext; then
20602 ac_cv_member_struct_stat_st_blksize=yes
20604 $as_echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 $ac_includes_default
20617 static struct stat ac_aggr;
20618 if (sizeof ac_aggr.st_blksize)
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20628 *) ac_try_echo
=$ac_try;;
20630 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20631 $as_echo "$ac_try_echo") >&5
20632 (eval "$ac_compile") 2>conftest.er1
20634 grep -v '^ *+' conftest.er1
>conftest.err
20636 cat conftest.err
>&5
20637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest.
$ac_objext; then
20642 ac_cv_member_struct_stat_st_blksize
=yes
20644 $as_echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.
$ac_ext >&5
20647 ac_cv_member_struct_stat_st_blksize
=no
20650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20655 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20656 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
20657 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then
20659 cat >>confdefs.h
<<_ACEOF
20660 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20666 { $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20667 $as_echo_n "checking for struct stat.st_flags... " >&6; }
20668 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20669 $as_echo_n "(cached) " >&6
20671 cat >conftest.
$ac_ext <<_ACEOF
20674 cat confdefs.h
>>conftest.
$ac_ext
20675 cat >>conftest.
$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 $ac_includes_default
20681 static struct stat ac_aggr;
20682 if (ac_aggr.st_flags)
20688 rm -f conftest.
$ac_objext
20689 if { (ac_try
="$ac_compile"
20690 case "(($ac_try" in
20691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20695 $as_echo "$ac_try_echo") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20698 grep -v '^ *+' conftest.er1 >conftest.err
20700 cat conftest.err >&5
20701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && {
20703 test -z "$ac_c_werror_flag" ||
20704 test ! -s conftest.err
20705 } && test -s conftest.$ac_objext; then
20706 ac_cv_member_struct_stat_st_flags=yes
20708 $as_echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 cat >conftest.$ac_ext <<_ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 $ac_includes_default
20721 static struct stat ac_aggr;
20722 if (sizeof ac_aggr.st_flags)
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20732 *) ac_try_echo
=$ac_try;;
20734 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20735 $as_echo "$ac_try_echo") >&5
20736 (eval "$ac_compile") 2>conftest.er1
20738 grep -v '^ *+' conftest.er1
>conftest.err
20740 cat conftest.err
>&5
20741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest.
$ac_objext; then
20746 ac_cv_member_struct_stat_st_flags
=yes
20748 $as_echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.
$ac_ext >&5
20751 ac_cv_member_struct_stat_st_flags
=no
20754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20759 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20760 $as_echo "$ac_cv_member_struct_stat_st_flags" >&6; }
20761 if test "x$ac_cv_member_struct_stat_st_flags" = x
""yes; then
20763 cat >>confdefs.h
<<_ACEOF
20764 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20770 { $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20771 $as_echo_n "checking for struct stat.st_gen... " >&6; }
20772 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20773 $as_echo_n "(cached) " >&6
20775 cat >conftest.
$ac_ext <<_ACEOF
20778 cat confdefs.h
>>conftest.
$ac_ext
20779 cat >>conftest.
$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20781 $ac_includes_default
20785 static struct stat ac_aggr;
20786 if (ac_aggr.st_gen)
20792 rm -f conftest.
$ac_objext
20793 if { (ac_try
="$ac_compile"
20794 case "(($ac_try" in
20795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_compile") 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest.$ac_objext; then
20810 ac_cv_member_struct_stat_st_gen=yes
20812 $as_echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 cat >conftest.$ac_ext <<_ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h. */
20821 $ac_includes_default
20825 static struct stat ac_aggr;
20826 if (sizeof ac_aggr.st_gen)
20832 rm -f conftest.$ac_objext
20833 if { (ac_try="$ac_compile"
20834 case "(($ac_try" in
20835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20836 *) ac_try_echo
=$ac_try;;
20838 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20839 $as_echo "$ac_try_echo") >&5
20840 (eval "$ac_compile") 2>conftest.er1
20842 grep -v '^ *+' conftest.er1
>conftest.err
20844 cat conftest.err
>&5
20845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } && {
20847 test -z "$ac_c_werror_flag" ||
20848 test ! -s conftest.err
20849 } && test -s conftest.
$ac_objext; then
20850 ac_cv_member_struct_stat_st_gen
=yes
20852 $as_echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.
$ac_ext >&5
20855 ac_cv_member_struct_stat_st_gen
=no
20858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20863 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20864 $as_echo "$ac_cv_member_struct_stat_st_gen" >&6; }
20865 if test "x$ac_cv_member_struct_stat_st_gen" = x
""yes; then
20867 cat >>confdefs.h
<<_ACEOF
20868 #define HAVE_STRUCT_STAT_ST_GEN 1
20874 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20875 $as_echo_n "checking for struct stat.st_birthtime... " >&6; }
20876 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20877 $as_echo_n "(cached) " >&6
20879 cat >conftest.
$ac_ext <<_ACEOF
20882 cat confdefs.h
>>conftest.
$ac_ext
20883 cat >>conftest.
$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 $ac_includes_default
20889 static struct stat ac_aggr;
20890 if (ac_aggr.st_birthtime)
20896 rm -f conftest.
$ac_objext
20897 if { (ac_try
="$ac_compile"
20898 case "(($ac_try" in
20899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20903 $as_echo "$ac_try_echo") >&5
20904 (eval "$ac_compile") 2>conftest.er1
20906 grep -v '^ *+' conftest.er1 >conftest.err
20908 cat conftest.err >&5
20909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } && {
20911 test -z "$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20913 } && test -s conftest.$ac_objext; then
20914 ac_cv_member_struct_stat_st_birthtime=yes
20916 $as_echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 cat >conftest.$ac_ext <<_ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 $ac_includes_default
20929 static struct stat ac_aggr;
20930 if (sizeof ac_aggr.st_birthtime)
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
20938 case "(($ac_try" in
20939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20940 *) ac_try_echo
=$ac_try;;
20942 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20943 $as_echo "$ac_try_echo") >&5
20944 (eval "$ac_compile") 2>conftest.er1
20946 grep -v '^ *+' conftest.er1
>conftest.err
20948 cat conftest.err
>&5
20949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && {
20951 test -z "$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 } && test -s conftest.
$ac_objext; then
20954 ac_cv_member_struct_stat_st_birthtime
=yes
20956 $as_echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.
$ac_ext >&5
20959 ac_cv_member_struct_stat_st_birthtime
=no
20962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20967 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20968 $as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; }
20969 if test "x$ac_cv_member_struct_stat_st_birthtime" = x
""yes; then
20971 cat >>confdefs.h
<<_ACEOF
20972 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20978 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20979 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
20980 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20981 $as_echo_n "(cached) " >&6
20983 cat >conftest.
$ac_ext <<_ACEOF
20986 cat confdefs.h
>>conftest.
$ac_ext
20987 cat >>conftest.
$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20989 $ac_includes_default
20993 static struct stat ac_aggr;
20994 if (ac_aggr.st_blocks)
21000 rm -f conftest.
$ac_objext
21001 if { (ac_try
="$ac_compile"
21002 case "(($ac_try" in
21003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21007 $as_echo "$ac_try_echo") >&5
21008 (eval "$ac_compile") 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && {
21015 test -z "$ac_c_werror_flag" ||
21016 test ! -s conftest.err
21017 } && test -s conftest.$ac_objext; then
21018 ac_cv_member_struct_stat_st_blocks=yes
21020 $as_echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 $ac_includes_default
21033 static struct stat ac_aggr;
21034 if (sizeof ac_aggr.st_blocks)
21040 rm -f conftest.$ac_objext
21041 if { (ac_try="$ac_compile"
21042 case "(($ac_try" in
21043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21044 *) ac_try_echo
=$ac_try;;
21046 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21047 $as_echo "$ac_try_echo") >&5
21048 (eval "$ac_compile") 2>conftest.er1
21050 grep -v '^ *+' conftest.er1
>conftest.err
21052 cat conftest.err
>&5
21053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } && {
21055 test -z "$ac_c_werror_flag" ||
21056 test ! -s conftest.err
21057 } && test -s conftest.
$ac_objext; then
21058 ac_cv_member_struct_stat_st_blocks
=yes
21060 $as_echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.
$ac_ext >&5
21063 ac_cv_member_struct_stat_st_blocks
=no
21066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21071 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21072 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
21073 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then
21075 cat >>confdefs.h
<<_ACEOF
21076 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21080 cat >>confdefs.h
<<\_ACEOF
21081 #define HAVE_ST_BLOCKS 1
21085 case " $LIBOBJS " in
21086 *" fileblocks.$ac_objext "* ) ;;
21087 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
21095 { $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21096 $as_echo_n "checking for time.h that defines altzone... " >&6; }
21097 if test "${ac_cv_header_time_altzone+set}" = set; then
21098 $as_echo_n "(cached) " >&6
21100 cat >conftest.
$ac_ext <<_ACEOF
21103 cat confdefs.h
>>conftest.
$ac_ext
21104 cat >>conftest.
$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21115 rm -f conftest.
$ac_objext
21116 if { (ac_try
="$ac_compile"
21117 case "(($ac_try" in
21118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21122 $as_echo "$ac_try_echo") >&5
21123 (eval "$ac_compile") 2>conftest.er1
21125 grep -v '^ *+' conftest.er1 >conftest.err
21127 cat conftest.err >&5
21128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } && {
21130 test -z "$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 } && test -s conftest.$ac_objext; then
21133 ac_cv_header_time_altzone=yes
21135 $as_echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ac_cv_header_time_altzone=no
21141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21145 $as_echo "$ac_cv_header_time_altzone" >&6; }
21146 if test $ac_cv_header_time_altzone = yes; then
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_ALTZONE 1
21155 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21156 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21164 #include <sys/types.h>
21165 #include <sys/select.h>
21166 #include <sys/time.h>
21176 rm -f conftest.$ac_objext
21177 if { (ac_try="$ac_compile"
21178 case "(($ac_try" in
21179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21180 *) ac_try_echo
=$ac_try;;
21182 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21183 $as_echo "$ac_try_echo") >&5
21184 (eval "$ac_compile") 2>conftest.er1
21186 grep -v '^ *+' conftest.er1
>conftest.err
21188 cat conftest.err
>&5
21189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && {
21191 test -z "$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21193 } && test -s conftest.
$ac_objext; then
21196 cat >>confdefs.h
<<\_ACEOF
21197 #define SYS_SELECT_WITH_SYS_TIME 1
21203 $as_echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.
$ac_ext >&5
21209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21210 { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
21211 $as_echo "$was_it_defined" >&6; }
21213 { $as_echo "$as_me:$LINENO: checking for addrinfo" >&5
21214 $as_echo_n "checking for addrinfo... " >&6; }
21215 if test "${ac_cv_struct_addrinfo+set}" = set; then
21216 $as_echo_n "(cached) " >&6
21218 cat >conftest.
$ac_ext <<_ACEOF
21221 cat confdefs.h
>>conftest.
$ac_ext
21222 cat >>conftest.
$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21225 # include <netdb.h>
21234 rm -f conftest.
$ac_objext
21235 if { (ac_try
="$ac_compile"
21236 case "(($ac_try" in
21237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21241 $as_echo "$ac_try_echo") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_cv_struct_addrinfo=yes
21254 $as_echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ac_cv_struct_addrinfo=no
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21264 $as_echo "$ac_cv_struct_addrinfo" >&6; }
21265 if test $ac_cv_struct_addrinfo = yes; then
21267 cat >>confdefs.h <<\_ACEOF
21268 #define HAVE_ADDRINFO 1
21273 { $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21274 $as_echo_n "checking for sockaddr_storage... " >&6; }
21275 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21276 $as_echo_n "(cached) " >&6
21278 cat >conftest.$ac_ext <<_ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21285 # include <sys/types.h>
21286 # include <sys/socket.h>
21290 struct sockaddr_storage s
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21299 *) ac_try_echo
=$ac_try;;
21301 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21302 $as_echo "$ac_try_echo") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21305 grep -v '^ *+' conftest.er1
>conftest.err
21307 cat conftest.err
>&5
21308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.
$ac_objext; then
21313 ac_cv_struct_sockaddr_storage
=yes
21315 $as_echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.
$ac_ext >&5
21318 ac_cv_struct_sockaddr_storage
=no
21321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21324 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
21325 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
21326 if test $ac_cv_struct_sockaddr_storage = yes; then
21328 cat >>confdefs.h
<<\_ACEOF
21329 #define HAVE_SOCKADDR_STORAGE 1
21334 # checks for compiler characteristics
21337 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
21338 $as_echo_n "checking whether char is unsigned... " >&6; }
21339 if test "${ac_cv_c_char_unsigned+set}" = set; then
21340 $as_echo_n "(cached) " >&6
21342 cat >conftest.
$ac_ext <<_ACEOF
21345 cat confdefs.h
>>conftest.
$ac_ext
21346 cat >>conftest.
$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 $ac_includes_default
21352 static int test_array [1 - 2 * !(((char) -1) < 0)];
21359 rm -f conftest.
$ac_objext
21360 if { (ac_try
="$ac_compile"
21361 case "(($ac_try" in
21362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21366 $as_echo "$ac_try_echo") >&5
21367 (eval "$ac_compile") 2>conftest.er1
21369 grep -v '^ *+' conftest.er1 >conftest.err
21371 cat conftest.err >&5
21372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest.$ac_objext; then
21377 ac_cv_c_char_unsigned=no
21379 $as_echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 ac_cv_c_char_unsigned=yes
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
21388 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21389 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21390 cat >>confdefs.h <<\_ACEOF
21391 #define __CHAR_UNSIGNED__ 1
21396 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21397 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21398 if test "${ac_cv_c_const+set}" = set; then
21399 $as_echo_n "(cached) " >&6
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21411 /* FIXME: Include the comments suggested by Paul. */
21412 #ifndef __cplusplus
21413 /* Ultrix mips cc rejects this. */
21414 typedef int charset[2];
21416 /* SunOS 4.1.1 cc rejects this. */
21417 char const *const *pcpcc;
21419 /* NEC SVR4.0.2 mips cc rejects this. */
21420 struct point {int x, y;};
21421 static struct point const zero = {0,0};
21422 /* AIX XL C 1.02.0.0 rejects this.
21423 It does not let you subtract one const X* pointer from another in
21424 an arm of an if-expression whose if-part is not a constant
21426 const char *g = "string";
21427 pcpcc = &g + (g ? g-g : 0);
21428 /* HPUX 7.0 cc rejects these. */
21430 ppc = (char**) pcpcc;
21431 pcpcc = (char const *const *) ppc;
21432 { /* SCO 3.2v4 cc rejects this. */
21434 char const *s = 0 ? (char *) 0 : (char const *) 0;
21439 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21440 int x[] = {25, 17};
21441 const int *foo = &x[0];
21444 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21445 typedef const int *iptr;
21449 { /* AIX XL C 1.02.0.0 rejects this saying
21450 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21451 struct s { int j; const int *ap[3]; };
21452 struct s *b; b->j = 5;
21454 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21455 const int foo = 10;
21456 if (!foo) return 0;
21458 return !cs[0] && !zero.x;
21465 rm -f conftest.$ac_objext
21466 if { (ac_try="$ac_compile"
21467 case "(($ac_try" in
21468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21469 *) ac_try_echo
=$ac_try;;
21471 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473 (eval "$ac_compile") 2>conftest.er1
21475 grep -v '^ *+' conftest.er1
>conftest.err
21477 cat conftest.err
>&5
21478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && {
21480 test -z "$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21482 } && test -s conftest.
$ac_objext; then
21485 $as_echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.
$ac_ext >&5
21491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21493 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21494 $as_echo "$ac_cv_c_const" >&6; }
21495 if test $ac_cv_c_const = no
; then
21497 cat >>confdefs.h
<<\_ACEOF
21505 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
21506 $as_echo_n "checking for working volatile... " >&6; }
21507 cat >conftest.
$ac_ext <<_ACEOF
21510 cat confdefs.h
>>conftest.
$ac_ext
21511 cat >>conftest.
$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21517 volatile int x; x = 0;
21522 rm -f conftest.
$ac_objext
21523 if { (ac_try
="$ac_compile"
21524 case "(($ac_try" in
21525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529 $as_echo "$ac_try_echo") >&5
21530 (eval "$ac_compile") 2>conftest.er1
21532 grep -v '^ *+' conftest.er1 >conftest.err
21534 cat conftest.err >&5
21535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.$ac_objext; then
21542 $as_echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21546 cat >>confdefs.h <<\_ACEOF
21547 #define volatile /**/
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554 { $as_echo "$as_me:$LINENO: result: $works" >&5
21555 $as_echo "$works" >&6; }
21558 { $as_echo "$as_me:$LINENO: checking for working signed char" >&5
21559 $as_echo_n "checking for working signed char... " >&6; }
21560 cat >conftest.$ac_ext <<_ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21575 rm -f conftest.$ac_objext
21576 if { (ac_try="$ac_compile"
21577 case "(($ac_try" in
21578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21579 *) ac_try_echo
=$ac_try;;
21581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21582 $as_echo "$ac_try_echo") >&5
21583 (eval "$ac_compile") 2>conftest.er1
21585 grep -v '^ *+' conftest.er1
>conftest.err
21587 cat conftest.err
>&5
21588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && {
21590 test -z "$ac_c_werror_flag" ||
21591 test ! -s conftest.err
21592 } && test -s conftest.
$ac_objext; then
21595 $as_echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.
$ac_ext >&5
21599 cat >>confdefs.h
<<\_ACEOF
21600 #define signed /**/
21606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21607 { $as_echo "$as_me:$LINENO: result: $works" >&5
21608 $as_echo "$works" >&6; }
21611 { $as_echo "$as_me:$LINENO: checking for prototypes" >&5
21612 $as_echo_n "checking for prototypes... " >&6; }
21613 cat >conftest.
$ac_ext <<_ACEOF
21616 cat confdefs.h
>>conftest.
$ac_ext
21617 cat >>conftest.
$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 int foo(int x) { return 0; }
21628 rm -f conftest.
$ac_objext
21629 if { (ac_try
="$ac_compile"
21630 case "(($ac_try" in
21631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21635 $as_echo "$ac_try_echo") >&5
21636 (eval "$ac_compile") 2>conftest.er1
21638 grep -v '^ *+' conftest.er1 >conftest.err
21640 cat conftest.err >&5
21641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
21648 cat >>confdefs.h <<\_ACEOF
21649 #define HAVE_PROTOTYPES 1
21652 have_prototypes=yes
21655 $as_echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662 { $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5
21663 $as_echo "$have_prototypes" >&6; }
21666 { $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21667 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21675 #include <stdarg.h>
21676 int foo(int x, ...) {
21680 va_arg(va, char *);
21681 va_arg(va, double);
21688 return foo(10, "", 3.14);
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21697 *) ac_try_echo
=$ac_try;;
21699 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21700 $as_echo "$ac_try_echo") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21703 grep -v '^ *+' conftest.er1
>conftest.err
21705 cat conftest.err
>&5
21706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.
$ac_objext; then
21713 cat >>confdefs.h
<<\_ACEOF
21714 #define HAVE_STDARG_PROTOTYPES 1
21720 $as_echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.
$ac_ext >&5
21726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21727 { $as_echo "$as_me:$LINENO: result: $works" >&5
21728 $as_echo "$works" >&6; }
21730 # check for socketpair
21731 { $as_echo "$as_me:$LINENO: checking for socketpair" >&5
21732 $as_echo_n "checking for socketpair... " >&6; }
21733 cat >conftest.
$ac_ext <<_ACEOF
21736 cat confdefs.h
>>conftest.
$ac_ext
21737 cat >>conftest.
$ac_ext <<_ACEOF
21738 /* end confdefs.h. */
21740 #include <sys/types.h>
21741 #include <sys/socket.h>
21751 rm -f conftest.
$ac_objext
21752 if { (ac_try
="$ac_compile"
21753 case "(($ac_try" in
21754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21758 $as_echo "$ac_try_echo") >&5
21759 (eval "$ac_compile") 2>conftest.er1
21761 grep -v '^ *+' conftest.er1 >conftest.err
21763 cat conftest.err >&5
21764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest.$ac_objext; then
21770 cat >>confdefs.h <<\_ACEOF
21771 #define HAVE_SOCKETPAIR 1
21774 { $as_echo "$as_me:$LINENO: result: yes" >&5
21775 $as_echo "yes" >&6; }
21777 $as_echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 { $as_echo "$as_me:$LINENO: result: no" >&5
21781 $as_echo "no" >&6; }
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 # check if sockaddr has sa_len member
21788 { $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21789 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 #include <sys/types.h>
21797 #include <sys/socket.h>
21807 rm -f conftest.$ac_objext
21808 if { (ac_try="$ac_compile"
21809 case "(($ac_try" in
21810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21811 *) ac_try_echo
=$ac_try;;
21813 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815 (eval "$ac_compile") 2>conftest.er1
21817 grep -v '^ *+' conftest.er1
>conftest.err
21819 cat conftest.err
>&5
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && {
21822 test -z "$ac_c_werror_flag" ||
21823 test ! -s conftest.err
21824 } && test -s conftest.
$ac_objext; then
21825 { $as_echo "$as_me:$LINENO: result: yes" >&5
21826 $as_echo "yes" >&6; }
21828 cat >>confdefs.h
<<\_ACEOF
21829 #define HAVE_SOCKADDR_SA_LEN 1
21833 $as_echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.
$ac_ext >&5
21836 { $as_echo "$as_me:$LINENO: result: no" >&5
21837 $as_echo "no" >&6; }
21840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21842 va_list_is_array
=no
21843 { $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21844 $as_echo_n "checking whether va_list is an array... " >&6; }
21845 cat >conftest.
$ac_ext <<_ACEOF
21848 cat confdefs.h
>>conftest.
$ac_ext
21849 cat >>conftest.
$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21852 #ifdef HAVE_STDARG_PROTOTYPES
21853 #include <stdarg.h>
21855 #include <varargs.h>
21861 va_list list1, list2; list1 = list2;
21866 rm -f conftest.
$ac_objext
21867 if { (ac_try
="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21873 $as_echo "$ac_try_echo") >&5
21874 (eval "$ac_compile") 2>conftest.er1
21876 grep -v '^ *+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest.$ac_objext; then
21886 $as_echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21891 cat >>confdefs.h <<\_ACEOF
21892 #define VA_LIST_IS_ARRAY 1
21895 va_list_is_array=yes
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21901 $as_echo "$va_list_is_array" >&6; }
21903 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21907 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21908 $as_echo_n "checking for gethostbyname_r... " >&6; }
21909 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21910 $as_echo_n "(cached) " >&6
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21920 #define gethostbyname_r innocuous_gethostbyname_r
21922 /* System header to define __stub macros and hopefully few prototypes,
21923 which can conflict with char gethostbyname_r (); below.
21924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21925 <limits.h> exists even on freestanding compilers. */
21928 # include <limits.h>
21930 # include <assert.h>
21933 #undef gethostbyname_r
21935 /* Override any GCC internal prototype to avoid an error.
21936 Use char because int might match the return type of a GCC
21937 builtin and then its argument prototype would still apply. */
21941 char gethostbyname_r ();
21942 /* The GNU C library defines this for functions which it implements
21943 to always fail with ENOSYS. Some functions are actually named
21944 something starting with __ and the normal name is an alias. */
21945 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21952 return gethostbyname_r ();
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21961 *) ac_try_echo
=$ac_try;;
21963 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21964 $as_echo "$ac_try_echo") >&5
21965 (eval "$ac_link") 2>conftest.er1
21967 grep -v '^ *+' conftest.er1
>conftest.err
21969 cat conftest.err
>&5
21970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && {
21972 test -z "$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 } && test -s conftest
$ac_exeext && {
21975 test "$cross_compiling" = yes ||
21976 $as_test_x conftest
$ac_exeext
21978 ac_cv_func_gethostbyname_r
=yes
21980 $as_echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.
$ac_ext >&5
21983 ac_cv_func_gethostbyname_r
=no
21986 rm -rf conftest.dSYM
21987 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21988 conftest
$ac_exeext conftest.
$ac_ext
21990 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21991 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
21992 if test "x$ac_cv_func_gethostbyname_r" = x
""yes; then
21994 cat >>confdefs.h
<<\_ACEOF
21995 #define HAVE_GETHOSTBYNAME_R 1
21998 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21999 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
22001 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22002 cat >conftest.
$ac_ext <<_ACEOF
22005 cat confdefs.h
>>conftest.
$ac_ext
22006 cat >>conftest.
$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22009 # include <netdb.h>
22016 struct hostent *he, *res;
22021 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22027 rm -f conftest.
$ac_objext
22028 if { (ac_try
="$ac_compile"
22029 case "(($ac_try" in
22030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22034 $as_echo "$ac_try_echo") >&5
22035 (eval "$ac_compile") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } && {
22042 test -z "$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22044 } && test -s conftest.$ac_objext; then
22046 cat >>confdefs.h <<\_ACEOF
22047 #define HAVE_GETHOSTBYNAME_R 1
22051 cat >>confdefs.h <<\_ACEOF
22052 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22055 { $as_echo "$as_me:$LINENO: result: yes" >&5
22056 $as_echo "yes" >&6; }
22059 $as_echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22063 { $as_echo "$as_me:$LINENO: result: no" >&5
22064 $as_echo "no" >&6; }
22065 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22066 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
22067 cat >conftest.$ac_ext <<_ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h. */
22074 # include <netdb.h>
22081 struct hostent *he;
22086 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22096 *) ac_try_echo
=$ac_try;;
22098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22099 $as_echo "$ac_try_echo") >&5
22100 (eval "$ac_compile") 2>conftest.er1
22102 grep -v '^ *+' conftest.er1
>conftest.err
22104 cat conftest.err
>&5
22105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && {
22107 test -z "$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22109 } && test -s conftest.
$ac_objext; then
22111 cat >>confdefs.h
<<\_ACEOF
22112 #define HAVE_GETHOSTBYNAME_R 1
22116 cat >>confdefs.h
<<\_ACEOF
22117 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22120 { $as_echo "$as_me:$LINENO: result: yes" >&5
22121 $as_echo "yes" >&6; }
22124 $as_echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.
$ac_ext >&5
22128 { $as_echo "$as_me:$LINENO: result: no" >&5
22129 $as_echo "no" >&6; }
22130 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22131 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
22132 cat >conftest.
$ac_ext <<_ACEOF
22135 cat confdefs.h
>>conftest.
$ac_ext
22136 cat >>conftest.
$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22139 # include <netdb.h>
22146 struct hostent *he;
22147 struct hostent_data data;
22149 (void) gethostbyname_r(name, he, &data);
22155 rm -f conftest.
$ac_objext
22156 if { (ac_try
="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22162 $as_echo "$ac_try_echo") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22165 grep -v '^ *+' conftest.er1 >conftest.err
22167 cat conftest.err >&5
22168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_GETHOSTBYNAME_R 1
22179 cat >>confdefs.h <<\_ACEOF
22180 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22183 { $as_echo "$as_me:$LINENO: result: yes" >&5
22184 $as_echo "yes" >&6; }
22187 $as_echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22191 { $as_echo "$as_me:$LINENO: result: no" >&5
22192 $as_echo "no" >&6; }
22196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22210 for ac_func in gethostbyname
22212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22213 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22214 $as_echo_n "checking for $ac_func... " >&6; }
22215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22216 $as_echo_n "(cached) " >&6
22218 cat >conftest.$ac_ext <<_ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22226 #define $ac_func innocuous_$ac_func
22228 /* System header to define __stub macros and hopefully few prototypes,
22229 which can conflict with char $ac_func (); below.
22230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22231 <limits.h> exists even on freestanding compilers. */
22234 # include <limits.h>
22236 # include <assert.h>
22241 /* Override any GCC internal prototype to avoid an error.
22242 Use char because int might match the return type of a GCC
22243 builtin and then its argument prototype would still apply. */
22248 /* The GNU C library defines this for functions which it implements
22249 to always fail with ENOSYS. Some functions are actually named
22250 something starting with __ and the normal name is an alias. */
22251 #if defined __stub_$ac_func || defined __stub___$ac_func
22258 return $ac_func ();
22263 rm -f conftest.$ac_objext conftest$ac_exeext
22264 if { (ac_try="$ac_link"
22265 case "(($ac_try" in
22266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22267 *) ac_try_echo
=$ac_try;;
22269 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22270 $as_echo "$ac_try_echo") >&5
22271 (eval "$ac_link") 2>conftest.er1
22273 grep -v '^ *+' conftest.er1
>conftest.err
22275 cat conftest.err
>&5
22276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } && {
22278 test -z "$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 } && test -s conftest
$ac_exeext && {
22281 test "$cross_compiling" = yes ||
22282 $as_test_x conftest
$ac_exeext
22284 eval "$as_ac_var=yes"
22286 $as_echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.
$ac_ext >&5
22289 eval "$as_ac_var=no"
22292 rm -rf conftest.dSYM
22293 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22294 conftest
$ac_exeext conftest.
$ac_ext
22296 ac_res
=`eval 'as_val=${'$as_ac_var'}
22297 $as_echo "$as_val"'`
22298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22299 $as_echo "$ac_res" >&6; }
22300 as_val
=`eval 'as_val=${'$as_ac_var'}
22301 $as_echo "$as_val"'`
22302 if test "x$as_val" = x
""yes; then
22303 cat >>confdefs.h
<<_ACEOF
22304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22319 # checks for system services
22322 # Linux requires this for correct f.p. operations
22323 { $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5
22324 $as_echo_n "checking for __fpu_control... " >&6; }
22325 if test "${ac_cv_func___fpu_control+set}" = set; then
22326 $as_echo_n "(cached) " >&6
22328 cat >conftest.
$ac_ext <<_ACEOF
22331 cat confdefs.h
>>conftest.
$ac_ext
22332 cat >>conftest.
$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22334 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
22335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22336 #define __fpu_control innocuous___fpu_control
22338 /* System header to define __stub macros and hopefully few prototypes,
22339 which can conflict with char __fpu_control (); below.
22340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22341 <limits.h> exists even on freestanding compilers. */
22344 # include <limits.h>
22346 # include <assert.h>
22349 #undef __fpu_control
22351 /* Override any GCC internal prototype to avoid an error.
22352 Use char because int might match the return type of a GCC
22353 builtin and then its argument prototype would still apply. */
22357 char __fpu_control ();
22358 /* The GNU C library defines this for functions which it implements
22359 to always fail with ENOSYS. Some functions are actually named
22360 something starting with __ and the normal name is an alias. */
22361 #if defined __stub___fpu_control || defined __stub_____fpu_control
22368 return __fpu_control ();
22373 rm -f conftest.
$ac_objext conftest
$ac_exeext
22374 if { (ac_try
="$ac_link"
22375 case "(($ac_try" in
22376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22380 $as_echo "$ac_try_echo") >&5
22381 (eval "$ac_link") 2>conftest.er1
22383 grep -v '^ *+' conftest.er1 >conftest.err
22385 cat conftest.err >&5
22386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest$ac_exeext && {
22391 test "$cross_compiling" = yes ||
22392 $as_test_x conftest$ac_exeext
22394 ac_cv_func___fpu_control=yes
22396 $as_echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_cv_func___fpu_control=no
22402 rm -rf conftest.dSYM
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22406 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
22407 $as_echo "$ac_cv_func___fpu_control" >&6; }
22408 if test "x$ac_cv_func___fpu_control" = x""yes; then
22412 { $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
22413 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
22414 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
22415 $as_echo_n "(cached) " >&6
22417 ac_check_lib_save_LIBS=$LIBS
22418 LIBS="-lieee $LIBS"
22419 cat >conftest.$ac_ext <<_ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22426 /* Override any GCC internal prototype to avoid an error.
22427 Use char because int might match the return type of a GCC
22428 builtin and then its argument prototype would still apply. */
22432 char __fpu_control ();
22436 return __fpu_control ();
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (ac_try="$ac_link"
22443 case "(($ac_try" in
22444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22445 *) ac_try_echo
=$ac_try;;
22447 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22448 $as_echo "$ac_try_echo") >&5
22449 (eval "$ac_link") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1
>conftest.err
22453 cat conftest.err
>&5
22454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest
$ac_exeext && {
22459 test "$cross_compiling" = yes ||
22460 $as_test_x conftest
$ac_exeext
22462 ac_cv_lib_ieee___fpu_control
=yes
22464 $as_echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.
$ac_ext >&5
22467 ac_cv_lib_ieee___fpu_control
=no
22470 rm -rf conftest.dSYM
22471 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22472 conftest
$ac_exeext conftest.
$ac_ext
22473 LIBS
=$ac_check_lib_save_LIBS
22475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
22476 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
22477 if test "x$ac_cv_lib_ieee___fpu_control" = x
""yes; then
22478 cat >>confdefs.h
<<_ACEOF
22479 #define HAVE_LIBIEEE 1
22482 LIBS
="-lieee $LIBS"
22490 # Check for --with-fpectl
22491 { $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5
22492 $as_echo_n "checking for --with-fpectl... " >&6; }
22494 # Check whether --with-fpectl was given.
22495 if test "${with_fpectl+set}" = set; then
22496 withval
=$with_fpectl;
22497 if test "$withval" != no
22500 cat >>confdefs.h
<<\_ACEOF
22501 #define WANT_SIGFPE_HANDLER 1
22504 { $as_echo "$as_me:$LINENO: result: yes" >&5
22505 $as_echo "yes" >&6; }
22506 else { $as_echo "$as_me:$LINENO: result: no" >&5
22507 $as_echo "no" >&6; }
22510 { $as_echo "$as_me:$LINENO: result: no" >&5
22511 $as_echo "no" >&6; }
22515 # check for --with-libm=...
22517 case $ac_sys_system in
22521 { $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
22522 $as_echo_n "checking for --with-libm=STRING... " >&6; }
22524 # Check whether --with-libm was given.
22525 if test "${with_libm+set}" = set; then
22526 withval
=$with_libm;
22527 if test "$withval" = no
22529 { $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5
22530 $as_echo "force LIBM empty" >&6; }
22531 elif test "$withval" != yes
22533 { $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
22534 $as_echo "set LIBM=\"$withval\"" >&6; }
22535 else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
22536 $as_echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
22537 { (exit 1); exit 1; }; }
22540 { $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
22541 $as_echo "default LIBM=\"$LIBM\"" >&6; }
22545 # check for --with-libc=...
22547 { $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
22548 $as_echo_n "checking for --with-libc=STRING... " >&6; }
22550 # Check whether --with-libc was given.
22551 if test "${with_libc+set}" = set; then
22552 withval
=$with_libc;
22553 if test "$withval" = no
22555 { $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5
22556 $as_echo "force LIBC empty" >&6; }
22557 elif test "$withval" != yes
22559 { $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
22560 $as_echo "set LIBC=\"$withval\"" >&6; }
22561 else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
22562 $as_echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
22563 { (exit 1); exit 1; }; }
22566 { $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
22567 $as_echo "default LIBC=\"$LIBC\"" >&6; }
22571 # **************************************************
22572 # * Check for various properties of floating point *
22573 # **************************************************
22575 { $as_echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
22576 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
22577 if test "${ac_cv_little_endian_double+set}" = set; then
22578 $as_echo_n "(cached) " >&6
22581 if test "$cross_compiling" = yes; then
22582 ac_cv_little_endian_double
=no
22584 cat >conftest.
$ac_ext <<_ACEOF
22587 cat confdefs.h
>>conftest.
$ac_ext
22588 cat >>conftest.
$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22591 #include <string.h>
22593 double x = 9006104071832581.0;
22594 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22601 rm -f conftest
$ac_exeext
22602 if { (ac_try
="$ac_link"
22603 case "(($ac_try" in
22604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22608 $as_echo "$ac_try_echo") >&5
22609 (eval "$ac_link") 2>&5
22611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22613 { (case "(($ac_try" in
22614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22615 *) ac_try_echo
=$ac_try;;
22617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22618 $as_echo "$ac_try_echo") >&5
22619 (eval "$ac_try") 2>&5
22621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_little_endian_double
=yes
22625 $as_echo "$as_me: program exited with status $ac_status" >&5
22626 $as_echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.
$ac_ext >&5
22629 ( exit $ac_status )
22630 ac_cv_little_endian_double
=no
22632 rm -rf conftest.dSYM
22633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22639 { $as_echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22640 $as_echo "$ac_cv_little_endian_double" >&6; }
22641 if test "$ac_cv_little_endian_double" = yes
22644 cat >>confdefs.h
<<\_ACEOF
22645 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22650 { $as_echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22651 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
22652 if test "${ac_cv_big_endian_double+set}" = set; then
22653 $as_echo_n "(cached) " >&6
22656 if test "$cross_compiling" = yes; then
22657 ac_cv_big_endian_double
=no
22659 cat >conftest.
$ac_ext <<_ACEOF
22662 cat confdefs.h
>>conftest.
$ac_ext
22663 cat >>conftest.
$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22666 #include <string.h>
22668 double x = 9006104071832581.0;
22669 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22676 rm -f conftest
$ac_exeext
22677 if { (ac_try
="$ac_link"
22678 case "(($ac_try" in
22679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22683 $as_echo "$ac_try_echo") >&5
22684 (eval "$ac_link") 2>&5
22686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22688 { (case "(($ac_try" in
22689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22690 *) ac_try_echo
=$ac_try;;
22692 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22693 $as_echo "$ac_try_echo") >&5
22694 (eval "$ac_try") 2>&5
22696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 ac_cv_big_endian_double
=yes
22700 $as_echo "$as_me: program exited with status $ac_status" >&5
22701 $as_echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.
$ac_ext >&5
22704 ( exit $ac_status )
22705 ac_cv_big_endian_double
=no
22707 rm -rf conftest.dSYM
22708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22714 { $as_echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22715 $as_echo "$ac_cv_big_endian_double" >&6; }
22716 if test "$ac_cv_big_endian_double" = yes
22719 cat >>confdefs.h
<<\_ACEOF
22720 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22725 # Some ARM platforms use a mixed-endian representation for doubles.
22726 # While Python doesn't currently have full support for these platforms
22727 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22728 # conversions work.
22729 { $as_echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22730 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
22731 if test "${ac_cv_mixed_endian_double+set}" = set; then
22732 $as_echo_n "(cached) " >&6
22735 if test "$cross_compiling" = yes; then
22736 ac_cv_mixed_endian_double
=no
22738 cat >conftest.
$ac_ext <<_ACEOF
22741 cat confdefs.h
>>conftest.
$ac_ext
22742 cat >>conftest.
$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22745 #include <string.h>
22747 double x = 9006104071832581.0;
22748 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22755 rm -f conftest
$ac_exeext
22756 if { (ac_try
="$ac_link"
22757 case "(($ac_try" in
22758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22759 *) ac_try_echo=$ac_try;;
22761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22762 $as_echo "$ac_try_echo") >&5
22763 (eval "$ac_link") 2>&5
22765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22767 { (case "(($ac_try" in
22768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22769 *) ac_try_echo
=$ac_try;;
22771 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22772 $as_echo "$ac_try_echo") >&5
22773 (eval "$ac_try") 2>&5
22775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 ac_cv_mixed_endian_double
=yes
22779 $as_echo "$as_me: program exited with status $ac_status" >&5
22780 $as_echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.
$ac_ext >&5
22783 ( exit $ac_status )
22784 ac_cv_mixed_endian_double
=no
22786 rm -rf conftest.dSYM
22787 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22793 { $as_echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22794 $as_echo "$ac_cv_mixed_endian_double" >&6; }
22795 if test "$ac_cv_mixed_endian_double" = yes
22798 cat >>confdefs.h
<<\_ACEOF
22799 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22804 # The short float repr introduced in Python 3.1 requires the
22805 # correctly-rounded string <-> double conversion functions from
22806 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22807 # rounding; this is a problem on x86, where the x87 FPU has a default
22808 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22809 # using inline assembler to get and set the x87 FPU control word.
22810 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22812 # Check that it's okay to use gcc inline assembler to get and set
22813 # x87 control word. It should be, but you never know...
22814 { $as_echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22815 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
22816 cat >conftest.
$ac_ext <<_ACEOF
22819 cat confdefs.h
>>conftest.
$ac_ext
22820 cat >>conftest.
$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22828 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22829 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22835 rm -f conftest.
$ac_objext
22836 if { (ac_try
="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22842 $as_echo "$ac_try_echo") >&5
22843 (eval "$ac_compile") 2>conftest.er1
22845 grep -v '^ *+' conftest.er1 >conftest.err
22847 cat conftest.err >&5
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && {
22850 test -z "$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 } && test -s conftest.$ac_objext; then
22853 have_gcc_asm_for_x87=yes
22855 $as_echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 have_gcc_asm_for_x87=no
22861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22862 { $as_echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22863 $as_echo "$have_gcc_asm_for_x87" >&6; }
22864 if test "$have_gcc_asm_for_x87" = yes
22867 cat >>confdefs.h <<\_ACEOF
22868 #define HAVE_GCC_ASM_FOR_X87 1
22874 # Detect whether system arithmetic is subject to x87-style double
22875 # rounding issues. The result of this test has little meaning on non
22876 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22877 # mode is round-to-nearest and double rounding issues are present, and
22878 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22879 { $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22880 $as_echo_n "checking for x87-style double rounding... " >&6; }
22881 # $BASECFLAGS may affect the result
22883 CC="$CC $BASECFLAGS"
22884 if test "$cross_compiling" = yes; then
22885 ac_cv_x87_double_rounding=no
22887 cat >conftest.$ac_ext <<_ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22894 #include <stdlib.h>
22897 volatile double x, y, z;
22898 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22899 x = 0.99999999999999989; /* 1-2**-53 */
22903 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22909 /* both tests show evidence of double rounding */
22914 rm -f conftest$ac_exeext
22915 if { (ac_try="$ac_link"
22916 case "(($ac_try" in
22917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22918 *) ac_try_echo
=$ac_try;;
22920 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22921 $as_echo "$ac_try_echo") >&5
22922 (eval "$ac_link") 2>&5
22924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22926 { (case "(($ac_try" in
22927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22931 $as_echo "$ac_try_echo") >&5
22932 (eval "$ac_try") 2>&5
22934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 ac_cv_x87_double_rounding=no
22938 $as_echo "$as_me: program exited with status $ac_status" >&5
22939 $as_echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22942 ( exit $ac_status )
22943 ac_cv_x87_double_rounding=yes
22945 rm -rf conftest.dSYM
22946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22951 { $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22952 $as_echo "$ac_cv_x87_double_rounding" >&6; }
22953 if test "$ac_cv_x87_double_rounding" = yes
22956 cat >>confdefs.h <<\_ACEOF
22957 #define X87_DOUBLE_ROUNDING 1
22962 # ************************************
22963 # * Check for mathematical functions *
22964 # ************************************
22969 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22970 # -0. on some architectures.
22971 { $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22972 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
22973 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22974 $as_echo_n "(cached) " >&6
22977 if test "$cross_compiling" = yes; then
22978 ac_cv_tanh_preserves_zero_sign=no
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22988 #include <stdlib.h>
22990 /* return 0 if either negative zeros don't exist
22991 on this platform or if negative zeros exist
22992 and tanh(-0.) == -0. */
22993 if (atan2(0., -1.) == atan2(-0., -1.) ||
22994 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22999 rm -f conftest$ac_exeext
23000 if { (ac_try="$ac_link"
23001 case "(($ac_try" in
23002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23003 *) ac_try_echo
=$ac_try;;
23005 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23006 $as_echo "$ac_try_echo") >&5
23007 (eval "$ac_link") 2>&5
23009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23011 { (case "(($ac_try" in
23012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23016 $as_echo "$ac_try_echo") >&5
23017 (eval "$ac_try") 2>&5
23019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_tanh_preserves_zero_sign=yes
23023 $as_echo "$as_me: program exited with status $ac_status" >&5
23024 $as_echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23027 ( exit $ac_status )
23028 ac_cv_tanh_preserves_zero_sign=no
23030 rm -rf conftest.dSYM
23031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23037 { $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23038 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
23039 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23042 cat >>confdefs.h <<\_ACEOF
23043 #define TANH_PRESERVES_ZERO_SIGN 1
23057 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
23059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23060 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23061 $as_echo_n "checking for $ac_func... " >&6; }
23062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23063 $as_echo_n "(cached) " >&6
23065 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23073 #define $ac_func innocuous_$ac_func
23075 /* System header to define __stub macros and hopefully few prototypes,
23076 which can conflict with char $ac_func (); below.
23077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23078 <limits.h> exists even on freestanding compilers. */
23081 # include <limits.h>
23083 # include <assert.h>
23088 /* Override any GCC internal prototype to avoid an error.
23089 Use char because int might match the return type of a GCC
23090 builtin and then its argument prototype would still apply. */
23095 /* The GNU C library defines this for functions which it implements
23096 to always fail with ENOSYS. Some functions are actually named
23097 something starting with __ and the normal name is an alias. */
23098 #if defined __stub_$ac_func || defined __stub___$ac_func
23105 return $ac_func ();
23110 rm -f conftest.$ac_objext conftest$ac_exeext
23111 if { (ac_try="$ac_link"
23112 case "(($ac_try" in
23113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23114 *) ac_try_echo
=$ac_try;;
23116 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23117 $as_echo "$ac_try_echo") >&5
23118 (eval "$ac_link") 2>conftest.er1
23120 grep -v '^ *+' conftest.er1
>conftest.err
23122 cat conftest.err
>&5
23123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest
$ac_exeext && {
23128 test "$cross_compiling" = yes ||
23129 $as_test_x conftest
$ac_exeext
23131 eval "$as_ac_var=yes"
23133 $as_echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.
$ac_ext >&5
23136 eval "$as_ac_var=no"
23139 rm -rf conftest.dSYM
23140 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23141 conftest
$ac_exeext conftest.
$ac_ext
23143 ac_res
=`eval 'as_val=${'$as_ac_var'}
23144 $as_echo "$as_val"'`
23145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23146 $as_echo "$ac_res" >&6; }
23147 as_val
=`eval 'as_val=${'$as_ac_var'}
23148 $as_echo "$as_val"'`
23149 if test "x$as_val" = x
""yes; then
23150 cat >>confdefs.h
<<_ACEOF
23151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23157 { $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23158 $as_echo_n "checking whether isinf is declared... " >&6; }
23159 if test "${ac_cv_have_decl_isinf+set}" = set; then
23160 $as_echo_n "(cached) " >&6
23162 cat >conftest.
$ac_ext <<_ACEOF
23165 cat confdefs.h
>>conftest.
$ac_ext
23166 cat >>conftest.
$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23181 rm -f conftest.
$ac_objext
23182 if { (ac_try
="$ac_compile"
23183 case "(($ac_try" in
23184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23188 $as_echo "$ac_try_echo") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23191 grep -v '^ *+' conftest.er1 >conftest.err
23193 cat conftest.err >&5
23194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_cv_have_decl_isinf=yes
23201 $as_echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_cv_have_decl_isinf=no
23207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23210 $as_echo "$ac_cv_have_decl_isinf" >&6; }
23211 if test "x$ac_cv_have_decl_isinf" = x""yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define HAVE_DECL_ISINF 1
23219 cat >>confdefs.h <<_ACEOF
23220 #define HAVE_DECL_ISINF 0
23225 { $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23226 $as_echo_n "checking whether isnan is declared... " >&6; }
23227 if test "${ac_cv_have_decl_isnan+set}" = set; then
23228 $as_echo_n "(cached) " >&6
23230 cat >conftest.$ac_ext <<_ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23249 rm -f conftest.$ac_objext
23250 if { (ac_try="$ac_compile"
23251 case "(($ac_try" in
23252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23253 *) ac_try_echo
=$ac_try;;
23255 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23256 $as_echo "$ac_try_echo") >&5
23257 (eval "$ac_compile") 2>conftest.er1
23259 grep -v '^ *+' conftest.er1
>conftest.err
23261 cat conftest.err
>&5
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && {
23264 test -z "$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23266 } && test -s conftest.
$ac_objext; then
23267 ac_cv_have_decl_isnan
=yes
23269 $as_echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.
$ac_ext >&5
23272 ac_cv_have_decl_isnan
=no
23275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23277 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23278 $as_echo "$ac_cv_have_decl_isnan" >&6; }
23279 if test "x$ac_cv_have_decl_isnan" = x
""yes; then
23281 cat >>confdefs.h
<<_ACEOF
23282 #define HAVE_DECL_ISNAN 1
23287 cat >>confdefs.h
<<_ACEOF
23288 #define HAVE_DECL_ISNAN 0
23293 { $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23294 $as_echo_n "checking whether isfinite is declared... " >&6; }
23295 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23296 $as_echo_n "(cached) " >&6
23298 cat >conftest.
$ac_ext <<_ACEOF
23301 cat confdefs.h
>>conftest.
$ac_ext
23302 cat >>conftest.
$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23317 rm -f conftest.
$ac_objext
23318 if { (ac_try
="$ac_compile"
23319 case "(($ac_try" in
23320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23324 $as_echo "$ac_try_echo") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 ac_cv_have_decl_isfinite=yes
23337 $as_echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_cv_have_decl_isfinite=no
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23346 $as_echo "$ac_cv_have_decl_isfinite" >&6; }
23347 if test "x$ac_cv_have_decl_isfinite" = x""yes; then
23349 cat >>confdefs.h <<_ACEOF
23350 #define HAVE_DECL_ISFINITE 1
23355 cat >>confdefs.h <<_ACEOF
23356 #define HAVE_DECL_ISFINITE 0
23366 # For multiprocessing module, check that sem_open
23367 # actually works. For FreeBSD versions <= 7.2,
23368 # the kernel module that provides POSIX semaphores
23369 # isn't loaded by default, so an attempt to call
23370 # sem_open results in a 'Signal 12' error.
23371 { $as_echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
23372 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
23373 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
23374 $as_echo_n "(cached) " >&6
23376 if test "$cross_compiling" = yes; then
23377 ac_cv_posix_semaphores_enabled=yes
23379 cat >conftest.$ac_ext <<_ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23386 #include <unistd.h>
23389 #include <semaphore.h>
23390 #include <sys/stat.h>
23393 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23394 if (a == SEM_FAILED) {
23395 perror("sem_open");
23399 sem_unlink("/autoconf");
23404 rm -f conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23408 *) ac_try_echo
=$ac_try;;
23410 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23411 $as_echo "$ac_try_echo") >&5
23412 (eval "$ac_link") 2>&5
23414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23416 { (case "(($ac_try" in
23417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23421 $as_echo "$ac_try_echo") >&5
23422 (eval "$ac_try") 2>&5
23424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; }; then
23426 ac_cv_posix_semaphores_enabled=yes
23428 $as_echo "$as_me: program exited with status $ac_status" >&5
23429 $as_echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ( exit $ac_status )
23433 ac_cv_posix_semaphores_enabled=no
23435 rm -rf conftest.dSYM
23436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23443 { $as_echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
23444 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
23445 if test $ac_cv_posix_semaphores_enabled = no
23448 cat >>confdefs.h <<\_ACEOF
23449 #define POSIX_SEMAPHORES_NOT_ENABLED 1
23454 # Multiprocessing check for broken sem_getvalue
23455 { $as_echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23456 $as_echo_n "checking for broken sem_getvalue... " >&6; }
23457 if test "$cross_compiling" = yes; then
23458 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23460 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
23461 See \
`config.log' for more details." >&5
23462 $as_echo "$as_me: error: cannot run test program while cross compiling
23463 See \`config.log
' for more details." >&2;}
23464 { (exit 1); exit 1; }; }; }
23466 cat >conftest.$ac_ext <<_ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23473 #include <unistd.h>
23476 #include <semaphore.h>
23477 #include <sys/stat.h>
23480 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
23484 perror("sem_open");
23488 res = sem_getvalue(a, &count);
23490 sem_unlink("/autocftw");
23491 return res==-1 ? 1 : 0;
23496 rm -f conftest$ac_exeext
23497 if { (ac_try="$ac_link"
23498 case "(($ac_try" in
23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23503 $as_echo "$ac_try_echo") >&5
23504 (eval "$ac_link") 2>&5
23506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23508 { (case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23513 $as_echo "$ac_try_echo") >&5
23514 (eval "$ac_try") 2>&5
23516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; }; then
23518 { $as_echo "$as_me:$LINENO: result: no" >&5
23519 $as_echo "no" >&6; }
23521 $as_echo "$as_me: program exited with status $ac_status" >&5
23522 $as_echo "$as_me: failed program was:" >&5
23523 sed 's
/^
/|
/' conftest.$ac_ext >&5
23525 ( exit $ac_status )
23526 { $as_echo "$as_me:$LINENO: result: yes" >&5
23527 $as_echo "yes" >&6; }
23529 cat >>confdefs.h <<\_ACEOF
23530 #define HAVE_BROKEN_SEM_GETVALUE 1
23535 rm -rf conftest.dSYM
23536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23541 # determine what size digit to use for Python's longs
23542 { $as_echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23543 $as_echo_n "checking digit size for Python's longs... " >&6; }
23544 # Check whether --enable-big-digits was given.
23545 if test "${enable_big_digits+set}" = set; then
23546 enableval
=$enable_big_digits; case $enable_big_digits in
23548 enable_big_digits
=30 ;;
23550 enable_big_digits
=15 ;;
23554 { { $as_echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23555 $as_echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23556 { (exit 1); exit 1; }; } ;;
23558 { $as_echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23559 $as_echo "$enable_big_digits" >&6; }
23561 cat >>confdefs.h
<<_ACEOF
23562 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23567 { $as_echo "$as_me:$LINENO: result: no value specified" >&5
23568 $as_echo "no value specified" >&6; }
23572 # check for wchar.h
23573 if test "${ac_cv_header_wchar_h+set}" = set; then
23574 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
23575 $as_echo_n "checking for wchar.h... " >&6; }
23576 if test "${ac_cv_header_wchar_h+set}" = set; then
23577 $as_echo_n "(cached) " >&6
23579 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23580 $as_echo "$ac_cv_header_wchar_h" >&6; }
23582 # Is the header compilable?
23583 { $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5
23584 $as_echo_n "checking wchar.h usability... " >&6; }
23585 cat >conftest.
$ac_ext <<_ACEOF
23588 cat confdefs.h
>>conftest.
$ac_ext
23589 cat >>conftest.
$ac_ext <<_ACEOF
23590 /* end confdefs.h. */
23591 $ac_includes_default
23594 rm -f conftest.
$ac_objext
23595 if { (ac_try
="$ac_compile"
23596 case "(($ac_try" in
23597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23601 $as_echo "$ac_try_echo") >&5
23602 (eval "$ac_compile") 2>conftest.er1
23604 grep -v '^ *+' conftest.er1 >conftest.err
23606 cat conftest.err >&5
23607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } && {
23609 test -z "$ac_c_werror_flag" ||
23610 test ! -s conftest.err
23611 } && test -s conftest.$ac_objext; then
23612 ac_header_compiler=yes
23614 $as_echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23617 ac_header_compiler=no
23620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23622 $as_echo "$ac_header_compiler" >&6; }
23624 # Is the header present?
23625 { $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5
23626 $as_echo_n "checking wchar.h presence... " >&6; }
23627 cat >conftest.$ac_ext <<_ACEOF
23630 cat confdefs.h >>conftest.$ac_ext
23631 cat >>conftest.$ac_ext <<_ACEOF
23632 /* end confdefs.h. */
23635 if { (ac_try="$ac_cpp conftest.$ac_ext"
23636 case "(($ac_try" in
23637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23638 *) ac_try_echo
=$ac_try;;
23640 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23641 $as_echo "$ac_try_echo") >&5
23642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23644 grep -v '^ *+' conftest.er1
>conftest.err
23646 cat conftest.err
>&5
23647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } >/dev
/null
&& {
23649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23650 test ! -s conftest.err
23652 ac_header_preproc
=yes
23654 $as_echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.
$ac_ext >&5
23657 ac_header_preproc
=no
23660 rm -f conftest.err conftest.
$ac_ext
23661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23662 $as_echo "$ac_header_preproc" >&6; }
23664 # So? What about this header?
23665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23667 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23668 $as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23669 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23670 $as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23671 ac_header_preproc
=yes
23674 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23675 $as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23676 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23677 $as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23678 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23679 $as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23680 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23681 $as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23682 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23683 $as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23684 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23685 $as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23687 ## -------------------------------------- ##
23688 ## Report this to http://bugs.python.org/ ##
23689 ## -------------------------------------- ##
23691 ) |
sed "s/^/$as_me: WARNING: /" >&2
23694 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
23695 $as_echo_n "checking for wchar.h... " >&6; }
23696 if test "${ac_cv_header_wchar_h+set}" = set; then
23697 $as_echo_n "(cached) " >&6
23699 ac_cv_header_wchar_h
=$ac_header_preproc
23701 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23702 $as_echo "$ac_cv_header_wchar_h" >&6; }
23705 if test "x$ac_cv_header_wchar_h" = x
""yes; then
23708 cat >>confdefs.h
<<\_ACEOF
23709 #define HAVE_WCHAR_H 1
23721 # determine wchar_t size
23722 if test "$wchar_h" = yes
23724 # The cast to long int works around a bug in the HP C Compiler
23725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23727 # This bug is HP SR number 8606223364.
23728 { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
23729 $as_echo_n "checking size of wchar_t... " >&6; }
23730 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23731 $as_echo_n "(cached) " >&6
23733 if test "$cross_compiling" = yes; then
23734 # Depending upon the size, compute the lo and hi bounds.
23735 cat >conftest.
$ac_ext <<_ACEOF
23738 cat confdefs.h
>>conftest.
$ac_ext
23739 cat >>conftest.
$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23746 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
23753 rm -f conftest.
$ac_objext
23754 if { (ac_try
="$ac_compile"
23755 case "(($ac_try" in
23756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23757 *) ac_try_echo=$ac_try;;
23759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23760 $as_echo "$ac_try_echo") >&5
23761 (eval "$ac_compile") 2>conftest.er1
23763 grep -v '^ *+' conftest.er1 >conftest.err
23765 cat conftest.err >&5
23766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); } && {
23768 test -z "$ac_c_werror_flag" ||
23769 test ! -s conftest.err
23770 } && test -s conftest.$ac_objext; then
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23784 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
23791 rm -f conftest.$ac_objext
23792 if { (ac_try="$ac_compile"
23793 case "(($ac_try" in
23794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23795 *) ac_try_echo
=$ac_try;;
23797 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23798 $as_echo "$ac_try_echo") >&5
23799 (eval "$ac_compile") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1
>conftest.err
23803 cat conftest.err
>&5
23804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest.
$ac_objext; then
23809 ac_hi
=$ac_mid; break
23811 $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.
$ac_ext >&5
23814 ac_lo
=`expr $ac_mid + 1`
23815 if test $ac_lo -le $ac_mid; then
23819 ac_mid
=`expr 2 '*' $ac_mid + 1`
23822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23825 $as_echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.
$ac_ext >&5
23828 cat >conftest.
$ac_ext <<_ACEOF
23831 cat confdefs.h
>>conftest.
$ac_ext
23832 cat >>conftest.
$ac_ext <<_ACEOF
23833 /* end confdefs.h. */
23839 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
23846 rm -f conftest.
$ac_objext
23847 if { (ac_try
="$ac_compile"
23848 case "(($ac_try" in
23849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23853 $as_echo "$ac_try_echo") >&5
23854 (eval "$ac_compile") 2>conftest.er1
23856 grep -v '^ *+' conftest.er1 >conftest.err
23858 cat conftest.err >&5
23859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } && {
23861 test -z "$ac_c_werror_flag" ||
23862 test ! -s conftest.err
23863 } && test -s conftest.$ac_objext; then
23866 cat >conftest.$ac_ext <<_ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h. */
23877 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
23884 rm -f conftest.$ac_objext
23885 if { (ac_try="$ac_compile"
23886 case "(($ac_try" in
23887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23888 *) ac_try_echo
=$ac_try;;
23890 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23891 $as_echo "$ac_try_echo") >&5
23892 (eval "$ac_compile") 2>conftest.er1
23894 grep -v '^ *+' conftest.er1
>conftest.err
23896 cat conftest.err
>&5
23897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } && {
23899 test -z "$ac_c_werror_flag" ||
23900 test ! -s conftest.err
23901 } && test -s conftest.
$ac_objext; then
23902 ac_lo
=$ac_mid; break
23904 $as_echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.
$ac_ext >&5
23907 ac_hi
=`expr '(' $ac_mid ')' - 1`
23908 if test $ac_mid -le $ac_hi; then
23912 ac_mid
=`expr 2 '*' $ac_mid`
23915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23918 $as_echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.
$ac_ext >&5
23924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23928 # Binary search between lo and hi bounds.
23929 while test "x$ac_lo" != "x$ac_hi"; do
23930 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23931 cat >conftest.
$ac_ext <<_ACEOF
23934 cat confdefs.h
>>conftest.
$ac_ext
23935 cat >>conftest.
$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23942 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
23949 rm -f conftest.
$ac_objext
23950 if { (ac_try
="$ac_compile"
23951 case "(($ac_try" in
23952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23953 *) ac_try_echo=$ac_try;;
23955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23956 $as_echo "$ac_try_echo") >&5
23957 (eval "$ac_compile") 2>conftest.er1
23959 grep -v '^ *+' conftest.er1 >conftest.err
23961 cat conftest.err >&5
23962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest.$ac_objext; then
23969 $as_echo "$as_me: failed program was:" >&5
23970 sed 's/^/| /' conftest.$ac_ext >&5
23972 ac_lo=`expr '(' $ac_mid ')' + 1`
23975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23978 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23979 '') if test "$ac_cv_type_wchar_t" = yes; then
23980 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23982 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23983 See \
`config.log' for more details." >&5
23984 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
23985 See \`config.log
' for more details." >&2;}
23986 { (exit 77); exit 77; }; }; }
23988 ac_cv_sizeof_wchar_t=0
23992 cat >conftest.$ac_ext <<_ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
24000 static long int longval () { return (long int) (sizeof (wchar_t)); }
24001 static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
24003 #include <stdlib.h>
24008 FILE *f = fopen ("conftest.val", "w");
24011 if (((long int) (sizeof (wchar_t))) < 0)
24013 long int i = longval ();
24014 if (i != ((long int) (sizeof (wchar_t))))
24016 fprintf (f, "%ld", i);
24020 unsigned long int i = ulongval ();
24021 if (i != ((long int) (sizeof (wchar_t))))
24023 fprintf (f, "%lu", i);
24025 /* Do not output a trailing newline, as this causes \r\n confusion
24026 on some platforms. */
24027 return ferror (f) || fclose (f) != 0;
24033 rm -f conftest$ac_exeext
24034 if { (ac_try="$ac_link"
24035 case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24040 $as_echo "$ac_try_echo") >&5
24041 (eval "$ac_link") 2>&5
24043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
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_try") 2>&5
24053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 ac_cv_sizeof_wchar_t=`cat conftest.val`
24057 $as_echo "$as_me: program exited with status $ac_status" >&5
24058 $as_echo "$as_me: failed program was:" >&5
24059 sed 's
/^
/|
/' conftest.$ac_ext >&5
24061 ( exit $ac_status )
24062 if test "$ac_cv_type_wchar_t" = yes; then
24063 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24064 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
24065 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24066 See \`config.log
' for more details." >&5
24067 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
24068 See \`config.log' for more details.
" >&2;}
24069 { (exit 77); exit 77; }; }; }
24071 ac_cv_sizeof_wchar_t=0
24074 rm -rf conftest.dSYM
24075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24079 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
24080 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
24084 cat >>confdefs.h <<_ACEOF
24085 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24091 { $as_echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
24092 $as_echo_n "checking
for UCS-4 tcl...
" >&6; }
24094 cat >conftest.$ac_ext <<_ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h. */
24102 #if TCL_UTF_MAX != 6
24103 # error "NOT UCS4_TCL
"
24113 rm -f conftest.$ac_objext
24114 if { (ac_try="$ac_compile"
24115 case "(($ac_try" in
24116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117 *) ac_try_echo=$ac_try;;
24119 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24120 $as_echo "$ac_try_echo") >&5
24121 (eval "$ac_compile") 2>conftest.er1
24123 grep -v '^ *+' conftest.er1 >conftest.err
24125 cat conftest.err >&5
24126 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24127 (exit $ac_status); } && {
24128 test -z "$ac_c_werror_flag" ||
24129 test ! -s conftest.err
24130 } && test -s conftest.$ac_objext; then
24133 cat >>confdefs.h <<\_ACEOF
24134 #define HAVE_UCS4_TCL 1
24140 $as_echo "$as_me: failed program was
:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24147 { $as_echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
24148 $as_echo "$have_ucs4_tcl" >&6; }
24150 # check whether wchar_t is signed or not
24151 if test "$wchar_h" = yes
24153 # check whether wchar_t is signed or not
24154 { $as_echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
24155 $as_echo_n "checking whether wchar_t is signed...
" >&6; }
24156 if test "${ac_cv_wchar_t_signed+set}" = set; then
24157 $as_echo_n "(cached
) " >&6
24160 if test "$cross_compiling" = yes; then
24161 ac_cv_wchar_t_signed=yes
24163 cat >conftest.$ac_ext <<_ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24173 /* Success: exit code 0 */
24174 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24178 rm -f conftest$ac_exeext
24179 if { (ac_try="$ac_link"
24180 case "(($ac_try" in
24181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24184 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24185 $as_echo "$ac_try_echo") >&5
24186 (eval "$ac_link") 2>&5
24188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24190 { (case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24194 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24195 $as_echo "$ac_try_echo") >&5
24196 (eval "$ac_try") 2>&5
24198 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24199 (exit $ac_status); }; }; then
24200 ac_cv_wchar_t_signed=yes
24202 $as_echo "$as_me: program exited with status
$ac_status" >&5
24203 $as_echo "$as_me: failed program was
:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 ( exit $ac_status )
24207 ac_cv_wchar_t_signed=no
24209 rm -rf conftest.dSYM
24210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24216 { $as_echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
24217 $as_echo "$ac_cv_wchar_t_signed" >&6; }
24220 { $as_echo "$as_me:$LINENO: checking what
type to use
for str
" >&5
24221 $as_echo_n "checking what
type to use
for str...
" >&6; }
24223 # Check whether --with-wide-unicode was given.
24224 if test "${with_wide_unicode+set}" = set; then
24225 withval=$with_wide_unicode;
24226 if test "$withval" != no
24227 then unicode_size="4"
24228 else unicode_size="2"
24233 case "$have_ucs4_tcl" in
24234 yes) unicode_size="4" ;;
24235 *) unicode_size="2" ;;
24243 case "$unicode_size" in
24244 4) cat >>confdefs.h <<\_ACEOF
24245 #define Py_UNICODE_SIZE 4
24248 *) cat >>confdefs.h <<\_ACEOF
24249 #define Py_UNICODE_SIZE 2
24257 # wchar_t is only usable if it maps to an unsigned type
24258 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24259 -a "$ac_cv_wchar_t_signed" = "no
"
24261 PY_UNICODE_TYPE="wchar_t
"
24263 cat >>confdefs.h <<\_ACEOF
24264 #define HAVE_USABLE_WCHAR_T 1
24267 cat >>confdefs.h <<\_ACEOF
24268 #define PY_UNICODE_TYPE wchar_t
24271 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24273 PY_UNICODE_TYPE="unsigned short
"
24274 cat >>confdefs.h <<\_ACEOF
24275 #define PY_UNICODE_TYPE unsigned short
24278 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24280 PY_UNICODE_TYPE="unsigned long
"
24281 cat >>confdefs.h <<\_ACEOF
24282 #define PY_UNICODE_TYPE unsigned long
24286 PY_UNICODE_TYPE="no
type found
"
24288 { $as_echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
24289 $as_echo "$PY_UNICODE_TYPE" >&6; }
24291 # check for endianness
24293 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
24294 $as_echo_n "checking whether byte ordering is bigendian...
" >&6; }
24295 if test "${ac_cv_c_bigendian+set}" = set; then
24296 $as_echo_n "(cached
) " >&6
24298 ac_cv_c_bigendian=unknown
24299 # See if we're dealing with a universal compiler.
24300 cat >conftest.$ac_ext <<_ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24306 #ifndef __APPLE_CC__
24307 not a universal capable compiler
24312 rm -f conftest.$ac_objext
24313 if { (ac_try="$ac_compile"
24314 case "(($ac_try" in
24315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24318 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24319 $as_echo "$ac_try_echo") >&5
24320 (eval "$ac_compile") 2>conftest.er1
24322 grep -v '^ *+' conftest.er1 >conftest.err
24324 cat conftest.err >&5
24325 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24326 (exit $ac_status); } && {
24327 test -z "$ac_c_werror_flag" ||
24328 test ! -s conftest.err
24329 } && test -s conftest.$ac_objext; then
24331 # Check for potential -arch flags. It is not universal unless
24332 # there are some -arch flags. Note that *ppc* also matches
24333 # ppc64. This check is also rather less than ideal.
24334 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
24335 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
24338 $as_echo "$as_me: failed program was
:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345 if test $ac_cv_c_bigendian = unknown; then
24346 # See if sys/param.h defines the BYTE_ORDER macro.
24347 cat >conftest.$ac_ext <<_ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 #include <sys/types.h>
24354 #include <sys/param.h>
24359 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24360 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24362 bogus endian macros
24369 rm -f conftest.$ac_objext
24370 if { (ac_try="$ac_compile"
24371 case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24375 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24376 $as_echo "$ac_try_echo") >&5
24377 (eval "$ac_compile") 2>conftest.er1
24379 grep -v '^ *+' conftest.er1 >conftest.err
24381 cat conftest.err >&5
24382 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24383 (exit $ac_status); } && {
24384 test -z "$ac_c_werror_flag" ||
24385 test ! -s conftest.err
24386 } && test -s conftest.$ac_objext; then
24387 # It does; now see whether it defined to BIG_ENDIAN or not.
24388 cat >conftest.$ac_ext <<_ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24394 #include <sys/types.h>
24395 #include <sys/param.h>
24400 #if BYTE_ORDER != BIG_ENDIAN
24408 rm -f conftest.$ac_objext
24409 if { (ac_try="$ac_compile"
24410 case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24414 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24415 $as_echo "$ac_try_echo") >&5
24416 (eval "$ac_compile") 2>conftest.er1
24418 grep -v '^ *+' conftest.er1 >conftest.err
24420 cat conftest.err >&5
24421 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24422 (exit $ac_status); } && {
24423 test -z "$ac_c_werror_flag" ||
24424 test ! -s conftest.err
24425 } && test -s conftest.$ac_objext; then
24426 ac_cv_c_bigendian=yes
24428 $as_echo "$as_me: failed program was
:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24431 ac_cv_c_bigendian=no
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24436 $as_echo "$as_me: failed program was
:" >&5
24437 sed 's/^/| /' conftest.$ac_ext >&5
24442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24444 if test $ac_cv_c_bigendian = unknown; then
24445 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24446 cat >conftest.$ac_ext <<_ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h. */
24452 #include <limits.h>
24457 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24458 bogus endian macros
24465 rm -f conftest.$ac_objext
24466 if { (ac_try="$ac_compile"
24467 case "(($ac_try" in
24468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469 *) ac_try_echo=$ac_try;;
24471 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24472 $as_echo "$ac_try_echo") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24475 grep -v '^ *+' conftest.er1 >conftest.err
24477 cat conftest.err >&5
24478 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_c_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest.$ac_objext; then
24483 # It does; now see whether it defined to _BIG_ENDIAN or not.
24484 cat >conftest.$ac_ext <<_ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 #include <limits.h>
24495 #ifndef _BIG_ENDIAN
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24510 $as_echo "$ac_try_echo") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24513 grep -v '^ *+' conftest.er1 >conftest.err
24515 cat conftest.err >&5
24516 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_cv_c_bigendian=yes
24523 $as_echo "$as_me: failed program was
:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_cv_c_bigendian=no
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531 $as_echo "$as_me: failed program was
:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24539 if test $ac_cv_c_bigendian = unknown; then
24540 # Compile a test program.
24541 if test "$cross_compiling" = yes; then
24542 # Try to guess by grepping values from an object file.
24543 cat >conftest.$ac_ext <<_ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24549 short int ascii_mm[] =
24550 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24551 short int ascii_ii[] =
24552 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24553 int use_ascii (int i) {
24554 return ascii_mm[i] + ascii_ii[i];
24556 short int ebcdic_ii[] =
24557 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24558 short int ebcdic_mm[] =
24559 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24560 int use_ebcdic (int i) {
24561 return ebcdic_mm[i] + ebcdic_ii[i];
24568 return use_ascii (foo) == use_ebcdic (foo);
24573 rm -f conftest.$ac_objext
24574 if { (ac_try="$ac_compile"
24575 case "(($ac_try" in
24576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24577 *) ac_try_echo=$ac_try;;
24579 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24580 $as_echo "$ac_try_echo") >&5
24581 (eval "$ac_compile") 2>conftest.er1
24583 grep -v '^ *+' conftest.er1 >conftest.err
24585 cat conftest.err >&5
24586 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24587 (exit $ac_status); } && {
24588 test -z "$ac_c_werror_flag" ||
24589 test ! -s conftest.err
24590 } && test -s conftest.$ac_objext; then
24591 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24592 ac_cv_c_bigendian=yes
24594 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24595 if test "$ac_cv_c_bigendian" = unknown; then
24596 ac_cv_c_bigendian=no
24598 # finding both strings is unlikely to happen, but who knows?
24599 ac_cv_c_bigendian=unknown
24603 $as_echo "$as_me: failed program was
:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24617 $ac_includes_default
24622 /* Are we little or big endian? From Harbison&Steele. */
24626 char c[sizeof (long int)];
24629 return u.c[sizeof (long int) - 1] == 1;
24635 rm -f conftest$ac_exeext
24636 if { (ac_try="$ac_link"
24637 case "(($ac_try" in
24638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639 *) ac_try_echo=$ac_try;;
24641 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24642 $as_echo "$ac_try_echo") >&5
24643 (eval "$ac_link") 2>&5
24645 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24647 { (case "(($ac_try" in
24648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649 *) ac_try_echo=$ac_try;;
24651 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24652 $as_echo "$ac_try_echo") >&5
24653 (eval "$ac_try") 2>&5
24655 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24656 (exit $ac_status); }; }; then
24657 ac_cv_c_bigendian=no
24659 $as_echo "$as_me: program exited with status
$ac_status" >&5
24660 $as_echo "$as_me: failed program was
:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24663 ( exit $ac_status )
24664 ac_cv_c_bigendian=yes
24666 rm -rf conftest.dSYM
24667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24673 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
24674 $as_echo "$ac_cv_c_bigendian" >&6; }
24675 case $ac_cv_c_bigendian in #(
24677 cat >>confdefs.h <<\_ACEOF
24678 #define WORDS_BIGENDIAN 1
24685 cat >>confdefs.h <<\_ACEOF
24686 #define AC_APPLE_UNIVERSAL_BUILD 1
24691 { { $as_echo "$as_me:$LINENO: error
: unknown endianness
24692 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
24693 $as_echo "$as_me: error
: unknown endianness
24694 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
24695 { (exit 1); exit 1; }; } ;;
24699 # Check whether right shifting a negative integer extends the sign bit
24700 # or fills with zeros (like the Cray J90, according to Tim Peters).
24701 { $as_echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
24702 $as_echo_n "checking whether right
shift extends the sign bit...
" >&6; }
24703 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24704 $as_echo_n "(cached
) " >&6
24707 if test "$cross_compiling" = yes; then
24708 ac_cv_rshift_extends_sign=yes
24710 cat >conftest.$ac_ext <<_ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24719 exit(((-1)>>3 == -1) ? 0 : 1);
24723 rm -f conftest$ac_exeext
24724 if { (ac_try="$ac_link"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24729 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24730 $as_echo "$ac_try_echo") >&5
24731 (eval "$ac_link") 2>&5
24733 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24735 { (case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24739 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24740 $as_echo "$ac_try_echo") >&5
24741 (eval "$ac_try") 2>&5
24743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 ac_cv_rshift_extends_sign=yes
24747 $as_echo "$as_me: program exited with status
$ac_status" >&5
24748 $as_echo "$as_me: failed program was
:" >&5
24749 sed 's/^/| /' conftest.$ac_ext >&5
24751 ( exit $ac_status )
24752 ac_cv_rshift_extends_sign=no
24754 rm -rf conftest.dSYM
24755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24761 { $as_echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
24762 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
24763 if test "$ac_cv_rshift_extends_sign" = no
24766 cat >>confdefs.h <<\_ACEOF
24767 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24772 # check for getc_unlocked and related locking functions
24773 { $as_echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
24774 $as_echo_n "checking
for getc_unlocked
() and friends...
" >&6; }
24775 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24776 $as_echo_n "(cached
) " >&6
24779 cat >conftest.$ac_ext <<_ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h. */
24790 FILE *f = fopen("/dev
/null
", "r
");
24799 rm -f conftest.$ac_objext conftest$ac_exeext
24800 if { (ac_try="$ac_link"
24801 case "(($ac_try" in
24802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803 *) ac_try_echo=$ac_try;;
24805 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24806 $as_echo "$ac_try_echo") >&5
24807 (eval "$ac_link") 2>conftest.er1
24809 grep -v '^ *+' conftest.er1 >conftest.err
24811 cat conftest.err >&5
24812 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24813 (exit $ac_status); } && {
24814 test -z "$ac_c_werror_flag" ||
24815 test ! -s conftest.err
24816 } && test -s conftest$ac_exeext && {
24817 test "$cross_compiling" = yes ||
24818 $as_test_x conftest$ac_exeext
24820 ac_cv_have_getc_unlocked=yes
24822 $as_echo "$as_me: failed program was
:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24825 ac_cv_have_getc_unlocked=no
24828 rm -rf conftest.dSYM
24829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24830 conftest$ac_exeext conftest.$ac_ext
24833 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
24834 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
24835 if test "$ac_cv_have_getc_unlocked" = yes
24838 cat >>confdefs.h <<\_ACEOF
24839 #define HAVE_GETC_UNLOCKED 1
24844 # check where readline lives
24845 # save the value of LIBS so we don't actually link Python with readline
24846 LIBS_no_readline=$LIBS
24848 # On some systems we need to link readline to a termcap compatible
24849 # library. NOTE: Keep the precedence of listed libraries synchronised
24851 py_cv_lib_readline=no
24852 { $as_echo "$as_me:$LINENO: checking how to link readline libs
" >&5
24853 $as_echo_n "checking how to link readline libs...
" >&6; }
24854 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24855 if test -z "$py_libtermcap"; then
24856 READLINE_LIBS="-lreadline"
24858 READLINE_LIBS="-lreadline -l$py_libtermcap"
24860 LIBS="$READLINE_LIBS $LIBS_no_readline"
24861 cat >conftest.$ac_ext <<_ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24868 /* Override any GCC internal prototype to avoid an error.
24869 Use char because int might match the return type of a GCC
24870 builtin and then its argument prototype would still apply. */
24878 return readline ();
24883 rm -f conftest.$ac_objext conftest$ac_exeext
24884 if { (ac_try="$ac_link"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24890 $as_echo "$ac_try_echo") >&5
24891 (eval "$ac_link") 2>conftest.er1
24893 grep -v '^ *+' conftest.er1 >conftest.err
24895 cat conftest.err >&5
24896 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24897 (exit $ac_status); } && {
24898 test -z "$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24900 } && test -s conftest$ac_exeext && {
24901 test "$cross_compiling" = yes ||
24902 $as_test_x conftest$ac_exeext
24904 py_cv_lib_readline=yes
24906 $as_echo "$as_me: failed program was
:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24912 rm -rf conftest.dSYM
24913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24914 conftest$ac_exeext conftest.$ac_ext
24915 if test $py_cv_lib_readline = yes; then
24919 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24920 #AC_SUBST([READLINE_LIBS])
24921 if test $py_cv_lib_readline = no; then
24922 { $as_echo "$as_me:$LINENO: result
: none
" >&5
24923 $as_echo "none
" >&6; }
24925 { $as_echo "$as_me:$LINENO: result
: $READLINE_LIBS" >&5
24926 $as_echo "$READLINE_LIBS" >&6; }
24928 cat >>confdefs.h <<\_ACEOF
24929 #define HAVE_LIBREADLINE 1
24934 # check for readline 2.1
24935 { $as_echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
24936 $as_echo_n "checking
for rl_callback_handler_install
in -lreadline...
" >&6; }
24937 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24938 $as_echo_n "(cached
) " >&6
24940 ac_check_lib_save_LIBS=$LIBS
24941 LIBS="-lreadline $READLINE_LIBS $LIBS"
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24949 /* Override any GCC internal prototype to avoid an error.
24950 Use char because int might match the return type of a GCC
24951 builtin and then its argument prototype would still apply. */
24955 char rl_callback_handler_install ();
24959 return rl_callback_handler_install ();
24964 rm -f conftest.$ac_objext conftest$ac_exeext
24965 if { (ac_try="$ac_link"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24971 $as_echo "$ac_try_echo") >&5
24972 (eval "$ac_link") 2>conftest.er1
24974 grep -v '^ *+' conftest.er1 >conftest.err
24976 cat conftest.err >&5
24977 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24978 (exit $ac_status); } && {
24979 test -z "$ac_c_werror_flag" ||
24980 test ! -s conftest.err
24981 } && test -s conftest$ac_exeext && {
24982 test "$cross_compiling" = yes ||
24983 $as_test_x conftest$ac_exeext
24985 ac_cv_lib_readline_rl_callback_handler_install=yes
24987 $as_echo "$as_me: failed program was
:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24990 ac_cv_lib_readline_rl_callback_handler_install=no
24993 rm -rf conftest.dSYM
24994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24995 conftest$ac_exeext conftest.$ac_ext
24996 LIBS=$ac_check_lib_save_LIBS
24998 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24999 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25000 if test "x
$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
25002 cat >>confdefs.h <<\_ACEOF
25003 #define HAVE_RL_CALLBACK 1
25009 # check for readline 2.2
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 #include <readline/readline.h>
25018 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25023 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25024 $as_echo "$ac_try_echo") >&5
25025 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25027 grep -v '^ *+' conftest.er1 >conftest.err
25029 cat conftest.err >&5
25030 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25031 (exit $ac_status); } >/dev/null && {
25032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25033 test ! -s conftest.err
25037 $as_echo "$as_me: failed program was
:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25043 rm -f conftest.err conftest.$ac_ext
25044 if test $have_readline = yes
25046 cat >conftest.$ac_ext <<_ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25052 #include <readline/readline.h>
25055 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25056 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
25058 cat >>confdefs.h <<\_ACEOF
25059 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25065 cat >conftest.$ac_ext <<_ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 #include <readline/readline.h>
25074 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25075 $EGREP "extern int rl_completion_suppress_append
;" >/dev/null 2>&1; then
25077 cat >>confdefs.h <<\_ACEOF
25078 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
25086 # check for readline 4.0
25087 { $as_echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
25088 $as_echo_n "checking
for rl_pre_input_hook
in -lreadline...
" >&6; }
25089 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25090 $as_echo_n "(cached
) " >&6
25092 ac_check_lib_save_LIBS=$LIBS
25093 LIBS="-lreadline $READLINE_LIBS $LIBS"
25094 cat >conftest.$ac_ext <<_ACEOF
25097 cat confdefs.h >>conftest.$ac_ext
25098 cat >>conftest.$ac_ext <<_ACEOF
25099 /* end confdefs.h. */
25101 /* Override any GCC internal prototype to avoid an error.
25102 Use char because int might match the return type of a GCC
25103 builtin and then its argument prototype would still apply. */
25107 char rl_pre_input_hook ();
25111 return rl_pre_input_hook ();
25116 rm -f conftest.$ac_objext conftest$ac_exeext
25117 if { (ac_try="$ac_link"
25118 case "(($ac_try" in
25119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120 *) ac_try_echo=$ac_try;;
25122 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25123 $as_echo "$ac_try_echo") >&5
25124 (eval "$ac_link") 2>conftest.er1
25126 grep -v '^ *+' conftest.er1 >conftest.err
25128 cat conftest.err >&5
25129 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25130 (exit $ac_status); } && {
25131 test -z "$ac_c_werror_flag" ||
25132 test ! -s conftest.err
25133 } && test -s conftest$ac_exeext && {
25134 test "$cross_compiling" = yes ||
25135 $as_test_x conftest$ac_exeext
25137 ac_cv_lib_readline_rl_pre_input_hook=yes
25139 $as_echo "$as_me: failed program was
:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 ac_cv_lib_readline_rl_pre_input_hook=no
25145 rm -rf conftest.dSYM
25146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25147 conftest$ac_exeext conftest.$ac_ext
25148 LIBS=$ac_check_lib_save_LIBS
25150 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25151 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25152 if test "x
$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then
25154 cat >>confdefs.h <<\_ACEOF
25155 #define HAVE_RL_PRE_INPUT_HOOK 1
25162 { $as_echo "$as_me:$LINENO: checking
for rl_completion_display_matches_hook
in -lreadline" >&5
25163 $as_echo_n "checking
for rl_completion_display_matches_hook
in -lreadline...
" >&6; }
25164 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25165 $as_echo_n "(cached
) " >&6
25167 ac_check_lib_save_LIBS=$LIBS
25168 LIBS="-lreadline $READLINE_LIBS $LIBS"
25169 cat >conftest.$ac_ext <<_ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25176 /* Override any GCC internal prototype to avoid an error.
25177 Use char because int might match the return type of a GCC
25178 builtin and then its argument prototype would still apply. */
25182 char rl_completion_display_matches_hook ();
25186 return rl_completion_display_matches_hook ();
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (ac_try="$ac_link"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25197 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25198 $as_echo "$ac_try_echo") >&5
25199 (eval "$ac_link") 2>conftest.er1
25201 grep -v '^ *+' conftest.er1 >conftest.err
25203 cat conftest.err >&5
25204 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25205 (exit $ac_status); } && {
25206 test -z "$ac_c_werror_flag" ||
25207 test ! -s conftest.err
25208 } && test -s conftest$ac_exeext && {
25209 test "$cross_compiling" = yes ||
25210 $as_test_x conftest$ac_exeext
25212 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25214 $as_echo "$as_me: failed program was
:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25217 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25220 rm -rf conftest.dSYM
25221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25222 conftest$ac_exeext conftest.$ac_ext
25223 LIBS=$ac_check_lib_save_LIBS
25225 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25226 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25227 if test "x
$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then
25229 cat >>confdefs.h <<\_ACEOF
25230 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25236 # check for readline 4.2
25237 { $as_echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
25238 $as_echo_n "checking
for rl_completion_matches
in -lreadline...
" >&6; }
25239 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25240 $as_echo_n "(cached
) " >&6
25242 ac_check_lib_save_LIBS=$LIBS
25243 LIBS="-lreadline $READLINE_LIBS $LIBS"
25244 cat >conftest.$ac_ext <<_ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25251 /* Override any GCC internal prototype to avoid an error.
25252 Use char because int might match the return type of a GCC
25253 builtin and then its argument prototype would still apply. */
25257 char rl_completion_matches ();
25261 return rl_completion_matches ();
25266 rm -f conftest.$ac_objext conftest$ac_exeext
25267 if { (ac_try="$ac_link"
25268 case "(($ac_try" in
25269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25270 *) ac_try_echo=$ac_try;;
25272 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25273 $as_echo "$ac_try_echo") >&5
25274 (eval "$ac_link") 2>conftest.er1
25276 grep -v '^ *+' conftest.er1 >conftest.err
25278 cat conftest.err >&5
25279 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25280 (exit $ac_status); } && {
25281 test -z "$ac_c_werror_flag" ||
25282 test ! -s conftest.err
25283 } && test -s conftest$ac_exeext && {
25284 test "$cross_compiling" = yes ||
25285 $as_test_x conftest$ac_exeext
25287 ac_cv_lib_readline_rl_completion_matches=yes
25289 $as_echo "$as_me: failed program was
:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25292 ac_cv_lib_readline_rl_completion_matches=no
25295 rm -rf conftest.dSYM
25296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25297 conftest$ac_exeext conftest.$ac_ext
25298 LIBS=$ac_check_lib_save_LIBS
25300 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
25301 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
25302 if test "x
$ac_cv_lib_readline_rl_completion_matches" = x""yes; then
25304 cat >>confdefs.h <<\_ACEOF
25305 #define HAVE_RL_COMPLETION_MATCHES 1
25311 # also in readline 4.2
25312 cat >conftest.$ac_ext <<_ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h. */
25318 #include <readline/readline.h>
25320 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25325 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25329 grep -v '^ *+' conftest.er1 >conftest.err
25331 cat conftest.err >&5
25332 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25333 (exit $ac_status); } >/dev/null && {
25334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25335 test ! -s conftest.err
25339 $as_echo "$as_me: failed program was
:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25345 rm -f conftest.err conftest.$ac_ext
25346 if test $have_readline = yes
25348 cat >conftest.$ac_ext <<_ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 #include <readline/readline.h>
25357 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25358 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
25360 cat >>confdefs.h <<\_ACEOF
25361 #define HAVE_RL_CATCH_SIGNAL 1
25369 # End of readline checks: restore LIBS
25370 LIBS=$LIBS_no_readline
25372 { $as_echo "$as_me:$LINENO: checking
for broken nice
()" >&5
25373 $as_echo_n "checking
for broken nice
()...
" >&6; }
25374 if test "${ac_cv_broken_nice+set}" = set; then
25375 $as_echo_n "(cached
) " >&6
25378 if test "$cross_compiling" = yes; then
25379 ac_cv_broken_nice=no
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25390 int val1 = nice(1);
25391 if (val1 != -1 && val1 == nice(2))
25397 rm -f conftest$ac_exeext
25398 if { (ac_try="$ac_link"
25399 case "(($ac_try" in
25400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25401 *) ac_try_echo=$ac_try;;
25403 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25404 $as_echo "$ac_try_echo") >&5
25405 (eval "$ac_link") 2>&5
25407 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25409 { (case "(($ac_try" in
25410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25411 *) ac_try_echo=$ac_try;;
25413 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25414 $as_echo "$ac_try_echo") >&5
25415 (eval "$ac_try") 2>&5
25417 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25418 (exit $ac_status); }; }; then
25419 ac_cv_broken_nice=yes
25421 $as_echo "$as_me: program exited with status
$ac_status" >&5
25422 $as_echo "$as_me: failed program was
:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25425 ( exit $ac_status )
25426 ac_cv_broken_nice=no
25428 rm -rf conftest.dSYM
25429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25435 { $as_echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
25436 $as_echo "$ac_cv_broken_nice" >&6; }
25437 if test "$ac_cv_broken_nice" = yes
25440 cat >>confdefs.h <<\_ACEOF
25441 #define HAVE_BROKEN_NICE 1
25446 { $as_echo "$as_me:$LINENO: checking
for broken poll
()" >&5
25447 $as_echo_n "checking
for broken poll
()...
" >&6; }
25448 if test "$cross_compiling" = yes; then
25449 ac_cv_broken_poll=no
25451 cat >conftest.$ac_ext <<_ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25462 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25466 int poll_test = poll (&poll_struct, 1, 0);
25472 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25483 rm -f conftest$ac_exeext
25484 if { (ac_try="$ac_link"
25485 case "(($ac_try" in
25486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25487 *) ac_try_echo=$ac_try;;
25489 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25490 $as_echo "$ac_try_echo") >&5
25491 (eval "$ac_link") 2>&5
25493 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25495 { (case "(($ac_try" in
25496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497 *) ac_try_echo=$ac_try;;
25499 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25500 $as_echo "$ac_try_echo") >&5
25501 (eval "$ac_try") 2>&5
25503 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25504 (exit $ac_status); }; }; then
25505 ac_cv_broken_poll=yes
25507 $as_echo "$as_me: program exited with status
$ac_status" >&5
25508 $as_echo "$as_me: failed program was
:" >&5
25509 sed 's/^/| /' conftest.$ac_ext >&5
25511 ( exit $ac_status )
25512 ac_cv_broken_poll=no
25514 rm -rf conftest.dSYM
25515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25519 { $as_echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
25520 $as_echo "$ac_cv_broken_poll" >&6; }
25521 if test "$ac_cv_broken_poll" = yes
25524 cat >>confdefs.h <<\_ACEOF
25525 #define HAVE_BROKEN_POLL 1
25530 # Before we can test tzset, we need to check if struct tm has a tm_zone
25531 # (which is not required by ISO C or UNIX spec) and/or if we support
25533 { $as_echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
25534 $as_echo_n "checking
for struct tm.tm_zone...
" >&6; }
25535 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25536 $as_echo_n "(cached
) " >&6
25538 cat >conftest.$ac_ext <<_ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25544 #include <sys/types.h>
25545 #include <$ac_cv_struct_tm>
25551 static struct tm ac_aggr;
25552 if (ac_aggr.tm_zone)
25558 rm -f conftest.$ac_objext
25559 if { (ac_try="$ac_compile"
25560 case "(($ac_try" in
25561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25562 *) ac_try_echo=$ac_try;;
25564 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25565 $as_echo "$ac_try_echo") >&5
25566 (eval "$ac_compile") 2>conftest.er1
25568 grep -v '^ *+' conftest.er1 >conftest.err
25570 cat conftest.err >&5
25571 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25572 (exit $ac_status); } && {
25573 test -z "$ac_c_werror_flag" ||
25574 test ! -s conftest.err
25575 } && test -s conftest.$ac_objext; then
25576 ac_cv_member_struct_tm_tm_zone=yes
25578 $as_echo "$as_me: failed program was
:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25581 cat >conftest.$ac_ext <<_ACEOF
25584 cat confdefs.h >>conftest.$ac_ext
25585 cat >>conftest.$ac_ext <<_ACEOF
25586 /* end confdefs.h. */
25587 #include <sys/types.h>
25588 #include <$ac_cv_struct_tm>
25594 static struct tm ac_aggr;
25595 if (sizeof ac_aggr.tm_zone)
25601 rm -f conftest.$ac_objext
25602 if { (ac_try="$ac_compile"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25607 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25608 $as_echo "$ac_try_echo") >&5
25609 (eval "$ac_compile") 2>conftest.er1
25611 grep -v '^ *+' conftest.er1 >conftest.err
25613 cat conftest.err >&5
25614 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25615 (exit $ac_status); } && {
25616 test -z "$ac_c_werror_flag" ||
25617 test ! -s conftest.err
25618 } && test -s conftest.$ac_objext; then
25619 ac_cv_member_struct_tm_tm_zone=yes
25621 $as_echo "$as_me: failed program was
:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25624 ac_cv_member_struct_tm_tm_zone=no
25627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25632 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
25633 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
25634 if test "x
$ac_cv_member_struct_tm_tm_zone" = x""yes; then
25636 cat >>confdefs.h <<_ACEOF
25637 #define HAVE_STRUCT_TM_TM_ZONE 1
25643 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25645 cat >>confdefs.h <<\_ACEOF
25646 #define HAVE_TM_ZONE 1
25650 { $as_echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
25651 $as_echo_n "checking whether tzname is declared...
" >&6; }
25652 if test "${ac_cv_have_decl_tzname+set}" = set; then
25653 $as_echo_n "(cached
) " >&6
25655 cat >conftest.$ac_ext <<_ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25674 rm -f conftest.$ac_objext
25675 if { (ac_try="$ac_compile"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25680 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_compile") 2>conftest.er1
25684 grep -v '^ *+' conftest.er1 >conftest.err
25686 cat conftest.err >&5
25687 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest.$ac_objext; then
25692 ac_cv_have_decl_tzname=yes
25694 $as_echo "$as_me: failed program was
:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25697 ac_cv_have_decl_tzname=no
25700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
25703 $as_echo "$ac_cv_have_decl_tzname" >&6; }
25704 if test "x
$ac_cv_have_decl_tzname" = x""yes; then
25706 cat >>confdefs.h <<_ACEOF
25707 #define HAVE_DECL_TZNAME 1
25712 cat >>confdefs.h <<_ACEOF
25713 #define HAVE_DECL_TZNAME 0
25720 { $as_echo "$as_me:$LINENO: checking
for tzname
" >&5
25721 $as_echo_n "checking
for tzname...
" >&6; }
25722 if test "${ac_cv_var_tzname+set}" = set; then
25723 $as_echo_n "(cached
) " >&6
25725 cat >conftest.$ac_ext <<_ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h. */
25732 #if !HAVE_DECL_TZNAME
25733 extern char *tzname[];
25739 return tzname[0][0];
25744 rm -f conftest.$ac_objext conftest$ac_exeext
25745 if { (ac_try="$ac_link"
25746 case "(($ac_try" in
25747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25748 *) ac_try_echo=$ac_try;;
25750 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25751 $as_echo "$ac_try_echo") >&5
25752 (eval "$ac_link") 2>conftest.er1
25754 grep -v '^ *+' conftest.er1 >conftest.err
25756 cat conftest.err >&5
25757 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25758 (exit $ac_status); } && {
25759 test -z "$ac_c_werror_flag" ||
25760 test ! -s conftest.err
25761 } && test -s conftest$ac_exeext && {
25762 test "$cross_compiling" = yes ||
25763 $as_test_x conftest$ac_exeext
25765 ac_cv_var_tzname=yes
25767 $as_echo "$as_me: failed program was
:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ac_cv_var_tzname=no
25773 rm -rf conftest.dSYM
25774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25775 conftest$ac_exeext conftest.$ac_ext
25777 { $as_echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
25778 $as_echo "$ac_cv_var_tzname" >&6; }
25779 if test $ac_cv_var_tzname = yes; then
25781 cat >>confdefs.h <<\_ACEOF
25782 #define HAVE_TZNAME 1
25789 # check tzset(3) exists and works like we expect it to
25790 { $as_echo "$as_me:$LINENO: checking
for working tzset
()" >&5
25791 $as_echo_n "checking
for working tzset
()...
" >&6; }
25792 if test "${ac_cv_working_tzset+set}" = set; then
25793 $as_echo_n "(cached
) " >&6
25796 if test "$cross_compiling" = yes; then
25797 ac_cv_working_tzset=no
25799 cat >conftest.$ac_ext <<_ACEOF
25802 cat confdefs.h >>conftest.$ac_ext
25803 cat >>conftest.$ac_ext <<_ACEOF
25804 /* end confdefs.h. */
25806 #include <stdlib.h>
25808 #include <string.h>
25811 extern char *tzname[];
25816 /* Note that we need to ensure that not only does tzset(3)
25817 do 'something' with localtime, but it works as documented
25818 in the library reference and as expected by the test suite.
25819 This includes making sure that tzname is set properly if
25820 tm->tm_zone does not exist since it is the alternative way
25821 of getting timezone info.
25823 Red Hat 6.2 doesn't understand the southern hemisphere
25824 after New Year's Day.
25827 time_t groundhogday = 1044144000; /* GMT-based */
25828 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25830 putenv("TZ
=UTC
+0");
25832 if (localtime(&groundhogday)->tm_hour != 0)
25835 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25836 if (strcmp(tzname[0], "UTC
") ||
25837 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25841 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
25843 if (localtime(&groundhogday)->tm_hour != 19)
25846 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
25850 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
25852 if (localtime(&groundhogday)->tm_hour != 11)
25855 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
25859 #if HAVE_STRUCT_TM_TM_ZONE
25860 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
25862 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
25870 rm -f conftest$ac_exeext
25871 if { (ac_try="$ac_link"
25872 case "(($ac_try" in
25873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25874 *) ac_try_echo=$ac_try;;
25876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25877 $as_echo "$ac_try_echo") >&5
25878 (eval "$ac_link") 2>&5
25880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25882 { (case "(($ac_try" in
25883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25884 *) ac_try_echo=$ac_try;;
25886 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25887 $as_echo "$ac_try_echo") >&5
25888 (eval "$ac_try") 2>&5
25890 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25891 (exit $ac_status); }; }; then
25892 ac_cv_working_tzset=yes
25894 $as_echo "$as_me: program exited with status
$ac_status" >&5
25895 $as_echo "$as_me: failed program was
:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25898 ( exit $ac_status )
25899 ac_cv_working_tzset=no
25901 rm -rf conftest.dSYM
25902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25908 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
25909 $as_echo "$ac_cv_working_tzset" >&6; }
25910 if test "$ac_cv_working_tzset" = yes
25913 cat >>confdefs.h <<\_ACEOF
25914 #define HAVE_WORKING_TZSET 1
25919 # Look for subsecond timestamps in struct stat
25920 { $as_echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
25921 $as_echo_n "checking
for tv_nsec
in struct stat...
" >&6; }
25922 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25923 $as_echo_n "(cached
) " >&6
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 #include <sys/stat.h>
25937 st.st_mtim.tv_nsec = 1;
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25950 $as_echo "$ac_try_echo") >&5
25951 (eval "$ac_compile") 2>conftest.er1
25953 grep -v '^ *+' conftest.er1 >conftest.err
25955 cat conftest.err >&5
25956 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25957 (exit $ac_status); } && {
25958 test -z "$ac_c_werror_flag" ||
25959 test ! -s conftest.err
25960 } && test -s conftest.$ac_objext; then
25961 ac_cv_stat_tv_nsec=yes
25963 $as_echo "$as_me: failed program was
:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25966 ac_cv_stat_tv_nsec=no
25969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972 { $as_echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
25973 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
25974 if test "$ac_cv_stat_tv_nsec" = yes
25977 cat >>confdefs.h <<\_ACEOF
25978 #define HAVE_STAT_TV_NSEC 1
25983 # Look for BSD style subsecond timestamps in struct stat
25984 { $as_echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
25985 $as_echo_n "checking
for tv_nsec2
in struct stat...
" >&6; }
25986 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25987 $as_echo_n "(cached
) " >&6
25989 cat >conftest.$ac_ext <<_ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h. */
25995 #include <sys/stat.h>
26001 st.st_mtimespec.tv_nsec = 1;
26007 rm -f conftest.$ac_objext
26008 if { (ac_try="$ac_compile"
26009 case "(($ac_try" in
26010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011 *) ac_try_echo=$ac_try;;
26013 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26014 $as_echo "$ac_try_echo") >&5
26015 (eval "$ac_compile") 2>conftest.er1
26017 grep -v '^ *+' conftest.er1 >conftest.err
26019 cat conftest.err >&5
26020 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26021 (exit $ac_status); } && {
26022 test -z "$ac_c_werror_flag" ||
26023 test ! -s conftest.err
26024 } && test -s conftest.$ac_objext; then
26025 ac_cv_stat_tv_nsec2=yes
26027 $as_echo "$as_me: failed program was
:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 ac_cv_stat_tv_nsec2=no
26033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26036 { $as_echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
26037 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
26038 if test "$ac_cv_stat_tv_nsec2" = yes
26041 cat >>confdefs.h <<\_ACEOF
26042 #define HAVE_STAT_TV_NSEC2 1
26047 # On HP/UX 11.0, mvwdelch is a block with a return statement
26048 { $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
26049 $as_echo_n "checking whether mvwdelch is an expression...
" >&6; }
26050 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26051 $as_echo_n "(cached
) " >&6
26053 cat >conftest.$ac_ext <<_ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 #include <curses.h>
26065 rtn = mvwdelch(0,0,0);
26071 rm -f conftest.$ac_objext
26072 if { (ac_try="$ac_compile"
26073 case "(($ac_try" in
26074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075 *) ac_try_echo=$ac_try;;
26077 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26078 $as_echo "$ac_try_echo") >&5
26079 (eval "$ac_compile") 2>conftest.er1
26081 grep -v '^ *+' conftest.er1 >conftest.err
26083 cat conftest.err >&5
26084 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26085 (exit $ac_status); } && {
26086 test -z "$ac_c_werror_flag" ||
26087 test ! -s conftest.err
26088 } && test -s conftest.$ac_objext; then
26089 ac_cv_mvwdelch_is_expression=yes
26091 $as_echo "$as_me: failed program was
:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26094 ac_cv_mvwdelch_is_expression=no
26097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26100 { $as_echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
26101 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
26103 if test "$ac_cv_mvwdelch_is_expression" = yes
26106 cat >>confdefs.h <<\_ACEOF
26107 #define MVWDELCH_IS_EXPRESSION 1
26112 { $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
26113 $as_echo_n "checking whether WINDOW has _flags...
" >&6; }
26114 if test "${ac_cv_window_has_flags+set}" = set; then
26115 $as_echo_n "(cached
) " >&6
26117 cat >conftest.$ac_ext <<_ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h. */
26123 #include <curses.h>
26135 rm -f conftest.$ac_objext
26136 if { (ac_try="$ac_compile"
26137 case "(($ac_try" in
26138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26139 *) ac_try_echo=$ac_try;;
26141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26142 $as_echo "$ac_try_echo") >&5
26143 (eval "$ac_compile") 2>conftest.er1
26145 grep -v '^ *+' conftest.er1 >conftest.err
26147 cat conftest.err >&5
26148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26149 (exit $ac_status); } && {
26150 test -z "$ac_c_werror_flag" ||
26151 test ! -s conftest.err
26152 } && test -s conftest.$ac_objext; then
26153 ac_cv_window_has_flags=yes
26155 $as_echo "$as_me: failed program was
:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26158 ac_cv_window_has_flags=no
26161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26164 { $as_echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
26165 $as_echo "$ac_cv_window_has_flags" >&6; }
26168 if test "$ac_cv_window_has_flags" = yes
26171 cat >>confdefs.h <<\_ACEOF
26172 #define WINDOW_HAS_FLAGS 1
26177 { $as_echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
26178 $as_echo_n "checking
for is_term_resized...
" >&6; }
26179 cat >conftest.$ac_ext <<_ACEOF
26182 cat confdefs.h >>conftest.$ac_ext
26183 cat >>conftest.$ac_ext <<_ACEOF
26184 /* end confdefs.h. */
26185 #include <curses.h>
26189 void *x=is_term_resized
26194 rm -f conftest.$ac_objext
26195 if { (ac_try="$ac_compile"
26196 case "(($ac_try" in
26197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26198 *) ac_try_echo=$ac_try;;
26200 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26201 $as_echo "$ac_try_echo") >&5
26202 (eval "$ac_compile") 2>conftest.er1
26204 grep -v '^ *+' conftest.er1 >conftest.err
26206 cat conftest.err >&5
26207 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26208 (exit $ac_status); } && {
26209 test -z "$ac_c_werror_flag" ||
26210 test ! -s conftest.err
26211 } && test -s conftest.$ac_objext; then
26213 cat >>confdefs.h <<\_ACEOF
26214 #define HAVE_CURSES_IS_TERM_RESIZED 1
26217 { $as_echo "$as_me:$LINENO: result
: yes" >&5
26218 $as_echo "yes" >&6; }
26220 $as_echo "$as_me: failed program was
:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 { $as_echo "$as_me:$LINENO: result
: no
" >&5
26224 $as_echo "no
" >&6; }
26228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26230 { $as_echo "$as_me:$LINENO: checking
for resize_term
" >&5
26231 $as_echo_n "checking
for resize_term...
" >&6; }
26232 cat >conftest.$ac_ext <<_ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 #include <curses.h>
26242 void *x=resize_term
26247 rm -f conftest.$ac_objext
26248 if { (ac_try="$ac_compile"
26249 case "(($ac_try" in
26250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251 *) ac_try_echo=$ac_try;;
26253 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26254 $as_echo "$ac_try_echo") >&5
26255 (eval "$ac_compile") 2>conftest.er1
26257 grep -v '^ *+' conftest.er1 >conftest.err
26259 cat conftest.err >&5
26260 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26261 (exit $ac_status); } && {
26262 test -z "$ac_c_werror_flag" ||
26263 test ! -s conftest.err
26264 } && test -s conftest.$ac_objext; then
26266 cat >>confdefs.h <<\_ACEOF
26267 #define HAVE_CURSES_RESIZE_TERM 1
26270 { $as_echo "$as_me:$LINENO: result
: yes" >&5
26271 $as_echo "yes" >&6; }
26273 $as_echo "$as_me: failed program was
:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26276 { $as_echo "$as_me:$LINENO: result
: no
" >&5
26277 $as_echo "no
" >&6; }
26281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 { $as_echo "$as_me:$LINENO: checking
for resizeterm
" >&5
26284 $as_echo_n "checking
for resizeterm...
" >&6; }
26285 cat >conftest.$ac_ext <<_ACEOF
26288 cat confdefs.h >>conftest.$ac_ext
26289 cat >>conftest.$ac_ext <<_ACEOF
26290 /* end confdefs.h. */
26291 #include <curses.h>
26300 rm -f conftest.$ac_objext
26301 if { (ac_try="$ac_compile"
26302 case "(($ac_try" in
26303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26304 *) ac_try_echo=$ac_try;;
26306 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26307 $as_echo "$ac_try_echo") >&5
26308 (eval "$ac_compile") 2>conftest.er1
26310 grep -v '^ *+' conftest.er1 >conftest.err
26312 cat conftest.err >&5
26313 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26314 (exit $ac_status); } && {
26315 test -z "$ac_c_werror_flag" ||
26316 test ! -s conftest.err
26317 } && test -s conftest.$ac_objext; then
26319 cat >>confdefs.h <<\_ACEOF
26320 #define HAVE_CURSES_RESIZETERM 1
26323 { $as_echo "$as_me:$LINENO: result
: yes" >&5
26324 $as_echo "yes" >&6; }
26326 $as_echo "$as_me: failed program was
:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26329 { $as_echo "$as_me:$LINENO: result
: no
" >&5
26330 $as_echo "no
" >&6; }
26334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336 { $as_echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
26337 $as_echo_n "checking
for /dev
/ptmx...
" >&6; }
26339 if test -r /dev/ptmx
26341 { $as_echo "$as_me:$LINENO: result
: yes" >&5
26342 $as_echo "yes" >&6; }
26344 cat >>confdefs.h <<\_ACEOF
26345 #define HAVE_DEV_PTMX 1
26349 { $as_echo "$as_me:$LINENO: result
: no
" >&5
26350 $as_echo "no
" >&6; }
26353 { $as_echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
26354 $as_echo_n "checking
for /dev
/ptc...
" >&6; }
26356 if test -r /dev/ptc
26358 { $as_echo "$as_me:$LINENO: result
: yes" >&5
26359 $as_echo "yes" >&6; }
26361 cat >>confdefs.h <<\_ACEOF
26362 #define HAVE_DEV_PTC 1
26366 { $as_echo "$as_me:$LINENO: result
: no
" >&5
26367 $as_echo "no
" >&6; }
26370 { $as_echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
26371 $as_echo_n "checking
for %zd
printf() format support...
" >&6; }
26372 if test "$cross_compiling" = yes; then
26373 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26375 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26376 See \`config.log' for more details.
" >&5
26377 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
26378 See \
`config.log' for more details." >&2;}
26379 { (exit 1); exit 1; }; }; }
26381 cat >conftest.$ac_ext <<_ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h. */
26388 #include <stddef.h>
26389 #include <string.h>
26391 #ifdef HAVE_SYS_TYPES_H
26392 #include <sys/types.h>
26395 #ifdef HAVE_SSIZE_T
26396 typedef ssize_t Py_ssize_t;
26397 #elif SIZEOF_VOID_P == SIZEOF_LONG
26398 typedef long Py_ssize_t;
26400 typedef int Py_ssize_t;
26407 if(sprintf(buffer, "%zd", (size_t)123) < 0)
26410 if (strcmp(buffer, "123"))
26413 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
26416 if (strcmp(buffer, "-123"))
26422 rm -f conftest$ac_exeext
26423 if { (ac_try="$ac_link"
26424 case "(($ac_try" in
26425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26426 *) ac_try_echo
=$ac_try;;
26428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26429 $as_echo "$ac_try_echo") >&5
26430 (eval "$ac_link") 2>&5
26432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26434 { (case "(($ac_try" in
26435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26436 *) ac_try_echo=$ac_try;;
26438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26439 $as_echo "$ac_try_echo") >&5
26440 (eval "$ac_try") 2>&5
26442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; }; then
26444 { $as_echo "$as_me:$LINENO: result: yes" >&5
26445 $as_echo "yes" >&6; }
26447 cat >>confdefs.h <<\_ACEOF
26448 #define PY_FORMAT_SIZE_T "z"
26452 $as_echo "$as_me: program exited with status $ac_status" >&5
26453 $as_echo "$as_me: failed program was:" >&5
26454 sed 's/^/| /' conftest.$ac_ext >&5
26456 ( exit $ac_status )
26457 { $as_echo "$as_me:$LINENO: result: no" >&5
26458 $as_echo "no" >&6; }
26460 rm -rf conftest.dSYM
26461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26466 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26467 $as_echo_n "checking for socklen_t... " >&6; }
26468 if test "${ac_cv_type_socklen_t+set}" = set; then
26469 $as_echo_n "(cached) " >&6
26471 ac_cv_type_socklen_t=no
26472 cat >conftest.$ac_ext <<_ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h. */
26479 #ifdef HAVE_SYS_TYPES_H
26480 #include <sys/types.h>
26482 #ifdef HAVE_SYS_SOCKET_H
26483 #include <sys/socket.h>
26490 if (sizeof (socklen_t))
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26500 *) ac_try_echo
=$ac_try;;
26502 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26503 $as_echo "$ac_try_echo") >&5
26504 (eval "$ac_compile") 2>conftest.er1
26506 grep -v '^ *+' conftest.er1
>conftest.err
26508 cat conftest.err
>&5
26509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } && {
26511 test -z "$ac_c_werror_flag" ||
26512 test ! -s conftest.err
26513 } && test -s conftest.
$ac_objext; then
26514 cat >conftest.
$ac_ext <<_ACEOF
26517 cat confdefs.h
>>conftest.
$ac_ext
26518 cat >>conftest.
$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26521 #ifdef HAVE_SYS_TYPES_H
26522 #include <sys/types.h>
26524 #ifdef HAVE_SYS_SOCKET_H
26525 #include <sys/socket.h>
26532 if (sizeof ((socklen_t)))
26538 rm -f conftest.
$ac_objext
26539 if { (ac_try
="$ac_compile"
26540 case "(($ac_try" in
26541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26542 *) ac_try_echo=$ac_try;;
26544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26545 $as_echo "$ac_try_echo") >&5
26546 (eval "$ac_compile") 2>conftest.er1
26548 grep -v '^ *+' conftest.er1 >conftest.err
26550 cat conftest.err >&5
26551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); } && {
26553 test -z "$ac_c_werror_flag" ||
26554 test ! -s conftest.err
26555 } && test -s conftest.$ac_objext; then
26558 $as_echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 ac_cv_type_socklen_t=yes
26564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26566 $as_echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26574 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26575 $as_echo "$ac_cv_type_socklen_t" >&6; }
26576 if test "x$ac_cv_type_socklen_t" = x""yes; then
26580 cat >>confdefs.h <<\_ACEOF
26581 #define socklen_t int
26587 { $as_echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
26588 $as_echo_n "checking for broken mbstowcs... " >&6; }
26589 if test "$cross_compiling" = yes; then
26590 ac_cv_broken_mbstowcs=no
26592 cat >conftest.$ac_ext <<_ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26602 const char *str = "text";
26603 len = mbstowcs(NULL, str, 0);
26608 rm -f conftest$ac_exeext
26609 if { (ac_try="$ac_link"
26610 case "(($ac_try" in
26611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26612 *) ac_try_echo
=$ac_try;;
26614 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26615 $as_echo "$ac_try_echo") >&5
26616 (eval "$ac_link") 2>&5
26618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26620 { (case "(($ac_try" in
26621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26622 *) ac_try_echo=$ac_try;;
26624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26625 $as_echo "$ac_try_echo") >&5
26626 (eval "$ac_try") 2>&5
26628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; }; then
26630 ac_cv_broken_mbstowcs=no
26632 $as_echo "$as_me: program exited with status $ac_status" >&5
26633 $as_echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26636 ( exit $ac_status )
26637 ac_cv_broken_mbstowcs=yes
26639 rm -rf conftest.dSYM
26640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26644 { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
26645 $as_echo "$ac_cv_broken_mbstowcs" >&6; }
26646 if test "$ac_cv_broken_mbstowcs" = yes
26649 cat >>confdefs.h <<\_ACEOF
26650 #define HAVE_BROKEN_MBSTOWCS 1
26655 # Check for --with-computed-gotos
26656 { $as_echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
26657 $as_echo_n "checking for --with-computed-gotos... " >&6; }
26659 # Check whether --with-computed-gotos was given.
26660 if test "${with_computed_gotos+set}" = set; then
26661 withval=$with_computed_gotos;
26662 if test "$withval" != no
26665 cat >>confdefs.h <<\_ACEOF
26666 #define USE_COMPUTED_GOTOS 1
26669 { $as_echo "$as_me:$LINENO: result: yes" >&5
26670 $as_echo "yes" >&6; }
26671 else { $as_echo "$as_me:$LINENO: result: no" >&5
26672 $as_echo "no" >&6; }
26675 { $as_echo "$as_me:$LINENO: result: no" >&5
26676 $as_echo "no" >&6; }
26680 if test $ac_sys_system = Darwin
26682 LIBS="$LIBS -framework CoreFoundation"
26689 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
26691 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
26695 SRCDIRS="Parser Grammar Objects Python Modules Mac"
26696 { $as_echo "$as_me:$LINENO: checking for build directories" >&5
26697 $as_echo_n "checking for build directories... " >&6; }
26698 for dir in $SRCDIRS; do
26699 if test ! -d $dir; then
26703 { $as_echo "$as_me:$LINENO: result: done" >&5
26704 $as_echo "done" >&6; }
26706 # generate output files
26707 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
26709 cat >confcache <<\_ACEOF
26710 # This file is a shell script that caches the results of configure
26711 # tests run on this system so they can be shared between configure
26712 # scripts and configure runs, see configure's option --config-cache.
26713 # It is not useful on other systems. If it contains results you don't
26714 # want to keep, you may remove or edit it.
26716 # config.status only pays attention to the cache file if you give it
26717 # the --recheck option to rerun configure.
26719 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
26720 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26721 # following values.
26725 # The following way of writing the cache mishandles newlines in values,
26726 # but we know of no workaround that is simple, portable, and efficient.
26727 # So, we kill variables containing newlines.
26728 # Ultrix sh set writes to stderr and can't be redirected directly,
26729 # and sets the high bit in the cache file unless we assign to the vars.
26731 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26732 eval ac_val
=\$
$ac_var
26736 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26740 _ | IFS | as_nl
) ;; #(
26741 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26742 *) $as_unset $ac_var ;;
26748 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26749 *${as_nl}ac_space
=\
*)
26750 # `set' does not quote correctly, so add quotes (double-quote
26751 # substitution turns \\\\ into \\, and sed turns \\ into \).
26754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26757 # `set' quotes correctly as required by POSIX, so do not add quotes.
26758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26769 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26771 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26772 if test -w "$cache_file"; then
26773 test "x$cache_file" != "x/dev/null" &&
26774 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26775 $as_echo "$as_me: updating cache $cache_file" >&6;}
26776 cat confcache
>$cache_file
26778 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26779 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26784 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26785 # Let make expand exec_prefix.
26786 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26788 DEFS
=-DHAVE_CONFIG_H
26792 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26793 # 1. Remove the extension, and $U if already installed.
26794 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26795 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26796 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26797 # will be set to the directory where LIBOBJS objects are built.
26798 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26799 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26801 LIBOBJS
=$ac_libobjs
26803 LTLIBOBJS
=$ac_ltlibobjs
26808 : ${CONFIG_STATUS=./config.status}
26810 ac_clean_files_save
=$ac_clean_files
26811 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26812 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26813 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26814 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26816 # Generated by $as_me.
26817 # Run this file to recreate the current configuration.
26818 # Compiler output produced by configure, useful for debugging
26819 # configure, is in config.log if it exists.
26822 ac_cs_recheck=false
26824 SHELL=\${CONFIG_SHELL-$SHELL}
26827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26828 ## --------------------- ##
26829 ## M4sh Initialization. ##
26830 ## --------------------- ##
26832 # Be more Bourne compatible
26833 DUALCASE
=1; export DUALCASE
# for MKS sh
26834 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26837 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26838 # is contrary to our usage. Disable this feature.
26839 alias -g '${1+"$@"}'='"$@"'
26840 setopt NO_GLOB_SUBST
26842 case `(set -o) 2>/dev/null` in
26843 *posix
*) set -o posix
;;
26852 # Avoid depending upon Character Ranges.
26853 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26854 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26855 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26856 as_cr_digits
='0123456789'
26857 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26862 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26863 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26866 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26867 as_echo='printf %s
\n'
26868 as_echo_n='printf %s
'
26870 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26871 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26872 as_echo_n='/usr
/ucb
/echo -n'
26874 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26875 as_echo_n_body='eval
26879 expr "X$arg" : "X\\(.*\\)$as_nl";
26880 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26882 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26884 export as_echo_n_body
26885 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26887 export as_echo_body
26888 as_echo='sh
-c $as_echo_body as_echo
'
26891 # The user is always right.
26892 if test "${PATH_SEPARATOR+set}" != set; then
26894 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26895 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26900 # Support unset when possible.
26901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26909 # We need space, tab and new line, in precisely that order. Quoting is
26910 # there to prevent editors from complaining about space-tab.
26911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26912 # splitting by setting IFS to empty value.)
26915 # Find who we are. Look in the path if we contain no directory separator.
26917 *[\\/]* ) as_myself=$0 ;;
26918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26919 for as_dir in $PATH
26922 test -z "$as_dir" && as_dir=.
26923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26929 # We did not find ourselves, most probably we were run as `sh COMMAND'
26930 # in which case we are not to be found in the path.
26931 if test "x$as_myself" = x
; then
26934 if test ! -f "$as_myself"; then
26935 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26936 { (exit 1); exit 1; }
26939 # Work around bugs in pre-3.0 UWIN ksh.
26940 for as_var
in ENV MAIL MAILPATH
26941 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26953 # Required to use basename.
26954 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26955 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26961 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26962 as_basename
=basename
26968 # Name of the executable.
26969 as_me
=`$as_basename -- "$0" ||
26970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26971 X"$0" : 'X\(//\)$' \| \
26972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26974 sed '/^.*\/\([^/][^/]*\)\/*$/{
26993 as_lineno_1
=$LINENO
26994 as_lineno_2
=$LINENO
26995 test "x$as_lineno_1" != "x$as_lineno_2" &&
26996 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26998 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26999 # uniformly replaced by the line number. The first 'sed' inserts a
27000 # line-number line after each line using $LINENO; the second 'sed'
27001 # does the real work. The second script uses 'N' to pair each
27002 # line-number line with the line containing $LINENO, and appends
27003 # trailing '-' during substitution so that $LINENO is not a special
27004 # case at line end.
27005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27006 # scripts with optimization help from Paolo Bonzini. Blame Lee
27007 # E. McMahon (1931-1989) for sed's syntax. :-)
27019 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27022 ' >$as_me.lineno
&&
27023 chmod +x
"$as_me.lineno" ||
27024 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27025 { (exit 1); exit 1; }; }
27027 # Don't try to exec as it changes $[0], causing all sort of problems
27028 # (the dirname of $[0] is not the place where we might find the
27029 # original and so on. Autoconf is especially sensitive to this).
27030 .
"./$as_me.lineno"
27031 # Exit status is that of the last command.
27036 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27042 ECHO_C
= ECHO_N
= ECHO_T
=
27043 case `echo -n x` in
27045 case `echo 'x\c'` in
27046 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27052 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27053 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27059 rm -f conf$$ conf$$.exe conf$$.
file
27060 if test -d conf$$.dir
; then
27061 rm -f conf$$.dir
/conf$$.
file
27064 mkdir conf$$.dir
2>/dev
/null
27066 if (echo >conf$$.
file) 2>/dev
/null
; then
27067 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27069 # ... but there are two gotchas:
27070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27072 # In both cases, we have to default to `cp -p'.
27073 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27075 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27083 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27084 rmdir conf$$.dir
2>/dev
/null
27086 if mkdir
-p .
2>/dev
/null
; then
27089 test -d .
/-p && rmdir .
/-p
27093 if test -x / >/dev
/null
2>&1; then
27094 as_test_x
='test -x'
27096 if ls -dL / >/dev
/null
2>&1; then
27103 if test -d "$1"; then
27109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27110 ???[sx]*):;;*)false;;esac;fi
27114 as_executable_p
=$as_test_x
27116 # Sed expression to map a string onto a valid CPP name.
27117 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27119 # Sed expression to map a string onto a valid variable name.
27120 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27125 # Save the log message, to keep $[0] and so on meaningful, and to
27126 # report actual input values of CONFIG_FILES etc. instead of their
27127 # values after options handling.
27129 This file was extended by python $as_me 3.1, which was
27130 generated by GNU Autoconf 2.63. Invocation command line was
27132 CONFIG_FILES = $CONFIG_FILES
27133 CONFIG_HEADERS = $CONFIG_HEADERS
27134 CONFIG_LINKS = $CONFIG_LINKS
27135 CONFIG_COMMANDS = $CONFIG_COMMANDS
27138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27143 case $ac_config_files in *"
27144 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27147 case $ac_config_headers in *"
27148 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27153 # Files that config.status was made for.
27154 config_files="$ac_config_files"
27155 config_headers="$ac_config_headers"
27159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27161 \`$as_me' instantiates files from templates according to the
27162 current configuration.
27164 Usage: $0 [OPTION]... [FILE]...
27166 -h, --help print this help, then exit
27167 -V, --version print version number and configuration settings, then exit
27168 -q, --quiet, --silent
27169 do not print progress messages
27170 -d, --debug don't remove temporary files
27171 --recheck update $as_me by reconfiguring in the same conditions
27172 --file=FILE[:TEMPLATE]
27173 instantiate the configuration file FILE
27174 --header=FILE[:TEMPLATE]
27175 instantiate the configuration header FILE
27177 Configuration files:
27180 Configuration headers:
27183 Report bugs to <bug-autoconf@gnu.org>."
27186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27188 python config.status 3.1
27189 configured by $0, generated by GNU Autoconf 2.63,
27190 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27192 Copyright (C) 2008 Free Software Foundation, Inc.
27193 This config.status script is free software; the Free Software Foundation
27194 gives unlimited permission to copy, distribute and modify it."
27199 test -n "\$AWK" || AWK=awk
27202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27203 # The default lists apply if the user does not specify any file.
27209 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27210 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27221 # Handling of the options.
27222 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27224 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27225 $as_echo "$ac_cs_version"; exit ;;
27226 --debug |
--debu |
--deb |
--de |
--d |
-d )
27228 --file |
--fil |
--fi |
--f )
27231 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27233 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27234 ac_need_defaults
=false
;;
27235 --header |
--heade |
--head |
--hea )
27238 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27240 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27241 ac_need_defaults
=false
;;
27243 # Conflict between --help and --header
27244 { $as_echo "$as_me: error: ambiguous option: $1
27245 Try \`$0 --help' for more information." >&2
27246 { (exit 1); exit 1; }; };;
27247 --help |
--hel |
-h )
27248 $as_echo "$ac_cs_usage"; exit ;;
27249 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27250 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27253 # This is an error.
27254 -*) { $as_echo "$as_me: error: unrecognized option: $1
27255 Try \`$0 --help' for more information." >&2
27256 { (exit 1); exit 1; }; } ;;
27258 *) ac_config_targets
="$ac_config_targets $1"
27259 ac_need_defaults
=false
;;
27265 ac_configure_extra_args
=
27267 if $ac_cs_silent; then
27269 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27274 if \$ac_cs_recheck; then
27275 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27277 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27278 CONFIG_SHELL='$SHELL'
27279 export CONFIG_SHELL
27284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27289 ## Running $as_me. ##
27295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27300 # Handling of arguments.
27301 for ac_config_target
in $ac_config_targets
27303 case $ac_config_target in
27304 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
27305 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
27306 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27307 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27308 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27309 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
27310 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
27311 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
27313 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27314 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27315 { (exit 1); exit 1; }; };;
27320 # If the user did not use the arguments to specify the items to instantiate,
27321 # then the envvar interface is used. Set only those that are not.
27322 # We use the long form for the default assignment because of an extremely
27323 # bizarre bug on SunOS 4.1.3.
27324 if $ac_need_defaults; then
27325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27329 # Have a temporary directory for convenience. Make it in the build tree
27330 # simply because there is no reason against having it here, and in addition,
27331 # creating and moving files from /tmp can sometimes cause problems.
27332 # Hook for its removal unless debugging.
27333 # Note that there is a small window in which the directory will not be cleaned:
27334 # after its creation but before its name has been assigned to `$tmp'.
27338 trap 'exit_status=$?
27339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27341 trap '{ (exit 1); exit 1; }' 1 2 13 15
27343 # Create a (secure) tmp directory for tmp files.
27346 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27347 test -n "$tmp" && test -d "$tmp"
27350 tmp
=.
/conf$$
-$RANDOM
27351 (umask 077 && mkdir
"$tmp")
27354 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27355 { (exit 1); exit 1; }
27358 # Set up the scripts for CONFIG_FILES section.
27359 # No need to generate them if there are no CONFIG_FILES.
27360 # This happens for instance with `./config.status config.h'.
27361 if test -n "$CONFIG_FILES"; then
27366 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27367 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27370 ac_cs_awk_cr
=$ac_cr
27373 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27378 echo "cat >conf$$subs.awk <<_ACEOF" &&
27379 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27381 } >conf$$subs.sh ||
27382 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27383 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27384 { (exit 1); exit 1; }; }
27385 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27387 for ac_last_try in false false false false false :; do
27388 . ./conf$$subs.sh ||
27389 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27390 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27391 { (exit 1); exit 1; }; }
27393 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27394 if test $ac_delim_n = $ac_delim_num; then
27396 elif $ac_last_try; then
27397 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27398 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27399 { (exit 1); exit 1; }; }
27401 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27404 rm -f conf$$subs.sh
27406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27407 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27411 s/^/S["/; s
/!.
*/"]=/
27421 s/\(.\{148\}\).*/\1/
27423 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27428 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27435 s/\(.\{148\}\).*/\1/
27437 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27441 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27446 ' <conf$$subs.awk | sed '
27451 ' >>$CONFIG_STATUS || ac_write_fail=1
27452 rm -f conf$$subs.awk
27453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27455 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27456 for (key in S) S_is_set[key] = 1
27462 nfields = split(line, field, "@
")
27464 len = length(field[1])
27465 for (i = 2; i < nfields; i++) {
27467 keylen = length(key)
27468 if (S_is_set[key]) {
27470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27471 len += length(value) + length(field[++i])
27482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27483 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27484 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27487 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27488 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27489 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27490 { (exit 1); exit 1; }; }
27493 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27494 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27495 # trailing colons and then remove the whole line if VPATH becomes empty
27496 # (actually we leave an empty line to preserve line numbers).
27497 if test "x
$srcdir" = x.; then
27498 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27499 s/:*\$(srcdir):*/:/
27500 s/:*\${srcdir}:*/:/
27502 s/^\([^=]*=[ ]*\):*/\1/
27508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27509 fi # test -n "$CONFIG_FILES"
27511 # Set up the scripts for CONFIG_HEADERS section.
27512 # No need to generate them if there are no CONFIG_HEADERS.
27513 # This happens for instance with `./config.status Makefile'.
27514 if test -n "$CONFIG_HEADERS"; then
27515 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27519 # Transform confdefs.h into an awk script `defines.awk', embedded as
27520 # here-document in config.status, that substitutes the proper values into
27521 # config.h.in to produce config.h.
27523 # Create a delimiter string that does not exist in confdefs.h, to ease
27524 # handling of long lines.
27526 for ac_last_try in false false :; do
27527 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27528 if test -z "$ac_t"; then
27530 elif $ac_last_try; then
27531 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27532 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27533 { (exit 1); exit 1; }; }
27535 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27539 # For the awk script, D is an array of macro values keyed by name,
27540 # likewise P contains macro parameters if any. Preserve backslash
27541 # newline sequences.
27543 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27545 s/.\{148\}/&'"$ac_delim"'/g
27548 s/^[ ]*#[ ]*define[ ][ ]*/ /
27555 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27557 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27561 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27562 D["\
1"]=" \
3\\\\\\n
"\\/p
27564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27569 s/.\{148\}/&'"$ac_delim"'/g
27574 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27577 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27579 ' <confdefs.h | sed '
27580 s/'"$ac_delim"'/"\\\
27581 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27584 for (key in D) D_is_set[key] = 1
27587 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27589 split(line, arg, " ")
27590 if (arg[1] == "#") {
27594 defundef
= substr
(arg
[1], 2)
27597 split(mac1
, mac2
, "(") #)
27599 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27600 if (D_is_set
[macro
]) {
27601 # Preserve the white space surrounding the "#".
27602 print prefix
"define", macro P
[macro
] D
[macro
]
27605 # Replace #undef with comments. This is necessary, for example,
27606 # in the case of _POSIX_SOURCE, which is predefined and required
27607 # on some systems where configure will not decide to define it.
27608 if (defundef
== "undef") {
27609 print
"/*", prefix defundef
, macro
, "*/"
27617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27618 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27619 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27620 { (exit 1); exit 1; }; }
27621 fi # test -n "$CONFIG_HEADERS"
27624 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
27629 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27631 case $ac_mode$ac_tag in
27633 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27634 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27635 { (exit 1); exit 1; }; };;
27636 :[FH
]-) ac_tag
=-:-;;
27637 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27654 -) ac_f
="$tmp/stdin";;
27655 *) # Look for the file first in the build tree, then in the source tree
27656 # (if the path is not absolute). The absolute path cannot be DOS-style,
27657 # because $ac_f cannot contain `:'.
27661 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27663 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27664 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27665 { (exit 1); exit 1; }; };;
27667 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27668 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27671 # Let's still pretend it is `configure' which instantiates (i.e., don't
27672 # use $as_me), people would be surprised to read:
27673 # /* config.h. Generated by config.status. */
27674 configure_input
='Generated from '`
27675 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27677 if test x
"$ac_file" != x-
; then
27678 configure_input
="$ac_file. $configure_input"
27679 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27680 $as_echo "$as_me: creating $ac_file" >&6;}
27682 # Neutralize special characters interpreted by sed in replacement strings.
27683 case $configure_input in #(
27684 *\
&* |
*\|
* |
*\\* )
27685 ac_sed_conf_input
=`$as_echo "$configure_input" |
27686 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27687 *) ac_sed_conf_input
=$configure_input;;
27691 *:-:* |
*:-) cat >"$tmp/stdin" \
27692 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27693 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27694 { (exit 1); exit 1; }; } ;;
27699 ac_dir
=`$as_dirname -- "$ac_file" ||
27700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27701 X"$ac_file" : 'X\(//\)[^/]' \| \
27702 X"$ac_file" : 'X\(//\)$' \| \
27703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27704 $as_echo X"$ac_file" |
27705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27709 /^X\(\/\/\)[^/].*/{
27724 -*) as_dir
=.
/$as_dir;;
27726 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27730 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27731 *) as_qdir
=$as_dir;;
27733 as_dirs
="'$as_qdir' $as_dirs"
27734 as_dir
=`$as_dirname -- "$as_dir" ||
27735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27736 X"$as_dir" : 'X\(//\)[^/]' \| \
27737 X"$as_dir" : 'X\(//\)$' \| \
27738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27739 $as_echo X"$as_dir" |
27740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27744 /^X\(\/\/\)[^/].*/{
27757 test -d "$as_dir" && break
27759 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27760 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27761 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27762 { (exit 1); exit 1; }; }; }
27766 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27768 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27769 # A ".." for each directory in $ac_dir_suffix.
27770 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27771 case $ac_top_builddir_sub in
27772 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27773 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27776 ac_abs_top_builddir
=$ac_pwd
27777 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27778 # for backward compatibility:
27779 ac_top_builddir
=$ac_top_build_prefix
27782 .
) # We are building in place.
27784 ac_top_srcdir
=$ac_top_builddir_sub
27785 ac_abs_top_srcdir
=$ac_pwd ;;
27786 [\\/]* | ?
:[\\/]* ) # Absolute name.
27787 ac_srcdir
=$srcdir$ac_dir_suffix;
27788 ac_top_srcdir
=$srcdir
27789 ac_abs_top_srcdir
=$srcdir ;;
27790 *) # Relative name.
27791 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27792 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27793 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27795 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27805 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27806 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27811 # If the template does not know about datarootdir, expand it.
27812 # FIXME: This hack should be removed a few years after 2.60.
27813 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27826 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27827 *datarootdir
*) ac_datarootdir_seen
=yes;;
27828 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27829 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27830 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27833 ac_datarootdir_hack='
27834 s&@datadir@&$datadir&g
27835 s&@docdir@&$docdir&g
27836 s&@infodir@&$infodir&g
27837 s&@localedir@&$localedir&g
27838 s&@mandir@&$mandir&g
27839 s&\\\${datarootdir}&$datarootdir&g' ;;
27843 # Neutralize VPATH when `$srcdir' = `.'.
27844 # Shell code in configure.ac might set extrasub.
27845 # FIXME: do we really want to maintain this feature?
27846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27847 ac_sed_extra="$ac_vpsub
27850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27852 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27853 s|@configure_input@|
$ac_sed_conf_input|
;t t
27854 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27855 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27856 s
&@srcdir@
&$ac_srcdir&;t t
27857 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27858 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27859 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27860 s
&@builddir@
&$ac_builddir&;t t
27861 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27862 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27863 s
&@INSTALL@
&$ac_INSTALL&;t t
27864 $ac_datarootdir_hack
27866 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27867 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27868 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27869 { (exit 1); exit 1; }; }
27871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27872 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27874 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27875 which seems to be undefined. Please make sure it is defined." >&5
27876 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27877 which seems to be undefined. Please make sure it is defined." >&2;}
27881 -) cat "$tmp/out" && rm -f "$tmp/out";;
27882 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27884 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27885 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27886 { (exit 1); exit 1; }; }
27892 if test x"$ac_file" != x-; then
27894 $as_echo "/* $configure_input */" \
27895 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27896 } >"$tmp/config.h" \
27897 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27898 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27899 { (exit 1); exit 1; }; }
27900 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27901 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27902 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27905 mv "$tmp/config.h" "$ac_file" \
27906 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27907 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27908 { (exit 1); exit 1; }; }
27911 $as_echo "/* $configure_input */" \
27912 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27913 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27914 $as_echo "$as_me: error: could not create -" >&2;}
27915 { (exit 1); exit 1; }; }
27925 { (exit 0); exit 0; }
27927 chmod +x $CONFIG_STATUS
27928 ac_clean_files=$ac_clean_files_save
27930 test $ac_write_fail = 0 ||
27931 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27932 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27933 { (exit 1); exit 1; }; }
27936 # configure is writing to config.log, and then calls config.status.
27937 # config.status does its own redirection, appending to config.log.
27938 # Unfortunately, on DOS this fails, as config.log is still kept open
27939 # by configure, so config.status won't be able to
write to it
; its
27940 # output is simply discarded. So we exec the FD to /dev/null,
27941 # effectively closing config.log, so it can be properly (re)opened and
27942 # appended to by config.status. When coming back to configure, we
27943 # need to make the FD available again.
27944 if test "$no_create" != yes; then
27946 ac_config_status_args
=
27947 test "$silent" = yes &&
27948 ac_config_status_args
="$ac_config_status_args --quiet"
27950 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27953 # would make configure fail if this is the last instruction.
27954 $ac_cs_success ||
{ (exit 1); exit 1; }
27956 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27957 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27958 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27962 echo "creating Modules/Setup"
27963 if test ! -f Modules
/Setup
27965 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27968 echo "creating Modules/Setup.local"
27969 if test ! -f Modules
/Setup.
local
27971 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27974 echo "creating Makefile"
27975 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27976 -s Modules Modules
/Setup.config \
27977 Modules
/Setup.
local Modules
/Setup
27978 mv config.c Modules