2 # From configure.in Revision: 56636 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='python'
272 PACKAGE_TARNAME
='python'
273 PACKAGE_VERSION
='2.6'
274 PACKAGE_STRING
='python 2.6'
275 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
277 ac_unique_file
="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures python 2.6 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive
) echo "Configuration of python 2.6:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-universalsdk[SDKDIR
]
849 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
850 --enable-framework[=INSTALLDIR
]
851 Build
(MacOSX|Darwin
) framework
852 --enable-shared disable
/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
855 --enable-ipv6 Enable ipv6
(with ipv4
) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs
[24]]
858 Enable Unicode
strings (default is
yes)
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler
>
865 compile main
() and link python executable with C
++
867 --with-suffix=.exe
set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable
/enable signal module
872 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
873 --with(out
)-threads[=DIRECTORY
]
874 disable
/enable thread support
875 --with(out
)-thread[=DIRECTORY
]
876 deprecated
; use
--with(out
)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out
)-doc-strings disable
/enable documentation
strings
879 --with(out
)-tsc enable
/disable timestamp counter profile
880 --with(out
)-pymalloc disable
/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.6, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables
, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1357 mv confdefs.h.new confdefs.h
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h
<<\_ACEOF
1369 #define _GNU_SOURCE 1
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1386 cat >>confdefs.h
<<\_ACEOF
1387 #define __BSD_VISIBLE 1
1391 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
1392 # also defined. This can be overridden by defining _BSD_SOURCE
1394 cat >>confdefs.h
<<\_ACEOF
1395 #define _BSD_SOURCE 1
1399 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1400 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1402 cat >>confdefs.h
<<\_ACEOF
1403 #define _BSD_TYPES 1
1407 define_xopen_source
=yes
1409 # Arguments passed to configure.
1411 CONFIG_ARGS
="$ac_configure_args"
1413 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1414 if test "${enable_universalsdk+set}" = set; then
1415 enableval
="$enable_universalsdk"
1419 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
1425 enable_universalsdk
=
1428 UNIVERSALSDK
=$enableval
1435 enable_universalsdk
=
1440 # Check whether --enable-framework or --disable-framework was given.
1441 if test "${enable_framework+set}" = set; then
1442 enableval
="$enable_framework"
1446 enableval
=/Library
/Frameworks
1451 PYTHONFRAMEWORKDIR
=no-framework
1452 PYTHONFRAMEWORKPREFIX
=
1453 PYTHONFRAMEWORKINSTALLDIR
=
1454 FRAMEWORKINSTALLFIRST
=
1455 FRAMEWORKINSTALLLAST
=
1456 FRAMEWORKALTINSTALLFIRST
=
1457 FRAMEWORKALTINSTALLLAST
=
1458 if test "x${prefix}" = "xNONE"; then
1459 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1461 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1466 PYTHONFRAMEWORK
=Python
1467 PYTHONFRAMEWORKDIR
=Python.framework
1468 PYTHONFRAMEWORKPREFIX
=$enableval
1469 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1470 FRAMEWORKINSTALLFIRST
="frameworkinstallstructure"
1471 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1472 FRAMEWORKALTINSTALLFIRST
="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1473 FRAMEWORKALTINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1474 if test "x${prefix}" = "xNONE" ; then
1475 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1477 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1479 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1481 # Add makefiles for Mac specific code to the list of output
1483 ac_config_files
="$ac_config_files Mac/Makefile"
1485 ac_config_files
="$ac_config_files Mac/PythonLauncher/Makefile"
1487 ac_config_files
="$ac_config_files Mac/IDLE/Makefile"
1494 PYTHONFRAMEWORKDIR
=no-framework
1495 PYTHONFRAMEWORKPREFIX
=
1496 PYTHONFRAMEWORKINSTALLDIR
=
1497 FRAMEWORKINSTALLFIRST
=
1498 FRAMEWORKINSTALLLAST
=
1499 FRAMEWORKALTINSTALLFIRST
=
1500 FRAMEWORKALTINSTALLLAST
=
1501 if test "x${prefix}" = "xNONE" ; then
1502 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1504 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1520 ## AC_HELP_STRING(--with-dyld,
1521 ## Use (OpenStep|Rhapsody) dynamic linker))
1523 # Set name for machine-dependent library files
1525 echo "$as_me:$LINENO: checking MACHDEP" >&5
1526 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1527 if test -z "$MACHDEP"
1529 ac_sys_system
=`uname -s`
1530 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1531 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1532 ac_sys_release
=`uname -v`
1534 ac_sys_release
=`uname -r`
1536 ac_md_system
=`echo $ac_sys_system |
1537 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1538 ac_md_release
=`echo $ac_sys_release |
1539 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1540 MACHDEP
="$ac_md_system$ac_md_release"
1543 cygwin
*) MACHDEP
="cygwin";;
1544 darwin
*) MACHDEP
="darwin";;
1545 atheos
*) MACHDEP
="atheos";;
1546 irix646
) MACHDEP
="irix6";;
1547 '') MACHDEP
="unknown";;
1551 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1552 # disable features if it is defined, without any means to access these
1553 # features as extensions. For these systems, we skip the definition of
1554 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1555 # some feature, make sure there is no alternative way to access this
1556 # feature. Also, when using wildcards, make sure you have verified the
1557 # need for not defining _XOPEN_SOURCE on all systems matching the
1558 # wildcard, and that the wildcard does not include future systems
1559 # (which may remove their limitations).
1560 case $ac_sys_system/$ac_sys_release in
1561 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1562 # even though select is a POSIX function. Reported by J. Ribbens.
1563 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1564 OpenBSD
/2.
* | OpenBSD
/3.
[0123456789] | OpenBSD
/4.
[0])
1565 define_xopen_source
=no
;;
1566 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1567 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1569 NetBSD
/1.5 | NetBSD
/1.5.
* | NetBSD
/1.6 | NetBSD
/1.6.
* | NetBSD
/1.6A-S
)
1570 define_xopen_source
=no
;;
1571 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1572 # of union __?sigval. Reported by Stuart Bishop.
1574 define_xopen_source
=no
;;
1575 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1576 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1577 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1578 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1579 define_xopen_source
=no
;;
1580 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1581 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1583 define_xopen_source
=no
;;
1584 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1585 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1586 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1587 # This should hopefully be fixed in FreeBSD 4.9
1588 FreeBSD
/4.8* | Darwin
/6* )
1589 define_xopen_source
=no
;;
1590 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1591 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1592 # or has another value. By not (re)defining it, the defaults come in place.
1594 define_xopen_source
=no
;;
1596 if test `uname -r` -eq 1; then
1597 define_xopen_source
=no
1600 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1601 # disables platform specific features beyond repair.
1602 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1603 # has no effect, don't bother defining them
1605 define_xopen_source
=no
1610 if test $define_xopen_source = yes
1612 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1613 # defined precisely as g++ defines it
1614 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1616 case $ac_sys_system/$ac_sys_release in
1617 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1619 cat >>confdefs.h
<<\_ACEOF
1620 #define _XOPEN_SOURCE 500
1626 cat >>confdefs.h
<<\_ACEOF
1627 #define _XOPEN_SOURCE 600
1633 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1634 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1635 # several APIs are not declared. Since this is also needed in some
1636 # cases for HP-UX, we define it globally.
1637 # except for Solaris 10, where it must not be defined,
1638 # as it implies XPG4.2
1639 case $ac_sys_system/$ac_sys_release in
1644 cat >>confdefs.h
<<\_ACEOF
1645 #define _XOPEN_SOURCE_EXTENDED 1
1652 cat >>confdefs.h
<<\_ACEOF
1653 #define _POSIX_C_SOURCE 200112L
1660 # SGI compilers allow the specification of the both the ABI and the
1661 # ISA on the command line. Depending on the values of these switches,
1662 # different and often incompatable code will be generated.
1664 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1665 # thus supply support for various ABI/ISA combinations. The MACHDEP
1666 # variable is also adjusted.
1669 if test ! -z "$SGI_ABI"
1672 LDFLAGS
="$SGI_ABI $LDFLAGS"
1673 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1675 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1676 echo "${ECHO_T}$MACHDEP" >&6
1678 # And add extra plat-mac for darwin
1681 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1682 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1683 if test -z "$EXTRAPLATDIR"
1687 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1688 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1696 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1697 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1699 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1700 # it may influence the way we can build extensions, so distutils
1704 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1705 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1707 # checks for alternative programs
1709 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1710 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1711 # just to get things to compile and link. Users are free to override OPT
1712 # when running configure or make. The build should not break if they do.
1713 # BASECFLAGS should generally not be messed with, however.
1715 # XXX shouldn't some/most/all of this code be merged with the stuff later
1716 # on that fiddles with OPT and BASECFLAGS?
1717 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1718 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1720 # Check whether --with-gcc or --without-gcc was given.
1721 if test "${with_gcc+set}" = set; then
1730 without_gcc
=$withval;;
1734 case $ac_sys_system in
1738 case $BE_HOST_CPU in
1742 BASECFLAGS
="$BASECFLAGS -export pragma"
1744 LDFLAGS
="$LDFLAGS -nodup"
1752 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1753 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1754 { (exit 1); exit 1; }; }
1757 AR
="\$(srcdir)/Modules/ar_beos"
1766 echo "$as_me:$LINENO: result: $without_gcc" >&5
1767 echo "${ECHO_T}$without_gcc" >&6
1769 # If the user switches compilers, we can't believe the cache
1770 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1772 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1773 (it is also a good idea to do 'make clean' before compiling)" >&5
1774 echo "$as_me: error: cached CC is different -- throw away $cache_file
1775 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1776 { (exit 1); exit 1; }; }
1780 ac_cpp
='$CPP $CPPFLAGS'
1781 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1784 if test -n "$ac_tool_prefix"; then
1785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1786 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC
="$CC" # Let the user override the test.
1795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1799 test -z "$as_dir" && as_dir
=.
1800 for ac_exec_ext
in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1821 if test -z "$ac_cv_prog_CC"; then
1823 # Extract the first word of "gcc", so it can be a program name with args.
1824 set dummy gcc
; ac_word
=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 if test -n "$ac_ct_CC"; then
1831 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1837 test -z "$as_dir" && as_dir
=.
1838 for ac_exec_ext
in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_ac_ct_CC
="gcc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1850 if test -n "$ac_ct_CC"; then
1851 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1852 echo "${ECHO_T}$ac_ct_CC" >&6
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1863 if test -z "$CC"; then
1864 if test -n "$ac_tool_prefix"; then
1865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1866 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC
="$CC" # Let the user override the test.
1875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir
=.
1880 for ac_exec_ext
in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 if test -n "$CC"; then
1893 echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1901 if test -z "$ac_cv_prog_CC"; then
1903 # Extract the first word of "cc", so it can be a program name with args.
1904 set dummy cc
; ac_word
=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$ac_ct_CC"; then
1911 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir
=.
1918 for ac_exec_ext
in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_ac_ct_CC
="cc"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1930 if test -n "$ac_ct_CC"; then
1931 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1932 echo "${ECHO_T}$ac_ct_CC" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1944 if test -z "$CC"; then
1945 # Extract the first word of "cc", so it can be a program name with args.
1946 set dummy cc
; ac_word
=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$CC"; then
1953 ac_cv_prog_CC
="$CC" # Let the user override the test.
1956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1960 test -z "$as_dir" && as_dir
=.
1961 for ac_exec_ext
in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1964 ac_prog_rejected
=yes
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 if test $ac_prog_rejected = yes; then
1975 # We found a bogon in the path, so make sure we never use it.
1976 set dummy
$ac_cv_prog_CC
1978 if test $# != 0; then
1979 # We chose a different compiler from the bogus one.
1980 # However, it has the same basename, so the bogon will be chosen
1981 # first if we set CC to just the basename; use the full file name.
1983 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1989 if test -n "$CC"; then
1990 echo "$as_me:$LINENO: result: $CC" >&5
1991 echo "${ECHO_T}$CC" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1998 if test -z "$CC"; then
1999 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC
="$CC" # Let the user override the test.
2012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir
=.
2017 for ac_exec_ext
in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2037 test -n "$CC" && break
2040 if test -z "$CC"; then
2044 # Extract the first word of "$ac_prog", so it can be a program name with args.
2045 set dummy
$ac_prog; ac_word
=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir
=.
2059 for ac_exec_ext
in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CC
="$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 test -n "$ac_ct_CC" && break
2088 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: no acceptable C compiler found in \$PATH
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }
2094 # Provide some information about the compiler.
2095 echo "$as_me:$LINENO:" \
2096 "checking for C compiler version" >&5
2097 ac_compiler
=`set X $ac_compile; echo $2`
2098 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2099 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2104 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2109 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2114 cat >conftest.
$ac_ext <<_ACEOF
2117 cat confdefs.h
>>conftest.
$ac_ext
2118 cat >>conftest.
$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2129 ac_clean_files_save
=$ac_clean_files
2130 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2131 # Try to create an executable without -o first, disregard a.out.
2132 # It will help us diagnose broken compilers, and finding out an intuition
2134 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2135 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2136 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2137 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2138 (eval $ac_link_default) 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; then
2142 # Find the output, starting from the most likely. This scheme is
2143 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2146 # Be careful to initialize this variable, since it used to be cached.
2147 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2149 # b.out is created by i960 compilers.
2150 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2152 test -f "$ac_file" ||
continue
2154 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2157 # This is the source file.
2160 # We found the default executable, but exeext='' is most
2164 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2165 # FIXME: I believe we export ac_cv_exeext for Libtool,
2166 # but it would be cool to find out if it's true. Does anybody
2167 # maintain Libtool? --akim.
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.
$ac_ext >&5
2178 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2179 See \`config.log' for more details." >&5
2180 echo "$as_me: error: C compiler cannot create executables
2181 See \`config.log' for more details." >&2;}
2182 { (exit 77); exit 77; }; }
2185 ac_exeext
=$ac_cv_exeext
2186 echo "$as_me:$LINENO: result: $ac_file" >&5
2187 echo "${ECHO_T}$ac_file" >&6
2189 # Check the compiler produces executables we can run. If not, either
2190 # the compiler is broken, or we cross compile.
2191 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2192 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2193 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2194 # If not cross compiling, check that we can run a simple program.
2195 if test "$cross_compiling" != yes; then
2196 if { ac_try
='./$ac_file'
2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; }; then
2204 if test "$cross_compiling" = maybe
; then
2207 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2208 If you meant to cross compile, use \`--host'.
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: cannot run C compiled programs.
2211 If you meant to cross compile, use \`--host'.
2212 See \`config.log' for more details." >&2;}
2213 { (exit 1); exit 1; }; }
2217 echo "$as_me:$LINENO: result: yes" >&5
2218 echo "${ECHO_T}yes" >&6
2220 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2221 ac_clean_files
=$ac_clean_files_save
2222 # Check the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2225 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2226 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2227 echo "${ECHO_T}$cross_compiling" >&6
2229 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2230 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2232 (eval $ac_link) 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; then
2236 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2237 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2238 # work properly (i.e., refer to `conftest.exe'), while it won't with
2240 for ac_file
in conftest.exe conftest conftest.
*; do
2241 test -f "$ac_file" ||
continue
2243 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2244 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2251 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2258 rm -f conftest
$ac_cv_exeext
2259 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2260 echo "${ECHO_T}$ac_cv_exeext" >&6
2262 rm -f conftest.
$ac_ext
2263 EXEEXT
=$ac_cv_exeext
2265 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2266 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2267 if test "${ac_cv_objext+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 cat >conftest.
$ac_ext <<_ACEOF
2273 cat confdefs.h
>>conftest.
$ac_ext
2274 cat >>conftest.
$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2285 rm -f conftest.o conftest.obj
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; then
2291 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2293 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2294 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.
$ac_ext >&5
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2311 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2312 echo "${ECHO_T}$ac_cv_objext" >&6
2313 OBJEXT
=$ac_cv_objext
2315 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2316 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2317 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 cat >conftest.
$ac_ext <<_ACEOF
2323 cat confdefs.h
>>conftest.
$ac_ext
2324 cat >>conftest.
$ac_ext <<_ACEOF
2325 /* end confdefs.h. */
2338 rm -f conftest.
$ac_objext
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340 (eval $ac_compile) 2>conftest.er1
2342 grep -v '^ *+' conftest.er1
>conftest.err
2344 cat conftest.err
>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try
='test -z "$ac_c_werror_flag"
2348 || test ! -s conftest.err'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; } &&
2354 { ac_try
='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.
$ac_ext >&5
2367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2368 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2371 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2373 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2374 ac_test_CFLAGS
=${CFLAGS+set}
2375 ac_save_CFLAGS
=$CFLAGS
2377 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2378 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2379 if test "${ac_cv_prog_cc_g+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.
$ac_ext <<_ACEOF
2385 cat confdefs.h
>>conftest.
$ac_ext
2386 cat >>conftest.
$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.
$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2401 grep -v '^ *+' conftest.er1
>conftest.err
2403 cat conftest.err
>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try
='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try
='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.
$ac_ext >&5
2426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2430 if test "$ac_test_CFLAGS" = set; then
2431 CFLAGS
=$ac_save_CFLAGS
2432 elif test $ac_cv_prog_cc_g = yes; then
2433 if test "$GCC" = yes; then
2439 if test "$GCC" = yes; then
2445 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2446 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2447 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 ac_cv_prog_cc_stdc
=no
2452 cat >conftest.
$ac_ext <<_ACEOF
2455 cat confdefs.h
>>conftest.
$ac_ext
2456 cat >>conftest.
$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2460 #include <sys/types.h>
2461 #include <sys/stat.h>
2462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2463 struct buf { int x; };
2464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2465 static char *e (p, i)
2471 static char *f (char * (*g) (char **, int), char **p, ...)
2476 s = g (p, va_arg (v,int));
2481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2482 function prototypes and stuff, but not '\xHH' hex character constants.
2483 These don't provoke an error unfortunately, instead are silently treated
2484 as 'x'. The following induces an error, until -std1 is added to get
2485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2486 array size at least. It's necessary to write '\x00'==0 to get something
2487 that's true only with -std1. */
2488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2490 int test (int i, double x);
2491 struct s1 {int (*f) (int a);};
2492 struct s2 {int (*f) (double a);};
2493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2504 # Don't try gcc -ansi; that turns off useful extensions and
2505 # breaks some systems' header files.
2506 # AIX -qlanglvl=ansi
2507 # Ultrix and OSF/1 -std1
2508 # HP-UX 10.20 and later -Ae
2509 # HP-UX older versions -Aa -D_HPUX_SOURCE
2510 # SVR4 -Xc -D__EXTENSIONS__
2511 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2513 CC
="$ac_save_CC $ac_arg"
2514 rm -f conftest.
$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2518 grep -v '^ *+' conftest.er1
>conftest.err
2520 cat conftest.err
>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try
='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try
='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 ac_cv_prog_cc_stdc
=$ac_arg
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.
$ac_ext >&5
2543 rm -f conftest.err conftest.
$ac_objext
2545 rm -f conftest.
$ac_ext conftest.
$ac_objext
2550 case "x$ac_cv_prog_cc_stdc" in
2552 echo "$as_me:$LINENO: result: none needed" >&5
2553 echo "${ECHO_T}none needed" >&6 ;;
2555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2556 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2557 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2560 # Some people use a C++ compiler to compile C. Since we use `exit',
2561 # in C++ we need to declare it. In case someone uses the same compiler
2562 # for both compiling C and C++ we need to have the C++ compiler decide
2563 # the declaration of exit, since it's the most demanding environment.
2564 cat >conftest.
$ac_ext <<_ACEOF
2569 rm -f conftest.
$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>conftest.er1
2573 grep -v '^ *+' conftest.er1
>conftest.err
2575 cat conftest.err
>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try
='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try
='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 for ac_declaration
in \
2593 'extern "C" void std::exit (int) throw (); using std::exit;' \
2594 'extern "C" void std::exit (int); using std::exit;' \
2595 'extern "C" void exit (int) throw ();' \
2596 'extern "C" void exit (int);' \
2599 cat >conftest.
$ac_ext <<_ACEOF
2602 cat confdefs.h
>>conftest.
$ac_ext
2603 cat >>conftest.
$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2615 rm -f conftest.
$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2619 grep -v '^ *+' conftest.er1
>conftest.err
2621 cat conftest.err
>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try
='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try
='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.
$ac_ext >&5
2644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2645 cat >conftest.
$ac_ext <<_ACEOF
2648 cat confdefs.h
>>conftest.
$ac_ext
2649 cat >>conftest.
$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2660 rm -f conftest.
$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2664 grep -v '^ *+' conftest.er1
>conftest.err
2666 cat conftest.err
>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try
='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try
='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.
$ac_ext >&5
2688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2691 if test -n "$ac_declaration"; then
2692 echo '#ifdef __cplusplus' >>confdefs.h
2693 echo $ac_declaration >>confdefs.h
2694 echo '#endif' >>confdefs.h
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.
$ac_ext >&5
2702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2704 ac_cpp
='$CPP $CPPFLAGS'
2705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2712 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2713 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2715 # Check whether --with-cxx_main or --without-cxx_main was given.
2716 if test "${with_cxx_main+set}" = set; then
2717 withval
="$with_cxx_main"
2721 no
) with_cxx_main
=no
2723 yes) with_cxx_main
=yes
2725 *) with_cxx_main
=yes
2738 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2739 echo "${ECHO_T}$with_cxx_main" >&6
2745 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2746 set dummy g
++; ac_word
=$2
2747 echo "$as_me:$LINENO: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749 if test "${ac_cv_path_CXX+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2758 for as_dir
in notfound
2761 test -z "$as_dir" && as_dir
=.
2762 for ac_exec_ext
in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2777 if test -n "$CXX"; then
2778 echo "$as_me:$LINENO: result: $CXX" >&5
2779 echo "${ECHO_T}$CXX" >&6
2781 echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6
2785 cc
) # Extract the first word of "c++", so it can be a program name with args.
2786 set dummy c
++; ac_word
=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_path_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2798 for as_dir
in notfound
2801 test -z "$as_dir" && as_dir
=.
2802 for ac_exec_ext
in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2817 if test -n "$CXX"; then
2818 echo "$as_me:$LINENO: result: $CXX" >&5
2819 echo "${ECHO_T}$CXX" >&6
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2826 if test "$CXX" = "notfound"
2833 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy
$ac_prog; ac_word
=$2
2837 echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839 if test "${ac_cv_prog_CXX+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$CXX"; then
2843 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir
=.
2850 for ac_exec_ext
in '' $ac_executable_extensions; do
2851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_CXX
="$ac_prog"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 if test -n "$CXX"; then
2863 echo "$as_me:$LINENO: result: $CXX" >&5
2864 echo "${ECHO_T}$CXX" >&6
2866 echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6
2870 test -n "$CXX" && break
2872 test -n "$CXX" || CXX
="notfound"
2874 if test "$CXX" = "notfound"
2879 if test "$preset_cxx" != "$CXX"
2881 { echo "$as_me:$LINENO: WARNING:
2883 By default, distutils will build C++ extension modules with \"$CXX\".
2884 If this is not intended, then set CXX on the configure command line.
2886 echo "$as_me: WARNING:
2888 By default, distutils will build C++ extension modules with \"$CXX\".
2889 If this is not intended, then set CXX on the configure command line.
2894 # checks for UNIX variants that set C preprocessor variables
2897 ac_cpp
='$CPP $CPPFLAGS'
2898 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 # Double quotes because CPP needs to be expanded
2912 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2915 for ac_c_preproc_warn_flag
in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.
$ac_ext <<_ACEOF
2926 cat confdefs.h
>>conftest.
$ac_ext
2927 cat >>conftest.
$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2930 # include <limits.h>
2932 # include <assert.h>
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2939 grep -v '^ *+' conftest.er1
>conftest.err
2941 cat conftest.err
>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev
/null
; then
2944 if test -s conftest.err
; then
2945 ac_cpp_err
=$ac_c_preproc_warn_flag
2946 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2953 if test -z "$ac_cpp_err"; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.
$ac_ext >&5
2959 # Broken: fails on valid input.
2962 rm -f conftest.err conftest.
$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.
$ac_ext <<_ACEOF
2969 cat confdefs.h
>>conftest.
$ac_ext
2970 cat >>conftest.
$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1
>conftest.err
2979 cat conftest.err
>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev
/null
; then
2982 if test -s conftest.err
; then
2983 ac_cpp_err
=$ac_c_preproc_warn_flag
2984 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.
$ac_ext >&5
2998 # Passes both tests.
3002 rm -f conftest.err conftest.
$ac_ext
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.
$ac_ext
3007 if $ac_preproc_ok; then
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3022 for ac_c_preproc_warn_flag
in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.
$ac_ext <<_ACEOF
3033 cat confdefs.h
>>conftest.
$ac_ext
3034 cat >>conftest.
$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3037 # include <limits.h>
3039 # include <assert.h>
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1
>conftest.err
3048 cat conftest.err
>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev
/null
; then
3051 if test -s conftest.err
; then
3052 ac_cpp_err
=$ac_c_preproc_warn_flag
3053 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3060 if test -z "$ac_cpp_err"; then
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.
$ac_ext >&5
3066 # Broken: fails on valid input.
3069 rm -f conftest.err conftest.
$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.
$ac_ext <<_ACEOF
3076 cat confdefs.h
>>conftest.
$ac_ext
3077 cat >>conftest.
$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3084 grep -v '^ *+' conftest.er1
>conftest.err
3086 cat conftest.err
>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev
/null
; then
3089 if test -s conftest.err
; then
3090 ac_cpp_err
=$ac_c_preproc_warn_flag
3091 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.
$ac_ext >&5
3105 # Passes both tests.
3109 rm -f conftest.err conftest.
$ac_ext
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.
$ac_ext
3114 if $ac_preproc_ok; then
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3125 ac_cpp
='$CPP $CPPFLAGS'
3126 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3131 echo "$as_me:$LINENO: checking for egrep" >&5
3132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3133 if test "${ac_cv_prog_egrep+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3137 then ac_cv_prog_egrep
='grep -E'
3138 else ac_cv_prog_egrep
='egrep'
3141 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3142 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3143 EGREP
=$ac_cv_prog_egrep
3147 echo "$as_me:$LINENO: checking for AIX" >&5
3148 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3149 cat >conftest.
$ac_ext <<_ACEOF
3152 cat confdefs.h
>>conftest.
$ac_ext
3153 cat >>conftest.
$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 $EGREP "yes" >/dev
/null
2>&1; then
3162 echo "$as_me:$LINENO: result: yes" >&5
3163 echo "${ECHO_T}yes" >&6
3164 cat >>confdefs.h
<<\_ACEOF
3165 #define _ALL_SOURCE 1
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3176 # Check for unsupported systems
3177 case $ac_sys_system/$ac_sys_release in
3179 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3180 echo See README
for details.
3185 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3186 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3188 # Check whether --with-suffix or --without-suffix was given.
3189 if test "${with_suffix+set}" = set; then
3190 withval
="$with_suffix"
3195 *) EXEEXT
=$withval;;
3198 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3199 echo "${ECHO_T}$EXEEXT" >&6
3201 # Test whether we're running on a non-case-sensitive system, in which
3202 # case we give a warning if no ext is given
3204 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3205 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3206 if test ! -d CaseSensitiveTestDir
; then
3207 mkdir CaseSensitiveTestDir
3210 if test -d casesensitivetestdir
3212 echo "$as_me:$LINENO: result: yes" >&5
3213 echo "${ECHO_T}yes" >&6
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3220 rmdir CaseSensitiveTestDir
3225 gcc
) CC
="$CC -D_HAVE_BSDI";;
3229 case $ac_sys_system in
3232 cc|
*/cc
) CC
="$CC -Ae";;
3236 cc
) CC
="$CC -Wl,-Bexport";;
3239 # Some functions have a prototype only with that define, e.g. confstr
3241 cat >>confdefs.h
<<\_ACEOF
3242 #define __EXTENSIONS__ 1
3250 echo "$as_me:$LINENO: checking LIBRARY" >&5
3251 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3252 if test -z "$LIBRARY"
3254 LIBRARY
='libpython$(VERSION).a'
3256 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3257 echo "${ECHO_T}$LIBRARY" >&6
3259 # LDLIBRARY is the name of the library to link against (as opposed to the
3260 # name of the library into which to insert object files). BLDLIBRARY is also
3261 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3262 # is blank as the main program is not linked directly against LDLIBRARY.
3263 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3264 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3265 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3266 # DLLLIBRARY is the shared (i.e., DLL) library.
3268 # RUNSHARED is used to run shared python without installed libraries
3270 # INSTSONAME is the name of the shared library that will be use to install
3271 # on the system - some systems like version suffix, others don't
3278 LDLIBRARY
="$LIBRARY"
3279 BLDLIBRARY
='$(LDLIBRARY)'
3280 INSTSONAME
='$(LDLIBRARY)'
3285 # LINKCC is the command that links the python executable -- default is $(CC).
3286 # If CXX is set, and if it is needed to link a main function that was
3287 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3288 # python might then depend on the C++ runtime
3289 # This is altered for AIX in order to build the export list before
3292 echo "$as_me:$LINENO: checking LINKCC" >&5
3293 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3294 if test -z "$LINKCC"
3296 LINKCC
='$(PURIFY) $(MAINCC)'
3297 case $ac_sys_system in
3300 if test $ac_sys_release -ge 5 -o \
3301 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3304 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3306 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3309 echo "$as_me:$LINENO: result: $LINKCC" >&5
3310 echo "${ECHO_T}$LINKCC" >&6
3312 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3313 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3314 # Check whether --enable-shared or --disable-shared was given.
3315 if test "${enable_shared+set}" = set; then
3316 enableval
="$enable_shared"
3320 if test -z "$enable_shared"
3322 case $ac_sys_system in
3324 enable_shared
="yes";;
3326 enable_shared
="no";;
3329 echo "$as_me:$LINENO: result: $enable_shared" >&5
3330 echo "${ECHO_T}$enable_shared" >&6
3332 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3333 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3334 # Check whether --enable-profiling or --disable-profiling was given.
3335 if test "${enable_profiling+set}" = set; then
3336 enableval
="$enable_profiling"
3339 if test "$cross_compiling" = yes; then
3340 ac_enable_profiling
="no"
3342 cat >conftest.
$ac_ext <<_ACEOF
3345 cat confdefs.h
>>conftest.
$ac_ext
3346 cat >>conftest.
$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 int main() { return 0; }
3350 rm -f conftest
$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352 (eval $ac_link) 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_enable_profiling
="yes"
3363 echo "$as_me: program exited with status $ac_status" >&5
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.
$ac_ext >&5
3368 ac_enable_profiling
="no"
3370 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3374 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3375 echo "${ECHO_T}$ac_enable_profiling" >&6
3377 case "$ac_enable_profiling" in
3379 BASECFLAGS
="-pg $BASECFLAGS"
3380 LDFLAGS
="-pg $LDFLAGS"
3384 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3385 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3387 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3388 # library that we build, but we do not want to link against it (we
3389 # will find it with a -framework option). For this reason there is an
3390 # extra variable BLDLIBRARY against which Python and the extension
3391 # modules are linked, BLDLIBRARY. This is normally the same as
3392 # LDLIBRARY, but empty for MacOSX framework builds.
3393 if test "$enable_framework"
3395 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3396 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3399 BLDLIBRARY
='$(LDLIBRARY)'
3402 # Other platforms follow
3403 if test $enable_shared = "yes"; then
3405 cat >>confdefs.h
<<\_ACEOF
3406 #define Py_ENABLE_SHARED 1
3409 case $ac_sys_system in
3411 LDLIBRARY
='libpython$(VERSION).so'
3414 LDLIBRARY
='libpython$(VERSION).dll.a'
3415 DLLLIBRARY
='libpython$(VERSION).dll'
3418 LDLIBRARY
='libpython$(VERSION).so'
3419 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3420 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3421 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3423 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3424 LDLIBRARY
='libpython$(VERSION).so'
3425 BLDLIBRARY
='-L. -lpython$(VERSION)'
3426 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3427 case $ac_sys_system in
3429 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3432 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3437 LDLIBRARY
='libpython$(VERSION).so'
3440 LDLIBRARY
='libpython$(VERSION).sl'
3443 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3444 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3447 LDLIBRARY
='libpython$(VERSION).so'
3448 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3449 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3452 LDLIBRARY
='libpython$(VERSION).so'
3453 BLDLIBRARY
='-L. -lpython$(VERSION)'
3454 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3457 else # shared is disabled
3458 case $ac_sys_system in
3460 BLDLIBRARY
='$(LIBRARY)'
3461 LDLIBRARY
='libpython$(VERSION).dll.a'
3466 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3467 echo "${ECHO_T}$LDLIBRARY" >&6
3469 if test -n "$ac_tool_prefix"; then
3470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3471 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_RANLIB+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 if test -n "$RANLIB"; then
3478 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir
=.
3485 for ac_exec_ext
in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 RANLIB
=$ac_cv_prog_RANLIB
3497 if test -n "$RANLIB"; then
3498 echo "$as_me:$LINENO: result: $RANLIB" >&5
3499 echo "${ECHO_T}$RANLIB" >&6
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3506 if test -z "$ac_cv_prog_RANLIB"; then
3507 ac_ct_RANLIB
=$RANLIB
3508 # Extract the first word of "ranlib", so it can be a program name with args.
3509 set dummy ranlib
; ac_word
=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if test -n "$ac_ct_RANLIB"; then
3516 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir
=.
3523 for ac_exec_ext
in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3535 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3536 if test -n "$ac_ct_RANLIB"; then
3537 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3538 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3540 echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3544 RANLIB
=$ac_ct_RANLIB
3546 RANLIB
="$ac_cv_prog_RANLIB"
3550 for ac_prog
in ar aal
3552 # Extract the first word of "$ac_prog", so it can be a program name with args.
3553 set dummy
$ac_prog; ac_word
=$2
3554 echo "$as_me:$LINENO: checking for $ac_word" >&5
3555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3556 if test "${ac_cv_prog_AR+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 if test -n "$AR"; then
3560 ac_cv_prog_AR
="$AR" # Let the user override the test.
3562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir
=.
3567 for ac_exec_ext
in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_AR
="$ac_prog"
3570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$AR"; then
3580 echo "$as_me:$LINENO: result: $AR" >&5
3581 echo "${ECHO_T}$AR" >&6
3583 echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6
3587 test -n "$AR" && break
3589 test -n "$AR" || AR
="ar"
3593 # Extract the first word of "svnversion", so it can be a program name with args.
3594 set dummy svnversion
; ac_word
=$2
3595 echo "$as_me:$LINENO: checking for $ac_word" >&5
3596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 if test -n "$SVNVERSION"; then
3601 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir
=.
3608 for ac_exec_ext
in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_SVNVERSION
="found"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3620 SVNVERSION
=$ac_cv_prog_SVNVERSION
3621 if test -n "$SVNVERSION"; then
3622 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3623 echo "${ECHO_T}$SVNVERSION" >&6
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3629 if test $SVNVERSION = found
3631 SVNVERSION
="svnversion \$(srcdir)"
3633 SVNVERSION
="echo exported"
3638 # install -d does not work on BSDI or HP-UX
3639 if test -z "$INSTALL"
3641 INSTALL
="${srcdir}/install-sh -c"
3645 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3646 if test -f $ac_dir/install-sh
; then
3648 ac_install_sh
="$ac_aux_dir/install-sh -c"
3650 elif test -f $ac_dir/install.sh
; then
3652 ac_install_sh
="$ac_aux_dir/install.sh -c"
3654 elif test -f $ac_dir/shtool
; then
3656 ac_install_sh
="$ac_aux_dir/shtool install -c"
3660 if test -z "$ac_aux_dir"; then
3661 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3662 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3663 { (exit 1); exit 1; }; }
3665 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3666 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3667 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3669 # Find a good install program. We prefer a C program (faster),
3670 # so one script is as good as another. But avoid the broken or
3671 # incompatible versions:
3672 # SysV /etc/install, /usr/sbin/install
3673 # SunOS /usr/etc/install
3674 # IRIX /sbin/install
3676 # AmigaOS /C/install, which installs bootblocks on floppy discs
3677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3680 # OS/2's system install, which has a completely different semantic
3681 # ./install, which can be erroneously created by make from ./install.sh.
3682 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3683 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3684 if test -z "$INSTALL"; then
3685 if test "${ac_cv_path_install+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir
=.
3693 # Account for people who put trailing slashes in PATH elements.
3695 .
/ | .
// |
/cC
/* | \
3696 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3697 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3700 # OSF1 and SCO ODT 3.0 have their own names for install.
3701 # Don't use installbsd from OSF since it installs stuff as root
3703 for ac_prog
in ginstall scoinst
install; do
3704 for ac_exec_ext
in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3706 if test $ac_prog = install &&
3707 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3708 # AIX install. It has an incompatible calling convention.
3710 elif test $ac_prog = install &&
3711 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3712 # program-specific install script used by HP pwplus--don't use.
3715 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3727 if test "${ac_cv_path_install+set}" = set; then
3728 INSTALL
=$ac_cv_path_install
3730 # As a last resort, use the slow shell script. We don't cache a
3731 # path for INSTALL within a source directory, because that will
3732 # break other packages using the cache if that directory is
3733 # removed, or if the path is relative.
3734 INSTALL
=$ac_install_sh
3737 echo "$as_me:$LINENO: result: $INSTALL" >&5
3738 echo "${ECHO_T}$INSTALL" >&6
3740 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3741 # It thinks the first close brace ends the variable substitution.
3742 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3744 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3746 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3749 # Not every filesystem supports hard links
3751 if test -z "$LN" ; then
3752 case $ac_sys_system in
3754 CYGWIN
*) LN
="ln -s";;
3755 atheos
*) LN
="ln -s";;
3760 # Check for --with-pydebug
3761 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3762 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3764 # Check whether --with-pydebug or --without-pydebug was given.
3765 if test "${with_pydebug+set}" = set; then
3766 withval
="$with_pydebug"
3768 if test "$withval" != no
3771 cat >>confdefs.h
<<\_ACEOF
3775 echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6;
3778 else echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3786 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3787 # merged with this chunk of code?
3789 # Optimizer/debugger flags
3790 # ------------------------
3791 # (The following bit of code is complicated enough - please keep things
3792 # indented properly. Just pretend you're editing Python code. ;-)
3794 # There are two parallel sets of case statements below, one that checks to
3795 # see if OPT was set and one that does BASECFLAGS setting based upon
3796 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3799 # tweak OPT based on compiler and platform, only if the user didn't set
3800 # it on the command line
3806 if test "$CC" != 'g++' ; then
3807 STRICT_PROTO
="-Wstrict-prototypes"
3809 case $ac_cv_prog_cc_g in
3811 if test "$Py_DEBUG" = 'true' ; then
3812 # Optimization messes up debuggers, so turn it off for
3814 OPT
="-g -Wall $STRICT_PROTO"
3816 OPT
="-g -O3 -Wall $STRICT_PROTO"
3820 OPT
="-O3 -Wall $STRICT_PROTO"
3823 case $ac_sys_system in
3824 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3834 # The current (beta) Monterey compiler dies with optimizations
3835 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3836 case $ac_sys_system in
3845 # tweak BASECFLAGS based on compiler and platform
3848 # Python violates C99 rules, by casting between incompatible
3849 # pointer types. GCC may generate bad code as a result of that,
3850 # so use -fno-strict-aliasing if supported.
3851 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3852 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3854 CC
="$CC -fno-strict-aliasing"
3855 if test "$cross_compiling" = yes; then
3856 ac_cv_no_strict_aliasing_ok
=no
3858 cat >conftest.
$ac_ext <<_ACEOF
3861 cat confdefs.h
>>conftest.
$ac_ext
3862 cat >>conftest.
$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 int main() { return 0; }
3866 rm -f conftest
$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868 (eval $ac_link) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_no_strict_aliasing_ok
=yes
3879 echo "$as_me: program exited with status $ac_status" >&5
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.
$ac_ext >&5
3884 ac_cv_no_strict_aliasing_ok
=no
3886 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3889 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3890 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3891 if test $ac_cv_no_strict_aliasing_ok = yes
3893 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3895 case $ac_sys_system in
3897 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3899 # is there any other compiler on Darwin besides gcc?
3901 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3902 if test "${enable_universalsdk}"; then
3903 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3908 BASECFLAGS
="$BASECFLAGS -mieee"
3914 case $ac_sys_system in
3915 OpenUNIX
*|UnixWare
*)
3916 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3919 BASECFLAGS
="$BASECFLAGS -ieee -std"
3922 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3928 if test "$Py_DEBUG" = 'true'; then
3934 if test "$ac_arch_flags"
3936 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3939 # disable check for icc since it seems to pass, but generates a warning
3942 ac_cv_opt_olimit_ok
=no
3945 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3946 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3947 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 CC
="$CC -OPT:Olimit=0"
3952 if test "$cross_compiling" = yes; then
3953 ac_cv_opt_olimit_ok
=no
3955 cat >conftest.
$ac_ext <<_ACEOF
3958 cat confdefs.h
>>conftest.
$ac_ext
3959 cat >>conftest.
$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 int main() { return 0; }
3963 rm -f conftest
$ac_exeext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3965 (eval $ac_link) 2>&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 ac_cv_opt_olimit_ok
=yes
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.
$ac_ext >&5
3981 ac_cv_opt_olimit_ok
=no
3983 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3988 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3989 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3990 if test $ac_cv_opt_olimit_ok = yes; then
3991 case $ac_sys_system in
3992 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3993 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3998 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4002 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4003 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
4004 if test "${ac_cv_olimit_ok+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 CC
="$CC -Olimit 1500"
4009 if test "$cross_compiling" = yes; then
4012 cat >conftest.
$ac_ext <<_ACEOF
4015 cat confdefs.h
>>conftest.
$ac_ext
4016 cat >>conftest.
$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 int main() { return 0; }
4020 rm -f conftest
$ac_exeext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4033 echo "$as_me: program exited with status $ac_status" >&5
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.
$ac_ext >&5
4040 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4045 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4046 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4047 if test $ac_cv_olimit_ok = yes; then
4048 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4052 # Check whether GCC supports PyArg_ParseTuple format
4053 if test "$GCC" = "yes"
4055 echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4056 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6
4058 CFLAGS
="$CFLAGS -Werror"
4059 cat >conftest.
$ac_ext <<_ACEOF
4062 cat confdefs.h
>>conftest.
$ac_ext
4063 cat >>conftest.
$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4066 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4076 rm -f conftest.
$ac_objext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>conftest.er1
4080 grep -v '^ *+' conftest.er1
>conftest.err
4082 cat conftest.err
>&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try
='test -z "$ac_c_werror_flag"
4086 || test ! -s conftest.err'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try
='test -s conftest.$ac_objext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4099 cat >>confdefs.h
<<\_ACEOF
4100 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4103 echo "$as_me:$LINENO: result: yes" >&5
4104 echo "${ECHO_T}yes" >&6
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.
$ac_ext >&5
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4117 # On some compilers, pthreads are available without further options
4118 # (e.g. MacOS X). On some of these systems, the compiler will not
4119 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4120 # So we have to see first whether pthreads are available without
4121 # options before we can check whether -Kpthread improves anything.
4122 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4123 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4124 if test "${ac_cv_pthread_is_default+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 if test "$cross_compiling" = yes; then
4128 ac_cv_pthread_is_default
=no
4130 cat >conftest.
$ac_ext <<_ACEOF
4133 cat confdefs.h
>>conftest.
$ac_ext
4134 cat >>conftest.
$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4137 #include <pthread.h>
4139 void* routine(void* p){return NULL;}
4143 if(pthread_create(&p,NULL,routine,NULL)!=0)
4145 (void)pthread_detach(p);
4150 rm -f conftest
$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4162 ac_cv_pthread_is_default
=yes
4167 echo "$as_me: program exited with status $ac_status" >&5
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.
$ac_ext >&5
4172 ac_cv_pthread_is_default
=no
4174 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4179 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4180 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4183 if test $ac_cv_pthread_is_default = yes
4187 # -Kpthread, if available, provides the right #defines
4188 # and linker options to make pthread_create available
4189 # Some compilers won't report that they do not support -Kpthread,
4190 # so we need to run a program to see whether it really made the
4191 # function available.
4192 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4193 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4194 if test "${ac_cv_kpthread+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 if test "$cross_compiling" = yes; then
4202 cat >conftest.
$ac_ext <<_ACEOF
4205 cat confdefs.h
>>conftest.
$ac_ext
4206 cat >>conftest.
$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 #include <pthread.h>
4211 void* routine(void* p){return NULL;}
4215 if(pthread_create(&p,NULL,routine,NULL)!=0)
4217 (void)pthread_detach(p);
4222 rm -f conftest
$ac_exeext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224 (eval $ac_link) 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4235 echo "$as_me: program exited with status $ac_status" >&5
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.
$ac_ext >&5
4242 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4247 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4248 echo "${ECHO_T}$ac_cv_kpthread" >&6
4251 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4253 # -Kthread, if available, provides the right #defines
4254 # and linker options to make pthread_create available
4255 # Some compilers won't report that they do not support -Kthread,
4256 # so we need to run a program to see whether it really made the
4257 # function available.
4258 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4259 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4260 if test "${ac_cv_kthread+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test "$cross_compiling" = yes; then
4268 cat >conftest.
$ac_ext <<_ACEOF
4271 cat confdefs.h
>>conftest.
$ac_ext
4272 cat >>conftest.
$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4275 #include <pthread.h>
4277 void* routine(void* p){return NULL;}
4281 if(pthread_create(&p,NULL,routine,NULL)!=0)
4283 (void)pthread_detach(p);
4288 rm -f conftest
$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4301 echo "$as_me: program exited with status $ac_status" >&5
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.
$ac_ext >&5
4308 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4313 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4314 echo "${ECHO_T}$ac_cv_kthread" >&6
4317 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4319 # -pthread, if available, provides the right #defines
4320 # and linker options to make pthread_create available
4321 # Some compilers won't report that they do not support -pthread,
4322 # so we need to run a program to see whether it really made the
4323 # function available.
4324 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4325 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4326 if test "${ac_cv_thread+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 if test "$cross_compiling" = yes; then
4334 cat >conftest.
$ac_ext <<_ACEOF
4337 cat confdefs.h
>>conftest.
$ac_ext
4338 cat >>conftest.
$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4341 #include <pthread.h>
4343 void* routine(void* p){return NULL;}
4347 if(pthread_create(&p,NULL,routine,NULL)!=0)
4349 (void)pthread_detach(p);
4354 rm -f conftest
$ac_exeext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4356 (eval $ac_link) 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4367 echo "$as_me: program exited with status $ac_status" >&5
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.
$ac_ext >&5
4374 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4379 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4380 echo "${ECHO_T}$ac_cv_pthread" >&6
4383 # If we have set a CC compiler flag for thread support then
4384 # check if it works for CXX, too.
4388 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4389 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4392 if test "$ac_cv_kpthread" = "yes"
4394 CXX
="$CXX -Kpthread"
4395 ac_cv_cxx_thread
=yes
4396 elif test "$ac_cv_kthread" = "yes"
4399 ac_cv_cxx_thread
=yes
4400 elif test "$ac_cv_pthread" = "yes"
4403 ac_cv_cxx_thread
=yes
4406 if test $ac_cv_cxx_thread = yes
4408 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4409 $CXX -c conftest.
$ac_ext 2>&5
4410 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4411 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4413 ac_cv_cxx_thread
=yes
4419 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4420 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4425 # checks for header files
4426 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4427 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4428 if test "${ac_cv_header_stdc+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 cat >conftest.
$ac_ext <<_ACEOF
4434 cat confdefs.h
>>conftest.
$ac_ext
4435 cat >>conftest.
$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4450 rm -f conftest.
$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1
>conftest.err
4456 cat conftest.err
>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try
='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try
='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_header_stdc
=yes
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.
$ac_ext >&5
4477 ac_cv_header_stdc
=no
4479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4481 if test $ac_cv_header_stdc = yes; then
4482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4483 cat >conftest.
$ac_ext <<_ACEOF
4486 cat confdefs.h
>>conftest.
$ac_ext
4487 cat >>conftest.
$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4493 $EGREP "memchr" >/dev
/null
2>&1; then
4496 ac_cv_header_stdc
=no
4502 if test $ac_cv_header_stdc = yes; then
4503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4504 cat >conftest.
$ac_ext <<_ACEOF
4507 cat confdefs.h
>>conftest.
$ac_ext
4508 cat >>conftest.
$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4514 $EGREP "free" >/dev
/null
2>&1; then
4517 ac_cv_header_stdc
=no
4523 if test $ac_cv_header_stdc = yes; then
4524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4525 if test "$cross_compiling" = yes; then
4528 cat >conftest.
$ac_ext <<_ACEOF
4531 cat confdefs.h
>>conftest.
$ac_ext
4532 cat >>conftest.
$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4535 #if ((' ' & 0x0FF) == 0x020)
4536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4539 # define ISLOWER(c) \
4540 (('a' <= (c) && (c) <= 'i') \
4541 || ('j' <= (c) && (c) <= 'r') \
4542 || ('s' <= (c) && (c) <= 'z'))
4543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4551 for (i = 0; i < 256; i++)
4552 if (XOR (islower (i), ISLOWER (i))
4553 || toupper (i) != TOUPPER (i))
4558 rm -f conftest
$ac_exeext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560 (eval $ac_link) 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4571 echo "$as_me: program exited with status $ac_status" >&5
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.
$ac_ext >&5
4576 ac_cv_header_stdc
=no
4578 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4582 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4583 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4584 if test $ac_cv_header_stdc = yes; then
4586 cat >>confdefs.h
<<\_ACEOF
4587 #define STDC_HEADERS 1
4592 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4602 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4603 inttypes.h stdint.h unistd.h
4605 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4606 echo "$as_me:$LINENO: checking for $ac_header" >&5
4607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cat >conftest.
$ac_ext <<_ACEOF
4614 cat confdefs.h
>>conftest.
$ac_ext
4615 cat >>conftest.
$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 $ac_includes_default
4619 #include <$ac_header>
4621 rm -f conftest.
$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>conftest.er1
4625 grep -v '^ *+' conftest.er1
>conftest.err
4627 cat conftest.err
>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try
='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try
='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 eval "$as_ac_Header=yes"
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.
$ac_ext >&5
4648 eval "$as_ac_Header=no"
4650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4655 cat >>confdefs.h
<<_ACEOF
4656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4713 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4715 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4716 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4718 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4720 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
4722 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4723 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4724 bluetooth
/bluetooth.h
4726 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728 echo "$as_me:$LINENO: checking for $ac_header" >&5
4729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4736 # Is the header compilable?
4737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4739 cat >conftest.
$ac_ext <<_ACEOF
4742 cat confdefs.h
>>conftest.
$ac_ext
4743 cat >>conftest.
$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4746 #include <$ac_header>
4748 rm -f conftest.
$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>conftest.er1
4752 grep -v '^ *+' conftest.er1
>conftest.err
4754 cat conftest.err
>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try
='test -z "$ac_c_werror_flag"
4758 || test ! -s conftest.err'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try
='test -s conftest.$ac_objext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 ac_header_compiler
=yes
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.
$ac_ext >&5
4775 ac_header_compiler
=no
4777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4779 echo "${ECHO_T}$ac_header_compiler" >&6
4781 # Is the header present?
4782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4784 cat >conftest.
$ac_ext <<_ACEOF
4787 cat confdefs.h
>>conftest.
$ac_ext
4788 cat >>conftest.
$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <$ac_header>
4792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4793 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4795 grep -v '^ *+' conftest.er1
>conftest.err
4797 cat conftest.err
>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } >/dev
/null
; then
4800 if test -s conftest.err
; then
4801 ac_cpp_err
=$ac_c_preproc_warn_flag
4802 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4809 if test -z "$ac_cpp_err"; then
4810 ac_header_preproc
=yes
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.
$ac_ext >&5
4815 ac_header_preproc
=no
4817 rm -f conftest.err conftest.
$ac_ext
4818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4819 echo "${ECHO_T}$ac_header_preproc" >&6
4821 # So? What about this header?
4822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4828 ac_header_preproc
=yes
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4845 ## ------------------------------------------------ ##
4846 ## Report this to http://www.python.org/python-bugs ##
4847 ## ------------------------------------------------ ##
4850 sed "s/^/$as_me: WARNING: /" >&2
4853 echo "$as_me:$LINENO: checking for $ac_header" >&5
4854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 eval "$as_ac_Header=\$ac_header_preproc"
4860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865 cat >>confdefs.h
<<_ACEOF
4866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4879 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4880 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4881 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4882 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 cat >conftest.
$ac_ext <<_ACEOF
4889 cat confdefs.h
>>conftest.
$ac_ext
4890 cat >>conftest.
$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 #include <sys/types.h>
4904 rm -f conftest.
$ac_objext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>conftest.er1
4908 grep -v '^ *+' conftest.er1
>conftest.err
4910 cat conftest.err
>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try
='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try
='test -s conftest.$ac_objext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 eval "$as_ac_Header=yes"
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.
$ac_ext >&5
4931 eval "$as_ac_Header=no"
4933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4938 cat >>confdefs.h
<<_ACEOF
4939 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4942 ac_header_dirent
=$ac_hdr; break
4946 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4947 if test $ac_header_dirent = dirent.h
; then
4948 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4949 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4950 if test "${ac_cv_search_opendir+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 ac_func_search_save_LIBS
=$LIBS
4954 ac_cv_search_opendir
=no
4955 cat >conftest.
$ac_ext <<_ACEOF
4958 cat confdefs.h
>>conftest.
$ac_ext
4959 cat >>conftest.
$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4962 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4977 rm -f conftest.
$ac_objext conftest
$ac_exeext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979 (eval $ac_link) 2>conftest.er1
4981 grep -v '^ *+' conftest.er1
>conftest.err
4983 cat conftest.err
>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try
='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try
='test -s conftest$ac_exeext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_search_opendir
="none required"
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.
$ac_ext >&5
5005 rm -f conftest.err conftest.
$ac_objext \
5006 conftest
$ac_exeext conftest.
$ac_ext
5007 if test "$ac_cv_search_opendir" = no
; then
5008 for ac_lib
in dir
; do
5009 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5010 cat >conftest.
$ac_ext <<_ACEOF
5013 cat confdefs.h
>>conftest.
$ac_ext
5014 cat >>conftest.
$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5032 rm -f conftest.
$ac_objext conftest
$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>conftest.er1
5036 grep -v '^ *+' conftest.er1
>conftest.err
5038 cat conftest.err
>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try
='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try
='test -s conftest$ac_exeext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_cv_search_opendir
="-l$ac_lib"
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.
$ac_ext >&5
5061 rm -f conftest.err conftest.
$ac_objext \
5062 conftest
$ac_exeext conftest.
$ac_ext
5065 LIBS
=$ac_func_search_save_LIBS
5067 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5068 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5069 if test "$ac_cv_search_opendir" != no
; then
5070 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5075 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5076 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5077 if test "${ac_cv_search_opendir+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 ac_func_search_save_LIBS
=$LIBS
5081 ac_cv_search_opendir
=no
5082 cat >conftest.
$ac_ext <<_ACEOF
5085 cat confdefs.h
>>conftest.
$ac_ext
5086 cat >>conftest.
$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5089 /* Override any gcc2 internal prototype to avoid an error. */
5093 /* We use char because int might match the return type of a gcc2
5094 builtin and then its argument prototype would still apply. */
5104 rm -f conftest.
$ac_objext conftest
$ac_exeext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106 (eval $ac_link) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1
>conftest.err
5110 cat conftest.err
>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try
='test -z "$ac_c_werror_flag"
5114 || test ! -s conftest.err'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try
='test -s conftest$ac_exeext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 ac_cv_search_opendir
="none required"
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.
$ac_ext >&5
5132 rm -f conftest.err conftest.
$ac_objext \
5133 conftest
$ac_exeext conftest.
$ac_ext
5134 if test "$ac_cv_search_opendir" = no
; then
5136 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5137 cat >conftest.
$ac_ext <<_ACEOF
5140 cat confdefs.h
>>conftest.
$ac_ext
5141 cat >>conftest.
$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5144 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5159 rm -f conftest.
$ac_objext conftest
$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>conftest.er1
5163 grep -v '^ *+' conftest.er1
>conftest.err
5165 cat conftest.err
>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try
='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try
='test -s conftest$ac_exeext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_cv_search_opendir
="-l$ac_lib"
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.
$ac_ext >&5
5188 rm -f conftest.err conftest.
$ac_objext \
5189 conftest
$ac_exeext conftest.
$ac_ext
5192 LIBS
=$ac_func_search_save_LIBS
5194 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5195 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5196 if test "$ac_cv_search_opendir" != no
; then
5197 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5203 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5204 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5205 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 cat >conftest.
$ac_ext <<_ACEOF
5211 cat confdefs.h
>>conftest.
$ac_ext
5212 cat >>conftest.
$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <sys/types.h>
5218 return makedev(0, 0);
5223 rm -f conftest.
$ac_objext conftest
$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5227 grep -v '^ *+' conftest.er1
>conftest.err
5229 cat conftest.err
>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try
='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try
='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_header_sys_types_h_makedev
=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.
$ac_ext >&5
5250 ac_cv_header_sys_types_h_makedev
=no
5252 rm -f conftest.err conftest.
$ac_objext \
5253 conftest
$ac_exeext conftest.
$ac_ext
5256 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5257 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5259 if test $ac_cv_header_sys_types_h_makedev = no
; then
5260 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5261 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5262 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5263 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5267 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5269 # Is the header compilable?
5270 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5271 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5272 cat >conftest.
$ac_ext <<_ACEOF
5275 cat confdefs.h
>>conftest.
$ac_ext
5276 cat >>conftest.
$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5279 #include <sys/mkdev.h>
5281 rm -f conftest.
$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5285 grep -v '^ *+' conftest.er1
>conftest.err
5287 cat conftest.err
>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try
='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try
='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_header_compiler
=yes
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.
$ac_ext >&5
5308 ac_header_compiler
=no
5310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5312 echo "${ECHO_T}$ac_header_compiler" >&6
5314 # Is the header present?
5315 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5316 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5317 cat >conftest.
$ac_ext <<_ACEOF
5320 cat confdefs.h
>>conftest.
$ac_ext
5321 cat >>conftest.
$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 #include <sys/mkdev.h>
5325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5326 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5328 grep -v '^ *+' conftest.er1
>conftest.err
5330 cat conftest.err
>&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } >/dev
/null
; then
5333 if test -s conftest.err
; then
5334 ac_cpp_err
=$ac_c_preproc_warn_flag
5335 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5342 if test -z "$ac_cpp_err"; then
5343 ac_header_preproc
=yes
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.
$ac_ext >&5
5348 ac_header_preproc
=no
5350 rm -f conftest.err conftest.
$ac_ext
5351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5352 echo "${ECHO_T}$ac_header_preproc" >&6
5354 # So? What about this header?
5355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5357 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5358 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5360 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5361 ac_header_preproc
=yes
5364 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5365 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5367 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5369 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5371 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5373 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5374 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5375 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5378 ## ------------------------------------------------ ##
5379 ## Report this to http://www.python.org/python-bugs ##
5380 ## ------------------------------------------------ ##
5383 sed "s/^/$as_me: WARNING: /" >&2
5386 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5387 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5388 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5393 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5394 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5397 if test $ac_cv_header_sys_mkdev_h = yes; then
5399 cat >>confdefs.h
<<\_ACEOF
5400 #define MAJOR_IN_MKDEV 1
5407 if test $ac_cv_header_sys_mkdev_h = no
; then
5408 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5409 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5410 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5411 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5415 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5417 # Is the header compilable?
5418 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5419 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5420 cat >conftest.
$ac_ext <<_ACEOF
5423 cat confdefs.h
>>conftest.
$ac_ext
5424 cat >>conftest.
$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5427 #include <sys/sysmacros.h>
5429 rm -f conftest.
$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>conftest.er1
5433 grep -v '^ *+' conftest.er1
>conftest.err
5435 cat conftest.err
>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try
='test -z "$ac_c_werror_flag"
5439 || test ! -s conftest.err'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try
='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_header_compiler
=yes
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.
$ac_ext >&5
5456 ac_header_compiler
=no
5458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5460 echo "${ECHO_T}$ac_header_compiler" >&6
5462 # Is the header present?
5463 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5464 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5465 cat >conftest.
$ac_ext <<_ACEOF
5468 cat confdefs.h
>>conftest.
$ac_ext
5469 cat >>conftest.
$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 #include <sys/sysmacros.h>
5473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5474 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5476 grep -v '^ *+' conftest.er1
>conftest.err
5478 cat conftest.err
>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev
/null
; then
5481 if test -s conftest.err
; then
5482 ac_cpp_err
=$ac_c_preproc_warn_flag
5483 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5490 if test -z "$ac_cpp_err"; then
5491 ac_header_preproc
=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.
$ac_ext >&5
5496 ac_header_preproc
=no
5498 rm -f conftest.err conftest.
$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5500 echo "${ECHO_T}$ac_header_preproc" >&6
5502 # So? What about this header?
5503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5505 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5506 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5508 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5509 ac_header_preproc
=yes
5512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5513 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5515 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5517 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5519 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5521 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5523 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5526 ## ------------------------------------------------ ##
5527 ## Report this to http://www.python.org/python-bugs ##
5528 ## ------------------------------------------------ ##
5531 sed "s/^/$as_me: WARNING: /" >&2
5534 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5535 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5536 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5541 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5542 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5545 if test $ac_cv_header_sys_sysmacros_h = yes; then
5547 cat >>confdefs.h
<<\_ACEOF
5548 #define MAJOR_IN_SYSMACROS 1
5558 # On Solaris, term.h requires curses.h
5560 for ac_header
in term.h
5562 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5563 echo "$as_me:$LINENO: checking for $ac_header" >&5
5564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 cat >conftest.
$ac_ext <<_ACEOF
5571 cat confdefs.h
>>conftest.
$ac_ext
5572 cat >>conftest.
$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5575 #ifdef HAVE_CURSES_H
5580 #include <$ac_header>
5582 rm -f conftest.
$ac_objext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>conftest.er1
5586 grep -v '^ *+' conftest.er1
>conftest.err
5588 cat conftest.err
>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try
='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; } &&
5598 { ac_try
='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 eval "$as_ac_Header=yes"
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.
$ac_ext >&5
5609 eval "$as_ac_Header=no"
5611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5616 cat >>confdefs.h
<<_ACEOF
5617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5625 # On Linux, netlink.h requires asm/types.h
5627 for ac_header
in linux
/netlink.h
5629 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5630 echo "$as_me:$LINENO: checking for $ac_header" >&5
5631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 cat >conftest.
$ac_ext <<_ACEOF
5638 cat confdefs.h
>>conftest.
$ac_ext
5639 cat >>conftest.
$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5642 #ifdef HAVE_ASM_TYPES_H
5643 #include <asm/types.h>
5645 #ifdef HAVE_SYS_SOCKET_H
5646 #include <sys/socket.h>
5650 #include <$ac_header>
5652 rm -f conftest.
$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5656 grep -v '^ *+' conftest.er1
>conftest.err
5658 cat conftest.err
>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try
='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try
='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 eval "$as_ac_Header=yes"
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.
$ac_ext >&5
5679 eval "$as_ac_Header=no"
5681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686 cat >>confdefs.h
<<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5695 # checks for typedefs
5697 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5698 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5699 cat >conftest.
$ac_ext <<_ACEOF
5702 cat confdefs.h
>>conftest.
$ac_ext
5703 cat >>conftest.
$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709 $EGREP "clock_t" >/dev
/null
2>&1; then
5714 cat >>confdefs.h
<<\_ACEOF
5715 #define clock_t long
5722 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5723 echo "${ECHO_T}$was_it_defined" >&6
5725 # Check whether using makedev requires defining _OSF_SOURCE
5726 echo "$as_me:$LINENO: checking for makedev" >&5
5727 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5728 cat >conftest.
$ac_ext <<_ACEOF
5731 cat confdefs.h
>>conftest.
$ac_ext
5732 cat >>conftest.
$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <sys/types.h>
5743 rm -f conftest.
$ac_objext conftest
$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745 (eval $ac_link) 2>conftest.er1
5747 grep -v '^ *+' conftest.er1
>conftest.err
5749 cat conftest.err
>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try
='test -z "$ac_c_werror_flag"
5753 || test ! -s conftest.err'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try
='test -s conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 ac_cv_has_makedev
=yes
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.
$ac_ext >&5
5770 ac_cv_has_makedev
=no
5772 rm -f conftest.err conftest.
$ac_objext \
5773 conftest
$ac_exeext conftest.
$ac_ext
5774 if test "$ac_cv_has_makedev" = "no"; then
5775 # we didn't link, try if _OSF_SOURCE will allow us to link
5776 cat >conftest.
$ac_ext <<_ACEOF
5779 cat confdefs.h
>>conftest.
$ac_ext
5780 cat >>conftest.
$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5783 #define _OSF_SOURCE 1
5784 #include <sys/types.h>
5794 rm -f conftest.
$ac_objext conftest
$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>conftest.er1
5798 grep -v '^ *+' conftest.er1
>conftest.err
5800 cat conftest.err
>&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try
='test -z "$ac_c_werror_flag"
5804 || test ! -s conftest.err'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try
='test -s conftest$ac_exeext'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5816 ac_cv_has_makedev
=yes
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.
$ac_ext >&5
5821 ac_cv_has_makedev
=no
5823 rm -f conftest.err conftest.
$ac_objext \
5824 conftest
$ac_exeext conftest.
$ac_ext
5825 if test "$ac_cv_has_makedev" = "yes"; then
5827 cat >>confdefs.h
<<\_ACEOF
5828 #define _OSF_SOURCE 1
5833 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5834 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5835 if test "$ac_cv_has_makedev" = "yes"; then
5837 cat >>confdefs.h
<<\_ACEOF
5838 #define HAVE_MAKEDEV 1
5843 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5844 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5845 # defined, but the compiler does not support pragma redefine_extname,
5846 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5847 # structures (such as rlimit64) without declaring them. As a
5848 # work-around, disable LFS on such configurations
5851 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5852 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5853 cat >conftest.
$ac_ext <<_ACEOF
5856 cat confdefs.h
>>conftest.
$ac_ext
5857 cat >>conftest.
$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5860 #define _LARGEFILE_SOURCE 1
5861 #define _FILE_OFFSET_BITS 64
5862 #include <sys/resource.h>
5872 rm -f conftest.
$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5876 grep -v '^ *+' conftest.er1
>conftest.err
5878 cat conftest.err
>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try
='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try
='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.
$ac_ext >&5
5901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5902 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5903 echo "${ECHO_T}$sol_lfs_bug" >&6
5904 if test "$sol_lfs_bug" = "yes"; then
5908 if test "$use_lfs" = "yes"; then
5909 # Two defines needed to enable largefile support on various platforms
5910 # These may affect some typedefs
5912 cat >>confdefs.h
<<\_ACEOF
5913 #define _LARGEFILE_SOURCE 1
5917 cat >>confdefs.h
<<\_ACEOF
5918 #define _FILE_OFFSET_BITS 64
5923 # Add some code to confdefs.h so that the test for off_t works on SCO
5924 cat >> confdefs.h
<<\EOF
5930 # Type availability checks
5931 echo "$as_me:$LINENO: checking for mode_t" >&5
5932 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5933 if test "${ac_cv_type_mode_t+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 cat >conftest.
$ac_ext <<_ACEOF
5939 cat confdefs.h
>>conftest.
$ac_ext
5940 cat >>conftest.
$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5948 if (sizeof (mode_t))
5954 rm -f conftest.
$ac_objext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956 (eval $ac_compile) 2>conftest.er1
5958 grep -v '^ *+' conftest.er1
>conftest.err
5960 cat conftest.err
>&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try
='test -z "$ac_c_werror_flag"
5964 || test ! -s conftest.err'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try
='test -s conftest.$ac_objext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_type_mode_t
=yes
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.
$ac_ext >&5
5981 ac_cv_type_mode_t
=no
5983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5986 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5987 if test $ac_cv_type_mode_t = yes; then
5991 cat >>confdefs.h
<<_ACEOF
5997 echo "$as_me:$LINENO: checking for off_t" >&5
5998 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5999 if test "${ac_cv_type_off_t+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 cat >conftest.
$ac_ext <<_ACEOF
6005 cat confdefs.h
>>conftest.
$ac_ext
6006 cat >>conftest.
$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 $ac_includes_default
6020 rm -f conftest.
$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>conftest.er1
6024 grep -v '^ *+' conftest.er1
>conftest.err
6026 cat conftest.err
>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try
='test -z "$ac_c_werror_flag"
6030 || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try
='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_cv_type_off_t
=yes
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.
$ac_ext >&5
6049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6051 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6052 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6053 if test $ac_cv_type_off_t = yes; then
6057 cat >>confdefs.h
<<_ACEOF
6063 echo "$as_me:$LINENO: checking for pid_t" >&5
6064 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6065 if test "${ac_cv_type_pid_t+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 cat >conftest.
$ac_ext <<_ACEOF
6071 cat confdefs.h
>>conftest.
$ac_ext
6072 cat >>conftest.
$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6086 rm -f conftest.
$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6090 grep -v '^ *+' conftest.er1
>conftest.err
6092 cat conftest.err
>&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try
='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try
='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_type_pid_t
=yes
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.
$ac_ext >&5
6115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6118 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6119 if test $ac_cv_type_pid_t = yes; then
6123 cat >>confdefs.h
<<_ACEOF
6129 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6130 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6131 if test "${ac_cv_type_signal+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 cat >conftest.
$ac_ext <<_ACEOF
6137 cat confdefs.h
>>conftest.
$ac_ext
6138 cat >>conftest.
$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 #include <sys/types.h>
6146 extern "C" void (*signal (int, void (*)(int)))(int);
6148 void (*signal ()) ();
6159 rm -f conftest.
$ac_objext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161 (eval $ac_compile) 2>conftest.er1
6163 grep -v '^ *+' conftest.er1
>conftest.err
6165 cat conftest.err
>&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try
='test -z "$ac_c_werror_flag"
6169 || test ! -s conftest.err'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try
='test -s conftest.$ac_objext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_type_signal
=void
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.
$ac_ext >&5
6186 ac_cv_type_signal
=int
6188 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6190 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6191 echo "${ECHO_T}$ac_cv_type_signal" >&6
6193 cat >>confdefs.h
<<_ACEOF
6194 #define RETSIGTYPE $ac_cv_type_signal
6198 echo "$as_me:$LINENO: checking for size_t" >&5
6199 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6200 if test "${ac_cv_type_size_t+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 cat >conftest.
$ac_ext <<_ACEOF
6206 cat confdefs.h
>>conftest.
$ac_ext
6207 cat >>conftest.
$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 $ac_includes_default
6215 if (sizeof (size_t))
6221 rm -f conftest.
$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1
>conftest.err
6227 cat conftest.err
>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try
='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try
='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_type_size_t
=yes
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6248 ac_cv_type_size_t
=no
6250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6252 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6253 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6254 if test $ac_cv_type_size_t = yes; then
6258 cat >>confdefs.h
<<_ACEOF
6259 #define size_t unsigned
6264 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6265 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6266 if test "${ac_cv_type_uid_t+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 cat >conftest.
$ac_ext <<_ACEOF
6272 cat confdefs.h
>>conftest.
$ac_ext
6273 cat >>conftest.
$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include <sys/types.h>
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "uid_t" >/dev
/null
2>&1; then
6280 ac_cv_type_uid_t
=yes
6287 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6288 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6289 if test $ac_cv_type_uid_t = no
; then
6291 cat >>confdefs.h
<<\_ACEOF
6296 cat >>confdefs.h
<<\_ACEOF
6302 echo "$as_me:$LINENO: checking for ssize_t" >&5
6303 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6304 if test "${ac_cv_type_ssize_t+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 cat >conftest.
$ac_ext <<_ACEOF
6310 cat confdefs.h
>>conftest.
$ac_ext
6311 cat >>conftest.
$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 $ac_includes_default
6319 if (sizeof (ssize_t))
6325 rm -f conftest.
$ac_objext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>conftest.er1
6329 grep -v '^ *+' conftest.er1
>conftest.err
6331 cat conftest.err
>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try
='test -z "$ac_c_werror_flag"
6335 || test ! -s conftest.err'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; } &&
6341 { ac_try
='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_type_ssize_t
=yes
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.
$ac_ext >&5
6352 ac_cv_type_ssize_t
=no
6354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6357 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6358 if test $ac_cv_type_ssize_t = yes; then
6360 cat >>confdefs.h
<<\_ACEOF
6361 #define HAVE_SSIZE_T 1
6367 # Sizes of various common basic types
6368 # ANSI C requires sizeof(char) == 1, so no need to check it
6369 echo "$as_me:$LINENO: checking for int" >&5
6370 echo $ECHO_N "checking for int... $ECHO_C" >&6
6371 if test "${ac_cv_type_int+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.
$ac_ext <<_ACEOF
6377 cat confdefs.h
>>conftest.
$ac_ext
6378 cat >>conftest.
$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6392 rm -f conftest.
$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1
>conftest.err
6398 cat conftest.err
>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try
='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try
='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.
$ac_ext >&5
6421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6423 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6424 echo "${ECHO_T}$ac_cv_type_int" >&6
6426 echo "$as_me:$LINENO: checking size of int" >&5
6427 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6428 if test "${ac_cv_sizeof_int+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 if test "$ac_cv_type_int" = yes; then
6432 # The cast to unsigned long works around a bug in the HP C Compiler
6433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6435 # This bug is HP SR number 8606223364.
6436 if test "$cross_compiling" = yes; then
6437 # Depending upon the size, compute the lo and hi bounds.
6438 cat >conftest.
$ac_ext <<_ACEOF
6441 cat confdefs.h
>>conftest.
$ac_ext
6442 cat >>conftest.
$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6448 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6455 rm -f conftest.
$ac_objext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>conftest.er1
6459 grep -v '^ *+' conftest.er1
>conftest.err
6461 cat conftest.err
>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try
='test -z "$ac_c_werror_flag"
6465 || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try
='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6479 cat >conftest.
$ac_ext <<_ACEOF
6482 cat confdefs.h
>>conftest.
$ac_ext
6483 cat >>conftest.
$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6489 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6496 rm -f conftest.
$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498 (eval $ac_compile) 2>conftest.er1
6500 grep -v '^ *+' conftest.er1
>conftest.err
6502 cat conftest.err
>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try
='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try
='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_hi
=$ac_mid; break
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.
$ac_ext >&5
6523 ac_lo
=`expr $ac_mid + 1`
6524 if test $ac_lo -le $ac_mid; then
6528 ac_mid
=`expr 2 '*' $ac_mid + 1`
6530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.
$ac_ext >&5
6536 cat >conftest.
$ac_ext <<_ACEOF
6539 cat confdefs.h
>>conftest.
$ac_ext
6540 cat >>conftest.
$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 $ac_includes_default
6546 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6553 rm -f conftest.
$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6557 grep -v '^ *+' conftest.er1
>conftest.err
6559 cat conftest.err
>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try
='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try
='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6577 cat >conftest.
$ac_ext <<_ACEOF
6580 cat confdefs.h
>>conftest.
$ac_ext
6581 cat >>conftest.
$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 $ac_includes_default
6587 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6594 rm -f conftest.
$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6598 grep -v '^ *+' conftest.er1
>conftest.err
6600 cat conftest.err
>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try
='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try
='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_lo
=$ac_mid; break
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6621 ac_hi
=`expr '(' $ac_mid ')' - 1`
6622 if test $ac_mid -le $ac_hi; then
6626 ac_mid
=`expr 2 '*' $ac_mid`
6628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.
$ac_ext >&5
6636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6639 # Binary search between lo and hi bounds.
6640 while test "x$ac_lo" != "x$ac_hi"; do
6641 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6642 cat >conftest.
$ac_ext <<_ACEOF
6645 cat confdefs.h
>>conftest.
$ac_ext
6646 cat >>conftest.
$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 $ac_includes_default
6652 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6659 rm -f conftest.
$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1
>conftest.err
6665 cat conftest.err
>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try
='test -z "$ac_c_werror_flag"
6669 || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try
='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.
$ac_ext >&5
6686 ac_lo
=`expr '(' $ac_mid ')' + 1`
6688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6691 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6693 See \`config.log' for more details." >&5
6694 echo "$as_me: error: cannot compute sizeof (int), 77
6695 See \`config.log' for more details." >&2;}
6696 { (exit 1); exit 1; }; } ;;
6699 if test "$cross_compiling" = yes; then
6700 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6701 See \`config.log' for more details." >&5
6702 echo "$as_me: error: cannot run test program while cross compiling
6703 See \`config.log' for more details." >&2;}
6704 { (exit 1); exit 1; }; }
6706 cat >conftest.
$ac_ext <<_ACEOF
6709 cat confdefs.h
>>conftest.
$ac_ext
6710 cat >>conftest.
$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 $ac_includes_default
6713 long longval () { return (long) (sizeof (int)); }
6714 unsigned long ulongval () { return (long) (sizeof (int)); }
6721 FILE *f = fopen ("conftest.val", "w");
6724 if (((long) (sizeof (int))) < 0)
6726 long i = longval ();
6727 if (i != ((long) (sizeof (int))))
6729 fprintf (f, "%ld\n", i);
6733 unsigned long i = ulongval ();
6734 if (i != ((long) (sizeof (int))))
6736 fprintf (f, "%lu\n", i);
6738 exit (ferror (f) || fclose (f) != 0);
6744 rm -f conftest
$ac_exeext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746 (eval $ac_link) 2>&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_sizeof_int
=`cat conftest.val`
6757 echo "$as_me: program exited with status $ac_status" >&5
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.
$ac_ext >&5
6762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6763 See \`config.log' for more details." >&5
6764 echo "$as_me: error: cannot compute sizeof (int), 77
6765 See \`config.log' for more details." >&2;}
6766 { (exit 1); exit 1; }; }
6768 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6777 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6778 cat >>confdefs.h
<<_ACEOF
6779 #define SIZEOF_INT $ac_cv_sizeof_int
6783 echo "$as_me:$LINENO: checking for long" >&5
6784 echo $ECHO_N "checking for long... $ECHO_C" >&6
6785 if test "${ac_cv_type_long+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 cat >conftest.
$ac_ext <<_ACEOF
6791 cat confdefs.h
>>conftest.
$ac_ext
6792 cat >>conftest.
$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6806 rm -f conftest.
$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1
>conftest.err
6812 cat conftest.err
>&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try
='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try
='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.
$ac_ext >&5
6835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6837 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6838 echo "${ECHO_T}$ac_cv_type_long" >&6
6840 echo "$as_me:$LINENO: checking size of long" >&5
6841 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6842 if test "${ac_cv_sizeof_long+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 if test "$ac_cv_type_long" = yes; then
6846 # The cast to unsigned long works around a bug in the HP C Compiler
6847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6849 # This bug is HP SR number 8606223364.
6850 if test "$cross_compiling" = yes; then
6851 # Depending upon the size, compute the lo and hi bounds.
6852 cat >conftest.
$ac_ext <<_ACEOF
6855 cat confdefs.h
>>conftest.
$ac_ext
6856 cat >>conftest.
$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 $ac_includes_default
6862 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6869 rm -f conftest.
$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6873 grep -v '^ *+' conftest.er1
>conftest.err
6875 cat conftest.err
>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try
='test -z "$ac_c_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try
='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6893 cat >conftest.
$ac_ext <<_ACEOF
6896 cat confdefs.h
>>conftest.
$ac_ext
6897 cat >>conftest.
$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6903 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6910 rm -f conftest.
$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6914 grep -v '^ *+' conftest.er1
>conftest.err
6916 cat conftest.err
>&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try
='test -z "$ac_c_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try
='test -s conftest.$ac_objext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_hi
=$ac_mid; break
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.
$ac_ext >&5
6937 ac_lo
=`expr $ac_mid + 1`
6938 if test $ac_lo -le $ac_mid; then
6942 ac_mid
=`expr 2 '*' $ac_mid + 1`
6944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.
$ac_ext >&5
6950 cat >conftest.
$ac_ext <<_ACEOF
6953 cat confdefs.h
>>conftest.
$ac_ext
6954 cat >>conftest.
$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 $ac_includes_default
6960 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6967 rm -f conftest.
$ac_objext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969 (eval $ac_compile) 2>conftest.er1
6971 grep -v '^ *+' conftest.er1
>conftest.err
6973 cat conftest.err
>&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try
='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try
='test -s conftest.$ac_objext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6991 cat >conftest.
$ac_ext <<_ACEOF
6994 cat confdefs.h
>>conftest.
$ac_ext
6995 cat >>conftest.
$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 $ac_includes_default
7001 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7008 rm -f conftest.
$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>conftest.er1
7012 grep -v '^ *+' conftest.er1
>conftest.err
7014 cat conftest.err
>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try
='test -z "$ac_c_werror_flag"
7018 || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try
='test -s conftest.$ac_objext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_lo
=$ac_mid; break
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.
$ac_ext >&5
7035 ac_hi
=`expr '(' $ac_mid ')' - 1`
7036 if test $ac_mid -le $ac_hi; then
7040 ac_mid
=`expr 2 '*' $ac_mid`
7042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.
$ac_ext >&5
7050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7053 # Binary search between lo and hi bounds.
7054 while test "x$ac_lo" != "x$ac_hi"; do
7055 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7056 cat >conftest.
$ac_ext <<_ACEOF
7059 cat confdefs.h
>>conftest.
$ac_ext
7060 cat >>conftest.
$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7066 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7073 rm -f conftest.
$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>conftest.er1
7077 grep -v '^ *+' conftest.er1
>conftest.err
7079 cat conftest.err
>&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try
='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try
='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.
$ac_ext >&5
7100 ac_lo
=`expr '(' $ac_mid ')' + 1`
7102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7105 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7107 See \`config.log' for more details." >&5
7108 echo "$as_me: error: cannot compute sizeof (long), 77
7109 See \`config.log' for more details." >&2;}
7110 { (exit 1); exit 1; }; } ;;
7113 if test "$cross_compiling" = yes; then
7114 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7115 See \`config.log' for more details." >&5
7116 echo "$as_me: error: cannot run test program while cross compiling
7117 See \`config.log' for more details." >&2;}
7118 { (exit 1); exit 1; }; }
7120 cat >conftest.
$ac_ext <<_ACEOF
7123 cat confdefs.h
>>conftest.
$ac_ext
7124 cat >>conftest.
$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 long longval () { return (long) (sizeof (long)); }
7128 unsigned long ulongval () { return (long) (sizeof (long)); }
7135 FILE *f = fopen ("conftest.val", "w");
7138 if (((long) (sizeof (long))) < 0)
7140 long i = longval ();
7141 if (i != ((long) (sizeof (long))))
7143 fprintf (f, "%ld\n", i);
7147 unsigned long i = ulongval ();
7148 if (i != ((long) (sizeof (long))))
7150 fprintf (f, "%lu\n", i);
7152 exit (ferror (f) || fclose (f) != 0);
7158 rm -f conftest
$ac_exeext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7160 (eval $ac_link) 2>&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_cv_sizeof_long
=`cat conftest.val`
7171 echo "$as_me: program exited with status $ac_status" >&5
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.
$ac_ext >&5
7176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7177 See \`config.log' for more details." >&5
7178 echo "$as_me: error: cannot compute sizeof (long), 77
7179 See \`config.log' for more details." >&2;}
7180 { (exit 1); exit 1; }; }
7182 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7191 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7192 cat >>confdefs.h
<<_ACEOF
7193 #define SIZEOF_LONG $ac_cv_sizeof_long
7197 echo "$as_me:$LINENO: checking for void *" >&5
7198 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7199 if test "${ac_cv_type_void_p+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 cat >conftest.
$ac_ext <<_ACEOF
7205 cat confdefs.h
>>conftest.
$ac_ext
7206 cat >>conftest.
$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7214 if (sizeof (void *))
7220 rm -f conftest.
$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>conftest.er1
7224 grep -v '^ *+' conftest.er1
>conftest.err
7226 cat conftest.err
>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try
='test -z "$ac_c_werror_flag"
7230 || test ! -s conftest.err'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; } &&
7236 { ac_try
='test -s conftest.$ac_objext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7242 ac_cv_type_void_p
=yes
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.
$ac_ext >&5
7247 ac_cv_type_void_p
=no
7249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7251 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7252 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7254 echo "$as_me:$LINENO: checking size of void *" >&5
7255 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7256 if test "${ac_cv_sizeof_void_p+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if test "$ac_cv_type_void_p" = yes; then
7260 # The cast to unsigned long works around a bug in the HP C Compiler
7261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7263 # This bug is HP SR number 8606223364.
7264 if test "$cross_compiling" = yes; then
7265 # Depending upon the size, compute the lo and hi bounds.
7266 cat >conftest.
$ac_ext <<_ACEOF
7269 cat confdefs.h
>>conftest.
$ac_ext
7270 cat >>conftest.
$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 $ac_includes_default
7276 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7283 rm -f conftest.
$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1
>conftest.err
7289 cat conftest.err
>&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try
='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try
='test -s conftest.$ac_objext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7307 cat >conftest.
$ac_ext <<_ACEOF
7310 cat confdefs.h
>>conftest.
$ac_ext
7311 cat >>conftest.
$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7317 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7324 rm -f conftest.
$ac_objext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326 (eval $ac_compile) 2>conftest.er1
7328 grep -v '^ *+' conftest.er1
>conftest.err
7330 cat conftest.err
>&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try
='test -z "$ac_c_werror_flag"
7334 || test ! -s conftest.err'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; } &&
7340 { ac_try
='test -s conftest.$ac_objext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_hi
=$ac_mid; break
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.
$ac_ext >&5
7351 ac_lo
=`expr $ac_mid + 1`
7352 if test $ac_lo -le $ac_mid; then
7356 ac_mid
=`expr 2 '*' $ac_mid + 1`
7358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.
$ac_ext >&5
7364 cat >conftest.
$ac_ext <<_ACEOF
7367 cat confdefs.h
>>conftest.
$ac_ext
7368 cat >>conftest.
$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7374 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7381 rm -f conftest.
$ac_objext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>conftest.er1
7385 grep -v '^ *+' conftest.er1
>conftest.err
7387 cat conftest.err
>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try
='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try
='test -s conftest.$ac_objext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7405 cat >conftest.
$ac_ext <<_ACEOF
7408 cat confdefs.h
>>conftest.
$ac_ext
7409 cat >>conftest.
$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7415 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7422 rm -f conftest.
$ac_objext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>conftest.er1
7426 grep -v '^ *+' conftest.er1
>conftest.err
7428 cat conftest.err
>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try
='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try
='test -s conftest.$ac_objext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_lo
=$ac_mid; break
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.
$ac_ext >&5
7449 ac_hi
=`expr '(' $ac_mid ')' - 1`
7450 if test $ac_mid -le $ac_hi; then
7454 ac_mid
=`expr 2 '*' $ac_mid`
7456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.
$ac_ext >&5
7464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7466 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7467 # Binary search between lo and hi bounds.
7468 while test "x$ac_lo" != "x$ac_hi"; do
7469 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7470 cat >conftest.
$ac_ext <<_ACEOF
7473 cat confdefs.h
>>conftest.
$ac_ext
7474 cat >>conftest.
$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7480 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7487 rm -f conftest.
$ac_objext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489 (eval $ac_compile) 2>conftest.er1
7491 grep -v '^ *+' conftest.er1
>conftest.err
7493 cat conftest.err
>&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try
='test -z "$ac_c_werror_flag"
7497 || test ! -s conftest.err'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; } &&
7503 { ac_try
='test -s conftest.$ac_objext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.
$ac_ext >&5
7514 ac_lo
=`expr '(' $ac_mid ')' + 1`
7516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7519 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7520 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7521 See \`config.log' for more details." >&5
7522 echo "$as_me: error: cannot compute sizeof (void *), 77
7523 See \`config.log' for more details." >&2;}
7524 { (exit 1); exit 1; }; } ;;
7527 if test "$cross_compiling" = yes; then
7528 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7529 See \`config.log' for more details." >&5
7530 echo "$as_me: error: cannot run test program while cross compiling
7531 See \`config.log' for more details." >&2;}
7532 { (exit 1); exit 1; }; }
7534 cat >conftest.
$ac_ext <<_ACEOF
7537 cat confdefs.h
>>conftest.
$ac_ext
7538 cat >>conftest.
$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 $ac_includes_default
7541 long longval () { return (long) (sizeof (void *)); }
7542 unsigned long ulongval () { return (long) (sizeof (void *)); }
7549 FILE *f = fopen ("conftest.val", "w");
7552 if (((long) (sizeof (void *))) < 0)
7554 long i = longval ();
7555 if (i != ((long) (sizeof (void *))))
7557 fprintf (f, "%ld\n", i);
7561 unsigned long i = ulongval ();
7562 if (i != ((long) (sizeof (void *))))
7564 fprintf (f, "%lu\n", i);
7566 exit (ferror (f) || fclose (f) != 0);
7572 rm -f conftest
$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_sizeof_void_p
=`cat conftest.val`
7585 echo "$as_me: program exited with status $ac_status" >&5
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.
$ac_ext >&5
7590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7591 See \`config.log' for more details." >&5
7592 echo "$as_me: error: cannot compute sizeof (void *), 77
7593 See \`config.log' for more details." >&2;}
7594 { (exit 1); exit 1; }; }
7596 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7601 ac_cv_sizeof_void_p
=0
7604 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7605 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7606 cat >>confdefs.h
<<_ACEOF
7607 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7611 echo "$as_me:$LINENO: checking for short" >&5
7612 echo $ECHO_N "checking for short... $ECHO_C" >&6
7613 if test "${ac_cv_type_short+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 cat >conftest.
$ac_ext <<_ACEOF
7619 cat confdefs.h
>>conftest.
$ac_ext
7620 cat >>conftest.
$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 $ac_includes_default
7634 rm -f conftest.
$ac_objext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636 (eval $ac_compile) 2>conftest.er1
7638 grep -v '^ *+' conftest.er1
>conftest.err
7640 cat conftest.err
>&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try
='test -z "$ac_c_werror_flag"
7644 || test ! -s conftest.err'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; } &&
7650 { ac_try
='test -s conftest.$ac_objext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656 ac_cv_type_short
=yes
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.
$ac_ext >&5
7663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7665 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7666 echo "${ECHO_T}$ac_cv_type_short" >&6
7668 echo "$as_me:$LINENO: checking size of short" >&5
7669 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7670 if test "${ac_cv_sizeof_short+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 if test "$ac_cv_type_short" = yes; then
7674 # The cast to unsigned long works around a bug in the HP C Compiler
7675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7677 # This bug is HP SR number 8606223364.
7678 if test "$cross_compiling" = yes; then
7679 # Depending upon the size, compute the lo and hi bounds.
7680 cat >conftest.
$ac_ext <<_ACEOF
7683 cat confdefs.h
>>conftest.
$ac_ext
7684 cat >>conftest.
$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 $ac_includes_default
7690 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7697 rm -f conftest.
$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7701 grep -v '^ *+' conftest.er1
>conftest.err
7703 cat conftest.err
>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try
='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try
='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7721 cat >conftest.
$ac_ext <<_ACEOF
7724 cat confdefs.h
>>conftest.
$ac_ext
7725 cat >>conftest.
$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7731 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7738 rm -f conftest.
$ac_objext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7740 (eval $ac_compile) 2>conftest.er1
7742 grep -v '^ *+' conftest.er1
>conftest.err
7744 cat conftest.err
>&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try
='test -z "$ac_c_werror_flag"
7748 || test ! -s conftest.err'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try
='test -s conftest.$ac_objext'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 ac_hi
=$ac_mid; break
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.
$ac_ext >&5
7765 ac_lo
=`expr $ac_mid + 1`
7766 if test $ac_lo -le $ac_mid; then
7770 ac_mid
=`expr 2 '*' $ac_mid + 1`
7772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.
$ac_ext >&5
7778 cat >conftest.
$ac_ext <<_ACEOF
7781 cat confdefs.h
>>conftest.
$ac_ext
7782 cat >>conftest.
$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 $ac_includes_default
7788 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7795 rm -f conftest.
$ac_objext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797 (eval $ac_compile) 2>conftest.er1
7799 grep -v '^ *+' conftest.er1
>conftest.err
7801 cat conftest.err
>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } &&
7804 { ac_try
='test -z "$ac_c_werror_flag"
7805 || test ! -s conftest.err'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; } &&
7811 { ac_try
='test -s conftest.$ac_objext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7819 cat >conftest.
$ac_ext <<_ACEOF
7822 cat confdefs.h
>>conftest.
$ac_ext
7823 cat >>conftest.
$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 $ac_includes_default
7829 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7836 rm -f conftest.
$ac_objext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7838 (eval $ac_compile) 2>conftest.er1
7840 grep -v '^ *+' conftest.er1
>conftest.err
7842 cat conftest.err
>&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try
='test -z "$ac_c_werror_flag"
7846 || test ! -s conftest.err'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; } &&
7852 { ac_try
='test -s conftest.$ac_objext'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_lo
=$ac_mid; break
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.
$ac_ext >&5
7863 ac_hi
=`expr '(' $ac_mid ')' - 1`
7864 if test $ac_mid -le $ac_hi; then
7868 ac_mid
=`expr 2 '*' $ac_mid`
7870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.
$ac_ext >&5
7878 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7881 # Binary search between lo and hi bounds.
7882 while test "x$ac_lo" != "x$ac_hi"; do
7883 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7884 cat >conftest.
$ac_ext <<_ACEOF
7887 cat confdefs.h
>>conftest.
$ac_ext
7888 cat >>conftest.
$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 $ac_includes_default
7894 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7901 rm -f conftest.
$ac_objext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903 (eval $ac_compile) 2>conftest.er1
7905 grep -v '^ *+' conftest.er1
>conftest.err
7907 cat conftest.err
>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try
='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try
='test -s conftest.$ac_objext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.
$ac_ext >&5
7928 ac_lo
=`expr '(' $ac_mid ')' + 1`
7930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7933 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7934 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7935 See \`config.log' for more details." >&5
7936 echo "$as_me: error: cannot compute sizeof (short), 77
7937 See \`config.log' for more details." >&2;}
7938 { (exit 1); exit 1; }; } ;;
7941 if test "$cross_compiling" = yes; then
7942 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7943 See \`config.log' for more details." >&5
7944 echo "$as_me: error: cannot run test program while cross compiling
7945 See \`config.log' for more details." >&2;}
7946 { (exit 1); exit 1; }; }
7948 cat >conftest.
$ac_ext <<_ACEOF
7951 cat confdefs.h
>>conftest.
$ac_ext
7952 cat >>conftest.
$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 $ac_includes_default
7955 long longval () { return (long) (sizeof (short)); }
7956 unsigned long ulongval () { return (long) (sizeof (short)); }
7963 FILE *f = fopen ("conftest.val", "w");
7966 if (((long) (sizeof (short))) < 0)
7968 long i = longval ();
7969 if (i != ((long) (sizeof (short))))
7971 fprintf (f, "%ld\n", i);
7975 unsigned long i = ulongval ();
7976 if (i != ((long) (sizeof (short))))
7978 fprintf (f, "%lu\n", i);
7980 exit (ferror (f) || fclose (f) != 0);
7986 rm -f conftest
$ac_exeext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_sizeof_short
=`cat conftest.val`
7999 echo "$as_me: program exited with status $ac_status" >&5
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.
$ac_ext >&5
8004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8005 See \`config.log' for more details." >&5
8006 echo "$as_me: error: cannot compute sizeof (short), 77
8007 See \`config.log' for more details." >&2;}
8008 { (exit 1); exit 1; }; }
8010 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8015 ac_cv_sizeof_short
=0
8018 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8019 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8020 cat >>confdefs.h
<<_ACEOF
8021 #define SIZEOF_SHORT $ac_cv_sizeof_short
8025 echo "$as_me:$LINENO: checking for float" >&5
8026 echo $ECHO_N "checking for float... $ECHO_C" >&6
8027 if test "${ac_cv_type_float+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 cat >conftest.
$ac_ext <<_ACEOF
8033 cat confdefs.h
>>conftest.
$ac_ext
8034 cat >>conftest.
$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8048 rm -f conftest.
$ac_objext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>conftest.er1
8052 grep -v '^ *+' conftest.er1
>conftest.err
8054 cat conftest.err
>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try
='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try
='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_type_float
=yes
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.
$ac_ext >&5
8077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8079 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8080 echo "${ECHO_T}$ac_cv_type_float" >&6
8082 echo "$as_me:$LINENO: checking size of float" >&5
8083 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8084 if test "${ac_cv_sizeof_float+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 if test "$ac_cv_type_float" = yes; then
8088 # The cast to unsigned long works around a bug in the HP C Compiler
8089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8091 # This bug is HP SR number 8606223364.
8092 if test "$cross_compiling" = yes; then
8093 # Depending upon the size, compute the lo and hi bounds.
8094 cat >conftest.
$ac_ext <<_ACEOF
8097 cat confdefs.h
>>conftest.
$ac_ext
8098 cat >>conftest.
$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 $ac_includes_default
8104 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8111 rm -f conftest.
$ac_objext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113 (eval $ac_compile) 2>conftest.er1
8115 grep -v '^ *+' conftest.er1
>conftest.err
8117 cat conftest.err
>&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try
='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try
='test -s conftest.$ac_objext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8135 cat >conftest.
$ac_ext <<_ACEOF
8138 cat confdefs.h
>>conftest.
$ac_ext
8139 cat >>conftest.
$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8145 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8152 rm -f conftest.
$ac_objext
8153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8154 (eval $ac_compile) 2>conftest.er1
8156 grep -v '^ *+' conftest.er1
>conftest.err
8158 cat conftest.err
>&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try
='test -z "$ac_c_werror_flag"
8162 || test ! -s conftest.err'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; } &&
8168 { ac_try
='test -s conftest.$ac_objext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_hi
=$ac_mid; break
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.
$ac_ext >&5
8179 ac_lo
=`expr $ac_mid + 1`
8180 if test $ac_lo -le $ac_mid; then
8184 ac_mid
=`expr 2 '*' $ac_mid + 1`
8186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.
$ac_ext >&5
8192 cat >conftest.
$ac_ext <<_ACEOF
8195 cat confdefs.h
>>conftest.
$ac_ext
8196 cat >>conftest.
$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 $ac_includes_default
8202 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8209 rm -f conftest.
$ac_objext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211 (eval $ac_compile) 2>conftest.er1
8213 grep -v '^ *+' conftest.er1
>conftest.err
8215 cat conftest.err
>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try
='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try
='test -s conftest.$ac_objext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8233 cat >conftest.
$ac_ext <<_ACEOF
8236 cat confdefs.h
>>conftest.
$ac_ext
8237 cat >>conftest.
$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 $ac_includes_default
8243 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8250 rm -f conftest.
$ac_objext
8251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8252 (eval $ac_compile) 2>conftest.er1
8254 grep -v '^ *+' conftest.er1
>conftest.err
8256 cat conftest.err
>&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try
='test -z "$ac_c_werror_flag"
8260 || test ! -s conftest.err'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try
='test -s conftest.$ac_objext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_lo
=$ac_mid; break
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.
$ac_ext >&5
8277 ac_hi
=`expr '(' $ac_mid ')' - 1`
8278 if test $ac_mid -le $ac_hi; then
8282 ac_mid
=`expr 2 '*' $ac_mid`
8284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.
$ac_ext >&5
8292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8295 # Binary search between lo and hi bounds.
8296 while test "x$ac_lo" != "x$ac_hi"; do
8297 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8298 cat >conftest.
$ac_ext <<_ACEOF
8301 cat confdefs.h
>>conftest.
$ac_ext
8302 cat >>conftest.
$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8308 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8315 rm -f conftest.
$ac_objext
8316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8317 (eval $ac_compile) 2>conftest.er1
8319 grep -v '^ *+' conftest.er1
>conftest.err
8321 cat conftest.err
>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try
='test -z "$ac_c_werror_flag"
8325 || test ! -s conftest.err'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try
='test -s conftest.$ac_objext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.
$ac_ext >&5
8342 ac_lo
=`expr '(' $ac_mid ')' + 1`
8344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8347 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8349 See \`config.log' for more details." >&5
8350 echo "$as_me: error: cannot compute sizeof (float), 77
8351 See \`config.log' for more details." >&2;}
8352 { (exit 1); exit 1; }; } ;;
8355 if test "$cross_compiling" = yes; then
8356 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8357 See \`config.log' for more details." >&5
8358 echo "$as_me: error: cannot run test program while cross compiling
8359 See \`config.log' for more details." >&2;}
8360 { (exit 1); exit 1; }; }
8362 cat >conftest.
$ac_ext <<_ACEOF
8365 cat confdefs.h
>>conftest.
$ac_ext
8366 cat >>conftest.
$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 $ac_includes_default
8369 long longval () { return (long) (sizeof (float)); }
8370 unsigned long ulongval () { return (long) (sizeof (float)); }
8377 FILE *f = fopen ("conftest.val", "w");
8380 if (((long) (sizeof (float))) < 0)
8382 long i = longval ();
8383 if (i != ((long) (sizeof (float))))
8385 fprintf (f, "%ld\n", i);
8389 unsigned long i = ulongval ();
8390 if (i != ((long) (sizeof (float))))
8392 fprintf (f, "%lu\n", i);
8394 exit (ferror (f) || fclose (f) != 0);
8400 rm -f conftest
$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402 (eval $ac_link) 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_sizeof_float
=`cat conftest.val`
8413 echo "$as_me: program exited with status $ac_status" >&5
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.
$ac_ext >&5
8418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8419 See \`config.log' for more details." >&5
8420 echo "$as_me: error: cannot compute sizeof (float), 77
8421 See \`config.log' for more details." >&2;}
8422 { (exit 1); exit 1; }; }
8424 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8429 ac_cv_sizeof_float
=0
8432 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8433 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8434 cat >>confdefs.h
<<_ACEOF
8435 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8439 echo "$as_me:$LINENO: checking for double" >&5
8440 echo $ECHO_N "checking for double... $ECHO_C" >&6
8441 if test "${ac_cv_type_double+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 cat >conftest.
$ac_ext <<_ACEOF
8447 cat confdefs.h
>>conftest.
$ac_ext
8448 cat >>conftest.
$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 $ac_includes_default
8456 if (sizeof (double))
8462 rm -f conftest.
$ac_objext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464 (eval $ac_compile) 2>conftest.er1
8466 grep -v '^ *+' conftest.er1
>conftest.err
8468 cat conftest.err
>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try
='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try
='test -s conftest.$ac_objext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_type_double
=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.
$ac_ext >&5
8489 ac_cv_type_double
=no
8491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8494 echo "${ECHO_T}$ac_cv_type_double" >&6
8496 echo "$as_me:$LINENO: checking size of double" >&5
8497 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8498 if test "${ac_cv_sizeof_double+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 if test "$ac_cv_type_double" = yes; then
8502 # The cast to unsigned long works around a bug in the HP C Compiler
8503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8505 # This bug is HP SR number 8606223364.
8506 if test "$cross_compiling" = yes; then
8507 # Depending upon the size, compute the lo and hi bounds.
8508 cat >conftest.
$ac_ext <<_ACEOF
8511 cat confdefs.h
>>conftest.
$ac_ext
8512 cat >>conftest.
$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 $ac_includes_default
8518 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8525 rm -f conftest.
$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1
>conftest.err
8531 cat conftest.err
>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try
='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try
='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8549 cat >conftest.
$ac_ext <<_ACEOF
8552 cat confdefs.h
>>conftest.
$ac_ext
8553 cat >>conftest.
$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8559 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8566 rm -f conftest.
$ac_objext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568 (eval $ac_compile) 2>conftest.er1
8570 grep -v '^ *+' conftest.er1
>conftest.err
8572 cat conftest.err
>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try
='test -z "$ac_c_werror_flag"
8576 || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try
='test -s conftest.$ac_objext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_hi
=$ac_mid; break
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.
$ac_ext >&5
8593 ac_lo
=`expr $ac_mid + 1`
8594 if test $ac_lo -le $ac_mid; then
8598 ac_mid
=`expr 2 '*' $ac_mid + 1`
8600 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.
$ac_ext >&5
8606 cat >conftest.
$ac_ext <<_ACEOF
8609 cat confdefs.h
>>conftest.
$ac_ext
8610 cat >>conftest.
$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8616 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8623 rm -f conftest.
$ac_objext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625 (eval $ac_compile) 2>conftest.er1
8627 grep -v '^ *+' conftest.er1
>conftest.err
8629 cat conftest.err
>&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try
='test -z "$ac_c_werror_flag"
8633 || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try
='test -s conftest.$ac_objext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8647 cat >conftest.
$ac_ext <<_ACEOF
8650 cat confdefs.h
>>conftest.
$ac_ext
8651 cat >>conftest.
$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 $ac_includes_default
8657 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8664 rm -f conftest.
$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>conftest.er1
8668 grep -v '^ *+' conftest.er1
>conftest.err
8670 cat conftest.err
>&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try
='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try
='test -s conftest.$ac_objext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_lo
=$ac_mid; break
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.
$ac_ext >&5
8691 ac_hi
=`expr '(' $ac_mid ')' - 1`
8692 if test $ac_mid -le $ac_hi; then
8696 ac_mid
=`expr 2 '*' $ac_mid`
8698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.
$ac_ext >&5
8706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8709 # Binary search between lo and hi bounds.
8710 while test "x$ac_lo" != "x$ac_hi"; do
8711 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8712 cat >conftest.
$ac_ext <<_ACEOF
8715 cat confdefs.h
>>conftest.
$ac_ext
8716 cat >>conftest.
$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 $ac_includes_default
8722 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8729 rm -f conftest.
$ac_objext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731 (eval $ac_compile) 2>conftest.er1
8733 grep -v '^ *+' conftest.er1
>conftest.err
8735 cat conftest.err
>&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try
='test -z "$ac_c_werror_flag"
8739 || test ! -s conftest.err'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try
='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.
$ac_ext >&5
8756 ac_lo
=`expr '(' $ac_mid ')' + 1`
8758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8761 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8762 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8763 See \`config.log' for more details." >&5
8764 echo "$as_me: error: cannot compute sizeof (double), 77
8765 See \`config.log' for more details." >&2;}
8766 { (exit 1); exit 1; }; } ;;
8769 if test "$cross_compiling" = yes; then
8770 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8771 See \`config.log' for more details." >&5
8772 echo "$as_me: error: cannot run test program while cross compiling
8773 See \`config.log' for more details." >&2;}
8774 { (exit 1); exit 1; }; }
8776 cat >conftest.
$ac_ext <<_ACEOF
8779 cat confdefs.h
>>conftest.
$ac_ext
8780 cat >>conftest.
$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 $ac_includes_default
8783 long longval () { return (long) (sizeof (double)); }
8784 unsigned long ulongval () { return (long) (sizeof (double)); }
8791 FILE *f = fopen ("conftest.val", "w");
8794 if (((long) (sizeof (double))) < 0)
8796 long i = longval ();
8797 if (i != ((long) (sizeof (double))))
8799 fprintf (f, "%ld\n", i);
8803 unsigned long i = ulongval ();
8804 if (i != ((long) (sizeof (double))))
8806 fprintf (f, "%lu\n", i);
8808 exit (ferror (f) || fclose (f) != 0);
8814 rm -f conftest
$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_sizeof_double
=`cat conftest.val`
8827 echo "$as_me: program exited with status $ac_status" >&5
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.
$ac_ext >&5
8832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8833 See \`config.log' for more details." >&5
8834 echo "$as_me: error: cannot compute sizeof (double), 77
8835 See \`config.log' for more details." >&2;}
8836 { (exit 1); exit 1; }; }
8838 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8843 ac_cv_sizeof_double
=0
8846 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8847 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8848 cat >>confdefs.h
<<_ACEOF
8849 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8853 echo "$as_me:$LINENO: checking for fpos_t" >&5
8854 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8855 if test "${ac_cv_type_fpos_t+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 cat >conftest.
$ac_ext <<_ACEOF
8861 cat confdefs.h
>>conftest.
$ac_ext
8862 cat >>conftest.
$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8870 if (sizeof (fpos_t))
8876 rm -f conftest.
$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8880 grep -v '^ *+' conftest.er1
>conftest.err
8882 cat conftest.err
>&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try
='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try
='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_cv_type_fpos_t
=yes
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.
$ac_ext >&5
8903 ac_cv_type_fpos_t
=no
8905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8907 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8908 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8910 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8911 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8912 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 if test "$ac_cv_type_fpos_t" = yes; then
8916 # The cast to unsigned long works around a bug in the HP C Compiler
8917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8919 # This bug is HP SR number 8606223364.
8920 if test "$cross_compiling" = yes; then
8921 # Depending upon the size, compute the lo and hi bounds.
8922 cat >conftest.
$ac_ext <<_ACEOF
8925 cat confdefs.h
>>conftest.
$ac_ext
8926 cat >>conftest.
$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8932 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8939 rm -f conftest.
$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>conftest.er1
8943 grep -v '^ *+' conftest.er1
>conftest.err
8945 cat conftest.err
>&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try
='test -z "$ac_c_werror_flag"
8949 || test ! -s conftest.err'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; } &&
8955 { ac_try
='test -s conftest.$ac_objext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8963 cat >conftest.
$ac_ext <<_ACEOF
8966 cat confdefs.h
>>conftest.
$ac_ext
8967 cat >>conftest.
$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 $ac_includes_default
8973 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8980 rm -f conftest.
$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>conftest.er1
8984 grep -v '^ *+' conftest.er1
>conftest.err
8986 cat conftest.err
>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try
='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try
='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_hi
=$ac_mid; break
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.
$ac_ext >&5
9007 ac_lo
=`expr $ac_mid + 1`
9008 if test $ac_lo -le $ac_mid; then
9012 ac_mid
=`expr 2 '*' $ac_mid + 1`
9014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.
$ac_ext >&5
9020 cat >conftest.
$ac_ext <<_ACEOF
9023 cat confdefs.h
>>conftest.
$ac_ext
9024 cat >>conftest.
$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9030 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
9037 rm -f conftest.
$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1
>conftest.err
9043 cat conftest.err
>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try
='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try
='test -s conftest.$ac_objext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9061 cat >conftest.
$ac_ext <<_ACEOF
9064 cat confdefs.h
>>conftest.
$ac_ext
9065 cat >>conftest.
$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 $ac_includes_default
9071 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
9078 rm -f conftest.
$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1
>conftest.err
9084 cat conftest.err
>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try
='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try
='test -s conftest.$ac_objext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_lo
=$ac_mid; break
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.
$ac_ext >&5
9105 ac_hi
=`expr '(' $ac_mid ')' - 1`
9106 if test $ac_mid -le $ac_hi; then
9110 ac_mid
=`expr 2 '*' $ac_mid`
9112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.
$ac_ext >&5
9120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9123 # Binary search between lo and hi bounds.
9124 while test "x$ac_lo" != "x$ac_hi"; do
9125 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9126 cat >conftest.
$ac_ext <<_ACEOF
9129 cat confdefs.h
>>conftest.
$ac_ext
9130 cat >>conftest.
$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9136 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9143 rm -f conftest.
$ac_objext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9145 (eval $ac_compile) 2>conftest.er1
9147 grep -v '^ *+' conftest.er1
>conftest.err
9149 cat conftest.err
>&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try
='test -z "$ac_c_werror_flag"
9153 || test ! -s conftest.err'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
9159 { ac_try
='test -s conftest.$ac_objext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.
$ac_ext >&5
9170 ac_lo
=`expr '(' $ac_mid ')' + 1`
9172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9175 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9176 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9177 See \`config.log' for more details." >&5
9178 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9179 See \`config.log' for more details." >&2;}
9180 { (exit 1); exit 1; }; } ;;
9183 if test "$cross_compiling" = yes; then
9184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9185 See \`config.log' for more details." >&5
9186 echo "$as_me: error: cannot run test program while cross compiling
9187 See \`config.log' for more details." >&2;}
9188 { (exit 1); exit 1; }; }
9190 cat >conftest.
$ac_ext <<_ACEOF
9193 cat confdefs.h
>>conftest.
$ac_ext
9194 cat >>conftest.
$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 $ac_includes_default
9197 long longval () { return (long) (sizeof (fpos_t)); }
9198 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9205 FILE *f = fopen ("conftest.val", "w");
9208 if (((long) (sizeof (fpos_t))) < 0)
9210 long i = longval ();
9211 if (i != ((long) (sizeof (fpos_t))))
9213 fprintf (f, "%ld\n", i);
9217 unsigned long i = ulongval ();
9218 if (i != ((long) (sizeof (fpos_t))))
9220 fprintf (f, "%lu\n", i);
9222 exit (ferror (f) || fclose (f) != 0);
9228 rm -f conftest
$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9241 echo "$as_me: program exited with status $ac_status" >&5
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.
$ac_ext >&5
9246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9247 See \`config.log' for more details." >&5
9248 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9249 See \`config.log' for more details." >&2;}
9250 { (exit 1); exit 1; }; }
9252 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9257 ac_cv_sizeof_fpos_t
=0
9260 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9261 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9262 cat >>confdefs.h
<<_ACEOF
9263 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9267 echo "$as_me:$LINENO: checking for size_t" >&5
9268 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9269 if test "${ac_cv_type_size_t+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 cat >conftest.
$ac_ext <<_ACEOF
9275 cat confdefs.h
>>conftest.
$ac_ext
9276 cat >>conftest.
$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9278 $ac_includes_default
9284 if (sizeof (size_t))
9290 rm -f conftest.
$ac_objext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292 (eval $ac_compile) 2>conftest.er1
9294 grep -v '^ *+' conftest.er1
>conftest.err
9296 cat conftest.err
>&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try
='test -z "$ac_c_werror_flag"
9300 || test ! -s conftest.err'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; } &&
9306 { ac_try
='test -s conftest.$ac_objext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_type_size_t
=yes
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.
$ac_ext >&5
9317 ac_cv_type_size_t
=no
9319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9321 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9322 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9324 echo "$as_me:$LINENO: checking size of size_t" >&5
9325 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9326 if test "${ac_cv_sizeof_size_t+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 if test "$ac_cv_type_size_t" = yes; then
9330 # The cast to unsigned long works around a bug in the HP C Compiler
9331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9333 # This bug is HP SR number 8606223364.
9334 if test "$cross_compiling" = yes; then
9335 # Depending upon the size, compute the lo and hi bounds.
9336 cat >conftest.
$ac_ext <<_ACEOF
9339 cat confdefs.h
>>conftest.
$ac_ext
9340 cat >>conftest.
$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 $ac_includes_default
9346 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9353 rm -f conftest.
$ac_objext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355 (eval $ac_compile) 2>conftest.er1
9357 grep -v '^ *+' conftest.er1
>conftest.err
9359 cat conftest.err
>&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try
='test -z "$ac_c_werror_flag"
9363 || test ! -s conftest.err'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try
='test -s conftest.$ac_objext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9377 cat >conftest.
$ac_ext <<_ACEOF
9380 cat confdefs.h
>>conftest.
$ac_ext
9381 cat >>conftest.
$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 $ac_includes_default
9387 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9394 rm -f conftest.
$ac_objext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>conftest.er1
9398 grep -v '^ *+' conftest.er1
>conftest.err
9400 cat conftest.err
>&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try
='test -z "$ac_c_werror_flag"
9404 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try
='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_hi
=$ac_mid; break
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.
$ac_ext >&5
9421 ac_lo
=`expr $ac_mid + 1`
9422 if test $ac_lo -le $ac_mid; then
9426 ac_mid
=`expr 2 '*' $ac_mid + 1`
9428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.
$ac_ext >&5
9434 cat >conftest.
$ac_ext <<_ACEOF
9437 cat confdefs.h
>>conftest.
$ac_ext
9438 cat >>conftest.
$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 $ac_includes_default
9444 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9451 rm -f conftest.
$ac_objext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453 (eval $ac_compile) 2>conftest.er1
9455 grep -v '^ *+' conftest.er1
>conftest.err
9457 cat conftest.err
>&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try
='test -z "$ac_c_werror_flag"
9461 || test ! -s conftest.err'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; } &&
9467 { ac_try
='test -s conftest.$ac_objext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9475 cat >conftest.
$ac_ext <<_ACEOF
9478 cat confdefs.h
>>conftest.
$ac_ext
9479 cat >>conftest.
$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 $ac_includes_default
9485 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9492 rm -f conftest.
$ac_objext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9494 (eval $ac_compile) 2>conftest.er1
9496 grep -v '^ *+' conftest.er1
>conftest.err
9498 cat conftest.err
>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try
='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try
='test -s conftest.$ac_objext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 ac_lo
=$ac_mid; break
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.
$ac_ext >&5
9519 ac_hi
=`expr '(' $ac_mid ')' - 1`
9520 if test $ac_mid -le $ac_hi; then
9524 ac_mid
=`expr 2 '*' $ac_mid`
9526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.
$ac_ext >&5
9534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9537 # Binary search between lo and hi bounds.
9538 while test "x$ac_lo" != "x$ac_hi"; do
9539 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9540 cat >conftest.
$ac_ext <<_ACEOF
9543 cat confdefs.h
>>conftest.
$ac_ext
9544 cat >>conftest.
$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 $ac_includes_default
9550 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9557 rm -f conftest.
$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>conftest.er1
9561 grep -v '^ *+' conftest.er1
>conftest.err
9563 cat conftest.err
>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try
='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try
='test -s conftest.$ac_objext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.
$ac_ext >&5
9584 ac_lo
=`expr '(' $ac_mid ')' + 1`
9586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9589 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9590 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9591 See \`config.log' for more details." >&5
9592 echo "$as_me: error: cannot compute sizeof (size_t), 77
9593 See \`config.log' for more details." >&2;}
9594 { (exit 1); exit 1; }; } ;;
9597 if test "$cross_compiling" = yes; then
9598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9599 See \`config.log' for more details." >&5
9600 echo "$as_me: error: cannot run test program while cross compiling
9601 See \`config.log' for more details." >&2;}
9602 { (exit 1); exit 1; }; }
9604 cat >conftest.
$ac_ext <<_ACEOF
9607 cat confdefs.h
>>conftest.
$ac_ext
9608 cat >>conftest.
$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 $ac_includes_default
9611 long longval () { return (long) (sizeof (size_t)); }
9612 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9619 FILE *f = fopen ("conftest.val", "w");
9622 if (((long) (sizeof (size_t))) < 0)
9624 long i = longval ();
9625 if (i != ((long) (sizeof (size_t))))
9627 fprintf (f, "%ld\n", i);
9631 unsigned long i = ulongval ();
9632 if (i != ((long) (sizeof (size_t))))
9634 fprintf (f, "%lu\n", i);
9636 exit (ferror (f) || fclose (f) != 0);
9642 rm -f conftest
$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_cv_sizeof_size_t
=`cat conftest.val`
9655 echo "$as_me: program exited with status $ac_status" >&5
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.
$ac_ext >&5
9660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9661 See \`config.log' for more details." >&5
9662 echo "$as_me: error: cannot compute sizeof (size_t), 77
9663 See \`config.log' for more details." >&2;}
9664 { (exit 1); exit 1; }; }
9666 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9671 ac_cv_sizeof_size_t
=0
9674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9675 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9676 cat >>confdefs.h
<<_ACEOF
9677 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9682 echo "$as_me:$LINENO: checking for long long support" >&5
9683 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9685 cat >conftest.
$ac_ext <<_ACEOF
9688 cat confdefs.h
>>conftest.
$ac_ext
9689 cat >>conftest.
$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9695 long long x; x = (long long)0;
9700 rm -f conftest.
$ac_objext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>conftest.er1
9704 grep -v '^ *+' conftest.er1
>conftest.err
9706 cat conftest.err
>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try
='test -z "$ac_c_werror_flag"
9710 || test ! -s conftest.err'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try
='test -s conftest.$ac_objext'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9724 cat >>confdefs.h
<<\_ACEOF
9725 #define HAVE_LONG_LONG 1
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.
$ac_ext >&5
9735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9736 echo "$as_me:$LINENO: result: $have_long_long" >&5
9737 echo "${ECHO_T}$have_long_long" >&6
9738 if test "$have_long_long" = yes ; then
9739 echo "$as_me:$LINENO: checking for long long" >&5
9740 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9741 if test "${ac_cv_type_long_long+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 cat >conftest.
$ac_ext <<_ACEOF
9747 cat confdefs.h
>>conftest.
$ac_ext
9748 cat >>conftest.
$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9754 if ((long long *) 0)
9756 if (sizeof (long long))
9762 rm -f conftest.
$ac_objext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9764 (eval $ac_compile) 2>conftest.er1
9766 grep -v '^ *+' conftest.er1
>conftest.err
9768 cat conftest.err
>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try
='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try
='test -s conftest.$ac_objext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_type_long_long
=yes
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.
$ac_ext >&5
9789 ac_cv_type_long_long
=no
9791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9793 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9794 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9796 echo "$as_me:$LINENO: checking size of long long" >&5
9797 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9798 if test "${ac_cv_sizeof_long_long+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 if test "$ac_cv_type_long_long" = yes; then
9802 # The cast to unsigned long works around a bug in the HP C Compiler
9803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9805 # This bug is HP SR number 8606223364.
9806 if test "$cross_compiling" = yes; then
9807 # Depending upon the size, compute the lo and hi bounds.
9808 cat >conftest.
$ac_ext <<_ACEOF
9811 cat confdefs.h
>>conftest.
$ac_ext
9812 cat >>conftest.
$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 $ac_includes_default
9818 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9825 rm -f conftest.
$ac_objext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827 (eval $ac_compile) 2>conftest.er1
9829 grep -v '^ *+' conftest.er1
>conftest.err
9831 cat conftest.err
>&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try
='test -z "$ac_c_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try
='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9849 cat >conftest.
$ac_ext <<_ACEOF
9852 cat confdefs.h
>>conftest.
$ac_ext
9853 cat >>conftest.
$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 $ac_includes_default
9859 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9866 rm -f conftest.
$ac_objext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9868 (eval $ac_compile) 2>conftest.er1
9870 grep -v '^ *+' conftest.er1
>conftest.err
9872 cat conftest.err
>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try
='test -z "$ac_c_werror_flag"
9876 || test ! -s conftest.err'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try
='test -s conftest.$ac_objext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_hi
=$ac_mid; break
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.
$ac_ext >&5
9893 ac_lo
=`expr $ac_mid + 1`
9894 if test $ac_lo -le $ac_mid; then
9898 ac_mid
=`expr 2 '*' $ac_mid + 1`
9900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.
$ac_ext >&5
9906 cat >conftest.
$ac_ext <<_ACEOF
9909 cat confdefs.h
>>conftest.
$ac_ext
9910 cat >>conftest.
$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 $ac_includes_default
9916 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9923 rm -f conftest.
$ac_objext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9925 (eval $ac_compile) 2>conftest.er1
9927 grep -v '^ *+' conftest.er1
>conftest.err
9929 cat conftest.err
>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try
='test -z "$ac_c_werror_flag"
9933 || test ! -s conftest.err'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try
='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9947 cat >conftest.
$ac_ext <<_ACEOF
9950 cat confdefs.h
>>conftest.
$ac_ext
9951 cat >>conftest.
$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9953 $ac_includes_default
9957 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9964 rm -f conftest.
$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1
>conftest.err
9970 cat conftest.err
>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try
='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try
='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_lo
=$ac_mid; break
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.
$ac_ext >&5
9991 ac_hi
=`expr '(' $ac_mid ')' - 1`
9992 if test $ac_mid -le $ac_hi; then
9996 ac_mid
=`expr 2 '*' $ac_mid`
9998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.
$ac_ext >&5
10006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10008 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10009 # Binary search between lo and hi bounds.
10010 while test "x$ac_lo" != "x$ac_hi"; do
10011 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10012 cat >conftest.
$ac_ext <<_ACEOF
10015 cat confdefs.h
>>conftest.
$ac_ext
10016 cat >>conftest.
$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 $ac_includes_default
10022 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10029 rm -f conftest.
$ac_objext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>conftest.er1
10033 grep -v '^ *+' conftest.er1
>conftest.err
10035 cat conftest.err
>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
10038 { ac_try
='test -z "$ac_c_werror_flag"
10039 || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try
='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.
$ac_ext >&5
10056 ac_lo
=`expr '(' $ac_mid ')' + 1`
10058 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10061 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
10062 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10063 See \`config.log' for more details." >&5
10064 echo "$as_me: error: cannot compute sizeof (long long), 77
10065 See \`config.log' for more details." >&2;}
10066 { (exit 1); exit 1; }; } ;;
10069 if test "$cross_compiling" = yes; then
10070 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10071 See \`config.log' for more details." >&5
10072 echo "$as_me: error: cannot run test program while cross compiling
10073 See \`config.log' for more details." >&2;}
10074 { (exit 1); exit 1; }; }
10076 cat >conftest.
$ac_ext <<_ACEOF
10079 cat confdefs.h
>>conftest.
$ac_ext
10080 cat >>conftest.
$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 $ac_includes_default
10083 long longval () { return (long) (sizeof (long long)); }
10084 unsigned long ulongval () { return (long) (sizeof (long long)); }
10086 #include <stdlib.h>
10091 FILE *f = fopen ("conftest.val", "w");
10094 if (((long) (sizeof (long long))) < 0)
10096 long i = longval ();
10097 if (i != ((long) (sizeof (long long))))
10099 fprintf (f, "%ld\n", i);
10103 unsigned long i = ulongval ();
10104 if (i != ((long) (sizeof (long long))))
10106 fprintf (f, "%lu\n", i);
10108 exit (ferror (f) || fclose (f) != 0);
10114 rm -f conftest
$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 ac_cv_sizeof_long_long
=`cat conftest.val`
10127 echo "$as_me: program exited with status $ac_status" >&5
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.
$ac_ext >&5
10131 ( exit $ac_status )
10132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10133 See \`config.log' for more details." >&5
10134 echo "$as_me: error: cannot compute sizeof (long long), 77
10135 See \`config.log' for more details." >&2;}
10136 { (exit 1); exit 1; }; }
10138 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10143 ac_cv_sizeof_long_long
=0
10146 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10147 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10148 cat >>confdefs.h
<<_ACEOF
10149 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10155 echo "$as_me:$LINENO: checking for _Bool support" >&5
10156 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6
10158 cat >conftest.
$ac_ext <<_ACEOF
10161 cat confdefs.h
>>conftest.
$ac_ext
10162 cat >>conftest.
$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10168 _Bool x; x = (_Bool)0;
10173 rm -f conftest.
$ac_objext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>conftest.er1
10177 grep -v '^ *+' conftest.er1
>conftest.err
10179 cat conftest.err
>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try
='test -z "$ac_c_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try
='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10197 cat >>confdefs.h
<<\_ACEOF
10198 #define HAVE_C99_BOOL 1
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.
$ac_ext >&5
10208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10209 echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10210 echo "${ECHO_T}$have_c99_bool" >&6
10211 if test "$have_c99_bool" = yes ; then
10212 echo "$as_me:$LINENO: checking for _Bool" >&5
10213 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10214 if test "${ac_cv_type__Bool+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 cat >conftest.
$ac_ext <<_ACEOF
10220 cat confdefs.h
>>conftest.
$ac_ext
10221 cat >>conftest.
$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 $ac_includes_default
10229 if (sizeof (_Bool))
10235 rm -f conftest.
$ac_objext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237 (eval $ac_compile) 2>conftest.er1
10239 grep -v '^ *+' conftest.er1
>conftest.err
10241 cat conftest.err
>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try
='test -z "$ac_c_werror_flag"
10245 || test ! -s conftest.err'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try
='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_type__Bool
=yes
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.
$ac_ext >&5
10262 ac_cv_type__Bool
=no
10264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10266 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10267 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10269 echo "$as_me:$LINENO: checking size of _Bool" >&5
10270 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6
10271 if test "${ac_cv_sizeof__Bool+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 if test "$ac_cv_type__Bool" = yes; then
10275 # The cast to unsigned long works around a bug in the HP C Compiler
10276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10278 # This bug is HP SR number 8606223364.
10279 if test "$cross_compiling" = yes; then
10280 # Depending upon the size, compute the lo and hi bounds.
10281 cat >conftest.
$ac_ext <<_ACEOF
10284 cat confdefs.h
>>conftest.
$ac_ext
10285 cat >>conftest.
$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 $ac_includes_default
10291 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= 0)];
10298 rm -f conftest.
$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10302 grep -v '^ *+' conftest.er1
>conftest.err
10304 cat conftest.err
>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try
='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try
='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10322 cat >conftest.
$ac_ext <<_ACEOF
10325 cat confdefs.h
>>conftest.
$ac_ext
10326 cat >>conftest.
$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 $ac_includes_default
10332 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10339 rm -f conftest.
$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10343 grep -v '^ *+' conftest.er1
>conftest.err
10345 cat conftest.err
>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try
='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try
='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_hi
=$ac_mid; break
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.
$ac_ext >&5
10366 ac_lo
=`expr $ac_mid + 1`
10367 if test $ac_lo -le $ac_mid; then
10371 ac_mid
=`expr 2 '*' $ac_mid + 1`
10373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.
$ac_ext >&5
10379 cat >conftest.
$ac_ext <<_ACEOF
10382 cat confdefs.h
>>conftest.
$ac_ext
10383 cat >>conftest.
$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10389 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) < 0)];
10396 rm -f conftest.
$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 (eval $ac_compile) 2>conftest.er1
10400 grep -v '^ *+' conftest.er1
>conftest.err
10402 cat conftest.err
>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try
='test -z "$ac_c_werror_flag"
10406 || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try
='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10420 cat >conftest.
$ac_ext <<_ACEOF
10423 cat confdefs.h
>>conftest.
$ac_ext
10424 cat >>conftest.
$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10430 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= $ac_mid)];
10437 rm -f conftest.
$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>conftest.er1
10441 grep -v '^ *+' conftest.er1
>conftest.err
10443 cat conftest.err
>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try
='test -z "$ac_c_werror_flag"
10447 || test ! -s conftest.err'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try
='test -s conftest.$ac_objext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 ac_lo
=$ac_mid; break
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.
$ac_ext >&5
10464 ac_hi
=`expr '(' $ac_mid ')' - 1`
10465 if test $ac_mid -le $ac_hi; then
10469 ac_mid
=`expr 2 '*' $ac_mid`
10471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.
$ac_ext >&5
10479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10482 # Binary search between lo and hi bounds.
10483 while test "x$ac_lo" != "x$ac_hi"; do
10484 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10485 cat >conftest.
$ac_ext <<_ACEOF
10488 cat confdefs.h
>>conftest.
$ac_ext
10489 cat >>conftest.
$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 $ac_includes_default
10495 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10502 rm -f conftest.
$ac_objext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504 (eval $ac_compile) 2>conftest.er1
10506 grep -v '^ *+' conftest.er1
>conftest.err
10508 cat conftest.err
>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try
='test -z "$ac_c_werror_flag"
10512 || test ! -s conftest.err'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try
='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.
$ac_ext >&5
10529 ac_lo
=`expr '(' $ac_mid ')' + 1`
10531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10534 ?
*) ac_cv_sizeof__Bool
=$ac_lo;;
10535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10536 See \`config.log' for more details." >&5
10537 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10538 See \`config.log' for more details." >&2;}
10539 { (exit 1); exit 1; }; } ;;
10542 if test "$cross_compiling" = yes; then
10543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10544 See \`config.log' for more details." >&5
10545 echo "$as_me: error: cannot run test program while cross compiling
10546 See \`config.log' for more details." >&2;}
10547 { (exit 1); exit 1; }; }
10549 cat >conftest.
$ac_ext <<_ACEOF
10552 cat confdefs.h
>>conftest.
$ac_ext
10553 cat >>conftest.
$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 $ac_includes_default
10556 long longval () { return (long) (sizeof (_Bool)); }
10557 unsigned long ulongval () { return (long) (sizeof (_Bool)); }
10559 #include <stdlib.h>
10564 FILE *f = fopen ("conftest.val", "w");
10567 if (((long) (sizeof (_Bool))) < 0)
10569 long i = longval ();
10570 if (i != ((long) (sizeof (_Bool))))
10572 fprintf (f, "%ld\n", i);
10576 unsigned long i = ulongval ();
10577 if (i != ((long) (sizeof (_Bool))))
10579 fprintf (f, "%lu\n", i);
10581 exit (ferror (f) || fclose (f) != 0);
10587 rm -f conftest
$ac_exeext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589 (eval $ac_link) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_cv_sizeof__Bool
=`cat conftest.val`
10600 echo "$as_me: program exited with status $ac_status" >&5
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.
$ac_ext >&5
10604 ( exit $ac_status )
10605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10606 See \`config.log' for more details." >&5
10607 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10608 See \`config.log' for more details." >&2;}
10609 { (exit 1); exit 1; }; }
10611 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10616 ac_cv_sizeof__Bool
=0
10619 echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
10620 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6
10621 cat >>confdefs.h
<<_ACEOF
10622 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
10628 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10629 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10630 if test "${ac_cv_type_uintptr_t+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 cat >conftest.
$ac_ext <<_ACEOF
10636 cat confdefs.h
>>conftest.
$ac_ext
10637 cat >>conftest.
$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #ifdef HAVE_STDINT_H
10640 #include <stdint.h>
10646 if ((uintptr_t *) 0)
10648 if (sizeof (uintptr_t))
10654 rm -f conftest.
$ac_objext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>conftest.er1
10658 grep -v '^ *+' conftest.er1
>conftest.err
10660 cat conftest.err
>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try
='test -z "$ac_c_werror_flag"
10664 || test ! -s conftest.err'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; } &&
10670 { ac_try
='test -s conftest.$ac_objext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_type_uintptr_t
=yes
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.
$ac_ext >&5
10681 ac_cv_type_uintptr_t
=no
10683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10685 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10686 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10687 if test $ac_cv_type_uintptr_t = yes; then
10689 cat >>confdefs.h
<<_ACEOF
10690 #define HAVE_UINTPTR_T 1
10693 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10694 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10695 if test "${ac_cv_type_uintptr_t+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 cat >conftest.
$ac_ext <<_ACEOF
10701 cat confdefs.h
>>conftest.
$ac_ext
10702 cat >>conftest.
$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 $ac_includes_default
10708 if ((uintptr_t *) 0)
10710 if (sizeof (uintptr_t))
10716 rm -f conftest.
$ac_objext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718 (eval $ac_compile) 2>conftest.er1
10720 grep -v '^ *+' conftest.er1
>conftest.err
10722 cat conftest.err
>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try
='test -z "$ac_c_werror_flag"
10726 || test ! -s conftest.err'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try
='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_type_uintptr_t
=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.
$ac_ext >&5
10743 ac_cv_type_uintptr_t
=no
10745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10747 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10748 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10750 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10751 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10752 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 if test "$ac_cv_type_uintptr_t" = yes; then
10756 # The cast to unsigned long works around a bug in the HP C Compiler
10757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10759 # This bug is HP SR number 8606223364.
10760 if test "$cross_compiling" = yes; then
10761 # Depending upon the size, compute the lo and hi bounds.
10762 cat >conftest.
$ac_ext <<_ACEOF
10765 cat confdefs.h
>>conftest.
$ac_ext
10766 cat >>conftest.
$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 $ac_includes_default
10772 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10779 rm -f conftest.
$ac_objext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10781 (eval $ac_compile) 2>conftest.er1
10783 grep -v '^ *+' conftest.er1
>conftest.err
10785 cat conftest.err
>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try
='test -z "$ac_c_werror_flag"
10789 || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try
='test -s conftest.$ac_objext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10803 cat >conftest.
$ac_ext <<_ACEOF
10806 cat confdefs.h
>>conftest.
$ac_ext
10807 cat >>conftest.
$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 $ac_includes_default
10813 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10820 rm -f conftest.
$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>conftest.er1
10824 grep -v '^ *+' conftest.er1
>conftest.err
10826 cat conftest.err
>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try
='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try
='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_hi
=$ac_mid; break
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 ac_lo
=`expr $ac_mid + 1`
10848 if test $ac_lo -le $ac_mid; then
10852 ac_mid
=`expr 2 '*' $ac_mid + 1`
10854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.
$ac_ext >&5
10860 cat >conftest.
$ac_ext <<_ACEOF
10863 cat confdefs.h
>>conftest.
$ac_ext
10864 cat >>conftest.
$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10870 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10877 rm -f conftest.
$ac_objext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>conftest.er1
10881 grep -v '^ *+' conftest.er1
>conftest.err
10883 cat conftest.err
>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try
='test -z "$ac_c_werror_flag"
10887 || test ! -s conftest.err'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try
='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10901 cat >conftest.
$ac_ext <<_ACEOF
10904 cat confdefs.h
>>conftest.
$ac_ext
10905 cat >>conftest.
$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 $ac_includes_default
10911 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10918 rm -f conftest.
$ac_objext
10919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10920 (eval $ac_compile) 2>conftest.er1
10922 grep -v '^ *+' conftest.er1
>conftest.err
10924 cat conftest.err
>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try
='test -z "$ac_c_werror_flag"
10928 || test ! -s conftest.err'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try
='test -s conftest.$ac_objext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_lo
=$ac_mid; break
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.
$ac_ext >&5
10945 ac_hi
=`expr '(' $ac_mid ')' - 1`
10946 if test $ac_mid -le $ac_hi; then
10950 ac_mid
=`expr 2 '*' $ac_mid`
10952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.
$ac_ext >&5
10960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10963 # Binary search between lo and hi bounds.
10964 while test "x$ac_lo" != "x$ac_hi"; do
10965 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10966 cat >conftest.
$ac_ext <<_ACEOF
10969 cat confdefs.h
>>conftest.
$ac_ext
10970 cat >>conftest.
$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10972 $ac_includes_default
10976 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10983 rm -f conftest.
$ac_objext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10985 (eval $ac_compile) 2>conftest.er1
10987 grep -v '^ *+' conftest.er1
>conftest.err
10989 cat conftest.err
>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try
='test -z "$ac_c_werror_flag"
10993 || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try
='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.
$ac_ext >&5
11010 ac_lo
=`expr '(' $ac_mid ')' + 1`
11012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11015 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
11016 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11017 See \`config.log' for more details." >&5
11018 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11019 See \`config.log' for more details." >&2;}
11020 { (exit 1); exit 1; }; } ;;
11023 if test "$cross_compiling" = yes; then
11024 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11025 See \`config.log' for more details." >&5
11026 echo "$as_me: error: cannot run test program while cross compiling
11027 See \`config.log' for more details." >&2;}
11028 { (exit 1); exit 1; }; }
11030 cat >conftest.
$ac_ext <<_ACEOF
11033 cat confdefs.h
>>conftest.
$ac_ext
11034 cat >>conftest.
$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 $ac_includes_default
11037 long longval () { return (long) (sizeof (uintptr_t)); }
11038 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
11040 #include <stdlib.h>
11045 FILE *f = fopen ("conftest.val", "w");
11048 if (((long) (sizeof (uintptr_t))) < 0)
11050 long i = longval ();
11051 if (i != ((long) (sizeof (uintptr_t))))
11053 fprintf (f, "%ld\n", i);
11057 unsigned long i = ulongval ();
11058 if (i != ((long) (sizeof (uintptr_t))))
11060 fprintf (f, "%lu\n", i);
11062 exit (ferror (f) || fclose (f) != 0);
11068 rm -f conftest
$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
11081 echo "$as_me: program exited with status $ac_status" >&5
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.
$ac_ext >&5
11085 ( exit $ac_status )
11086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11087 See \`config.log' for more details." >&5
11088 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11089 See \`config.log' for more details." >&2;}
11090 { (exit 1); exit 1; }; }
11092 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11097 ac_cv_sizeof_uintptr_t
=0
11100 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11101 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
11102 cat >>confdefs.h
<<_ACEOF
11103 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11111 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11112 echo "$as_me:$LINENO: checking size of off_t" >&5
11113 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11114 if test "${ac_cv_sizeof_off_t+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 if test "$cross_compiling" = yes; then
11118 ac_cv_sizeof_off_t
=4
11120 cat >conftest.
$ac_ext <<_ACEOF
11123 cat confdefs.h
>>conftest.
$ac_ext
11124 cat >>conftest.
$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11127 #include <sys/types.h>
11130 FILE *f=fopen("conftestval", "w");
11132 fprintf(f, "%d\n", sizeof(off_t));
11136 rm -f conftest
$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_cv_sizeof_off_t
=`cat conftestval`
11149 echo "$as_me: program exited with status $ac_status" >&5
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.
$ac_ext >&5
11153 ( exit $ac_status )
11154 ac_cv_sizeof_off_t
=0
11156 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11161 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11162 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11164 cat >>confdefs.h
<<_ACEOF
11165 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11169 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11170 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
11171 if test "$have_long_long" = yes -a \
11172 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11173 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11175 cat >>confdefs.h
<<\_ACEOF
11176 #define HAVE_LARGEFILE_SUPPORT 1
11179 echo "$as_me:$LINENO: result: yes" >&5
11180 echo "${ECHO_T}yes" >&6
11182 echo "$as_me:$LINENO: result: no" >&5
11183 echo "${ECHO_T}no" >&6
11186 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11187 echo "$as_me:$LINENO: checking size of time_t" >&5
11188 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
11189 if test "${ac_cv_sizeof_time_t+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 if test "$cross_compiling" = yes; then
11193 ac_cv_sizeof_time_t
=4
11195 cat >conftest.
$ac_ext <<_ACEOF
11198 cat confdefs.h
>>conftest.
$ac_ext
11199 cat >>conftest.
$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11205 FILE *f=fopen("conftestval", "w");
11207 fprintf(f, "%d\n", sizeof(time_t));
11211 rm -f conftest
$ac_exeext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_sizeof_time_t
=`cat conftestval`
11224 echo "$as_me: program exited with status $ac_status" >&5
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.
$ac_ext >&5
11228 ( exit $ac_status )
11229 ac_cv_sizeof_time_t
=0
11231 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11236 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11237 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
11239 cat >>confdefs.h
<<_ACEOF
11240 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11245 # if have pthread_t then define SIZEOF_PTHREAD_T
11247 if test "$ac_cv_kpthread" = "yes"
11248 then CC
="$CC -Kpthread"
11249 elif test "$ac_cv_kthread" = "yes"
11250 then CC
="$CC -Kthread"
11251 elif test "$ac_cv_pthread" = "yes"
11252 then CC
="$CC -pthread"
11254 echo "$as_me:$LINENO: checking for pthread_t" >&5
11255 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
11257 cat >conftest.
$ac_ext <<_ACEOF
11260 cat confdefs.h
>>conftest.
$ac_ext
11261 cat >>conftest.
$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <pthread.h>
11267 pthread_t x; x = *(pthread_t*)0;
11272 rm -f conftest.
$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1
>conftest.err
11278 cat conftest.err
>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try
='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try
='test -s conftest.$ac_objext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.
$ac_ext >&5
11300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11301 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11302 echo "${ECHO_T}$have_pthread_t" >&6
11303 if test "$have_pthread_t" = yes ; then
11304 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11305 echo "$as_me:$LINENO: checking size of pthread_t" >&5
11306 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
11307 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 if test "$cross_compiling" = yes; then
11311 ac_cv_sizeof_pthread_t
=4
11313 cat >conftest.
$ac_ext <<_ACEOF
11316 cat confdefs.h
>>conftest.
$ac_ext
11317 cat >>conftest.
$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11320 #include <pthread.h>
11323 FILE *f=fopen("conftestval", "w");
11325 fprintf(f, "%d\n", sizeof(pthread_t));
11329 rm -f conftest
$ac_exeext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11331 (eval $ac_link) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_sizeof_pthread_t
=`cat conftestval`
11342 echo "$as_me: program exited with status $ac_status" >&5
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.
$ac_ext >&5
11346 ( exit $ac_status )
11347 ac_cv_sizeof_pthread_t
=0
11349 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11355 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
11357 cat >>confdefs.h
<<_ACEOF
11358 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11364 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11365 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
11366 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
11367 if test "${enable_toolbox_glue+set}" = set; then
11368 enableval
="$enable_toolbox_glue"
11372 if test -z "$enable_toolbox_glue"
11374 case $ac_sys_system/$ac_sys_release in
11376 enable_toolbox_glue
="yes";;
11378 enable_toolbox_glue
="no";;
11381 case "$enable_toolbox_glue" in
11383 extra_machdep_objs
="Python/mactoolboxglue.o"
11384 extra_undefs
="-u _PyMac_Error"
11386 cat >>confdefs.h
<<\_ACEOF
11387 #define USE_TOOLBOX_OBJECT_GLUE 1
11392 extra_machdep_objs
=""
11396 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11397 echo "${ECHO_T}$enable_toolbox_glue" >&6
11400 case $ac_sys_system/$ac_sys_release in
11401 Darwin
/[01567]\..
*)
11402 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
11405 OTHER_LIBTOOL_OPT
=""
11410 case $ac_sys_system/$ac_sys_release in
11411 Darwin
/[01567]\..
*)
11412 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
11413 if test "${enable_universalsdk}"; then
11416 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
11418 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11419 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11421 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11422 if test ${gcc_version} '<' 4.0
11424 LIBTOOL_CRUFT
="-lcc_dynamic"
11428 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11429 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11430 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11433 echo "$as_me:$LINENO: checking for --enable-framework" >&5
11434 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
11435 if test "$enable_framework"
11437 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
11438 # -F. is needed to allow linking to the framework while
11439 # in the build location.
11441 cat >>confdefs.h
<<\_ACEOF
11442 #define WITH_NEXT_FRAMEWORK 1
11445 echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6
11448 echo "$as_me:$LINENO: result: no" >&5
11449 echo "${ECHO_T}no" >&6
11452 echo "$as_me:$LINENO: checking for dyld" >&5
11453 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
11454 case $ac_sys_system/$ac_sys_release in
11457 cat >>confdefs.h
<<\_ACEOF
11458 #define WITH_DYLD 1
11461 echo "$as_me:$LINENO: result: always on for Darwin" >&5
11462 echo "${ECHO_T}always on for Darwin" >&6
11465 echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6
11470 # Set info about shared libraries.
11476 # SO is the extension of shared libraries `(including the dot!)
11477 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11478 echo "$as_me:$LINENO: checking SO" >&5
11479 echo $ECHO_N "checking SO... $ECHO_C" >&6
11482 case $ac_sys_system in
11493 # this might also be a termcap variable, see #610332
11495 echo '====================================================================='
11497 echo '+ WARNING: You have set SO in your environment. +'
11498 echo '+ Do you really mean to change the extension for shared libraries? +'
11499 echo '+ Continuing in 10 seconds to let you to ponder. +'
11501 echo '====================================================================='
11504 echo "$as_me:$LINENO: result: $SO" >&5
11505 echo "${ECHO_T}$SO" >&6
11507 cat >>confdefs.h
<<_ACEOF
11508 #define SHLIB_EXT "$SO"
11511 # LDSHARED is the ld *command* used to create shared library
11512 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11513 # (Shared libraries in this instance are shared modules to be loaded into
11514 # Python, as opposed to building Python itself as a shared library.)
11515 echo "$as_me:$LINENO: checking LDSHARED" >&5
11516 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
11517 if test -z "$LDSHARED"
11519 case $ac_sys_system/$ac_sys_release in
11521 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11522 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11525 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11526 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11528 IRIX
/5*) LDSHARED
="ld -shared";;
11529 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
11531 if test "$GCC" = "yes"
11532 then LDSHARED
='$(CC) -shared'
11533 else LDSHARED
='$(CC) -G';
11535 hp
*|HP
*) LDSHARED
="ld -b";;
11536 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
11538 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11539 if test "$enable_framework" ; then
11540 # Link against the framework. All externals should be defined.
11541 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11542 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11544 # No framework. Ignore undefined symbols, assuming they come from Python
11545 LDSHARED
="$LDSHARED -undefined suppress"
11547 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
11548 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11549 if test "$enable_framework" ; then
11550 # Link against the framework. All externals should be defined.
11551 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11552 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11554 # No framework, use the Python app as bundle-loader
11555 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11556 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11559 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11560 # This allows an extension to be used in any Python
11561 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11562 if test ${cur_target} '>' 10.2; then
11565 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11566 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
11567 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11569 if test "${enable_universalsdk}"; then
11570 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11572 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11573 BLDSHARED
="$LDSHARED"
11575 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11576 if test "$enable_framework" ; then
11577 # Link against the framework. All externals should be defined.
11578 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11579 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11581 # No framework, use the Python app as bundle-loader
11582 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11583 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11587 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11588 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11590 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11592 LDSHARED
="$CC -shared ${LDFLAGS}"
11594 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11597 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11599 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11602 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11603 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11606 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11610 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11611 OpenUNIX
*|UnixWare
*)
11612 if test "$GCC" = "yes"
11613 then LDSHARED
='$(CC) -shared'
11614 else LDSHARED
='$(CC) -G'
11616 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11617 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11618 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11619 atheos
*) LDSHARED
="gcc -shared";;
11623 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11624 echo "${ECHO_T}$LDSHARED" >&6
11625 BLDSHARED
=${BLDSHARED-$LDSHARED}
11626 # CCSHARED are the C *flags* used to create objects to go into a shared
11627 # library (module) -- this is only needed for a few systems
11628 echo "$as_me:$LINENO: checking CCSHARED" >&5
11629 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11630 if test -z "$CCSHARED"
11632 case $ac_sys_system/$ac_sys_release in
11633 SunOS
*) if test "$GCC" = yes;
11634 then CCSHARED
="-fPIC";
11635 elif test `uname -p` = sparc
;
11636 then CCSHARED
="-xcode=pic32";
11637 else CCSHARED
="-Kpic";
11639 hp
*|HP
*) if test "$GCC" = yes;
11640 then CCSHARED
="-fPIC";
11641 else CCSHARED
="+z";
11643 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11644 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11645 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11646 OpenUNIX
*|UnixWare
*)
11647 if test "$GCC" = "yes"
11648 then CCSHARED
="-fPIC"
11649 else CCSHARED
="-KPIC"
11652 if test "$GCC" = "yes"
11653 then CCSHARED
="-fPIC"
11654 else CCSHARED
="-Kpic -belf"
11656 Monterey
*) CCSHARED
="-G";;
11657 IRIX
*/6*) case $CC in
11658 *gcc
*) CCSHARED
="-shared";;
11661 atheos
*) CCSHARED
="-fPIC";;
11664 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11665 echo "${ECHO_T}$CCSHARED" >&6
11666 # LINKFORSHARED are the flags passed to the $(CC) command that links
11667 # the python executable -- this is only needed for a few systems
11668 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11669 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11670 if test -z "$LINKFORSHARED"
11672 case $ac_sys_system/$ac_sys_release in
11673 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11675 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11676 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11677 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11678 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11679 # -u libsys_s pulls in all symbols in libsys
11681 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11683 # not used by the core itself but which needs to be in the core so
11684 # that dynamically loaded extension modules have access to it.
11685 # -prebind is no longer used, because it actually seems to give a
11686 # slowdown in stead of a speedup, maybe due to the large number of
11687 # dynamic loads Python does.
11689 LINKFORSHARED
="$extra_undefs"
11690 if test "$enable_framework"
11692 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11694 LINKFORSHARED
="$LINKFORSHARED";;
11695 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11696 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11697 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11698 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11699 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11701 LINKFORSHARED
="-Wl,--export-dynamic"
11703 SunOS
/5*) case $CC in
11705 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11707 LINKFORSHARED
="-Xlinker --export-dynamic"
11711 if test $enable_shared = "no"
11713 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11717 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11718 echo "${ECHO_T}$LINKFORSHARED" >&6
11721 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11722 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11723 if test ! "$LIBRARY" = "$LDLIBRARY"
11725 case $ac_sys_system in
11727 # Cygwin needs CCSHARED when building extension DLLs
11728 # but not when building the interpreter DLL.
11729 CFLAGSFORSHARED
='';;
11731 CFLAGSFORSHARED
='$(CCSHARED)'
11734 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11735 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11737 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11738 # library (with --enable-shared).
11739 # For platforms on which shared libraries are not allowed to have unresolved
11740 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11741 # if it is not required, since it creates a dependency of the shared library
11742 # to LIBS. This, in turn, means that applications linking the shared libpython
11743 # don't need to link LIBS explicitly. The default should be only changed
11744 # on systems where this approach causes problems.
11746 echo "$as_me:$LINENO: checking SHLIBS" >&5
11747 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11748 case "$ac_sys_system" in
11752 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11753 echo "${ECHO_T}$SHLIBS" >&6
11756 # checks for libraries
11758 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11759 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11760 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 ac_check_lib_save_LIBS
=$LIBS
11765 cat >conftest.
$ac_ext <<_ACEOF
11768 cat confdefs.h
>>conftest.
$ac_ext
11769 cat >>conftest.
$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11772 /* Override any gcc2 internal prototype to avoid an error. */
11776 /* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11787 rm -f conftest.
$ac_objext conftest
$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>conftest.er1
11791 grep -v '^ *+' conftest.er1
>conftest.err
11793 cat conftest.err
>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try
='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try
='test -s conftest$ac_exeext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_lib_dl_dlopen
=yes
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.
$ac_ext >&5
11814 ac_cv_lib_dl_dlopen
=no
11816 rm -f conftest.err conftest.
$ac_objext \
11817 conftest
$ac_exeext conftest.
$ac_ext
11818 LIBS
=$ac_check_lib_save_LIBS
11820 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11822 if test $ac_cv_lib_dl_dlopen = yes; then
11823 cat >>confdefs.h
<<_ACEOF
11824 #define HAVE_LIBDL 1
11830 # Dynamic linking for SunOS/Solaris and SYSV
11832 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11833 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11834 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 ac_check_lib_save_LIBS
=$LIBS
11839 cat >conftest.
$ac_ext <<_ACEOF
11842 cat confdefs.h
>>conftest.
$ac_ext
11843 cat >>conftest.
$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11846 /* Override any gcc2 internal prototype to avoid an error. */
11850 /* We use char because int might match the return type of a gcc2
11851 builtin and then its argument prototype would still apply. */
11861 rm -f conftest.
$ac_objext conftest
$ac_exeext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863 (eval $ac_link) 2>conftest.er1
11865 grep -v '^ *+' conftest.er1
>conftest.err
11867 cat conftest.err
>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try
='test -z "$ac_c_werror_flag"
11871 || test ! -s conftest.err'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try
='test -s conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_lib_dld_shl_load
=yes
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.
$ac_ext >&5
11888 ac_cv_lib_dld_shl_load
=no
11890 rm -f conftest.err conftest.
$ac_objext \
11891 conftest
$ac_exeext conftest.
$ac_ext
11892 LIBS
=$ac_check_lib_save_LIBS
11894 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11895 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11896 if test $ac_cv_lib_dld_shl_load = yes; then
11897 cat >>confdefs.h
<<_ACEOF
11898 #define HAVE_LIBDLD 1
11904 # Dynamic linking for HP-UX
11906 # only check for sem_ini if thread support is requested
11907 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11908 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11909 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11910 if test "${ac_cv_search_sem_init+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 ac_func_search_save_LIBS
=$LIBS
11914 ac_cv_search_sem_init
=no
11915 cat >conftest.
$ac_ext <<_ACEOF
11918 cat confdefs.h
>>conftest.
$ac_ext
11919 cat >>conftest.
$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11922 /* Override any gcc2 internal prototype to avoid an error. */
11926 /* We use char because int might match the return type of a gcc2
11927 builtin and then its argument prototype would still apply. */
11937 rm -f conftest.
$ac_objext conftest
$ac_exeext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11939 (eval $ac_link) 2>conftest.er1
11941 grep -v '^ *+' conftest.er1
>conftest.err
11943 cat conftest.err
>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try
='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try
='test -s conftest$ac_exeext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_search_sem_init
="none required"
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.
$ac_ext >&5
11965 rm -f conftest.err conftest.
$ac_objext \
11966 conftest
$ac_exeext conftest.
$ac_ext
11967 if test "$ac_cv_search_sem_init" = no
; then
11968 for ac_lib
in pthread rt posix4
; do
11969 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11970 cat >conftest.
$ac_ext <<_ACEOF
11973 cat confdefs.h
>>conftest.
$ac_ext
11974 cat >>conftest.
$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11992 rm -f conftest.
$ac_objext conftest
$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11996 grep -v '^ *+' conftest.er1
>conftest.err
11998 cat conftest.err
>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try
='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try
='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_search_sem_init
="-l$ac_lib"
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.
$ac_ext >&5
12021 rm -f conftest.err conftest.
$ac_objext \
12022 conftest
$ac_exeext conftest.
$ac_ext
12025 LIBS
=$ac_func_search_save_LIBS
12027 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12028 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
12029 if test "$ac_cv_search_sem_init" != no
; then
12030 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
12033 # 'Real Time' functions on Solaris
12034 # posix4 on Solaris 2.6
12035 # pthread (first!) on Linux
12038 # check if we need libintl for locale functions
12039 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12040 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
12041 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 ac_check_lib_save_LIBS
=$LIBS
12045 LIBS
="-lintl $LIBS"
12046 cat >conftest.
$ac_ext <<_ACEOF
12049 cat confdefs.h
>>conftest.
$ac_ext
12050 cat >>conftest.
$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12053 /* Override any gcc2 internal prototype to avoid an error. */
12057 /* We use char because int might match the return type of a gcc2
12058 builtin and then its argument prototype would still apply. */
12059 char textdomain ();
12068 rm -f conftest.
$ac_objext conftest
$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>conftest.er1
12072 grep -v '^ *+' conftest.er1
>conftest.err
12074 cat conftest.err
>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try
='test -z "$ac_c_werror_flag"
12078 || test ! -s conftest.err'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try
='test -s conftest$ac_exeext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 ac_cv_lib_intl_textdomain
=yes
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.
$ac_ext >&5
12095 ac_cv_lib_intl_textdomain
=no
12097 rm -f conftest.err conftest.
$ac_objext \
12098 conftest
$ac_exeext conftest.
$ac_ext
12099 LIBS
=$ac_check_lib_save_LIBS
12101 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12102 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
12103 if test $ac_cv_lib_intl_textdomain = yes; then
12105 cat >>confdefs.h
<<\_ACEOF
12106 #define WITH_LIBINTL 1
12112 # checks for system dependent C++ extensions support
12113 case "$ac_sys_system" in
12114 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12115 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
12116 cat >conftest.
$ac_ext <<_ACEOF
12119 cat confdefs.h
>>conftest.
$ac_ext
12120 cat >>conftest.
$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 #include "/usr/lpp/xlC/include/load.h"
12126 loadAndInit("", 0, "")
12131 rm -f conftest.
$ac_objext conftest
$ac_exeext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133 (eval $ac_link) 2>conftest.er1
12135 grep -v '^ *+' conftest.er1
>conftest.err
12137 cat conftest.err
>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try
='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try
='test -s conftest$ac_exeext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12154 cat >>confdefs.h
<<\_ACEOF
12155 #define AIX_GENUINE_CPLUSPLUS 1
12158 echo "$as_me:$LINENO: result: yes" >&5
12159 echo "${ECHO_T}yes" >&6
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.
$ac_ext >&5
12164 echo "$as_me:$LINENO: result: no" >&5
12165 echo "${ECHO_T}no" >&6
12167 rm -f conftest.err conftest.
$ac_objext \
12168 conftest
$ac_exeext conftest.
$ac_ext;;
12172 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12173 # BeOS' sockets are stashed in libnet.
12174 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12175 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
12176 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 ac_check_lib_save_LIBS
=$LIBS
12181 cat >conftest.
$ac_ext <<_ACEOF
12184 cat confdefs.h
>>conftest.
$ac_ext
12185 cat >>conftest.
$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12188 /* Override any gcc2 internal prototype to avoid an error. */
12192 /* We use char because int might match the return type of a gcc2
12193 builtin and then its argument prototype would still apply. */
12203 rm -f conftest.
$ac_objext conftest
$ac_exeext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12205 (eval $ac_link) 2>conftest.er1
12207 grep -v '^ *+' conftest.er1
>conftest.err
12209 cat conftest.err
>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try
='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try
='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_nsl_t_open
=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.
$ac_ext >&5
12230 ac_cv_lib_nsl_t_open
=no
12232 rm -f conftest.err conftest.
$ac_objext \
12233 conftest
$ac_exeext conftest.
$ac_ext
12234 LIBS
=$ac_check_lib_save_LIBS
12236 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12237 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
12238 if test $ac_cv_lib_nsl_t_open = yes; then
12242 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12243 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12244 if test "${ac_cv_lib_socket_socket+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 ac_check_lib_save_LIBS
=$LIBS
12248 LIBS
="-lsocket $LIBS $LIBS"
12249 cat >conftest.
$ac_ext <<_ACEOF
12252 cat confdefs.h
>>conftest.
$ac_ext
12253 cat >>conftest.
$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12256 /* Override any gcc2 internal prototype to avoid an error. */
12260 /* We use char because int might match the return type of a gcc2
12261 builtin and then its argument prototype would still apply. */
12271 rm -f conftest.
$ac_objext conftest
$ac_exeext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12273 (eval $ac_link) 2>conftest.er1
12275 grep -v '^ *+' conftest.er1
>conftest.err
12277 cat conftest.err
>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try
='test -z "$ac_c_werror_flag"
12281 || test ! -s conftest.err'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; } &&
12287 { ac_try
='test -s conftest$ac_exeext'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_cv_lib_socket_socket
=yes
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.
$ac_ext >&5
12298 ac_cv_lib_socket_socket
=no
12300 rm -f conftest.err conftest.
$ac_objext \
12301 conftest
$ac_exeext conftest.
$ac_ext
12302 LIBS
=$ac_check_lib_save_LIBS
12304 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12305 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12306 if test $ac_cv_lib_socket_socket = yes; then
12307 LIBS
="-lsocket $LIBS"
12311 case "$ac_sys_system" in
12313 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12314 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
12315 if test "${ac_cv_lib_net_socket+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 ac_check_lib_save_LIBS
=$LIBS
12319 LIBS
="-lnet $LIBS $LIBS"
12320 cat >conftest.
$ac_ext <<_ACEOF
12323 cat confdefs.h
>>conftest.
$ac_ext
12324 cat >>conftest.
$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any gcc2 internal prototype to avoid an error. */
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12342 rm -f conftest.
$ac_objext conftest
$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12346 grep -v '^ *+' conftest.er1
>conftest.err
12348 cat conftest.err
>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try
='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try
='test -s conftest$ac_exeext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_lib_net_socket
=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.
$ac_ext >&5
12369 ac_cv_lib_net_socket
=no
12371 rm -f conftest.err conftest.
$ac_objext \
12372 conftest
$ac_exeext conftest.
$ac_ext
12373 LIBS
=$ac_check_lib_save_LIBS
12375 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12376 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
12377 if test $ac_cv_lib_net_socket = yes; then
12384 echo "$as_me:$LINENO: checking for --with-libs" >&5
12385 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
12387 # Check whether --with-libs or --without-libs was given.
12388 if test "${with_libs+set}" = set; then
12389 withval
="$with_libs"
12391 echo "$as_me:$LINENO: result: $withval" >&5
12392 echo "${ECHO_T}$withval" >&6
12393 LIBS
="$withval $LIBS"
12396 echo "$as_me:$LINENO: result: no" >&5
12397 echo "${ECHO_T}no" >&6
12400 # Check for use of the system libffi library
12401 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12402 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
12404 # Check whether --with-system_ffi or --without-system_ffi was given.
12405 if test "${with_system_ffi+set}" = set; then
12406 withval
="$with_system_ffi"
12410 if test -z "$with_system_ffi"
12411 then with_system_ffi
="no"
12413 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12414 echo "${ECHO_T}$with_system_ffi" >&6
12416 # Determine if signalmodule should be used.
12419 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12420 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
12422 # Check whether --with-signal-module or --without-signal-module was given.
12423 if test "${with_signal_module+set}" = set; then
12424 withval
="$with_signal_module"
12428 if test -z "$with_signal_module"
12429 then with_signal_module
="yes"
12431 echo "$as_me:$LINENO: result: $with_signal_module" >&5
12432 echo "${ECHO_T}$with_signal_module" >&6
12434 if test "${with_signal_module}" = "yes"; then
12435 USE_SIGNAL_MODULE
=""
12438 USE_SIGNAL_MODULE
="#"
12439 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
12442 # This is used to generate Setup.config
12444 USE_THREAD_MODULE
=""
12446 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12447 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
12450 # Check whether --with-dec-threads or --without-dec-threads was given.
12451 if test "${with_dec_threads+set}" = set; then
12452 withval
="$with_dec_threads"
12454 echo "$as_me:$LINENO: result: $withval" >&5
12455 echo "${ECHO_T}$withval" >&6
12457 if test "${with_thread+set}" != set; then
12458 with_thread
="$withval";
12461 echo "$as_me:$LINENO: result: no" >&5
12462 echo "${ECHO_T}no" >&6
12465 # Templates for things AC_DEFINEd more than once.
12466 # For a single AC_DEFINE, no template is needed.
12474 echo "$as_me:$LINENO: checking for --with-threads" >&5
12475 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
12477 # Check whether --with-threads or --without-threads was given.
12478 if test "${with_threads+set}" = set; then
12479 withval
="$with_threads"
12483 # --with-thread is deprecated, but check for it anyway
12485 # Check whether --with-thread or --without-thread was given.
12486 if test "${with_thread+set}" = set; then
12487 withval
="$with_thread"
12488 with_threads
=$with_thread
12491 if test -z "$with_threads"
12492 then with_threads
="yes"
12494 echo "$as_me:$LINENO: result: $with_threads" >&5
12495 echo "${ECHO_T}$with_threads" >&6
12498 if test "$with_threads" = "no"
12500 USE_THREAD_MODULE
="#"
12501 elif test "$ac_cv_pthread_is_default" = yes
12503 cat >>confdefs.h
<<\_ACEOF
12504 #define WITH_THREAD 1
12507 # Defining _REENTRANT on system with POSIX threads should not hurt.
12508 cat >>confdefs.h
<<\_ACEOF
12509 #define _REENTRANT 1
12513 THREADOBJ
="Python/thread.o"
12514 elif test "$ac_cv_kpthread" = "yes"
12517 if test "$ac_cv_cxx_thread" = "yes"; then
12518 CXX
="$CXX -Kpthread"
12520 cat >>confdefs.h
<<\_ACEOF
12521 #define WITH_THREAD 1
12525 THREADOBJ
="Python/thread.o"
12526 elif test "$ac_cv_kthread" = "yes"
12529 if test "$ac_cv_cxx_thread" = "yes"; then
12530 CXX
="$CXX -Kthread"
12532 cat >>confdefs.h
<<\_ACEOF
12533 #define WITH_THREAD 1
12537 THREADOBJ
="Python/thread.o"
12538 elif test "$ac_cv_pthread" = "yes"
12541 if test "$ac_cv_cxx_thread" = "yes"; then
12542 CXX
="$CXX -pthread"
12544 cat >>confdefs.h
<<\_ACEOF
12545 #define WITH_THREAD 1
12549 THREADOBJ
="Python/thread.o"
12551 if test ! -z "$with_threads" -a -d "$with_threads"
12552 then LDFLAGS
="$LDFLAGS -L$with_threads"
12554 if test ! -z "$withval" -a -d "$withval"
12555 then LDFLAGS
="$LDFLAGS -L$withval"
12558 # According to the POSIX spec, a pthreads implementation must
12559 # define _POSIX_THREADS in unistd.h. Some apparently don't
12560 # (e.g. gnu pth with pthread emulation)
12561 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12562 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12563 cat >conftest.
$ac_ext <<_ACEOF
12566 cat confdefs.h
>>conftest.
$ac_ext
12567 cat >>conftest.
$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 #include <unistd.h>
12571 #ifdef _POSIX_THREADS
12576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12577 $EGREP "yes" >/dev
/null
2>&1; then
12578 unistd_defines_pthreads
=yes
12580 unistd_defines_pthreads
=no
12584 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12585 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12587 cat >>confdefs.h
<<\_ACEOF
12588 #define _REENTRANT 1
12591 if test "${ac_cv_header_cthreads_h+set}" = set; then
12592 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12593 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12594 if test "${ac_cv_header_cthreads_h+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12598 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12600 # Is the header compilable?
12601 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12602 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12603 cat >conftest.
$ac_ext <<_ACEOF
12606 cat confdefs.h
>>conftest.
$ac_ext
12607 cat >>conftest.
$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 $ac_includes_default
12610 #include <cthreads.h>
12612 rm -f conftest.
$ac_objext
12613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12614 (eval $ac_compile) 2>conftest.er1
12616 grep -v '^ *+' conftest.er1
>conftest.err
12618 cat conftest.err
>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try
='test -z "$ac_c_werror_flag"
12622 || test ! -s conftest.err'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try
='test -s conftest.$ac_objext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 ac_header_compiler
=yes
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.
$ac_ext >&5
12639 ac_header_compiler
=no
12641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12643 echo "${ECHO_T}$ac_header_compiler" >&6
12645 # Is the header present?
12646 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12647 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12648 cat >conftest.
$ac_ext <<_ACEOF
12651 cat confdefs.h
>>conftest.
$ac_ext
12652 cat >>conftest.
$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 #include <cthreads.h>
12656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12657 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12659 grep -v '^ *+' conftest.er1
>conftest.err
12661 cat conftest.err
>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } >/dev
/null
; then
12664 if test -s conftest.err
; then
12665 ac_cpp_err
=$ac_c_preproc_warn_flag
12666 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12673 if test -z "$ac_cpp_err"; then
12674 ac_header_preproc
=yes
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.
$ac_ext >&5
12679 ac_header_preproc
=no
12681 rm -f conftest.err conftest.
$ac_ext
12682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12683 echo "${ECHO_T}$ac_header_preproc" >&6
12685 # So? What about this header?
12686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12688 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12689 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12691 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12692 ac_header_preproc
=yes
12695 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12696 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12698 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12699 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12700 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12701 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12702 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12704 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12706 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12709 ## ------------------------------------------------ ##
12710 ## Report this to http://www.python.org/python-bugs ##
12711 ## ------------------------------------------------ ##
12714 sed "s/^/$as_me: WARNING: /" >&2
12717 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12718 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12719 if test "${ac_cv_header_cthreads_h+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 ac_cv_header_cthreads_h
=$ac_header_preproc
12724 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12725 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12728 if test $ac_cv_header_cthreads_h = yes; then
12729 cat >>confdefs.h
<<\_ACEOF
12730 #define WITH_THREAD 1
12733 cat >>confdefs.h
<<\_ACEOF
12734 #define C_THREADS 1
12738 cat >>confdefs.h
<<\_ACEOF
12739 #define HURD_C_THREADS 1
12742 LIBS
="$LIBS -lthreads"
12743 THREADOBJ
="Python/thread.o"
12746 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12747 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12748 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12749 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12753 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12755 # Is the header compilable?
12756 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12757 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12758 cat >conftest.
$ac_ext <<_ACEOF
12761 cat confdefs.h
>>conftest.
$ac_ext
12762 cat >>conftest.
$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 $ac_includes_default
12765 #include <mach/cthreads.h>
12767 rm -f conftest.
$ac_objext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769 (eval $ac_compile) 2>conftest.er1
12771 grep -v '^ *+' conftest.er1
>conftest.err
12773 cat conftest.err
>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
12776 { ac_try
='test -z "$ac_c_werror_flag"
12777 || test ! -s conftest.err'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try
='test -s conftest.$ac_objext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 ac_header_compiler
=yes
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.
$ac_ext >&5
12794 ac_header_compiler
=no
12796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12798 echo "${ECHO_T}$ac_header_compiler" >&6
12800 # Is the header present?
12801 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12802 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12803 cat >conftest.
$ac_ext <<_ACEOF
12806 cat confdefs.h
>>conftest.
$ac_ext
12807 cat >>conftest.
$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12809 #include <mach/cthreads.h>
12811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12812 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12814 grep -v '^ *+' conftest.er1
>conftest.err
12816 cat conftest.err
>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } >/dev
/null
; then
12819 if test -s conftest.err
; then
12820 ac_cpp_err
=$ac_c_preproc_warn_flag
12821 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12828 if test -z "$ac_cpp_err"; then
12829 ac_header_preproc
=yes
12831 echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.
$ac_ext >&5
12834 ac_header_preproc
=no
12836 rm -f conftest.err conftest.
$ac_ext
12837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12838 echo "${ECHO_T}$ac_header_preproc" >&6
12840 # So? What about this header?
12841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12843 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12844 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12846 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12847 ac_header_preproc
=yes
12850 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12851 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12853 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12855 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12857 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12859 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12861 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12864 ## ------------------------------------------------ ##
12865 ## Report this to http://www.python.org/python-bugs ##
12866 ## ------------------------------------------------ ##
12869 sed "s/^/$as_me: WARNING: /" >&2
12872 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12873 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12874 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12879 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12880 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12883 if test $ac_cv_header_mach_cthreads_h = yes; then
12884 cat >>confdefs.h
<<\_ACEOF
12885 #define WITH_THREAD 1
12888 cat >>confdefs.h
<<\_ACEOF
12889 #define C_THREADS 1
12893 cat >>confdefs.h
<<\_ACEOF
12894 #define MACH_C_THREADS 1
12897 THREADOBJ
="Python/thread.o"
12900 echo "$as_me:$LINENO: checking for --with-pth" >&5
12901 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12903 # Check whether --with-pth or --without-pth was given.
12904 if test "${with_pth+set}" = set; then
12905 withval
="$with_pth"
12906 echo "$as_me:$LINENO: result: $withval" >&5
12907 echo "${ECHO_T}$withval" >&6
12908 cat >>confdefs.h
<<\_ACEOF
12909 #define WITH_THREAD 1
12913 cat >>confdefs.h
<<\_ACEOF
12918 THREADOBJ
="Python/thread.o"
12920 echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6
12923 # Just looking for pthread_create in libpthread is not enough:
12924 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12925 # So we really have to include pthread.h, and then link.
12927 LIBS
="$LIBS -lpthread"
12928 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12929 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12930 cat >conftest.
$ac_ext <<_ACEOF
12933 cat confdefs.h
>>conftest.
$ac_ext
12934 cat >>conftest.
$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <pthread.h>
12938 void * start_routine (void *arg) { exit (0); }
12943 pthread_create (NULL, NULL, start_routine, NULL)
12948 rm -f conftest.
$ac_objext conftest
$ac_exeext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12950 (eval $ac_link) 2>conftest.er1
12952 grep -v '^ *+' conftest.er1
>conftest.err
12954 cat conftest.err
>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try
='test -z "$ac_c_werror_flag"
12958 || test ! -s conftest.err'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try
='test -s conftest$ac_exeext'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12971 echo "$as_me:$LINENO: result: yes" >&5
12972 echo "${ECHO_T}yes" >&6
12973 cat >>confdefs.h
<<\_ACEOF
12974 #define WITH_THREAD 1
12978 THREADOBJ
="Python/thread.o"
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.
$ac_ext >&5
12985 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12986 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12987 if test "${ac_cv_func_pthread_detach+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 cat >conftest.
$ac_ext <<_ACEOF
12993 cat confdefs.h
>>conftest.
$ac_ext
12994 cat >>conftest.
$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12998 #define pthread_detach innocuous_pthread_detach
13000 /* System header to define __stub macros and hopefully few prototypes,
13001 which can conflict with char pthread_detach (); below.
13002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13003 <limits.h> exists even on freestanding compilers. */
13006 # include <limits.h>
13008 # include <assert.h>
13011 #undef pthread_detach
13013 /* Override any gcc2 internal prototype to avoid an error. */
13018 /* We use char because int might match the return type of a gcc2
13019 builtin and then its argument prototype would still apply. */
13020 char pthread_detach ();
13021 /* The GNU C library defines this for functions which it implements
13022 to always fail with ENOSYS. Some functions are actually named
13023 something starting with __ and the normal name is an alias. */
13024 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
13027 char (*f) () = pthread_detach;
13036 return f != pthread_detach;
13041 rm -f conftest.
$ac_objext conftest
$ac_exeext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13043 (eval $ac_link) 2>conftest.er1
13045 grep -v '^ *+' conftest.er1
>conftest.err
13047 cat conftest.err
>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try
='test -z "$ac_c_werror_flag"
13051 || test ! -s conftest.err'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try
='test -s conftest$ac_exeext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_func_pthread_detach
=yes
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.
$ac_ext >&5
13068 ac_cv_func_pthread_detach
=no
13070 rm -f conftest.err conftest.
$ac_objext \
13071 conftest
$ac_exeext conftest.
$ac_ext
13073 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13074 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
13075 if test $ac_cv_func_pthread_detach = yes; then
13076 cat >>confdefs.h
<<\_ACEOF
13077 #define WITH_THREAD 1
13081 THREADOBJ
="Python/thread.o"
13084 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13085 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13086 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13087 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13091 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13093 # Is the header compilable?
13094 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13095 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
13096 cat >conftest.
$ac_ext <<_ACEOF
13099 cat confdefs.h
>>conftest.
$ac_ext
13100 cat >>conftest.
$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 $ac_includes_default
13103 #include <atheos/threads.h>
13105 rm -f conftest.
$ac_objext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13107 (eval $ac_compile) 2>conftest.er1
13109 grep -v '^ *+' conftest.er1
>conftest.err
13111 cat conftest.err
>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try
='test -z "$ac_c_werror_flag"
13115 || test ! -s conftest.err'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try
='test -s conftest.$ac_objext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_header_compiler
=yes
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.
$ac_ext >&5
13132 ac_header_compiler
=no
13134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13136 echo "${ECHO_T}$ac_header_compiler" >&6
13138 # Is the header present?
13139 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13140 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
13141 cat >conftest.
$ac_ext <<_ACEOF
13144 cat confdefs.h
>>conftest.
$ac_ext
13145 cat >>conftest.
$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <atheos/threads.h>
13149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13150 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13152 grep -v '^ *+' conftest.er1
>conftest.err
13154 cat conftest.err
>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } >/dev
/null
; then
13157 if test -s conftest.err
; then
13158 ac_cpp_err
=$ac_c_preproc_warn_flag
13159 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13166 if test -z "$ac_cpp_err"; then
13167 ac_header_preproc
=yes
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.
$ac_ext >&5
13172 ac_header_preproc
=no
13174 rm -f conftest.err conftest.
$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13176 echo "${ECHO_T}$ac_header_preproc" >&6
13178 # So? What about this header?
13179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13181 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13182 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13184 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13185 ac_header_preproc
=yes
13188 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13189 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13191 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13193 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13195 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13197 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13199 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13202 ## ------------------------------------------------ ##
13203 ## Report this to http://www.python.org/python-bugs ##
13204 ## ------------------------------------------------ ##
13207 sed "s/^/$as_me: WARNING: /" >&2
13210 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13211 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13212 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 ac_cv_header_atheos_threads_h
=$ac_header_preproc
13217 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13218 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13221 if test $ac_cv_header_atheos_threads_h = yes; then
13222 cat >>confdefs.h
<<\_ACEOF
13223 #define WITH_THREAD 1
13227 cat >>confdefs.h
<<\_ACEOF
13228 #define ATHEOS_THREADS 1
13231 THREADOBJ
="Python/thread.o"
13234 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13235 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13236 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13237 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13241 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13243 # Is the header compilable?
13244 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13245 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
13246 cat >conftest.
$ac_ext <<_ACEOF
13249 cat confdefs.h
>>conftest.
$ac_ext
13250 cat >>conftest.
$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 $ac_includes_default
13253 #include <kernel/OS.h>
13255 rm -f conftest.
$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257 (eval $ac_compile) 2>conftest.er1
13259 grep -v '^ *+' conftest.er1
>conftest.err
13261 cat conftest.err
>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try
='test -z "$ac_c_werror_flag"
13265 || test ! -s conftest.err'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; } &&
13271 { ac_try
='test -s conftest.$ac_objext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 ac_header_compiler
=yes
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.
$ac_ext >&5
13282 ac_header_compiler
=no
13284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13286 echo "${ECHO_T}$ac_header_compiler" >&6
13288 # Is the header present?
13289 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13290 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
13291 cat >conftest.
$ac_ext <<_ACEOF
13294 cat confdefs.h
>>conftest.
$ac_ext
13295 cat >>conftest.
$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <kernel/OS.h>
13299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13302 grep -v '^ *+' conftest.er1
>conftest.err
13304 cat conftest.err
>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } >/dev
/null
; then
13307 if test -s conftest.err
; then
13308 ac_cpp_err
=$ac_c_preproc_warn_flag
13309 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13316 if test -z "$ac_cpp_err"; then
13317 ac_header_preproc
=yes
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.
$ac_ext >&5
13322 ac_header_preproc
=no
13324 rm -f conftest.err conftest.
$ac_ext
13325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13326 echo "${ECHO_T}$ac_header_preproc" >&6
13328 # So? What about this header?
13329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13331 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13332 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13334 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13335 ac_header_preproc
=yes
13338 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13339 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13341 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13343 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13345 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13347 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13349 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13352 ## ------------------------------------------------ ##
13353 ## Report this to http://www.python.org/python-bugs ##
13354 ## ------------------------------------------------ ##
13357 sed "s/^/$as_me: WARNING: /" >&2
13360 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13361 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13362 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 ac_cv_header_kernel_OS_h
=$ac_header_preproc
13367 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13368 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13371 if test $ac_cv_header_kernel_OS_h = yes; then
13372 cat >>confdefs.h
<<\_ACEOF
13373 #define WITH_THREAD 1
13377 cat >>confdefs.h
<<\_ACEOF
13378 #define BEOS_THREADS 1
13381 THREADOBJ
="Python/thread.o"
13384 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13385 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
13386 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 ac_check_lib_save_LIBS
=$LIBS
13390 LIBS
="-lpthreads $LIBS"
13391 cat >conftest.
$ac_ext <<_ACEOF
13394 cat confdefs.h
>>conftest.
$ac_ext
13395 cat >>conftest.
$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 /* Override any gcc2 internal prototype to avoid an error. */
13402 /* We use char because int might match the return type of a gcc2
13403 builtin and then its argument prototype would still apply. */
13404 char pthread_create ();
13413 rm -f conftest.
$ac_objext conftest
$ac_exeext
13414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13415 (eval $ac_link) 2>conftest.er1
13417 grep -v '^ *+' conftest.er1
>conftest.err
13419 cat conftest.err
>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try
='test -z "$ac_c_werror_flag"
13423 || test ! -s conftest.err'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try
='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_lib_pthreads_pthread_create
=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.
$ac_ext >&5
13440 ac_cv_lib_pthreads_pthread_create
=no
13442 rm -f conftest.err conftest.
$ac_objext \
13443 conftest
$ac_exeext conftest.
$ac_ext
13444 LIBS
=$ac_check_lib_save_LIBS
13446 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13447 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
13448 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13449 cat >>confdefs.h
<<\_ACEOF
13450 #define WITH_THREAD 1
13454 LIBS
="$LIBS -lpthreads"
13455 THREADOBJ
="Python/thread.o"
13458 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13459 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
13460 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 ac_check_lib_save_LIBS
=$LIBS
13465 cat >conftest.
$ac_ext <<_ACEOF
13468 cat confdefs.h
>>conftest.
$ac_ext
13469 cat >>conftest.
$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 /* Override any gcc2 internal prototype to avoid an error. */
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478 char pthread_create ();
13487 rm -f conftest.
$ac_objext conftest
$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>conftest.er1
13491 grep -v '^ *+' conftest.er1
>conftest.err
13493 cat conftest.err
>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try
='test -z "$ac_c_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try
='test -s conftest$ac_exeext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_lib_c_r_pthread_create
=yes
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.
$ac_ext >&5
13514 ac_cv_lib_c_r_pthread_create
=no
13516 rm -f conftest.err conftest.
$ac_objext \
13517 conftest
$ac_exeext conftest.
$ac_ext
13518 LIBS
=$ac_check_lib_save_LIBS
13520 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13521 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
13522 if test $ac_cv_lib_c_r_pthread_create = yes; then
13523 cat >>confdefs.h
<<\_ACEOF
13524 #define WITH_THREAD 1
13529 THREADOBJ
="Python/thread.o"
13532 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13533 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
13534 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 ac_check_lib_save_LIBS
=$LIBS
13538 LIBS
="-lpthread $LIBS"
13539 cat >conftest.
$ac_ext <<_ACEOF
13542 cat confdefs.h
>>conftest.
$ac_ext
13543 cat >>conftest.
$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13546 /* Override any gcc2 internal prototype to avoid an error. */
13550 /* We use char because int might match the return type of a gcc2
13551 builtin and then its argument prototype would still apply. */
13552 char __pthread_create_system ();
13556 __pthread_create_system ();
13561 rm -f conftest.
$ac_objext conftest
$ac_exeext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13563 (eval $ac_link) 2>conftest.er1
13565 grep -v '^ *+' conftest.er1
>conftest.err
13567 cat conftest.err
>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try
='test -z "$ac_c_werror_flag"
13571 || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try
='test -s conftest$ac_exeext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 ac_cv_lib_pthread___pthread_create_system
=yes
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.
$ac_ext >&5
13588 ac_cv_lib_pthread___pthread_create_system
=no
13590 rm -f conftest.err conftest.
$ac_objext \
13591 conftest
$ac_exeext conftest.
$ac_ext
13592 LIBS
=$ac_check_lib_save_LIBS
13594 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13595 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13596 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13597 cat >>confdefs.h
<<\_ACEOF
13598 #define WITH_THREAD 1
13602 LIBS
="$LIBS -lpthread"
13603 THREADOBJ
="Python/thread.o"
13606 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13607 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13608 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 ac_check_lib_save_LIBS
=$LIBS
13613 cat >conftest.
$ac_ext <<_ACEOF
13616 cat confdefs.h
>>conftest.
$ac_ext
13617 cat >>conftest.
$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13620 /* Override any gcc2 internal prototype to avoid an error. */
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13626 char pthread_create ();
13635 rm -f conftest.
$ac_objext conftest
$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637 (eval $ac_link) 2>conftest.er1
13639 grep -v '^ *+' conftest.er1
>conftest.err
13641 cat conftest.err
>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try
='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try
='test -s conftest$ac_exeext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_cv_lib_cma_pthread_create
=yes
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.
$ac_ext >&5
13662 ac_cv_lib_cma_pthread_create
=no
13664 rm -f conftest.err conftest.
$ac_objext \
13665 conftest
$ac_exeext conftest.
$ac_ext
13666 LIBS
=$ac_check_lib_save_LIBS
13668 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13669 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13670 if test $ac_cv_lib_cma_pthread_create = yes; then
13671 cat >>confdefs.h
<<\_ACEOF
13672 #define WITH_THREAD 1
13677 THREADOBJ
="Python/thread.o"
13680 USE_THREAD_MODULE
="#"
13699 rm -f conftest.err conftest.
$ac_objext \
13700 conftest
$ac_exeext conftest.
$ac_ext
13709 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13710 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13711 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 ac_check_lib_save_LIBS
=$LIBS
13716 cat >conftest.
$ac_ext <<_ACEOF
13719 cat confdefs.h
>>conftest.
$ac_ext
13720 cat >>conftest.
$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13723 /* Override any gcc2 internal prototype to avoid an error. */
13727 /* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */
13738 rm -f conftest.
$ac_objext conftest
$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13742 grep -v '^ *+' conftest.er1
>conftest.err
13744 cat conftest.err
>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try
='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try
='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_lib_mpc_usconfig
=yes
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.
$ac_ext >&5
13765 ac_cv_lib_mpc_usconfig
=no
13767 rm -f conftest.err conftest.
$ac_objext \
13768 conftest
$ac_exeext conftest.
$ac_ext
13769 LIBS
=$ac_check_lib_save_LIBS
13771 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13772 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13773 if test $ac_cv_lib_mpc_usconfig = yes; then
13774 cat >>confdefs.h
<<\_ACEOF
13775 #define WITH_THREAD 1
13779 THREADOBJ
="Python/thread.o"
13780 USE_THREAD_MODULE
=""
13784 if test "$posix_threads" != "yes"; then
13785 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13786 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13787 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 ac_check_lib_save_LIBS
=$LIBS
13791 LIBS
="-lthread $LIBS"
13792 cat >conftest.
$ac_ext <<_ACEOF
13795 cat confdefs.h
>>conftest.
$ac_ext
13796 cat >>conftest.
$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13799 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13805 char thr_create ();
13814 rm -f conftest.
$ac_objext conftest
$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1
>conftest.err
13820 cat conftest.err
>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try
='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try
='test -s conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_lib_thread_thr_create
=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.
$ac_ext >&5
13841 ac_cv_lib_thread_thr_create
=no
13843 rm -f conftest.err conftest.
$ac_objext \
13844 conftest
$ac_exeext conftest.
$ac_ext
13845 LIBS
=$ac_check_lib_save_LIBS
13847 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13848 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13849 if test $ac_cv_lib_thread_thr_create = yes; then
13850 cat >>confdefs.h
<<\_ACEOF
13851 #define WITH_THREAD 1
13854 LIBS
="$LIBS -lthread"
13855 THREADOBJ
="Python/thread.o"
13856 USE_THREAD_MODULE
=""
13861 if test "$USE_THREAD_MODULE" != "#"
13863 # If the above checks didn't disable threads, (at least) OSF1
13864 # needs this '-threads' argument during linking.
13865 case $ac_sys_system in
13866 OSF1
) LDLAST
=-threads;;
13871 if test "$posix_threads" = "yes"; then
13872 if test "$unistd_defines_pthreads" = "no"; then
13874 cat >>confdefs.h
<<\_ACEOF
13875 #define _POSIX_THREADS 1
13880 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13881 case $ac_sys_system/$ac_sys_release in
13883 cat >>confdefs.h
<<\_ACEOF
13884 #define HAVE_PTHREAD_DESTRUCTOR 1
13889 cat >>confdefs.h
<<\_ACEOF
13890 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13896 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13897 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13898 if test "${ac_cv_pthread_system_supported+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 if test "$cross_compiling" = yes; then
13902 ac_cv_pthread_system_supported
=no
13904 cat >conftest.
$ac_ext <<_ACEOF
13907 cat confdefs.h
>>conftest.
$ac_ext
13908 cat >>conftest.
$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 #include <pthread.h>
13911 void *foo(void *parm) {
13915 pthread_attr_t attr;
13917 if (pthread_attr_init(&attr)) exit(-1);
13918 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13919 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13923 rm -f conftest
$ac_exeext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925 (eval $ac_link) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_pthread_system_supported
=yes
13936 echo "$as_me: program exited with status $ac_status" >&5
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.
$ac_ext >&5
13940 ( exit $ac_status )
13941 ac_cv_pthread_system_supported
=no
13943 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13948 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13949 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13950 if test "$ac_cv_pthread_system_supported" = "yes"; then
13952 cat >>confdefs.h
<<\_ACEOF
13953 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13958 for ac_func
in pthread_sigmask
13960 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13961 echo "$as_me:$LINENO: checking for $ac_func" >&5
13962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13963 if eval "test \"\${$as_ac_var+set}\" = set"; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 cat >conftest.
$ac_ext <<_ACEOF
13969 cat confdefs.h
>>conftest.
$ac_ext
13970 cat >>conftest.
$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13974 #define $ac_func innocuous_$ac_func
13976 /* System header to define __stub macros and hopefully few prototypes,
13977 which can conflict with char $ac_func (); below.
13978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13979 <limits.h> exists even on freestanding compilers. */
13982 # include <limits.h>
13984 # include <assert.h>
13989 /* Override any gcc2 internal prototype to avoid an error. */
13994 /* We use char because int might match the return type of a gcc2
13995 builtin and then its argument prototype would still apply. */
13997 /* The GNU C library defines this for functions which it implements
13998 to always fail with ENOSYS. Some functions are actually named
13999 something starting with __ and the normal name is an alias. */
14000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14003 char (*f) () = $ac_func;
14012 return f != $ac_func;
14017 rm -f conftest.
$ac_objext conftest
$ac_exeext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019 (eval $ac_link) 2>conftest.er1
14021 grep -v '^ *+' conftest.er1
>conftest.err
14023 cat conftest.err
>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try
='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try
='test -s conftest$ac_exeext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 eval "$as_ac_var=yes"
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.
$ac_ext >&5
14044 eval "$as_ac_var=no"
14046 rm -f conftest.err conftest.
$ac_objext \
14047 conftest
$ac_exeext conftest.
$ac_ext
14049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14051 if test `eval echo '${'$as_ac_var'}'` = yes; then
14052 cat >>confdefs.h
<<_ACEOF
14053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14055 case $ac_sys_system in
14058 cat >>confdefs.h
<<\_ACEOF
14059 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14070 # Check for enable-ipv6
14073 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14074 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
14075 # Check whether --enable-ipv6 or --disable-ipv6 was given.
14076 if test "${enable_ipv6+set}" = set; then
14077 enableval
="$enable_ipv6"
14078 case "$enableval" in
14080 echo "$as_me:$LINENO: result: no" >&5
14081 echo "${ECHO_T}no" >&6
14084 *) echo "$as_me:$LINENO: result: yes" >&5
14085 echo "${ECHO_T}yes" >&6
14086 cat >>confdefs.h
<<\_ACEOF
14087 #define ENABLE_IPV6 1
14095 if test "$cross_compiling" = yes; then
14096 echo "$as_me:$LINENO: result: no" >&5
14097 echo "${ECHO_T}no" >&6
14101 cat >conftest.
$ac_ext <<_ACEOF
14104 cat confdefs.h
>>conftest.
$ac_ext
14105 cat >>conftest.
$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 /* AF_INET6 available check */
14108 #include <sys/types.h>
14109 #include <sys/socket.h>
14112 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14119 rm -f conftest
$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 echo "$as_me:$LINENO: result: yes" >&5
14131 echo "${ECHO_T}yes" >&6
14134 echo "$as_me: program exited with status $ac_status" >&5
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.
$ac_ext >&5
14138 ( exit $ac_status )
14139 echo "$as_me:$LINENO: result: no" >&5
14140 echo "${ECHO_T}no" >&6
14143 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14146 if test "$ipv6" = "yes"; then
14147 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14148 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
14149 cat >conftest.
$ac_ext <<_ACEOF
14152 cat confdefs.h
>>conftest.
$ac_ext
14153 cat >>conftest.
$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 #include <sys/types.h>
14156 #include <netinet/in.h>
14160 struct sockaddr_in6 x;
14166 rm -f conftest.
$ac_objext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14168 (eval $ac_compile) 2>conftest.er1
14170 grep -v '^ *+' conftest.er1
>conftest.err
14172 cat conftest.err
>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try
='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try
='test -s conftest.$ac_objext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 echo "$as_me:$LINENO: result: yes" >&5
14189 echo "${ECHO_T}yes" >&6
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.
$ac_ext >&5
14195 echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6
14199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14202 if test "$ipv6" = "yes"; then
14203 cat >>confdefs.h
<<\_ACEOF
14204 #define ENABLE_IPV6 1
14215 if test "$ipv6" = "yes"; then
14216 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14217 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
14218 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
14222 cat >conftest.
$ac_ext <<_ACEOF
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 #include <netinet/in.h>
14230 #ifdef IPV6_INRIA_VERSION
14234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14235 $EGREP "yes" >/dev
/null
2>&1; then
14242 cat >conftest.
$ac_ext <<_ACEOF
14245 cat confdefs.h
>>conftest.
$ac_ext
14246 cat >>conftest.
$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14249 #include <netinet/in.h>
14254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14255 $EGREP "yes" >/dev
/null
2>&1; then
14258 ipv6libdir
=/usr
/local
/v
6/lib
14265 cat >conftest.
$ac_ext <<_ACEOF
14268 cat confdefs.h
>>conftest.
$ac_ext
14269 cat >>conftest.
$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14272 #include <features.h>
14273 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14278 $EGREP "yes" >/dev
/null
2>&1; then
14286 if test -d /usr
/inet6
; then
14289 ipv6libdir
=/usr
/inet
6/lib
14290 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
14294 if test -f /etc
/netconfig
; then
14295 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
14302 cat >conftest.
$ac_ext <<_ACEOF
14305 cat confdefs.h
>>conftest.
$ac_ext
14306 cat >>conftest.
$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14309 #include <sys/param.h>
14310 #ifdef _TOSHIBA_INET6
14314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14315 $EGREP "yes" >/dev
/null
2>&1; then
14318 ipv6libdir
=/usr
/local
/v
6/lib
14324 cat >conftest.
$ac_ext <<_ACEOF
14327 cat confdefs.h
>>conftest.
$ac_ext
14328 cat >>conftest.
$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14331 #include </usr/local/v6/include/sys/v6config.h>
14336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14337 $EGREP "yes" >/dev
/null
2>&1; then
14340 ipv6libdir
=/usr
/local
/v
6/lib
;
14341 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
14347 cat >conftest.
$ac_ext <<_ACEOF
14350 cat confdefs.h
>>conftest.
$ac_ext
14351 cat >>conftest.
$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 #include <sys/param.h>
14355 #ifdef _ZETA_MINAMI_INET6
14359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14360 $EGREP "yes" >/dev
/null
2>&1; then
14363 ipv6libdir
=/usr
/local
/v
6/lib
14369 if test "$ipv6type" != "unknown"; then
14373 echo "$as_me:$LINENO: result: $ipv6type" >&5
14374 echo "${ECHO_T}$ipv6type" >&6
14377 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14378 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
14379 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
14380 echo "using lib$ipv6lib"
14382 if test $ipv6trylibc = "yes"; then
14385 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14386 echo "You need to fetch lib$ipv6lib.a from appropriate"
14387 echo 'ipv6 kit and compile beforehand.'
14393 # Check for --with-doc-strings
14394 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14395 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
14397 # Check whether --with-doc-strings or --without-doc-strings was given.
14398 if test "${with_doc_strings+set}" = set; then
14399 withval
="$with_doc_strings"
14403 if test -z "$with_doc_strings"
14404 then with_doc_strings
="yes"
14406 if test "$with_doc_strings" != "no"
14409 cat >>confdefs.h
<<\_ACEOF
14410 #define WITH_DOC_STRINGS 1
14414 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14415 echo "${ECHO_T}$with_doc_strings" >&6
14417 # Check for Python-specific malloc support
14418 echo "$as_me:$LINENO: checking for --with-tsc" >&5
14419 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
14421 # Check whether --with-tsc or --without-tsc was given.
14422 if test "${with_tsc+set}" = set; then
14423 withval
="$with_tsc"
14425 if test "$withval" != no
14428 cat >>confdefs.h
<<\_ACEOF
14432 echo "$as_me:$LINENO: result: yes" >&5
14433 echo "${ECHO_T}yes" >&6
14434 else echo "$as_me:$LINENO: result: no" >&5
14435 echo "${ECHO_T}no" >&6
14438 echo "$as_me:$LINENO: result: no" >&5
14439 echo "${ECHO_T}no" >&6
14442 # Check for Python-specific malloc support
14443 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14444 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
14446 # Check whether --with-pymalloc or --without-pymalloc was given.
14447 if test "${with_pymalloc+set}" = set; then
14448 withval
="$with_pymalloc"
14452 if test -z "$with_pymalloc"
14453 then with_pymalloc
="yes"
14455 if test "$with_pymalloc" != "no"
14458 cat >>confdefs.h
<<\_ACEOF
14459 #define WITH_PYMALLOC 1
14463 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14464 echo "${ECHO_T}$with_pymalloc" >&6
14466 # Check for --with-wctype-functions
14467 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14468 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
14470 # Check whether --with-wctype-functions or --without-wctype-functions was given.
14471 if test "${with_wctype_functions+set}" = set; then
14472 withval
="$with_wctype_functions"
14474 if test "$withval" != no
14477 cat >>confdefs.h
<<\_ACEOF
14478 #define WANT_WCTYPE_FUNCTIONS 1
14481 echo "$as_me:$LINENO: result: yes" >&5
14482 echo "${ECHO_T}yes" >&6
14483 else echo "$as_me:$LINENO: result: no" >&5
14484 echo "${ECHO_T}no" >&6
14487 echo "$as_me:$LINENO: result: no" >&5
14488 echo "${ECHO_T}no" >&6
14491 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14495 # the dlopen() function means we might want to use dynload_shlib.o. some
14496 # platforms, such as AIX, have dlopen(), but don't want to use it.
14498 for ac_func
in dlopen
14500 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14501 echo "$as_me:$LINENO: checking for $ac_func" >&5
14502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14503 if eval "test \"\${$as_ac_var+set}\" = set"; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 cat >conftest.
$ac_ext <<_ACEOF
14509 cat confdefs.h
>>conftest.
$ac_ext
14510 cat >>conftest.
$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14514 #define $ac_func innocuous_$ac_func
14516 /* System header to define __stub macros and hopefully few prototypes,
14517 which can conflict with char $ac_func (); below.
14518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14519 <limits.h> exists even on freestanding compilers. */
14522 # include <limits.h>
14524 # include <assert.h>
14529 /* Override any gcc2 internal prototype to avoid an error. */
14534 /* We use char because int might match the return type of a gcc2
14535 builtin and then its argument prototype would still apply. */
14537 /* The GNU C library defines this for functions which it implements
14538 to always fail with ENOSYS. Some functions are actually named
14539 something starting with __ and the normal name is an alias. */
14540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14543 char (*f) () = $ac_func;
14552 return f != $ac_func;
14557 rm -f conftest.
$ac_objext conftest
$ac_exeext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>conftest.er1
14561 grep -v '^ *+' conftest.er1
>conftest.err
14563 cat conftest.err
>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
14566 { ac_try
='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try
='test -s conftest$ac_exeext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 eval "$as_ac_var=yes"
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.
$ac_ext >&5
14584 eval "$as_ac_var=no"
14586 rm -f conftest.err conftest.
$ac_objext \
14587 conftest
$ac_exeext conftest.
$ac_ext
14589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14591 if test `eval echo '${'$as_ac_var'}'` = yes; then
14592 cat >>confdefs.h
<<_ACEOF
14593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14600 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14601 # loading of modules.
14603 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14604 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14605 if test -z "$DYNLOADFILE"
14607 case $ac_sys_system/$ac_sys_release in
14608 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14609 if test "$ac_cv_func_dlopen" = yes
14610 then DYNLOADFILE
="dynload_shlib.o"
14611 else DYNLOADFILE
="dynload_aix.o"
14614 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14615 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14616 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14617 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14618 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14620 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14621 # out any dynamic loading
14622 if test "$ac_cv_func_dlopen" = yes
14623 then DYNLOADFILE
="dynload_shlib.o"
14624 else DYNLOADFILE
="dynload_stub.o"
14629 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14630 echo "${ECHO_T}$DYNLOADFILE" >&6
14631 if test "$DYNLOADFILE" != "dynload_stub.o"
14634 cat >>confdefs.h
<<\_ACEOF
14635 #define HAVE_DYNAMIC_LOADING 1
14640 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14643 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14644 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14645 if test -z "$MACHDEP_OBJS"
14647 MACHDEP_OBJS
=$extra_machdep_objs
14649 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14651 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14652 echo "${ECHO_T}MACHDEP_OBJS" >&6
14654 # checks for library functions
14733 for ac_func
in alarm bind_textdomain_codeset chflags chown
clock confstr \
14734 ctermid execv fork fpathconf ftime ftruncate \
14735 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14736 getpriority getpwent getspnam getspent getsid getwd \
14737 kill killpg lchflags lchown lstat
mkfifo mknod mktime \
14738 mremap nice pathconf pause plock poll pthread_init \
14739 putenv readlink realpath \
14740 select setegid seteuid setgid \
14741 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14742 sigaction siginterrupt sigrelse strftime \
14743 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14744 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747 echo "$as_me:$LINENO: checking for $ac_func" >&5
14748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14749 if eval "test \"\${$as_ac_var+set}\" = set"; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 cat >conftest.
$ac_ext <<_ACEOF
14755 cat confdefs.h
>>conftest.
$ac_ext
14756 cat >>conftest.
$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14760 #define $ac_func innocuous_$ac_func
14762 /* System header to define __stub macros and hopefully few prototypes,
14763 which can conflict with char $ac_func (); below.
14764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14765 <limits.h> exists even on freestanding compilers. */
14768 # include <limits.h>
14770 # include <assert.h>
14775 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14783 /* The GNU C library defines this for functions which it implements
14784 to always fail with ENOSYS. Some functions are actually named
14785 something starting with __ and the normal name is an alias. */
14786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14789 char (*f) () = $ac_func;
14798 return f != $ac_func;
14803 rm -f conftest.
$ac_objext conftest
$ac_exeext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14805 (eval $ac_link) 2>conftest.er1
14807 grep -v '^ *+' conftest.er1
>conftest.err
14809 cat conftest.err
>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try
='test -z "$ac_c_werror_flag"
14813 || test ! -s conftest.err'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try
='test -s conftest$ac_exeext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 eval "$as_ac_var=yes"
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.
$ac_ext >&5
14830 eval "$as_ac_var=no"
14832 rm -f conftest.err conftest.
$ac_objext \
14833 conftest
$ac_exeext conftest.
$ac_ext
14835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14837 if test `eval echo '${'$as_ac_var'}'` = yes; then
14838 cat >>confdefs.h
<<_ACEOF
14839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14846 # For some functions, having a definition is not sufficient, since
14847 # we want to take their address.
14848 echo "$as_me:$LINENO: checking for chroot" >&5
14849 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14850 cat >conftest.
$ac_ext <<_ACEOF
14853 cat confdefs.h
>>conftest.
$ac_ext
14854 cat >>conftest.
$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 #include <unistd.h>
14865 rm -f conftest.
$ac_objext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867 (eval $ac_compile) 2>conftest.er1
14869 grep -v '^ *+' conftest.er1
>conftest.err
14871 cat conftest.err
>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try
='test -z "$ac_c_werror_flag"
14875 || test ! -s conftest.err'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try
='test -s conftest.$ac_objext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14888 cat >>confdefs.h
<<\_ACEOF
14889 #define HAVE_CHROOT 1
14892 echo "$as_me:$LINENO: result: yes" >&5
14893 echo "${ECHO_T}yes" >&6
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.
$ac_ext >&5
14898 echo "$as_me:$LINENO: result: no" >&5
14899 echo "${ECHO_T}no" >&6
14902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14903 echo "$as_me:$LINENO: checking for link" >&5
14904 echo $ECHO_N "checking for link... $ECHO_C" >&6
14905 cat >conftest.
$ac_ext <<_ACEOF
14908 cat confdefs.h
>>conftest.
$ac_ext
14909 cat >>conftest.
$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 #include <unistd.h>
14920 rm -f conftest.
$ac_objext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14922 (eval $ac_compile) 2>conftest.er1
14924 grep -v '^ *+' conftest.er1
>conftest.err
14926 cat conftest.err
>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try
='test -z "$ac_c_werror_flag"
14930 || test ! -s conftest.err'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try
='test -s conftest.$ac_objext'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14943 cat >>confdefs.h
<<\_ACEOF
14944 #define HAVE_LINK 1
14947 echo "$as_me:$LINENO: result: yes" >&5
14948 echo "${ECHO_T}yes" >&6
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.
$ac_ext >&5
14953 echo "$as_me:$LINENO: result: no" >&5
14954 echo "${ECHO_T}no" >&6
14957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14958 echo "$as_me:$LINENO: checking for symlink" >&5
14959 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14960 cat >conftest.
$ac_ext <<_ACEOF
14963 cat confdefs.h
>>conftest.
$ac_ext
14964 cat >>conftest.
$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <unistd.h>
14975 rm -f conftest.
$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>conftest.er1
14979 grep -v '^ *+' conftest.er1
>conftest.err
14981 cat conftest.err
>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try
='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try
='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14998 cat >>confdefs.h
<<\_ACEOF
14999 #define HAVE_SYMLINK 1
15002 echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.
$ac_ext >&5
15008 echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15013 echo "$as_me:$LINENO: checking for fchdir" >&5
15014 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
15015 cat >conftest.
$ac_ext <<_ACEOF
15018 cat confdefs.h
>>conftest.
$ac_ext
15019 cat >>conftest.
$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15021 #include <unistd.h>
15030 rm -f conftest.
$ac_objext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032 (eval $ac_compile) 2>conftest.er1
15034 grep -v '^ *+' conftest.er1
>conftest.err
15036 cat conftest.err
>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } &&
15039 { ac_try
='test -z "$ac_c_werror_flag"
15040 || test ! -s conftest.err'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; } &&
15046 { ac_try
='test -s conftest.$ac_objext'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15053 cat >>confdefs.h
<<\_ACEOF
15054 #define HAVE_FCHDIR 1
15057 echo "$as_me:$LINENO: result: yes" >&5
15058 echo "${ECHO_T}yes" >&6
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.
$ac_ext >&5
15063 echo "$as_me:$LINENO: result: no" >&5
15064 echo "${ECHO_T}no" >&6
15067 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15068 echo "$as_me:$LINENO: checking for fsync" >&5
15069 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
15070 cat >conftest.
$ac_ext <<_ACEOF
15073 cat confdefs.h
>>conftest.
$ac_ext
15074 cat >>conftest.
$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <unistd.h>
15085 rm -f conftest.
$ac_objext
15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>conftest.er1
15089 grep -v '^ *+' conftest.er1
>conftest.err
15091 cat conftest.err
>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try
='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try
='test -s conftest.$ac_objext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15108 cat >>confdefs.h
<<\_ACEOF
15109 #define HAVE_FSYNC 1
15112 echo "$as_me:$LINENO: result: yes" >&5
15113 echo "${ECHO_T}yes" >&6
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.
$ac_ext >&5
15118 echo "$as_me:$LINENO: result: no" >&5
15119 echo "${ECHO_T}no" >&6
15122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15123 echo "$as_me:$LINENO: checking for fdatasync" >&5
15124 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
15125 cat >conftest.
$ac_ext <<_ACEOF
15128 cat confdefs.h
>>conftest.
$ac_ext
15129 cat >>conftest.
$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 #include <unistd.h>
15140 rm -f conftest.
$ac_objext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15142 (eval $ac_compile) 2>conftest.er1
15144 grep -v '^ *+' conftest.er1
>conftest.err
15146 cat conftest.err
>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try
='test -z "$ac_c_werror_flag"
15150 || test ! -s conftest.err'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try
='test -s conftest.$ac_objext'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15163 cat >>confdefs.h
<<\_ACEOF
15164 #define HAVE_FDATASYNC 1
15167 echo "$as_me:$LINENO: result: yes" >&5
15168 echo "${ECHO_T}yes" >&6
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.
$ac_ext >&5
15173 echo "$as_me:$LINENO: result: no" >&5
15174 echo "${ECHO_T}no" >&6
15177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15179 # On some systems (eg. FreeBSD 5), we would find a definition of the
15180 # functions ctermid_r, setgroups in the library, but no prototype
15181 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15182 # address to avoid compiler warnings and potential miscompilations
15183 # because of the missing prototypes.
15185 echo "$as_me:$LINENO: checking for ctermid_r" >&5
15186 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
15187 cat >conftest.
$ac_ext <<_ACEOF
15190 cat confdefs.h
>>conftest.
$ac_ext
15191 cat >>conftest.
$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 #include "confdefs.h"
15200 void* p = ctermid_r
15205 rm -f conftest.
$ac_objext
15206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15209 grep -v '^ *+' conftest.er1
>conftest.err
15211 cat conftest.err
>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try
='test -z "$ac_c_werror_flag"
15215 || test ! -s conftest.err'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; } &&
15221 { ac_try
='test -s conftest.$ac_objext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15228 cat >>confdefs.h
<<\_ACEOF
15229 #define HAVE_CTERMID_R 1
15232 echo "$as_me:$LINENO: result: yes" >&5
15233 echo "${ECHO_T}yes" >&6
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.
$ac_ext >&5
15238 echo "$as_me:$LINENO: result: no" >&5
15239 echo "${ECHO_T}no" >&6
15242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15244 echo "$as_me:$LINENO: checking for flock" >&5
15245 echo $ECHO_N "checking for flock... $ECHO_C" >&6
15246 cat >conftest.
$ac_ext <<_ACEOF
15249 cat confdefs.h
>>conftest.
$ac_ext
15250 cat >>conftest.
$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15253 #include "confdefs.h"
15254 #include <sys/file.h>
15264 rm -f conftest.
$ac_objext
15265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15266 (eval $ac_compile) 2>conftest.er1
15268 grep -v '^ *+' conftest.er1
>conftest.err
15270 cat conftest.err
>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try
='test -z "$ac_c_werror_flag"
15274 || test ! -s conftest.err'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } &&
15280 { ac_try
='test -s conftest.$ac_objext'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15287 cat >>confdefs.h
<<\_ACEOF
15288 #define HAVE_FLOCK 1
15291 echo "$as_me:$LINENO: result: yes" >&5
15292 echo "${ECHO_T}yes" >&6
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.
$ac_ext >&5
15297 echo "$as_me:$LINENO: result: no" >&5
15298 echo "${ECHO_T}no" >&6
15301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15303 echo "$as_me:$LINENO: checking for getpagesize" >&5
15304 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
15305 cat >conftest.
$ac_ext <<_ACEOF
15308 cat confdefs.h
>>conftest.
$ac_ext
15309 cat >>conftest.
$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15312 #include "confdefs.h"
15313 #include <unistd.h>
15318 void* p = getpagesize
15323 rm -f conftest.
$ac_objext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>conftest.er1
15327 grep -v '^ *+' conftest.er1
>conftest.err
15329 cat conftest.err
>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try
='test -z "$ac_c_werror_flag"
15333 || test ! -s conftest.err'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try
='test -s conftest.$ac_objext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15346 cat >>confdefs.h
<<\_ACEOF
15347 #define HAVE_GETPAGESIZE 1
15350 echo "$as_me:$LINENO: result: yes" >&5
15351 echo "${ECHO_T}yes" >&6
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.
$ac_ext >&5
15356 echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15362 for ac_prog
in true
15364 # Extract the first word of "$ac_prog", so it can be a program name with args.
15365 set dummy
$ac_prog; ac_word
=$2
15366 echo "$as_me:$LINENO: checking for $ac_word" >&5
15367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15368 if test "${ac_cv_prog_TRUE+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 if test -n "$TRUE"; then
15372 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
15374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15375 for as_dir
in $PATH
15378 test -z "$as_dir" && as_dir
=.
15379 for ac_exec_ext
in '' $ac_executable_extensions; do
15380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15381 ac_cv_prog_TRUE
="$ac_prog"
15382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15390 TRUE
=$ac_cv_prog_TRUE
15391 if test -n "$TRUE"; then
15392 echo "$as_me:$LINENO: result: $TRUE" >&5
15393 echo "${ECHO_T}$TRUE" >&6
15395 echo "$as_me:$LINENO: result: no" >&5
15396 echo "${ECHO_T}no" >&6
15399 test -n "$TRUE" && break
15401 test -n "$TRUE" || TRUE
="/bin/true"
15404 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15405 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
15406 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 ac_check_lib_save_LIBS
=$LIBS
15411 cat >conftest.
$ac_ext <<_ACEOF
15414 cat confdefs.h
>>conftest.
$ac_ext
15415 cat >>conftest.
$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15418 /* Override any gcc2 internal prototype to avoid an error. */
15422 /* We use char because int might match the return type of a gcc2
15423 builtin and then its argument prototype would still apply. */
15433 rm -f conftest.
$ac_objext conftest
$ac_exeext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15435 (eval $ac_link) 2>conftest.er1
15437 grep -v '^ *+' conftest.er1
>conftest.err
15439 cat conftest.err
>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
15442 { ac_try
='test -z "$ac_c_werror_flag"
15443 || test ! -s conftest.err'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try
='test -s conftest$ac_exeext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455 ac_cv_lib_c_inet_aton
=yes
15457 echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.
$ac_ext >&5
15460 ac_cv_lib_c_inet_aton
=no
15462 rm -f conftest.err conftest.
$ac_objext \
15463 conftest
$ac_exeext conftest.
$ac_ext
15464 LIBS
=$ac_check_lib_save_LIBS
15466 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15467 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
15468 if test $ac_cv_lib_c_inet_aton = yes; then
15472 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15473 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
15474 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 ac_check_lib_save_LIBS
=$LIBS
15478 LIBS
="-lresolv $LIBS"
15479 cat >conftest.
$ac_ext <<_ACEOF
15482 cat confdefs.h
>>conftest.
$ac_ext
15483 cat >>conftest.
$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15486 /* Override any gcc2 internal prototype to avoid an error. */
15490 /* We use char because int might match the return type of a gcc2
15491 builtin and then its argument prototype would still apply. */
15501 rm -f conftest.
$ac_objext conftest
$ac_exeext
15502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15503 (eval $ac_link) 2>conftest.er1
15505 grep -v '^ *+' conftest.er1
>conftest.err
15507 cat conftest.err
>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try
='test -z "$ac_c_werror_flag"
15511 || test ! -s conftest.err'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try
='test -s conftest$ac_exeext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_cv_lib_resolv_inet_aton
=yes
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.
$ac_ext >&5
15528 ac_cv_lib_resolv_inet_aton
=no
15530 rm -f conftest.err conftest.
$ac_objext \
15531 conftest
$ac_exeext conftest.
$ac_ext
15532 LIBS
=$ac_check_lib_save_LIBS
15534 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15535 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
15536 if test $ac_cv_lib_resolv_inet_aton = yes; then
15537 cat >>confdefs.h
<<_ACEOF
15538 #define HAVE_LIBRESOLV 1
15541 LIBS
="-lresolv $LIBS"
15549 case $ac_sys_system/$ac_sys_release in
15551 _CUR_CFLAGS
="${CFLAGS}"
15552 _CUR_LDFLAGS
="${LDFLAGS}"
15553 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
15554 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15558 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15559 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15560 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 ac_check_lib_save_LIBS
=$LIBS
15565 cat >conftest.
$ac_ext <<_ACEOF
15568 cat confdefs.h
>>conftest.
$ac_ext
15569 cat >>conftest.
$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 /* Override any gcc2 internal prototype to avoid an error. */
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15578 char inflateCopy ();
15587 rm -f conftest.
$ac_objext conftest
$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>conftest.er1
15591 grep -v '^ *+' conftest.er1
>conftest.err
15593 cat conftest.err
>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try
='test -z "$ac_c_werror_flag"
15597 || test ! -s conftest.err'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try
='test -s conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_lib_z_inflateCopy
=yes
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.
$ac_ext >&5
15614 ac_cv_lib_z_inflateCopy
=no
15616 rm -f conftest.err conftest.
$ac_objext \
15617 conftest
$ac_exeext conftest.
$ac_ext
15618 LIBS
=$ac_check_lib_save_LIBS
15620 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15621 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15622 if test $ac_cv_lib_z_inflateCopy = yes; then
15624 cat >>confdefs.h
<<\_ACEOF
15625 #define HAVE_ZLIB_COPY 1
15631 case $ac_sys_system/$ac_sys_release in
15633 CFLAGS
="${_CUR_CFLAGS}"
15634 LDFLAGS
="${_CUR_LDFLAGS}"
15638 echo "$as_me:$LINENO: checking for hstrerror" >&5
15639 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15640 cat >conftest.
$ac_ext <<_ACEOF
15643 cat confdefs.h
>>conftest.
$ac_ext
15644 cat >>conftest.
$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15647 #include "confdefs.h"
15653 void* p = hstrerror; hstrerror(0)
15658 rm -f conftest.
$ac_objext conftest
$ac_exeext
15659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15660 (eval $ac_link) 2>conftest.er1
15662 grep -v '^ *+' conftest.er1
>conftest.err
15664 cat conftest.err
>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } &&
15667 { ac_try
='test -z "$ac_c_werror_flag"
15668 || test ! -s conftest.err'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; } &&
15674 { ac_try
='test -s conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15681 cat >>confdefs.h
<<\_ACEOF
15682 #define HAVE_HSTRERROR 1
15685 echo "$as_me:$LINENO: result: yes" >&5
15686 echo "${ECHO_T}yes" >&6
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.
$ac_ext >&5
15691 echo "$as_me:$LINENO: result: no" >&5
15692 echo "${ECHO_T}no" >&6
15695 rm -f conftest.err conftest.
$ac_objext \
15696 conftest
$ac_exeext conftest.
$ac_ext
15698 echo "$as_me:$LINENO: checking for inet_aton" >&5
15699 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15700 cat >conftest.
$ac_ext <<_ACEOF
15703 cat confdefs.h
>>conftest.
$ac_ext
15704 cat >>conftest.
$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15707 #include "confdefs.h"
15708 #include <sys/types.h>
15709 #include <sys/socket.h>
15710 #include <netinet/in.h>
15711 #include <arpa/inet.h>
15716 void* p = inet_aton;inet_aton(0,0)
15721 rm -f conftest.
$ac_objext conftest
$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>conftest.er1
15725 grep -v '^ *+' conftest.er1
>conftest.err
15727 cat conftest.err
>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try
='test -z "$ac_c_werror_flag"
15731 || test ! -s conftest.err'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try
='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15744 cat >>confdefs.h
<<\_ACEOF
15745 #define HAVE_INET_ATON 1
15748 echo "$as_me:$LINENO: result: yes" >&5
15749 echo "${ECHO_T}yes" >&6
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.
$ac_ext >&5
15754 echo "$as_me:$LINENO: result: no" >&5
15755 echo "${ECHO_T}no" >&6
15758 rm -f conftest.err conftest.
$ac_objext \
15759 conftest
$ac_exeext conftest.
$ac_ext
15761 echo "$as_me:$LINENO: checking for inet_pton" >&5
15762 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15763 cat >conftest.
$ac_ext <<_ACEOF
15766 cat confdefs.h
>>conftest.
$ac_ext
15767 cat >>conftest.
$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15770 #include "confdefs.h"
15771 #include <sys/types.h>
15772 #include <sys/socket.h>
15773 #include <netinet/in.h>
15774 #include <arpa/inet.h>
15779 void* p = inet_pton
15784 rm -f conftest.
$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15788 grep -v '^ *+' conftest.er1
>conftest.err
15790 cat conftest.err
>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try
='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try
='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15807 cat >>confdefs.h
<<\_ACEOF
15808 #define HAVE_INET_PTON 1
15811 echo "$as_me:$LINENO: result: yes" >&5
15812 echo "${ECHO_T}yes" >&6
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.
$ac_ext >&5
15817 echo "$as_me:$LINENO: result: no" >&5
15818 echo "${ECHO_T}no" >&6
15821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15823 # On some systems, setgroups is in unistd.h, on others, in grp.h
15824 echo "$as_me:$LINENO: checking for setgroups" >&5
15825 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15826 cat >conftest.
$ac_ext <<_ACEOF
15829 cat confdefs.h
>>conftest.
$ac_ext
15830 cat >>conftest.
$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15833 #include "confdefs.h"
15834 #include <unistd.h>
15842 void* p = setgroups
15847 rm -f conftest.
$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>conftest.er1
15851 grep -v '^ *+' conftest.er1
>conftest.err
15853 cat conftest.err
>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try
='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try
='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15870 cat >>confdefs.h
<<\_ACEOF
15871 #define HAVE_SETGROUPS 1
15874 echo "$as_me:$LINENO: result: yes" >&5
15875 echo "${ECHO_T}yes" >&6
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.
$ac_ext >&5
15880 echo "$as_me:$LINENO: result: no" >&5
15881 echo "${ECHO_T}no" >&6
15884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15886 # check for openpty and forkpty
15889 for ac_func
in openpty
15891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15892 echo "$as_me:$LINENO: checking for $ac_func" >&5
15893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15894 if eval "test \"\${$as_ac_var+set}\" = set"; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 cat >conftest.
$ac_ext <<_ACEOF
15900 cat confdefs.h
>>conftest.
$ac_ext
15901 cat >>conftest.
$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15905 #define $ac_func innocuous_$ac_func
15907 /* System header to define __stub macros and hopefully few prototypes,
15908 which can conflict with char $ac_func (); below.
15909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15910 <limits.h> exists even on freestanding compilers. */
15913 # include <limits.h>
15915 # include <assert.h>
15920 /* Override any gcc2 internal prototype to avoid an error. */
15925 /* We use char because int might match the return type of a gcc2
15926 builtin and then its argument prototype would still apply. */
15928 /* The GNU C library defines this for functions which it implements
15929 to always fail with ENOSYS. Some functions are actually named
15930 something starting with __ and the normal name is an alias. */
15931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15934 char (*f) () = $ac_func;
15943 return f != $ac_func;
15948 rm -f conftest.
$ac_objext conftest
$ac_exeext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15950 (eval $ac_link) 2>conftest.er1
15952 grep -v '^ *+' conftest.er1
>conftest.err
15954 cat conftest.err
>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } &&
15957 { ac_try
='test -z "$ac_c_werror_flag"
15958 || test ! -s conftest.err'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; } &&
15964 { ac_try
='test -s conftest$ac_exeext'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 eval "$as_ac_var=yes"
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.
$ac_ext >&5
15975 eval "$as_ac_var=no"
15977 rm -f conftest.err conftest.
$ac_objext \
15978 conftest
$ac_exeext conftest.
$ac_ext
15980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15982 if test `eval echo '${'$as_ac_var'}'` = yes; then
15983 cat >>confdefs.h
<<_ACEOF
15984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15988 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15989 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15990 if test "${ac_cv_lib_util_openpty+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 ac_check_lib_save_LIBS
=$LIBS
15994 LIBS
="-lutil $LIBS"
15995 cat >conftest.
$ac_ext <<_ACEOF
15998 cat confdefs.h
>>conftest.
$ac_ext
15999 cat >>conftest.
$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16002 /* Override any gcc2 internal prototype to avoid an error. */
16006 /* We use char because int might match the return type of a gcc2
16007 builtin and then its argument prototype would still apply. */
16017 rm -f conftest.
$ac_objext conftest
$ac_exeext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16019 (eval $ac_link) 2>conftest.er1
16021 grep -v '^ *+' conftest.er1
>conftest.err
16023 cat conftest.err
>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try
='test -z "$ac_c_werror_flag"
16027 || test ! -s conftest.err'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try
='test -s conftest$ac_exeext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_cv_lib_util_openpty
=yes
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.
$ac_ext >&5
16044 ac_cv_lib_util_openpty
=no
16046 rm -f conftest.err conftest.
$ac_objext \
16047 conftest
$ac_exeext conftest.
$ac_ext
16048 LIBS
=$ac_check_lib_save_LIBS
16050 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16051 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16052 if test $ac_cv_lib_util_openpty = yes; then
16053 cat >>confdefs.h
<<\_ACEOF
16054 #define HAVE_OPENPTY 1
16056 LIBS
="$LIBS -lutil"
16058 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16059 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
16060 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 ac_check_lib_save_LIBS
=$LIBS
16065 cat >conftest.
$ac_ext <<_ACEOF
16068 cat confdefs.h
>>conftest.
$ac_ext
16069 cat >>conftest.
$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16072 /* Override any gcc2 internal prototype to avoid an error. */
16076 /* We use char because int might match the return type of a gcc2
16077 builtin and then its argument prototype would still apply. */
16087 rm -f conftest.
$ac_objext conftest
$ac_exeext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16089 (eval $ac_link) 2>conftest.er1
16091 grep -v '^ *+' conftest.er1
>conftest.err
16093 cat conftest.err
>&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try
='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try
='test -s conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_lib_bsd_openpty
=yes
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.
$ac_ext >&5
16114 ac_cv_lib_bsd_openpty
=no
16116 rm -f conftest.err conftest.
$ac_objext \
16117 conftest
$ac_exeext conftest.
$ac_ext
16118 LIBS
=$ac_check_lib_save_LIBS
16120 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16121 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
16122 if test $ac_cv_lib_bsd_openpty = yes; then
16123 cat >>confdefs.h
<<\_ACEOF
16124 #define HAVE_OPENPTY 1
16137 for ac_func
in forkpty
16139 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16140 echo "$as_me:$LINENO: checking for $ac_func" >&5
16141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16142 if eval "test \"\${$as_ac_var+set}\" = set"; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 cat >conftest.
$ac_ext <<_ACEOF
16148 cat confdefs.h
>>conftest.
$ac_ext
16149 cat >>conftest.
$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16153 #define $ac_func innocuous_$ac_func
16155 /* System header to define __stub macros and hopefully few prototypes,
16156 which can conflict with char $ac_func (); below.
16157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16158 <limits.h> exists even on freestanding compilers. */
16161 # include <limits.h>
16163 # include <assert.h>
16168 /* Override any gcc2 internal prototype to avoid an error. */
16173 /* We use char because int might match the return type of a gcc2
16174 builtin and then its argument prototype would still apply. */
16176 /* The GNU C library defines this for functions which it implements
16177 to always fail with ENOSYS. Some functions are actually named
16178 something starting with __ and the normal name is an alias. */
16179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16182 char (*f) () = $ac_func;
16191 return f != $ac_func;
16196 rm -f conftest.
$ac_objext conftest
$ac_exeext
16197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16198 (eval $ac_link) 2>conftest.er1
16200 grep -v '^ *+' conftest.er1
>conftest.err
16202 cat conftest.err
>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try
='test -z "$ac_c_werror_flag"
16206 || test ! -s conftest.err'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try
='test -s conftest$ac_exeext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 eval "$as_ac_var=yes"
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.
$ac_ext >&5
16223 eval "$as_ac_var=no"
16225 rm -f conftest.err conftest.
$ac_objext \
16226 conftest
$ac_exeext conftest.
$ac_ext
16228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16230 if test `eval echo '${'$as_ac_var'}'` = yes; then
16231 cat >>confdefs.h
<<_ACEOF
16232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16236 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16237 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
16238 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 ac_check_lib_save_LIBS
=$LIBS
16242 LIBS
="-lutil $LIBS"
16243 cat >conftest.
$ac_ext <<_ACEOF
16246 cat confdefs.h
>>conftest.
$ac_ext
16247 cat >>conftest.
$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16250 /* Override any gcc2 internal prototype to avoid an error. */
16254 /* We use char because int might match the return type of a gcc2
16255 builtin and then its argument prototype would still apply. */
16265 rm -f conftest.
$ac_objext conftest
$ac_exeext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16267 (eval $ac_link) 2>conftest.er1
16269 grep -v '^ *+' conftest.er1
>conftest.err
16271 cat conftest.err
>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try
='test -z "$ac_c_werror_flag"
16275 || test ! -s conftest.err'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try
='test -s conftest$ac_exeext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_lib_util_forkpty
=yes
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.
$ac_ext >&5
16292 ac_cv_lib_util_forkpty
=no
16294 rm -f conftest.err conftest.
$ac_objext \
16295 conftest
$ac_exeext conftest.
$ac_ext
16296 LIBS
=$ac_check_lib_save_LIBS
16298 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16299 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
16300 if test $ac_cv_lib_util_forkpty = yes; then
16301 cat >>confdefs.h
<<\_ACEOF
16302 #define HAVE_FORKPTY 1
16304 LIBS
="$LIBS -lutil"
16306 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16307 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
16308 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 ac_check_lib_save_LIBS
=$LIBS
16313 cat >conftest.
$ac_ext <<_ACEOF
16316 cat confdefs.h
>>conftest.
$ac_ext
16317 cat >>conftest.
$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16320 /* Override any gcc2 internal prototype to avoid an error. */
16324 /* We use char because int might match the return type of a gcc2
16325 builtin and then its argument prototype would still apply. */
16335 rm -f conftest.
$ac_objext conftest
$ac_exeext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16337 (eval $ac_link) 2>conftest.er1
16339 grep -v '^ *+' conftest.er1
>conftest.err
16341 cat conftest.err
>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try
='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try
='test -s conftest$ac_exeext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_lib_bsd_forkpty
=yes
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.
$ac_ext >&5
16362 ac_cv_lib_bsd_forkpty
=no
16364 rm -f conftest.err conftest.
$ac_objext \
16365 conftest
$ac_exeext conftest.
$ac_ext
16366 LIBS
=$ac_check_lib_save_LIBS
16368 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16369 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
16370 if test $ac_cv_lib_bsd_forkpty = yes; then
16371 cat >>confdefs.h
<<\_ACEOF
16372 #define HAVE_FORKPTY 1
16385 # check for long file support functions
16392 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16394 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16395 echo "$as_me:$LINENO: checking for $ac_func" >&5
16396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16397 if eval "test \"\${$as_ac_var+set}\" = set"; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 cat >conftest.
$ac_ext <<_ACEOF
16403 cat confdefs.h
>>conftest.
$ac_ext
16404 cat >>conftest.
$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16408 #define $ac_func innocuous_$ac_func
16410 /* System header to define __stub macros and hopefully few prototypes,
16411 which can conflict with char $ac_func (); below.
16412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16413 <limits.h> exists even on freestanding compilers. */
16416 # include <limits.h>
16418 # include <assert.h>
16423 /* Override any gcc2 internal prototype to avoid an error. */
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16431 /* The GNU C library defines this for functions which it implements
16432 to always fail with ENOSYS. Some functions are actually named
16433 something starting with __ and the normal name is an alias. */
16434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16437 char (*f) () = $ac_func;
16446 return f != $ac_func;
16451 rm -f conftest.
$ac_objext conftest
$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>conftest.er1
16455 grep -v '^ *+' conftest.er1
>conftest.err
16457 cat conftest.err
>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try
='test -z "$ac_c_werror_flag"
16461 || test ! -s conftest.err'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try
='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 eval "$as_ac_var=yes"
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.
$ac_ext >&5
16478 eval "$as_ac_var=no"
16480 rm -f conftest.err conftest.
$ac_objext \
16481 conftest
$ac_exeext conftest.
$ac_ext
16483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16485 if test `eval echo '${'$as_ac_var'}'` = yes; then
16486 cat >>confdefs.h
<<_ACEOF
16487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16499 for ac_func
in dup2 getcwd strdup strerror memmove
16501 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16502 echo "$as_me:$LINENO: checking for $ac_func" >&5
16503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16504 if eval "test \"\${$as_ac_var+set}\" = set"; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 cat >conftest.
$ac_ext <<_ACEOF
16510 cat confdefs.h
>>conftest.
$ac_ext
16511 cat >>conftest.
$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16515 #define $ac_func innocuous_$ac_func
16517 /* System header to define __stub macros and hopefully few prototypes,
16518 which can conflict with char $ac_func (); below.
16519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16520 <limits.h> exists even on freestanding compilers. */
16523 # include <limits.h>
16525 # include <assert.h>
16530 /* Override any gcc2 internal prototype to avoid an error. */
16535 /* We use char because int might match the return type of a gcc2
16536 builtin and then its argument prototype would still apply. */
16538 /* The GNU C library defines this for functions which it implements
16539 to always fail with ENOSYS. Some functions are actually named
16540 something starting with __ and the normal name is an alias. */
16541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16544 char (*f) () = $ac_func;
16553 return f != $ac_func;
16558 rm -f conftest.
$ac_objext conftest
$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>conftest.er1
16562 grep -v '^ *+' conftest.er1
>conftest.err
16564 cat conftest.err
>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try
='test -z "$ac_c_werror_flag"
16568 || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try
='test -s conftest$ac_exeext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 eval "$as_ac_var=yes"
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.
$ac_ext >&5
16585 eval "$as_ac_var=no"
16587 rm -f conftest.err conftest.
$ac_objext \
16588 conftest
$ac_exeext conftest.
$ac_ext
16590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16592 if test `eval echo '${'$as_ac_var'}'` = yes; then
16593 cat >>confdefs.h
<<_ACEOF
16594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16599 "$ac_func.$ac_objext" | \
16600 *" $ac_func.$ac_objext" | \
16601 "$ac_func.$ac_objext "* | \
16602 *" $ac_func.$ac_objext "* ) ;;
16603 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16611 for ac_func
in getpgrp
16613 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16614 echo "$as_me:$LINENO: checking for $ac_func" >&5
16615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16616 if eval "test \"\${$as_ac_var+set}\" = set"; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 cat >conftest.
$ac_ext <<_ACEOF
16622 cat confdefs.h
>>conftest.
$ac_ext
16623 cat >>conftest.
$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16627 #define $ac_func innocuous_$ac_func
16629 /* System header to define __stub macros and hopefully few prototypes,
16630 which can conflict with char $ac_func (); below.
16631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16632 <limits.h> exists even on freestanding compilers. */
16635 # include <limits.h>
16637 # include <assert.h>
16642 /* Override any gcc2 internal prototype to avoid an error. */
16647 /* We use char because int might match the return type of a gcc2
16648 builtin and then its argument prototype would still apply. */
16650 /* The GNU C library defines this for functions which it implements
16651 to always fail with ENOSYS. Some functions are actually named
16652 something starting with __ and the normal name is an alias. */
16653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16656 char (*f) () = $ac_func;
16665 return f != $ac_func;
16670 rm -f conftest.
$ac_objext conftest
$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>conftest.er1
16674 grep -v '^ *+' conftest.er1
>conftest.err
16676 cat conftest.err
>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try
='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try
='test -s conftest$ac_exeext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 eval "$as_ac_var=yes"
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.
$ac_ext >&5
16697 eval "$as_ac_var=no"
16699 rm -f conftest.err conftest.
$ac_objext \
16700 conftest
$ac_exeext conftest.
$ac_ext
16702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16704 if test `eval echo '${'$as_ac_var'}'` = yes; then
16705 cat >>confdefs.h
<<_ACEOF
16706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16708 cat >conftest.
$ac_ext <<_ACEOF
16711 cat confdefs.h
>>conftest.
$ac_ext
16712 cat >>conftest.
$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #include <unistd.h>
16723 rm -f conftest.
$ac_objext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16725 (eval $ac_compile) 2>conftest.er1
16727 grep -v '^ *+' conftest.er1
>conftest.err
16729 cat conftest.err
>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try
='test -z "$ac_c_werror_flag"
16733 || test ! -s conftest.err'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try
='test -s conftest.$ac_objext'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16746 cat >>confdefs.h
<<\_ACEOF
16747 #define GETPGRP_HAVE_ARG 1
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.
$ac_ext >&5
16756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16762 for ac_func
in setpgrp
16764 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765 echo "$as_me:$LINENO: checking for $ac_func" >&5
16766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16767 if eval "test \"\${$as_ac_var+set}\" = set"; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 cat >conftest.
$ac_ext <<_ACEOF
16773 cat confdefs.h
>>conftest.
$ac_ext
16774 cat >>conftest.
$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16778 #define $ac_func innocuous_$ac_func
16780 /* System header to define __stub macros and hopefully few prototypes,
16781 which can conflict with char $ac_func (); below.
16782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16783 <limits.h> exists even on freestanding compilers. */
16786 # include <limits.h>
16788 # include <assert.h>
16793 /* Override any gcc2 internal prototype to avoid an error. */
16798 /* We use char because int might match the return type of a gcc2
16799 builtin and then its argument prototype would still apply. */
16801 /* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16807 char (*f) () = $ac_func;
16816 return f != $ac_func;
16821 rm -f conftest.
$ac_objext conftest
$ac_exeext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16823 (eval $ac_link) 2>conftest.er1
16825 grep -v '^ *+' conftest.er1
>conftest.err
16827 cat conftest.err
>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try
='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try
='test -s conftest$ac_exeext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 eval "$as_ac_var=yes"
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.
$ac_ext >&5
16848 eval "$as_ac_var=no"
16850 rm -f conftest.err conftest.
$ac_objext \
16851 conftest
$ac_exeext conftest.
$ac_ext
16853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16855 if test `eval echo '${'$as_ac_var'}'` = yes; then
16856 cat >>confdefs.h
<<_ACEOF
16857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16859 cat >conftest.
$ac_ext <<_ACEOF
16862 cat confdefs.h
>>conftest.
$ac_ext
16863 cat >>conftest.
$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <unistd.h>
16874 rm -f conftest.
$ac_objext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16876 (eval $ac_compile) 2>conftest.er1
16878 grep -v '^ *+' conftest.er1
>conftest.err
16880 cat conftest.err
>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try
='test -z "$ac_c_werror_flag"
16884 || test ! -s conftest.err'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try
='test -s conftest.$ac_objext'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16897 cat >>confdefs.h
<<\_ACEOF
16898 #define SETPGRP_HAVE_ARG 1
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.
$ac_ext >&5
16907 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16913 for ac_func
in gettimeofday
16915 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16916 echo "$as_me:$LINENO: checking for $ac_func" >&5
16917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16918 if eval "test \"\${$as_ac_var+set}\" = set"; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.
$ac_ext <<_ACEOF
16924 cat confdefs.h
>>conftest.
$ac_ext
16925 cat >>conftest.
$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16929 #define $ac_func innocuous_$ac_func
16931 /* System header to define __stub macros and hopefully few prototypes,
16932 which can conflict with char $ac_func (); below.
16933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16934 <limits.h> exists even on freestanding compilers. */
16937 # include <limits.h>
16939 # include <assert.h>
16944 /* Override any gcc2 internal prototype to avoid an error. */
16949 /* We use char because int might match the return type of a gcc2
16950 builtin and then its argument prototype would still apply. */
16952 /* The GNU C library defines this for functions which it implements
16953 to always fail with ENOSYS. Some functions are actually named
16954 something starting with __ and the normal name is an alias. */
16955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16958 char (*f) () = $ac_func;
16967 return f != $ac_func;
16972 rm -f conftest.
$ac_objext conftest
$ac_exeext
16973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16974 (eval $ac_link) 2>conftest.er1
16976 grep -v '^ *+' conftest.er1
>conftest.err
16978 cat conftest.err
>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try
='test -z "$ac_c_werror_flag"
16982 || test ! -s conftest.err'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; } &&
16988 { ac_try
='test -s conftest$ac_exeext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 eval "$as_ac_var=yes"
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.
$ac_ext >&5
16999 eval "$as_ac_var=no"
17001 rm -f conftest.err conftest.
$ac_objext \
17002 conftest
$ac_exeext conftest.
$ac_ext
17004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17006 if test `eval echo '${'$as_ac_var'}'` = yes; then
17007 cat >>confdefs.h
<<_ACEOF
17008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17010 cat >conftest.
$ac_ext <<_ACEOF
17013 cat confdefs.h
>>conftest.
$ac_ext
17014 cat >>conftest.
$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <sys/time.h>
17020 gettimeofday((struct timeval*)0,(struct timezone*)0);
17025 rm -f conftest.
$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027 (eval $ac_compile) 2>conftest.er1
17029 grep -v '^ *+' conftest.er1
>conftest.err
17031 cat conftest.err
>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try
='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try
='test -s conftest.$ac_objext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.
$ac_ext >&5
17053 cat >>confdefs.h
<<\_ACEOF
17054 #define GETTIMEOFDAY_NO_TZ 1
17059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17065 echo "$as_me:$LINENO: checking for major" >&5
17066 echo $ECHO_N "checking for major... $ECHO_C" >&6
17067 cat >conftest.
$ac_ext <<_ACEOF
17070 cat confdefs.h
>>conftest.
$ac_ext
17071 cat >>conftest.
$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17074 #if defined(MAJOR_IN_MKDEV)
17075 #include <sys/mkdev.h>
17076 #elif defined(MAJOR_IN_SYSMACROS)
17077 #include <sys/sysmacros.h>
17079 #include <sys/types.h>
17086 makedev(major(0),minor(0));
17092 rm -f conftest.
$ac_objext conftest
$ac_exeext
17093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17094 (eval $ac_link) 2>conftest.er1
17096 grep -v '^ *+' conftest.er1
>conftest.err
17098 cat conftest.err
>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
17101 { ac_try
='test -z "$ac_c_werror_flag"
17102 || test ! -s conftest.err'
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try
='test -s conftest$ac_exeext'
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17116 cat >>confdefs.h
<<\_ACEOF
17117 #define HAVE_DEVICE_MACROS 1
17120 echo "$as_me:$LINENO: result: yes" >&5
17121 echo "${ECHO_T}yes" >&6
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.
$ac_ext >&5
17128 echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17132 rm -f conftest.err conftest.
$ac_objext \
17133 conftest
$ac_exeext conftest.
$ac_ext
17135 # On OSF/1 V5.1, getaddrinfo is available, but a define
17136 # for [no]getaddrinfo in netdb.h.
17137 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17138 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17139 cat >conftest.
$ac_ext <<_ACEOF
17142 cat confdefs.h
>>conftest.
$ac_ext
17143 cat >>conftest.
$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17146 #include <sys/types.h>
17147 #include <sys/socket.h>
17155 getaddrinfo(NULL, NULL, NULL, NULL);
17161 rm -f conftest.
$ac_objext conftest
$ac_exeext
17162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17163 (eval $ac_link) 2>conftest.er1
17165 grep -v '^ *+' conftest.er1
>conftest.err
17167 cat conftest.err
>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try
='test -z "$ac_c_werror_flag"
17171 || test ! -s conftest.err'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try
='test -s conftest$ac_exeext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17184 echo "$as_me:$LINENO: result: yes" >&5
17185 echo "${ECHO_T}yes" >&6
17186 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17187 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
17188 if test "$cross_compiling" = yes; then
17189 echo "$as_me:$LINENO: result: buggy" >&5
17190 echo "${ECHO_T}buggy" >&6
17191 buggygetaddrinfo
=yes
17193 cat >conftest.
$ac_ext <<_ACEOF
17196 cat confdefs.h
>>conftest.
$ac_ext
17197 cat >>conftest.
$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17200 #include <sys/types.h>
17202 #include <string.h>
17203 #include <sys/socket.h>
17204 #include <netinet/in.h>
17208 int passive, gaierr, inet4 = 0, inet6 = 0;
17209 struct addrinfo hints, *ai, *aitop;
17210 char straddr[INET6_ADDRSTRLEN], strport[16];
17212 for (passive = 0; passive <= 1; passive++) {
17213 memset(&hints, 0, sizeof(hints));
17214 hints.ai_family = AF_UNSPEC;
17215 hints.ai_flags = passive ? AI_PASSIVE : 0;
17216 hints.ai_socktype = SOCK_STREAM;
17217 hints.ai_protocol = IPPROTO_TCP;
17218 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17219 (void)gai_strerror(gaierr);
17222 for (ai = aitop; ai; ai = ai->ai_next) {
17223 if (ai->ai_addr == NULL ||
17224 ai->ai_addrlen == 0 ||
17225 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17226 straddr, sizeof(straddr), strport, sizeof(strport),
17227 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17230 switch (ai->ai_family) {
17232 if (strcmp(strport, "54321") != 0) {
17236 if (strcmp(straddr, "0.0.0.0") != 0) {
17240 if (strcmp(straddr, "127.0.0.1") != 0) {
17247 if (strcmp(strport, "54321") != 0) {
17251 if (strcmp(straddr, "::") != 0) {
17255 if (strcmp(straddr, "::1") != 0) {
17265 /* another family support? */
17271 if (!(inet4 == 0 || inet4 == 2))
17273 if (!(inet6 == 0 || inet6 == 2))
17277 freeaddrinfo(aitop);
17282 freeaddrinfo(aitop);
17287 rm -f conftest
$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289 (eval $ac_link) 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 echo "$as_me:$LINENO: result: good" >&5
17299 echo "${ECHO_T}good" >&6
17300 buggygetaddrinfo
=no
17302 echo "$as_me: program exited with status $ac_status" >&5
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.
$ac_ext >&5
17306 ( exit $ac_status )
17307 echo "$as_me:$LINENO: result: buggy" >&5
17308 echo "${ECHO_T}buggy" >&6
17309 buggygetaddrinfo
=yes
17311 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.
$ac_ext >&5
17318 echo "$as_me:$LINENO: result: no" >&5
17319 echo "${ECHO_T}no" >&6
17320 buggygetaddrinfo
=yes
17323 rm -f conftest.err conftest.
$ac_objext \
17324 conftest
$ac_exeext conftest.
$ac_ext
17326 if test "$buggygetaddrinfo" = "yes"; then
17327 if test "$ipv6" = "yes"; then
17328 echo 'Fatal: You must get working getaddrinfo() function.'
17329 echo ' or you can specify "--disable-ipv6"'.
17334 cat >>confdefs.h
<<\_ACEOF
17335 #define HAVE_GETADDRINFO 1
17340 for ac_func
in getnameinfo
17342 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17343 echo "$as_me:$LINENO: checking for $ac_func" >&5
17344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17345 if eval "test \"\${$as_ac_var+set}\" = set"; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 cat >conftest.
$ac_ext <<_ACEOF
17351 cat confdefs.h
>>conftest.
$ac_ext
17352 cat >>conftest.
$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define $ac_func innocuous_$ac_func
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char $ac_func (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17364 # include <limits.h>
17366 # include <assert.h>
17371 /* Override any gcc2 internal prototype to avoid an error. */
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17379 /* The GNU C library defines this for functions which it implements
17380 to always fail with ENOSYS. Some functions are actually named
17381 something starting with __ and the normal name is an alias. */
17382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17385 char (*f) () = $ac_func;
17394 return f != $ac_func;
17399 rm -f conftest.
$ac_objext conftest
$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>conftest.er1
17403 grep -v '^ *+' conftest.er1
>conftest.err
17405 cat conftest.err
>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try
='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try
='test -s conftest$ac_exeext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 eval "$as_ac_var=yes"
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.
$ac_ext >&5
17426 eval "$as_ac_var=no"
17428 rm -f conftest.err conftest.
$ac_objext \
17429 conftest
$ac_exeext conftest.
$ac_ext
17431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17433 if test `eval echo '${'$as_ac_var'}'` = yes; then
17434 cat >>confdefs.h
<<_ACEOF
17435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17442 # checks for structures
17443 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17444 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17445 if test "${ac_cv_header_time+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 cat >conftest.
$ac_ext <<_ACEOF
17451 cat confdefs.h
>>conftest.
$ac_ext
17452 cat >>conftest.
$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 #include <sys/types.h>
17455 #include <sys/time.h>
17461 if ((struct tm *) 0)
17467 rm -f conftest.
$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>conftest.er1
17471 grep -v '^ *+' conftest.er1
>conftest.err
17473 cat conftest.err
>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try
='test -z "$ac_c_werror_flag"
17477 || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try
='test -s conftest.$ac_objext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_header_time
=yes
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.
$ac_ext >&5
17494 ac_cv_header_time
=no
17496 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17498 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17499 echo "${ECHO_T}$ac_cv_header_time" >&6
17500 if test $ac_cv_header_time = yes; then
17502 cat >>confdefs.h
<<\_ACEOF
17503 #define TIME_WITH_SYS_TIME 1
17508 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17509 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
17510 if test "${ac_cv_struct_tm+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 cat >conftest.
$ac_ext <<_ACEOF
17516 cat confdefs.h
>>conftest.
$ac_ext
17517 cat >>conftest.
$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 #include <sys/types.h>
17525 struct tm *tp; tp->tm_sec;
17530 rm -f conftest.
$ac_objext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17532 (eval $ac_compile) 2>conftest.er1
17534 grep -v '^ *+' conftest.er1
>conftest.err
17536 cat conftest.err
>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try
='test -z "$ac_c_werror_flag"
17540 || test ! -s conftest.err'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try
='test -s conftest.$ac_objext'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 ac_cv_struct_tm
=time.h
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.
$ac_ext >&5
17557 ac_cv_struct_tm
=sys
/time.h
17559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17561 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17562 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17563 if test $ac_cv_struct_tm = sys
/time.h
; then
17565 cat >>confdefs.h
<<\_ACEOF
17566 #define TM_IN_SYS_TIME 1
17571 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17572 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17573 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 cat >conftest.
$ac_ext <<_ACEOF
17579 cat confdefs.h
>>conftest.
$ac_ext
17580 cat >>conftest.
$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 #include <sys/types.h>
17583 #include <$ac_cv_struct_tm>
17589 static struct tm ac_aggr;
17590 if (ac_aggr.tm_zone)
17596 rm -f conftest.
$ac_objext
17597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17598 (eval $ac_compile) 2>conftest.er1
17600 grep -v '^ *+' conftest.er1
>conftest.err
17602 cat conftest.err
>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try
='test -z "$ac_c_werror_flag"
17606 || test ! -s conftest.err'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try
='test -s conftest.$ac_objext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_cv_member_struct_tm_tm_zone
=yes
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.
$ac_ext >&5
17623 cat >conftest.
$ac_ext <<_ACEOF
17626 cat confdefs.h
>>conftest.
$ac_ext
17627 cat >>conftest.
$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 #include <sys/types.h>
17630 #include <$ac_cv_struct_tm>
17636 static struct tm ac_aggr;
17637 if (sizeof ac_aggr.tm_zone)
17643 rm -f conftest.
$ac_objext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645 (eval $ac_compile) 2>conftest.er1
17647 grep -v '^ *+' conftest.er1
>conftest.err
17649 cat conftest.err
>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try
='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try
='test -s conftest.$ac_objext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_member_struct_tm_tm_zone
=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.
$ac_ext >&5
17670 ac_cv_member_struct_tm_tm_zone
=no
17672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17677 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17678 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17680 cat >>confdefs.h
<<_ACEOF
17681 #define HAVE_STRUCT_TM_TM_ZONE 1
17687 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17689 cat >>confdefs.h
<<\_ACEOF
17690 #define HAVE_TM_ZONE 1
17694 echo "$as_me:$LINENO: checking for tzname" >&5
17695 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17696 if test "${ac_cv_var_tzname+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 cat >conftest.
$ac_ext <<_ACEOF
17702 cat confdefs.h
>>conftest.
$ac_ext
17703 cat >>conftest.
$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17706 #ifndef tzname /* For SGI. */
17707 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17718 rm -f conftest.
$ac_objext conftest
$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17722 grep -v '^ *+' conftest.er1
>conftest.err
17724 cat conftest.err
>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try
='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try
='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_var_tzname
=yes
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.
$ac_ext >&5
17745 ac_cv_var_tzname
=no
17747 rm -f conftest.err conftest.
$ac_objext \
17748 conftest
$ac_exeext conftest.
$ac_ext
17750 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17751 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17752 if test $ac_cv_var_tzname = yes; then
17754 cat >>confdefs.h
<<\_ACEOF
17755 #define HAVE_TZNAME 1
17761 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17762 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17763 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 cat >conftest.
$ac_ext <<_ACEOF
17769 cat confdefs.h
>>conftest.
$ac_ext
17770 cat >>conftest.
$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17776 static struct stat ac_aggr;
17777 if (ac_aggr.st_rdev)
17783 rm -f conftest.
$ac_objext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785 (eval $ac_compile) 2>conftest.er1
17787 grep -v '^ *+' conftest.er1
>conftest.err
17789 cat conftest.err
>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try
='test -z "$ac_c_werror_flag"
17793 || test ! -s conftest.err'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try
='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_member_struct_stat_st_rdev
=yes
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.
$ac_ext >&5
17810 cat >conftest.
$ac_ext <<_ACEOF
17813 cat confdefs.h
>>conftest.
$ac_ext
17814 cat >>conftest.
$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 $ac_includes_default
17820 static struct stat ac_aggr;
17821 if (sizeof ac_aggr.st_rdev)
17827 rm -f conftest.
$ac_objext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829 (eval $ac_compile) 2>conftest.er1
17831 grep -v '^ *+' conftest.er1
>conftest.err
17833 cat conftest.err
>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try
='test -z "$ac_c_werror_flag"
17837 || test ! -s conftest.err'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try
='test -s conftest.$ac_objext'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849 ac_cv_member_struct_stat_st_rdev
=yes
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.
$ac_ext >&5
17854 ac_cv_member_struct_stat_st_rdev
=no
17856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17861 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17862 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17864 cat >>confdefs.h
<<_ACEOF
17865 #define HAVE_STRUCT_STAT_ST_RDEV 1
17871 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17872 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17873 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 cat >conftest.
$ac_ext <<_ACEOF
17879 cat confdefs.h
>>conftest.
$ac_ext
17880 cat >>conftest.
$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17886 static struct stat ac_aggr;
17887 if (ac_aggr.st_blksize)
17893 rm -f conftest.
$ac_objext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17895 (eval $ac_compile) 2>conftest.er1
17897 grep -v '^ *+' conftest.er1
>conftest.err
17899 cat conftest.err
>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
17902 { ac_try
='test -z "$ac_c_werror_flag"
17903 || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try
='test -s conftest.$ac_objext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_member_struct_stat_st_blksize
=yes
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.
$ac_ext >&5
17920 cat >conftest.
$ac_ext <<_ACEOF
17923 cat confdefs.h
>>conftest.
$ac_ext
17924 cat >>conftest.
$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17926 $ac_includes_default
17930 static struct stat ac_aggr;
17931 if (sizeof ac_aggr.st_blksize)
17937 rm -f conftest.
$ac_objext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17939 (eval $ac_compile) 2>conftest.er1
17941 grep -v '^ *+' conftest.er1
>conftest.err
17943 cat conftest.err
>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try
='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try
='test -s conftest.$ac_objext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_cv_member_struct_stat_st_blksize
=yes
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.
$ac_ext >&5
17964 ac_cv_member_struct_stat_st_blksize
=no
17966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17970 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17971 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17972 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17974 cat >>confdefs.h
<<_ACEOF
17975 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17981 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17982 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17983 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 cat >conftest.
$ac_ext <<_ACEOF
17989 cat confdefs.h
>>conftest.
$ac_ext
17990 cat >>conftest.
$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 $ac_includes_default
17996 static struct stat ac_aggr;
17997 if (ac_aggr.st_flags)
18003 rm -f conftest.
$ac_objext
18004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18005 (eval $ac_compile) 2>conftest.er1
18007 grep -v '^ *+' conftest.er1
>conftest.err
18009 cat conftest.err
>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try
='test -z "$ac_c_werror_flag"
18013 || test ! -s conftest.err'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } &&
18019 { ac_try
='test -s conftest.$ac_objext'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 ac_cv_member_struct_stat_st_flags
=yes
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.
$ac_ext >&5
18030 cat >conftest.
$ac_ext <<_ACEOF
18033 cat confdefs.h
>>conftest.
$ac_ext
18034 cat >>conftest.
$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 $ac_includes_default
18040 static struct stat ac_aggr;
18041 if (sizeof ac_aggr.st_flags)
18047 rm -f conftest.
$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1
>conftest.err
18053 cat conftest.err
>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try
='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try
='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_cv_member_struct_stat_st_flags
=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.
$ac_ext >&5
18074 ac_cv_member_struct_stat_st_flags
=no
18076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18078 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18080 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18081 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
18082 if test $ac_cv_member_struct_stat_st_flags = yes; then
18084 cat >>confdefs.h
<<_ACEOF
18085 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18091 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18092 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
18093 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18096 cat >conftest.
$ac_ext <<_ACEOF
18099 cat confdefs.h
>>conftest.
$ac_ext
18100 cat >>conftest.
$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 $ac_includes_default
18106 static struct stat ac_aggr;
18107 if (ac_aggr.st_gen)
18113 rm -f conftest.
$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>conftest.er1
18117 grep -v '^ *+' conftest.er1
>conftest.err
18119 cat conftest.err
>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
18122 { ac_try
='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try
='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_cv_member_struct_stat_st_gen
=yes
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.
$ac_ext >&5
18140 cat >conftest.
$ac_ext <<_ACEOF
18143 cat confdefs.h
>>conftest.
$ac_ext
18144 cat >>conftest.
$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18146 $ac_includes_default
18150 static struct stat ac_aggr;
18151 if (sizeof ac_aggr.st_gen)
18157 rm -f conftest.
$ac_objext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>conftest.er1
18161 grep -v '^ *+' conftest.er1
>conftest.err
18163 cat conftest.err
>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try
='test -z "$ac_c_werror_flag"
18167 || test ! -s conftest.err'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try
='test -s conftest.$ac_objext'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_member_struct_stat_st_gen
=yes
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.
$ac_ext >&5
18184 ac_cv_member_struct_stat_st_gen
=no
18186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18188 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18190 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18191 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
18192 if test $ac_cv_member_struct_stat_st_gen = yes; then
18194 cat >>confdefs.h
<<_ACEOF
18195 #define HAVE_STRUCT_STAT_ST_GEN 1
18201 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18202 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
18203 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18206 cat >conftest.
$ac_ext <<_ACEOF
18209 cat confdefs.h
>>conftest.
$ac_ext
18210 cat >>conftest.
$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 $ac_includes_default
18216 static struct stat ac_aggr;
18217 if (ac_aggr.st_birthtime)
18223 rm -f conftest.
$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>conftest.er1
18227 grep -v '^ *+' conftest.er1
>conftest.err
18229 cat conftest.err
>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try
='test -z "$ac_c_werror_flag"
18233 || test ! -s conftest.err'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try
='test -s conftest.$ac_objext'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_cv_member_struct_stat_st_birthtime
=yes
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.
$ac_ext >&5
18250 cat >conftest.
$ac_ext <<_ACEOF
18253 cat confdefs.h
>>conftest.
$ac_ext
18254 cat >>conftest.
$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 $ac_includes_default
18260 static struct stat ac_aggr;
18261 if (sizeof ac_aggr.st_birthtime)
18267 rm -f conftest.
$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>conftest.er1
18271 grep -v '^ *+' conftest.er1
>conftest.err
18273 cat conftest.err
>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try
='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try
='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_member_struct_stat_st_birthtime
=yes
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.
$ac_ext >&5
18294 ac_cv_member_struct_stat_st_birthtime
=no
18296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18300 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18301 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
18302 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18304 cat >>confdefs.h
<<_ACEOF
18305 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18311 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18312 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18313 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 cat >conftest.
$ac_ext <<_ACEOF
18319 cat confdefs.h
>>conftest.
$ac_ext
18320 cat >>conftest.
$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 $ac_includes_default
18326 static struct stat ac_aggr;
18327 if (ac_aggr.st_blocks)
18333 rm -f conftest.
$ac_objext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18335 (eval $ac_compile) 2>conftest.er1
18337 grep -v '^ *+' conftest.er1
>conftest.err
18339 cat conftest.err
>&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try
='test -z "$ac_c_werror_flag"
18343 || test ! -s conftest.err'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try
='test -s conftest.$ac_objext'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_member_struct_stat_st_blocks
=yes
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.
$ac_ext >&5
18360 cat >conftest.
$ac_ext <<_ACEOF
18363 cat confdefs.h
>>conftest.
$ac_ext
18364 cat >>conftest.
$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 $ac_includes_default
18370 static struct stat ac_aggr;
18371 if (sizeof ac_aggr.st_blocks)
18377 rm -f conftest.
$ac_objext
18378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18379 (eval $ac_compile) 2>conftest.er1
18381 grep -v '^ *+' conftest.er1
>conftest.err
18383 cat conftest.err
>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try
='test -z "$ac_c_werror_flag"
18387 || test ! -s conftest.err'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; } &&
18393 { ac_try
='test -s conftest.$ac_objext'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_cv_member_struct_stat_st_blocks
=yes
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.
$ac_ext >&5
18404 ac_cv_member_struct_stat_st_blocks
=no
18406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18410 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18411 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18412 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18414 cat >>confdefs.h
<<_ACEOF
18415 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18419 cat >>confdefs.h
<<\_ACEOF
18420 #define HAVE_ST_BLOCKS 1
18425 "fileblocks.$ac_objext" | \
18426 *" fileblocks.$ac_objext" | \
18427 "fileblocks.$ac_objext "* | \
18428 *" fileblocks.$ac_objext "* ) ;;
18429 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
18436 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18437 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
18438 if test "${ac_cv_header_time_altzone+set}" = set; then
18439 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 cat >conftest.
$ac_ext <<_ACEOF
18444 cat confdefs.h
>>conftest.
$ac_ext
18445 cat >>conftest.
$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18456 rm -f conftest.
$ac_objext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458 (eval $ac_compile) 2>conftest.er1
18460 grep -v '^ *+' conftest.er1
>conftest.err
18462 cat conftest.err
>&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try
='test -z "$ac_c_werror_flag"
18466 || test ! -s conftest.err'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; } &&
18472 { ac_try
='test -s conftest.$ac_objext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_header_time_altzone
=yes
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.
$ac_ext >&5
18483 ac_cv_header_time_altzone
=no
18485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18488 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18489 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
18490 if test $ac_cv_header_time_altzone = yes; then
18492 cat >>confdefs.h
<<\_ACEOF
18493 #define HAVE_ALTZONE 1
18499 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18500 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
18501 cat >conftest.
$ac_ext <<_ACEOF
18504 cat confdefs.h
>>conftest.
$ac_ext
18505 cat >>conftest.
$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18508 #include <sys/types.h>
18509 #include <sys/select.h>
18510 #include <sys/time.h>
18520 rm -f conftest.
$ac_objext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522 (eval $ac_compile) 2>conftest.er1
18524 grep -v '^ *+' conftest.er1
>conftest.err
18526 cat conftest.err
>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try
='test -z "$ac_c_werror_flag"
18530 || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try
='test -s conftest.$ac_objext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18544 cat >>confdefs.h
<<\_ACEOF
18545 #define SYS_SELECT_WITH_SYS_TIME 1
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.
$ac_ext >&5
18555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18556 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18557 echo "${ECHO_T}$was_it_defined" >&6
18559 echo "$as_me:$LINENO: checking for addrinfo" >&5
18560 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18561 if test "${ac_cv_struct_addrinfo+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 cat >conftest.
$ac_ext <<_ACEOF
18567 cat confdefs.h
>>conftest.
$ac_ext
18568 cat >>conftest.
$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18571 # include <netdb.h>
18580 rm -f conftest.
$ac_objext
18581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18582 (eval $ac_compile) 2>conftest.er1
18584 grep -v '^ *+' conftest.er1
>conftest.err
18586 cat conftest.err
>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
18589 { ac_try
='test -z "$ac_c_werror_flag"
18590 || test ! -s conftest.err'
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; } &&
18596 { ac_try
='test -s conftest.$ac_objext'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 ac_cv_struct_addrinfo
=yes
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.
$ac_ext >&5
18607 ac_cv_struct_addrinfo
=no
18609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18612 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18613 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18614 if test $ac_cv_struct_addrinfo = yes; then
18616 cat >>confdefs.h
<<\_ACEOF
18617 #define HAVE_ADDRINFO 1
18622 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18623 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18624 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 cat >conftest.
$ac_ext <<_ACEOF
18630 cat confdefs.h
>>conftest.
$ac_ext
18631 cat >>conftest.
$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18634 # include <sys/types.h>
18635 # include <sys/socket.h>
18639 struct sockaddr_storage s
18644 rm -f conftest.
$ac_objext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18648 grep -v '^ *+' conftest.er1
>conftest.err
18650 cat conftest.err
>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try
='test -z "$ac_c_werror_flag"
18654 || test ! -s conftest.err'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try
='test -s conftest.$ac_objext'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_cv_struct_sockaddr_storage
=yes
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.
$ac_ext >&5
18671 ac_cv_struct_sockaddr_storage
=no
18673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18676 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18677 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18678 if test $ac_cv_struct_sockaddr_storage = yes; then
18680 cat >>confdefs.h
<<\_ACEOF
18681 #define HAVE_SOCKADDR_STORAGE 1
18686 # checks for compiler characteristics
18689 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18690 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18691 if test "${ac_cv_c_char_unsigned+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 cat >conftest.
$ac_ext <<_ACEOF
18697 cat confdefs.h
>>conftest.
$ac_ext
18698 cat >>conftest.
$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 $ac_includes_default
18704 static int test_array [1 - 2 * !(((char) -1) < 0)];
18711 rm -f conftest.
$ac_objext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18713 (eval $ac_compile) 2>conftest.er1
18715 grep -v '^ *+' conftest.er1
>conftest.err
18717 cat conftest.err
>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try
='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try
='test -s conftest.$ac_objext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_c_char_unsigned
=no
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.
$ac_ext >&5
18738 ac_cv_c_char_unsigned
=yes
18740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18742 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18743 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18744 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18745 cat >>confdefs.h
<<\_ACEOF
18746 #define __CHAR_UNSIGNED__ 1
18751 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18752 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18753 if test "${ac_cv_c_const+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 cat >conftest.
$ac_ext <<_ACEOF
18759 cat confdefs.h
>>conftest.
$ac_ext
18760 cat >>conftest.
$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18766 /* FIXME: Include the comments suggested by Paul. */
18767 #ifndef __cplusplus
18768 /* Ultrix mips cc rejects this. */
18769 typedef int charset[2];
18771 /* SunOS 4.1.1 cc rejects this. */
18772 char const *const *ccp;
18774 /* NEC SVR4.0.2 mips cc rejects this. */
18775 struct point {int x, y;};
18776 static struct point const zero = {0,0};
18777 /* AIX XL C 1.02.0.0 rejects this.
18778 It does not let you subtract one const X* pointer from another in
18779 an arm of an if-expression whose if-part is not a constant
18781 const char *g = "string";
18782 ccp = &g + (g ? g-g : 0);
18783 /* HPUX 7.0 cc rejects these. */
18786 ccp = (char const *const *) p;
18787 { /* SCO 3.2v4 cc rejects this. */
18789 char const *s = 0 ? (char *) 0 : (char const *) 0;
18793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18794 int x[] = {25, 17};
18795 const int *foo = &x[0];
18798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18799 typedef const int *iptr;
18803 { /* AIX XL C 1.02.0.0 rejects this saying
18804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18805 struct s { int j; const int *ap[3]; };
18806 struct s *b; b->j = 5;
18808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18809 const int foo = 10;
18817 rm -f conftest.
$ac_objext
18818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18819 (eval $ac_compile) 2>conftest.er1
18821 grep -v '^ *+' conftest.er1
>conftest.err
18823 cat conftest.err
>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
18826 { ac_try
='test -z "$ac_c_werror_flag"
18827 || test ! -s conftest.err'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try
='test -s conftest.$ac_objext'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.
$ac_ext >&5
18846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18848 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18849 echo "${ECHO_T}$ac_cv_c_const" >&6
18850 if test $ac_cv_c_const = no
; then
18852 cat >>confdefs.h
<<\_ACEOF
18860 echo "$as_me:$LINENO: checking for working volatile" >&5
18861 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18862 cat >conftest.
$ac_ext <<_ACEOF
18865 cat confdefs.h
>>conftest.
$ac_ext
18866 cat >>conftest.
$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18872 volatile int x; x = 0;
18877 rm -f conftest.
$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>conftest.er1
18881 grep -v '^ *+' conftest.er1
>conftest.err
18883 cat conftest.err
>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try
='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try
='test -s conftest.$ac_objext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.
$ac_ext >&5
18905 cat >>confdefs.h
<<\_ACEOF
18911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18912 echo "$as_me:$LINENO: result: $works" >&5
18913 echo "${ECHO_T}$works" >&6
18916 echo "$as_me:$LINENO: checking for working signed char" >&5
18917 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18918 cat >conftest.
$ac_ext <<_ACEOF
18921 cat confdefs.h
>>conftest.
$ac_ext
18922 cat >>conftest.
$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18933 rm -f conftest.
$ac_objext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18935 (eval $ac_compile) 2>conftest.er1
18937 grep -v '^ *+' conftest.er1
>conftest.err
18939 cat conftest.err
>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try
='test -z "$ac_c_werror_flag"
18943 || test ! -s conftest.err'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; } &&
18949 { ac_try
='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.
$ac_ext >&5
18961 cat >>confdefs.h
<<\_ACEOF
18967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18968 echo "$as_me:$LINENO: result: $works" >&5
18969 echo "${ECHO_T}$works" >&6
18972 echo "$as_me:$LINENO: checking for prototypes" >&5
18973 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18974 cat >conftest.
$ac_ext <<_ACEOF
18977 cat confdefs.h
>>conftest.
$ac_ext
18978 cat >>conftest.
$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 int foo(int x) { return 0; }
18989 rm -f conftest.
$ac_objext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991 (eval $ac_compile) 2>conftest.er1
18993 grep -v '^ *+' conftest.er1
>conftest.err
18995 cat conftest.err
>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
18998 { ac_try
='test -z "$ac_c_werror_flag"
18999 || test ! -s conftest.err'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try
='test -s conftest.$ac_objext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19013 cat >>confdefs.h
<<\_ACEOF
19014 #define HAVE_PROTOTYPES 1
19017 have_prototypes
=yes
19020 echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.
$ac_ext >&5
19024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19025 echo "$as_me:$LINENO: result: $have_prototypes" >&5
19026 echo "${ECHO_T}$have_prototypes" >&6
19029 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19030 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
19031 cat >conftest.
$ac_ext <<_ACEOF
19034 cat confdefs.h
>>conftest.
$ac_ext
19035 cat >>conftest.
$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19038 #include <stdarg.h>
19039 int foo(int x, ...) {
19043 va_arg(va, char *);
19044 va_arg(va, double);
19051 return foo(10, "", 3.14);
19056 rm -f conftest.
$ac_objext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058 (eval $ac_compile) 2>conftest.er1
19060 grep -v '^ *+' conftest.er1
>conftest.err
19062 cat conftest.err
>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try
='test -z "$ac_c_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try
='test -s conftest.$ac_objext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19080 cat >>confdefs.h
<<\_ACEOF
19081 #define HAVE_STDARG_PROTOTYPES 1
19087 echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.
$ac_ext >&5
19091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19092 echo "$as_me:$LINENO: result: $works" >&5
19093 echo "${ECHO_T}$works" >&6
19095 # check for socketpair
19096 echo "$as_me:$LINENO: checking for socketpair" >&5
19097 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
19098 cat >conftest.
$ac_ext <<_ACEOF
19101 cat confdefs.h
>>conftest.
$ac_ext
19102 cat >>conftest.
$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 #include <sys/types.h>
19106 #include <sys/socket.h>
19116 rm -f conftest.
$ac_objext
19117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19118 (eval $ac_compile) 2>conftest.er1
19120 grep -v '^ *+' conftest.er1
>conftest.err
19122 cat conftest.err
>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } &&
19125 { ac_try
='test -z "$ac_c_werror_flag"
19126 || test ! -s conftest.err'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try
='test -s conftest.$ac_objext'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19139 cat >>confdefs.h
<<\_ACEOF
19140 #define HAVE_SOCKETPAIR 1
19143 echo "$as_me:$LINENO: result: yes" >&5
19144 echo "${ECHO_T}yes" >&6
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.
$ac_ext >&5
19149 echo "$as_me:$LINENO: result: no" >&5
19150 echo "${ECHO_T}no" >&6
19153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19155 # check if sockaddr has sa_len member
19156 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19157 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
19158 cat >conftest.
$ac_ext <<_ACEOF
19161 cat confdefs.h
>>conftest.
$ac_ext
19162 cat >>conftest.
$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 #include <sys/types.h>
19165 #include <sys/socket.h>
19175 rm -f conftest.
$ac_objext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177 (eval $ac_compile) 2>conftest.er1
19179 grep -v '^ *+' conftest.er1
>conftest.err
19181 cat conftest.err
>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try
='test -z "$ac_c_werror_flag"
19185 || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try
='test -s conftest.$ac_objext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 echo "$as_me:$LINENO: result: yes" >&5
19198 echo "${ECHO_T}yes" >&6
19200 cat >>confdefs.h
<<\_ACEOF
19201 #define HAVE_SOCKADDR_SA_LEN 1
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.
$ac_ext >&5
19208 echo "$as_me:$LINENO: result: no" >&5
19209 echo "${ECHO_T}no" >&6
19211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19213 va_list_is_array
=no
19214 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19215 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
19216 cat >conftest.
$ac_ext <<_ACEOF
19219 cat confdefs.h
>>conftest.
$ac_ext
19220 cat >>conftest.
$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19223 #ifdef HAVE_STDARG_PROTOTYPES
19224 #include <stdarg.h>
19226 #include <varargs.h>
19232 va_list list1, list2; list1 = list2;
19237 rm -f conftest.
$ac_objext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19239 (eval $ac_compile) 2>conftest.er1
19241 grep -v '^ *+' conftest.er1
>conftest.err
19243 cat conftest.err
>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try
='test -z "$ac_c_werror_flag"
19247 || test ! -s conftest.err'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try
='test -s conftest.$ac_objext'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.
$ac_ext >&5
19266 cat >>confdefs.h
<<\_ACEOF
19267 #define VA_LIST_IS_ARRAY 1
19270 va_list_is_array
=yes
19273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19274 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19275 echo "${ECHO_T}$va_list_is_array" >&6
19277 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19281 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19282 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
19283 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 cat >conftest.
$ac_ext <<_ACEOF
19289 cat confdefs.h
>>conftest.
$ac_ext
19290 cat >>conftest.
$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19294 #define gethostbyname_r innocuous_gethostbyname_r
19296 /* System header to define __stub macros and hopefully few prototypes,
19297 which can conflict with char gethostbyname_r (); below.
19298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19299 <limits.h> exists even on freestanding compilers. */
19302 # include <limits.h>
19304 # include <assert.h>
19307 #undef gethostbyname_r
19309 /* Override any gcc2 internal prototype to avoid an error. */
19314 /* We use char because int might match the return type of a gcc2
19315 builtin and then its argument prototype would still apply. */
19316 char gethostbyname_r ();
19317 /* The GNU C library defines this for functions which it implements
19318 to always fail with ENOSYS. Some functions are actually named
19319 something starting with __ and the normal name is an alias. */
19320 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
19323 char (*f) () = gethostbyname_r;
19332 return f != gethostbyname_r;
19337 rm -f conftest.
$ac_objext conftest
$ac_exeext
19338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>conftest.er1
19341 grep -v '^ *+' conftest.er1
>conftest.err
19343 cat conftest.err
>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try
='test -z "$ac_c_werror_flag"
19347 || test ! -s conftest.err'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; } &&
19353 { ac_try
='test -s conftest$ac_exeext'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; }; then
19359 ac_cv_func_gethostbyname_r
=yes
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.
$ac_ext >&5
19364 ac_cv_func_gethostbyname_r
=no
19366 rm -f conftest.err conftest.
$ac_objext \
19367 conftest
$ac_exeext conftest.
$ac_ext
19369 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19370 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
19371 if test $ac_cv_func_gethostbyname_r = yes; then
19373 cat >>confdefs.h
<<\_ACEOF
19374 #define HAVE_GETHOSTBYNAME_R 1
19377 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19378 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
19380 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19381 cat >conftest.
$ac_ext <<_ACEOF
19384 cat confdefs.h
>>conftest.
$ac_ext
19385 cat >>conftest.
$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 # include <netdb.h>
19395 struct hostent *he, *res;
19400 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19406 rm -f conftest.
$ac_objext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19408 (eval $ac_compile) 2>conftest.er1
19410 grep -v '^ *+' conftest.er1
>conftest.err
19412 cat conftest.err
>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try
='test -z "$ac_c_werror_flag"
19416 || test ! -s conftest.err'
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try
='test -s conftest.$ac_objext'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19429 cat >>confdefs.h
<<\_ACEOF
19430 #define HAVE_GETHOSTBYNAME_R 1
19434 cat >>confdefs.h
<<\_ACEOF
19435 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19438 echo "$as_me:$LINENO: result: yes" >&5
19439 echo "${ECHO_T}yes" >&6
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.
$ac_ext >&5
19446 echo "$as_me:$LINENO: result: no" >&5
19447 echo "${ECHO_T}no" >&6
19448 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19449 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
19450 cat >conftest.
$ac_ext <<_ACEOF
19453 cat confdefs.h
>>conftest.
$ac_ext
19454 cat >>conftest.
$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19457 # include <netdb.h>
19464 struct hostent *he;
19469 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19475 rm -f conftest.
$ac_objext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477 (eval $ac_compile) 2>conftest.er1
19479 grep -v '^ *+' conftest.er1
>conftest.err
19481 cat conftest.err
>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try
='test -z "$ac_c_werror_flag"
19485 || test ! -s conftest.err'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try
='test -s conftest.$ac_objext'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19498 cat >>confdefs.h
<<\_ACEOF
19499 #define HAVE_GETHOSTBYNAME_R 1
19503 cat >>confdefs.h
<<\_ACEOF
19504 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19507 echo "$as_me:$LINENO: result: yes" >&5
19508 echo "${ECHO_T}yes" >&6
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.
$ac_ext >&5
19515 echo "$as_me:$LINENO: result: no" >&5
19516 echo "${ECHO_T}no" >&6
19517 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19518 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
19519 cat >conftest.
$ac_ext <<_ACEOF
19522 cat confdefs.h
>>conftest.
$ac_ext
19523 cat >>conftest.
$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 # include <netdb.h>
19533 struct hostent *he;
19534 struct hostent_data data;
19536 (void) gethostbyname_r(name, he, &data);
19542 rm -f conftest.
$ac_objext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19544 (eval $ac_compile) 2>conftest.er1
19546 grep -v '^ *+' conftest.er1
>conftest.err
19548 cat conftest.err
>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try
='test -z "$ac_c_werror_flag"
19552 || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try
='test -s conftest.$ac_objext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19565 cat >>confdefs.h
<<\_ACEOF
19566 #define HAVE_GETHOSTBYNAME_R 1
19570 cat >>confdefs.h
<<\_ACEOF
19571 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19574 echo "$as_me:$LINENO: result: yes" >&5
19575 echo "${ECHO_T}yes" >&6
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.
$ac_ext >&5
19582 echo "$as_me:$LINENO: result: no" >&5
19583 echo "${ECHO_T}no" >&6
19586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19598 for ac_func
in gethostbyname
19600 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601 echo "$as_me:$LINENO: checking for $ac_func" >&5
19602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19603 if eval "test \"\${$as_ac_var+set}\" = set"; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 cat >conftest.
$ac_ext <<_ACEOF
19609 cat confdefs.h
>>conftest.
$ac_ext
19610 cat >>conftest.
$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19614 #define $ac_func innocuous_$ac_func
19616 /* System header to define __stub macros and hopefully few prototypes,
19617 which can conflict with char $ac_func (); below.
19618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619 <limits.h> exists even on freestanding compilers. */
19622 # include <limits.h>
19624 # include <assert.h>
19629 /* Override any gcc2 internal prototype to avoid an error. */
19634 /* We use char because int might match the return type of a gcc2
19635 builtin and then its argument prototype would still apply. */
19637 /* The GNU C library defines this for functions which it implements
19638 to always fail with ENOSYS. Some functions are actually named
19639 something starting with __ and the normal name is an alias. */
19640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19643 char (*f) () = $ac_func;
19652 return f != $ac_func;
19657 rm -f conftest.
$ac_objext conftest
$ac_exeext
19658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19659 (eval $ac_link) 2>conftest.er1
19661 grep -v '^ *+' conftest.er1
>conftest.err
19663 cat conftest.err
>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } &&
19666 { ac_try
='test -z "$ac_c_werror_flag"
19667 || test ! -s conftest.err'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; } &&
19673 { ac_try
='test -s conftest$ac_exeext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 eval "$as_ac_var=yes"
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.
$ac_ext >&5
19684 eval "$as_ac_var=no"
19686 rm -f conftest.err conftest.
$ac_objext \
19687 conftest
$ac_exeext conftest.
$ac_ext
19689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19691 if test `eval echo '${'$as_ac_var'}'` = yes; then
19692 cat >>confdefs.h
<<_ACEOF
19693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19708 # checks for system services
19711 # Linux requires this for correct f.p. operations
19712 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19713 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19714 if test "${ac_cv_func___fpu_control+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 cat >conftest.
$ac_ext <<_ACEOF
19720 cat confdefs.h
>>conftest.
$ac_ext
19721 cat >>conftest.
$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19725 #define __fpu_control innocuous___fpu_control
19727 /* System header to define __stub macros and hopefully few prototypes,
19728 which can conflict with char __fpu_control (); below.
19729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730 <limits.h> exists even on freestanding compilers. */
19733 # include <limits.h>
19735 # include <assert.h>
19738 #undef __fpu_control
19740 /* Override any gcc2 internal prototype to avoid an error. */
19745 /* We use char because int might match the return type of a gcc2
19746 builtin and then its argument prototype would still apply. */
19747 char __fpu_control ();
19748 /* The GNU C library defines this for functions which it implements
19749 to always fail with ENOSYS. Some functions are actually named
19750 something starting with __ and the normal name is an alias. */
19751 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19754 char (*f) () = __fpu_control;
19763 return f != __fpu_control;
19768 rm -f conftest.
$ac_objext conftest
$ac_exeext
19769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19770 (eval $ac_link) 2>conftest.er1
19772 grep -v '^ *+' conftest.er1
>conftest.err
19774 cat conftest.err
>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try
='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try
='test -s conftest$ac_exeext'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_func___fpu_control
=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.
$ac_ext >&5
19795 ac_cv_func___fpu_control
=no
19797 rm -f conftest.err conftest.
$ac_objext \
19798 conftest
$ac_exeext conftest.
$ac_ext
19800 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19801 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19802 if test $ac_cv_func___fpu_control = yes; then
19806 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19807 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19808 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 ac_check_lib_save_LIBS
=$LIBS
19812 LIBS
="-lieee $LIBS"
19813 cat >conftest.
$ac_ext <<_ACEOF
19816 cat confdefs.h
>>conftest.
$ac_ext
19817 cat >>conftest.
$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19820 /* Override any gcc2 internal prototype to avoid an error. */
19824 /* We use char because int might match the return type of a gcc2
19825 builtin and then its argument prototype would still apply. */
19826 char __fpu_control ();
19835 rm -f conftest.
$ac_objext conftest
$ac_exeext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19837 (eval $ac_link) 2>conftest.er1
19839 grep -v '^ *+' conftest.er1
>conftest.err
19841 cat conftest.err
>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try
='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try
='test -s conftest$ac_exeext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_cv_lib_ieee___fpu_control
=yes
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.
$ac_ext >&5
19862 ac_cv_lib_ieee___fpu_control
=no
19864 rm -f conftest.err conftest.
$ac_objext \
19865 conftest
$ac_exeext conftest.
$ac_ext
19866 LIBS
=$ac_check_lib_save_LIBS
19868 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19869 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19870 if test $ac_cv_lib_ieee___fpu_control = yes; then
19871 cat >>confdefs.h
<<_ACEOF
19872 #define HAVE_LIBIEEE 1
19875 LIBS
="-lieee $LIBS"
19883 # Check for --with-fpectl
19884 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19885 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19887 # Check whether --with-fpectl or --without-fpectl was given.
19888 if test "${with_fpectl+set}" = set; then
19889 withval
="$with_fpectl"
19891 if test "$withval" != no
19894 cat >>confdefs.h
<<\_ACEOF
19895 #define WANT_SIGFPE_HANDLER 1
19898 echo "$as_me:$LINENO: result: yes" >&5
19899 echo "${ECHO_T}yes" >&6
19900 else echo "$as_me:$LINENO: result: no" >&5
19901 echo "${ECHO_T}no" >&6
19904 echo "$as_me:$LINENO: result: no" >&5
19905 echo "${ECHO_T}no" >&6
19908 # check for --with-libm=...
19910 case $ac_sys_system in
19915 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19916 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19918 # Check whether --with-libm or --without-libm was given.
19919 if test "${with_libm+set}" = set; then
19920 withval
="$with_libm"
19922 if test "$withval" = no
19924 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19925 echo "${ECHO_T}force LIBM empty" >&6
19926 elif test "$withval" != yes
19928 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19929 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19930 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19931 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19932 { (exit 1); exit 1; }; }
19935 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19936 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19939 # check for --with-libc=...
19941 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19942 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19944 # Check whether --with-libc or --without-libc was given.
19945 if test "${with_libc+set}" = set; then
19946 withval
="$with_libc"
19948 if test "$withval" = no
19950 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19951 echo "${ECHO_T}force LIBC empty" >&6
19952 elif test "$withval" != yes
19954 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19955 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19956 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19957 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19958 { (exit 1); exit 1; }; }
19961 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19962 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19965 # check for hypot() in math library
19969 for ac_func
in hypot
19971 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19972 echo "$as_me:$LINENO: checking for $ac_func" >&5
19973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19974 if eval "test \"\${$as_ac_var+set}\" = set"; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 cat >conftest.
$ac_ext <<_ACEOF
19980 cat confdefs.h
>>conftest.
$ac_ext
19981 cat >>conftest.
$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19985 #define $ac_func innocuous_$ac_func
19987 /* System header to define __stub macros and hopefully few prototypes,
19988 which can conflict with char $ac_func (); below.
19989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19990 <limits.h> exists even on freestanding compilers. */
19993 # include <limits.h>
19995 # include <assert.h>
20000 /* Override any gcc2 internal prototype to avoid an error. */
20005 /* We use char because int might match the return type of a gcc2
20006 builtin and then its argument prototype would still apply. */
20008 /* The GNU C library defines this for functions which it implements
20009 to always fail with ENOSYS. Some functions are actually named
20010 something starting with __ and the normal name is an alias. */
20011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20014 char (*f) () = $ac_func;
20023 return f != $ac_func;
20028 rm -f conftest.
$ac_objext conftest
$ac_exeext
20029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20030 (eval $ac_link) 2>conftest.er1
20032 grep -v '^ *+' conftest.er1
>conftest.err
20034 cat conftest.err
>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try
='test -z "$ac_c_werror_flag"
20038 || test ! -s conftest.err'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; } &&
20044 { ac_try
='test -s conftest$ac_exeext'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 eval "$as_ac_var=yes"
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.
$ac_ext >&5
20055 eval "$as_ac_var=no"
20057 rm -f conftest.err conftest.
$ac_objext \
20058 conftest
$ac_exeext conftest.
$ac_ext
20060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20062 if test `eval echo '${'$as_ac_var'}'` = yes; then
20063 cat >>confdefs.h
<<_ACEOF
20064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20069 "$ac_func.$ac_objext" | \
20070 *" $ac_func.$ac_objext" | \
20071 "$ac_func.$ac_objext "* | \
20072 *" $ac_func.$ac_objext "* ) ;;
20073 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
20082 # check for wchar.h
20083 if test "${ac_cv_header_wchar_h+set}" = set; then
20084 echo "$as_me:$LINENO: checking for wchar.h" >&5
20085 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20086 if test "${ac_cv_header_wchar_h+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20090 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20092 # Is the header compilable?
20093 echo "$as_me:$LINENO: checking wchar.h usability" >&5
20094 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
20095 cat >conftest.
$ac_ext <<_ACEOF
20098 cat confdefs.h
>>conftest.
$ac_ext
20099 cat >>conftest.
$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 $ac_includes_default
20104 rm -f conftest.
$ac_objext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20106 (eval $ac_compile) 2>conftest.er1
20108 grep -v '^ *+' conftest.er1
>conftest.err
20110 cat conftest.err
>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
20113 { ac_try
='test -z "$ac_c_werror_flag"
20114 || test ! -s conftest.err'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; } &&
20120 { ac_try
='test -s conftest.$ac_objext'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 ac_header_compiler
=yes
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.
$ac_ext >&5
20131 ac_header_compiler
=no
20133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20135 echo "${ECHO_T}$ac_header_compiler" >&6
20137 # Is the header present?
20138 echo "$as_me:$LINENO: checking wchar.h presence" >&5
20139 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
20140 cat >conftest.
$ac_ext <<_ACEOF
20143 cat confdefs.h
>>conftest.
$ac_ext
20144 cat >>conftest.
$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20149 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20151 grep -v '^ *+' conftest.er1
>conftest.err
20153 cat conftest.err
>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } >/dev
/null
; then
20156 if test -s conftest.err
; then
20157 ac_cpp_err
=$ac_c_preproc_warn_flag
20158 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20165 if test -z "$ac_cpp_err"; then
20166 ac_header_preproc
=yes
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.
$ac_ext >&5
20171 ac_header_preproc
=no
20173 rm -f conftest.err conftest.
$ac_ext
20174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20175 echo "${ECHO_T}$ac_header_preproc" >&6
20177 # So? What about this header?
20178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20180 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20181 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20183 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20184 ac_header_preproc
=yes
20187 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20188 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20190 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20192 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20194 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20196 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20198 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20201 ## ------------------------------------------------ ##
20202 ## Report this to http://www.python.org/python-bugs ##
20203 ## ------------------------------------------------ ##
20206 sed "s/^/$as_me: WARNING: /" >&2
20209 echo "$as_me:$LINENO: checking for wchar.h" >&5
20210 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20211 if test "${ac_cv_header_wchar_h+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 ac_cv_header_wchar_h
=$ac_header_preproc
20216 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20217 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20220 if test $ac_cv_header_wchar_h = yes; then
20223 cat >>confdefs.h
<<\_ACEOF
20224 #define HAVE_WCHAR_H 1
20236 # determine wchar_t size
20237 if test "$wchar_h" = yes
20239 echo "$as_me:$LINENO: checking for wchar_t" >&5
20240 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20241 if test "${ac_cv_type_wchar_t+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 cat >conftest.
$ac_ext <<_ACEOF
20247 cat confdefs.h
>>conftest.
$ac_ext
20248 cat >>conftest.
$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20257 if (sizeof (wchar_t))
20263 rm -f conftest.
$ac_objext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20265 (eval $ac_compile) 2>conftest.er1
20267 grep -v '^ *+' conftest.er1
>conftest.err
20269 cat conftest.err
>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try
='test -z "$ac_c_werror_flag"
20273 || test ! -s conftest.err'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try
='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 ac_cv_type_wchar_t
=yes
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.
$ac_ext >&5
20290 ac_cv_type_wchar_t
=no
20292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20295 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20297 echo "$as_me:$LINENO: checking size of wchar_t" >&5
20298 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20299 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 if test "$ac_cv_type_wchar_t" = yes; then
20303 # The cast to unsigned long works around a bug in the HP C Compiler
20304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20306 # This bug is HP SR number 8606223364.
20307 if test "$cross_compiling" = yes; then
20308 # Depending upon the size, compute the lo and hi bounds.
20309 cat >conftest.
$ac_ext <<_ACEOF
20312 cat confdefs.h
>>conftest.
$ac_ext
20313 cat >>conftest.
$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20320 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20327 rm -f conftest.
$ac_objext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329 (eval $ac_compile) 2>conftest.er1
20331 grep -v '^ *+' conftest.er1
>conftest.err
20333 cat conftest.err
>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try
='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try
='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20351 cat >conftest.
$ac_ext <<_ACEOF
20354 cat confdefs.h
>>conftest.
$ac_ext
20355 cat >>conftest.
$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20362 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20369 rm -f conftest.
$ac_objext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371 (eval $ac_compile) 2>conftest.er1
20373 grep -v '^ *+' conftest.er1
>conftest.err
20375 cat conftest.err
>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
20378 { ac_try
='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try
='test -s conftest.$ac_objext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_hi
=$ac_mid; break
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.
$ac_ext >&5
20396 ac_lo
=`expr $ac_mid + 1`
20397 if test $ac_lo -le $ac_mid; then
20401 ac_mid
=`expr 2 '*' $ac_mid + 1`
20403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.
$ac_ext >&5
20409 cat >conftest.
$ac_ext <<_ACEOF
20412 cat confdefs.h
>>conftest.
$ac_ext
20413 cat >>conftest.
$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20420 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20427 rm -f conftest.
$ac_objext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429 (eval $ac_compile) 2>conftest.er1
20431 grep -v '^ *+' conftest.er1
>conftest.err
20433 cat conftest.err
>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
20436 { ac_try
='test -z "$ac_c_werror_flag"
20437 || test ! -s conftest.err'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; } &&
20443 { ac_try
='test -s conftest.$ac_objext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20451 cat >conftest.
$ac_ext <<_ACEOF
20454 cat confdefs.h
>>conftest.
$ac_ext
20455 cat >>conftest.
$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20462 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20469 rm -f conftest.
$ac_objext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20471 (eval $ac_compile) 2>conftest.er1
20473 grep -v '^ *+' conftest.er1
>conftest.err
20475 cat conftest.err
>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try
='test -z "$ac_c_werror_flag"
20479 || test ! -s conftest.err'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try
='test -s conftest.$ac_objext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 ac_lo
=$ac_mid; break
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.
$ac_ext >&5
20496 ac_hi
=`expr '(' $ac_mid ')' - 1`
20497 if test $ac_mid -le $ac_hi; then
20501 ac_mid
=`expr 2 '*' $ac_mid`
20503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.
$ac_ext >&5
20511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20514 # Binary search between lo and hi bounds.
20515 while test "x$ac_lo" != "x$ac_hi"; do
20516 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20517 cat >conftest.
$ac_ext <<_ACEOF
20520 cat confdefs.h
>>conftest.
$ac_ext
20521 cat >>conftest.
$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20528 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20535 rm -f conftest.
$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>conftest.er1
20539 grep -v '^ *+' conftest.er1
>conftest.err
20541 cat conftest.err
>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try
='test -z "$ac_c_werror_flag"
20545 || test ! -s conftest.err'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try
='test -s conftest.$ac_objext'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.
$ac_ext >&5
20562 ac_lo
=`expr '(' $ac_mid ')' + 1`
20564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20567 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
20568 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20569 See \`config.log' for more details." >&5
20570 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20571 See \`config.log' for more details." >&2;}
20572 { (exit 1); exit 1; }; } ;;
20575 if test "$cross_compiling" = yes; then
20576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20577 See \`config.log' for more details." >&5
20578 echo "$as_me: error: cannot run test program while cross compiling
20579 See \`config.log' for more details." >&2;}
20580 { (exit 1); exit 1; }; }
20582 cat >conftest.
$ac_ext <<_ACEOF
20585 cat confdefs.h
>>conftest.
$ac_ext
20586 cat >>conftest.
$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20590 long longval () { return (long) (sizeof (wchar_t)); }
20591 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20593 #include <stdlib.h>
20598 FILE *f = fopen ("conftest.val", "w");
20601 if (((long) (sizeof (wchar_t))) < 0)
20603 long i = longval ();
20604 if (i != ((long) (sizeof (wchar_t))))
20606 fprintf (f, "%ld\n", i);
20610 unsigned long i = ulongval ();
20611 if (i != ((long) (sizeof (wchar_t))))
20613 fprintf (f, "%lu\n", i);
20615 exit (ferror (f) || fclose (f) != 0);
20621 rm -f conftest
$ac_exeext
20622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623 (eval $ac_link) 2>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 ac_cv_sizeof_wchar_t
=`cat conftest.val`
20634 echo "$as_me: program exited with status $ac_status" >&5
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.
$ac_ext >&5
20638 ( exit $ac_status )
20639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20640 See \`config.log' for more details." >&5
20641 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20642 See \`config.log' for more details." >&2;}
20643 { (exit 1); exit 1; }; }
20645 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20650 ac_cv_sizeof_wchar_t
=0
20653 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20654 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20655 cat >>confdefs.h
<<_ACEOF
20656 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20662 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20663 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20665 cat >conftest.
$ac_ext <<_ACEOF
20668 cat confdefs.h
>>conftest.
$ac_ext
20669 cat >>conftest.
$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20673 #if TCL_UTF_MAX != 6
20674 # error "NOT UCS4_TCL"
20684 rm -f conftest.
$ac_objext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686 (eval $ac_compile) 2>conftest.er1
20688 grep -v '^ *+' conftest.er1
>conftest.err
20690 cat conftest.err
>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try
='test -z "$ac_c_werror_flag"
20694 || test ! -s conftest.err'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; } &&
20700 { ac_try
='test -s conftest.$ac_objext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20708 cat >>confdefs.h
<<\_ACEOF
20709 #define HAVE_UCS4_TCL 1
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.
$ac_ext >&5
20719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20720 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20721 echo "${ECHO_T}$have_ucs4_tcl" >&6
20723 # check whether wchar_t is signed or not
20724 if test "$wchar_h" = yes
20726 # check whether wchar_t is signed or not
20727 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20728 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20729 if test "${ac_cv_wchar_t_signed+set}" = set; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 if test "$cross_compiling" = yes; then
20734 ac_cv_wchar_t_signed
=yes
20736 cat >conftest.
$ac_ext <<_ACEOF
20739 cat confdefs.h
>>conftest.
$ac_ext
20740 cat >>conftest.
$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20746 /* Success: exit code 0 */
20747 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20751 rm -f conftest
$ac_exeext
20752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20753 (eval $ac_link) 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; }; then
20762 ac_cv_wchar_t_signed
=yes
20764 echo "$as_me: program exited with status $ac_status" >&5
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.
$ac_ext >&5
20768 ( exit $ac_status )
20769 ac_cv_wchar_t_signed
=no
20771 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20775 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20776 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20779 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20780 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20781 # Check whether --enable-unicode or --disable-unicode was given.
20782 if test "${enable_unicode+set}" = set; then
20783 enableval
="$enable_unicode"
20789 if test $enable_unicode = yes
20791 # Without any arguments, Py_UNICODE defaults to two-byte mode
20792 case "$have_ucs4_tcl" in
20793 yes) enable_unicode
="ucs4"
20795 *) enable_unicode
="ucs2"
20802 case "$enable_unicode" in
20803 ucs2
) unicode_size
="2"
20804 cat >>confdefs.h
<<\_ACEOF
20805 #define Py_UNICODE_SIZE 2
20809 ucs4
) unicode_size
="4"
20810 cat >>confdefs.h
<<\_ACEOF
20811 #define Py_UNICODE_SIZE 4
20821 if test "$enable_unicode" = "no"
20824 echo "$as_me:$LINENO: result: not used" >&5
20825 echo "${ECHO_T}not used" >&6
20827 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20829 cat >>confdefs.h
<<\_ACEOF
20830 #define Py_USING_UNICODE 1
20834 # wchar_t is only usable if it maps to an unsigned type
20835 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20836 -a "$ac_cv_wchar_t_signed" = "no"
20838 PY_UNICODE_TYPE
="wchar_t"
20840 cat >>confdefs.h
<<\_ACEOF
20841 #define HAVE_USABLE_WCHAR_T 1
20844 cat >>confdefs.h
<<\_ACEOF
20845 #define PY_UNICODE_TYPE wchar_t
20848 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20850 PY_UNICODE_TYPE
="unsigned short"
20851 cat >>confdefs.h
<<\_ACEOF
20852 #define PY_UNICODE_TYPE unsigned short
20855 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20857 PY_UNICODE_TYPE
="unsigned long"
20858 cat >>confdefs.h
<<\_ACEOF
20859 #define PY_UNICODE_TYPE unsigned long
20863 PY_UNICODE_TYPE
="no type found"
20865 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20866 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20869 # check for endianness
20870 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20871 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20872 if test "${ac_cv_c_bigendian+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20875 # See if sys/param.h defines the BYTE_ORDER macro.
20876 cat >conftest.
$ac_ext <<_ACEOF
20879 cat confdefs.h
>>conftest.
$ac_ext
20880 cat >>conftest.
$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <sys/types.h>
20883 #include <sys/param.h>
20888 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20889 bogus endian macros
20896 rm -f conftest.
$ac_objext
20897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20898 (eval $ac_compile) 2>conftest.er1
20900 grep -v '^ *+' conftest.er1
>conftest.err
20902 cat conftest.err
>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try
='test -z "$ac_c_werror_flag"
20906 || test ! -s conftest.err'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; } &&
20912 { ac_try
='test -s conftest.$ac_objext'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 # It does; now see whether it defined to BIG_ENDIAN or not.
20919 cat >conftest.
$ac_ext <<_ACEOF
20922 cat confdefs.h
>>conftest.
$ac_ext
20923 cat >>conftest.
$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 #include <sys/types.h>
20926 #include <sys/param.h>
20931 #if BYTE_ORDER != BIG_ENDIAN
20939 rm -f conftest.
$ac_objext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>conftest.er1
20943 grep -v '^ *+' conftest.er1
>conftest.err
20945 cat conftest.err
>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } &&
20948 { ac_try
='test -z "$ac_c_werror_flag"
20949 || test ! -s conftest.err'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; } &&
20955 { ac_try
='test -s conftest.$ac_objext'
20956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957 (eval $ac_try) 2>&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); }; }; then
20961 ac_cv_c_bigendian
=yes
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.
$ac_ext >&5
20966 ac_cv_c_bigendian
=no
20968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.
$ac_ext >&5
20973 # It does not; compile a test program.
20974 if test "$cross_compiling" = yes; then
20975 # try to guess the endianness by grepping values into an object file
20976 ac_cv_c_bigendian
=unknown
20977 cat >conftest.
$ac_ext <<_ACEOF
20980 cat confdefs.h
>>conftest.
$ac_ext
20981 cat >>conftest.
$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20984 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20985 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20986 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20987 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20988 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20992 _ascii (); _ebcdic ();
20997 rm -f conftest.
$ac_objext
20998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999 (eval $ac_compile) 2>conftest.er1
21001 grep -v '^ *+' conftest.er1
>conftest.err
21003 cat conftest.err
>&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } &&
21006 { ac_try
='test -z "$ac_c_werror_flag"
21007 || test ! -s conftest.err'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try
='test -s conftest.$ac_objext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
21020 ac_cv_c_bigendian
=yes
21022 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
21023 if test "$ac_cv_c_bigendian" = unknown
; then
21024 ac_cv_c_bigendian
=no
21026 # finding both strings is unlikely to happen, but who knows?
21027 ac_cv_c_bigendian
=unknown
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.
$ac_ext >&5
21035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21037 cat >conftest.
$ac_ext <<_ACEOF
21040 cat confdefs.h
>>conftest.
$ac_ext
21041 cat >>conftest.
$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21046 /* Are we little or big endian? From Harbison&Steele. */
21050 char c[sizeof (long)];
21053 exit (u.c[sizeof (long) - 1] == 1);
21056 rm -f conftest
$ac_exeext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21058 (eval $ac_link) 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 ac_cv_c_bigendian
=no
21069 echo "$as_me: program exited with status $ac_status" >&5
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.
$ac_ext >&5
21073 ( exit $ac_status )
21074 ac_cv_c_bigendian
=yes
21076 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21079 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21081 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21082 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21083 case $ac_cv_c_bigendian in
21086 cat >>confdefs.h
<<\_ACEOF
21087 #define WORDS_BIGENDIAN 1
21093 { { echo "$as_me:$LINENO: error: unknown endianness
21094 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21095 echo "$as_me: error: unknown endianness
21096 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21097 { (exit 1); exit 1; }; } ;;
21103 # Check whether right shifting a negative integer extends the sign bit
21104 # or fills with zeros (like the Cray J90, according to Tim Peters).
21105 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21106 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
21107 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 if test "$cross_compiling" = yes; then
21112 ac_cv_rshift_extends_sign
=yes
21114 cat >conftest.
$ac_ext <<_ACEOF
21117 cat confdefs.h
>>conftest.
$ac_ext
21118 cat >>conftest.
$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21123 exit(((-1)>>3 == -1) ? 0 : 1);
21127 rm -f conftest
$ac_exeext
21128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21129 (eval $ac_link) 2>&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; }; then
21138 ac_cv_rshift_extends_sign
=yes
21140 echo "$as_me: program exited with status $ac_status" >&5
21141 echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.
$ac_ext >&5
21144 ( exit $ac_status )
21145 ac_cv_rshift_extends_sign
=no
21147 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21151 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21152 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
21153 if test "$ac_cv_rshift_extends_sign" = no
21156 cat >>confdefs.h
<<\_ACEOF
21157 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21162 # check for getc_unlocked and related locking functions
21163 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21164 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
21165 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21169 cat >conftest.
$ac_ext <<_ACEOF
21172 cat confdefs.h
>>conftest.
$ac_ext
21173 cat >>conftest.
$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21180 FILE *f = fopen("/dev/null", "r");
21189 rm -f conftest.
$ac_objext conftest
$ac_exeext
21190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21191 (eval $ac_link) 2>conftest.er1
21193 grep -v '^ *+' conftest.er1
>conftest.err
21195 cat conftest.err
>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try
='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try
='test -s conftest$ac_exeext'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_have_getc_unlocked
=yes
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.
$ac_ext >&5
21216 ac_cv_have_getc_unlocked
=no
21218 rm -f conftest.err conftest.
$ac_objext \
21219 conftest
$ac_exeext conftest.
$ac_ext
21222 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21223 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
21224 if test "$ac_cv_have_getc_unlocked" = yes
21227 cat >>confdefs.h
<<\_ACEOF
21228 #define HAVE_GETC_UNLOCKED 1
21233 # check where readline lives
21234 # save the value of LIBS so we don't actually link Python with readline
21235 LIBS_no_readline
=$LIBS
21237 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21238 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
21239 if test "${ac_cv_lib_readline_readline+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21242 ac_check_lib_save_LIBS
=$LIBS
21243 LIBS
="-lreadline $LIBS"
21244 cat >conftest.
$ac_ext <<_ACEOF
21247 cat confdefs.h
>>conftest.
$ac_ext
21248 cat >>conftest.
$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21251 /* Override any gcc2 internal prototype to avoid an error. */
21255 /* We use char because int might match the return type of a gcc2
21256 builtin and then its argument prototype would still apply. */
21266 rm -f conftest.
$ac_objext conftest
$ac_exeext
21267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21268 (eval $ac_link) 2>conftest.er1
21270 grep -v '^ *+' conftest.er1
>conftest.err
21272 cat conftest.err
>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } &&
21275 { ac_try
='test -z "$ac_c_werror_flag"
21276 || test ! -s conftest.err'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; } &&
21282 { ac_try
='test -s conftest$ac_exeext'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21288 ac_cv_lib_readline_readline
=yes
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.
$ac_ext >&5
21293 ac_cv_lib_readline_readline
=no
21295 rm -f conftest.err conftest.
$ac_objext \
21296 conftest
$ac_exeext conftest.
$ac_ext
21297 LIBS
=$ac_check_lib_save_LIBS
21299 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21300 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
21301 if test $ac_cv_lib_readline_readline = yes; then
21302 cat >>confdefs.h
<<_ACEOF
21303 #define HAVE_LIBREADLINE 1
21306 LIBS
="-lreadline $LIBS"
21310 if test "$ac_cv_have_readline_readline" = no
21313 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21314 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
21315 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 ac_check_lib_save_LIBS
=$LIBS
21319 LIBS
="-ltermcap $LIBS"
21320 cat >conftest.
$ac_ext <<_ACEOF
21323 cat confdefs.h
>>conftest.
$ac_ext
21324 cat >>conftest.
$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21327 /* Override any gcc2 internal prototype to avoid an error. */
21331 /* We use char because int might match the return type of a gcc2
21332 builtin and then its argument prototype would still apply. */
21342 rm -f conftest.
$ac_objext conftest
$ac_exeext
21343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21344 (eval $ac_link) 2>conftest.er1
21346 grep -v '^ *+' conftest.er1
>conftest.err
21348 cat conftest.err
>&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } &&
21351 { ac_try
='test -z "$ac_c_werror_flag"
21352 || test ! -s conftest.err'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; } &&
21358 { ac_try
='test -s conftest$ac_exeext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_lib_termcap_readline
=yes
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.
$ac_ext >&5
21369 ac_cv_lib_termcap_readline
=no
21371 rm -f conftest.err conftest.
$ac_objext \
21372 conftest
$ac_exeext conftest.
$ac_ext
21373 LIBS
=$ac_check_lib_save_LIBS
21375 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21376 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
21377 if test $ac_cv_lib_termcap_readline = yes; then
21378 cat >>confdefs.h
<<_ACEOF
21379 #define HAVE_LIBTERMCAP 1
21382 LIBS
="-ltermcap $LIBS"
21388 # check for readline 2.1
21389 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21390 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
21391 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 ac_check_lib_save_LIBS
=$LIBS
21395 LIBS
="-lreadline $LIBS"
21396 cat >conftest.
$ac_ext <<_ACEOF
21399 cat confdefs.h
>>conftest.
$ac_ext
21400 cat >>conftest.
$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21403 /* Override any gcc2 internal prototype to avoid an error. */
21407 /* We use char because int might match the return type of a gcc2
21408 builtin and then its argument prototype would still apply. */
21409 char rl_callback_handler_install ();
21413 rl_callback_handler_install ();
21418 rm -f conftest.
$ac_objext conftest
$ac_exeext
21419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21420 (eval $ac_link) 2>conftest.er1
21422 grep -v '^ *+' conftest.er1
>conftest.err
21424 cat conftest.err
>&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
21427 { ac_try
='test -z "$ac_c_werror_flag"
21428 || test ! -s conftest.err'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; } &&
21434 { ac_try
='test -s conftest$ac_exeext'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 ac_cv_lib_readline_rl_callback_handler_install
=yes
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.
$ac_ext >&5
21445 ac_cv_lib_readline_rl_callback_handler_install
=no
21447 rm -f conftest.err conftest.
$ac_objext \
21448 conftest
$ac_exeext conftest.
$ac_ext
21449 LIBS
=$ac_check_lib_save_LIBS
21451 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21452 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
21453 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21455 cat >>confdefs.h
<<\_ACEOF
21456 #define HAVE_RL_CALLBACK 1
21462 # check for readline 2.2
21463 cat >conftest.
$ac_ext <<_ACEOF
21466 cat confdefs.h
>>conftest.
$ac_ext
21467 cat >>conftest.
$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <readline/readline.h>
21471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21474 grep -v '^ *+' conftest.er1
>conftest.err
21476 cat conftest.err
>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } >/dev
/null
; then
21479 if test -s conftest.err
; then
21480 ac_cpp_err
=$ac_c_preproc_warn_flag
21481 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21488 if test -z "$ac_cpp_err"; then
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.
$ac_ext >&5
21496 rm -f conftest.err conftest.
$ac_ext
21497 if test $have_readline = yes
21499 cat >conftest.
$ac_ext <<_ACEOF
21502 cat confdefs.h
>>conftest.
$ac_ext
21503 cat >>conftest.
$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 #include <readline/readline.h>
21508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21509 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
21511 cat >>confdefs.h
<<\_ACEOF
21512 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21520 # check for readline 4.0
21521 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
21522 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
21523 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 ac_check_lib_save_LIBS
=$LIBS
21527 LIBS
="-lreadline $LIBS"
21528 cat >conftest.
$ac_ext <<_ACEOF
21531 cat confdefs.h
>>conftest.
$ac_ext
21532 cat >>conftest.
$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21535 /* Override any gcc2 internal prototype to avoid an error. */
21539 /* We use char because int might match the return type of a gcc2
21540 builtin and then its argument prototype would still apply. */
21541 char rl_pre_input_hook ();
21545 rl_pre_input_hook ();
21550 rm -f conftest.
$ac_objext conftest
$ac_exeext
21551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21552 (eval $ac_link) 2>conftest.er1
21554 grep -v '^ *+' conftest.er1
>conftest.err
21556 cat conftest.err
>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
21559 { ac_try
='test -z "$ac_c_werror_flag"
21560 || test ! -s conftest.err'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; } &&
21566 { ac_try
='test -s conftest$ac_exeext'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }; then
21572 ac_cv_lib_readline_rl_pre_input_hook
=yes
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.
$ac_ext >&5
21577 ac_cv_lib_readline_rl_pre_input_hook
=no
21579 rm -f conftest.err conftest.
$ac_objext \
21580 conftest
$ac_exeext conftest.
$ac_ext
21581 LIBS
=$ac_check_lib_save_LIBS
21583 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21584 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21585 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21587 cat >>confdefs.h
<<\_ACEOF
21588 #define HAVE_RL_PRE_INPUT_HOOK 1
21594 # check for readline 4.2
21595 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21596 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21597 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 ac_check_lib_save_LIBS
=$LIBS
21601 LIBS
="-lreadline $LIBS"
21602 cat >conftest.
$ac_ext <<_ACEOF
21605 cat confdefs.h
>>conftest.
$ac_ext
21606 cat >>conftest.
$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21609 /* Override any gcc2 internal prototype to avoid an error. */
21613 /* We use char because int might match the return type of a gcc2
21614 builtin and then its argument prototype would still apply. */
21615 char rl_completion_matches ();
21619 rl_completion_matches ();
21624 rm -f conftest.
$ac_objext conftest
$ac_exeext
21625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21626 (eval $ac_link) 2>conftest.er1
21628 grep -v '^ *+' conftest.er1
>conftest.err
21630 cat conftest.err
>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try
='test -z "$ac_c_werror_flag"
21634 || test ! -s conftest.err'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; } &&
21640 { ac_try
='test -s conftest$ac_exeext'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 ac_cv_lib_readline_rl_completion_matches
=yes
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.
$ac_ext >&5
21651 ac_cv_lib_readline_rl_completion_matches
=no
21653 rm -f conftest.err conftest.
$ac_objext \
21654 conftest
$ac_exeext conftest.
$ac_ext
21655 LIBS
=$ac_check_lib_save_LIBS
21657 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21658 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21659 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21661 cat >>confdefs.h
<<\_ACEOF
21662 #define HAVE_RL_COMPLETION_MATCHES 1
21668 # also in readline 4.2
21669 cat >conftest.
$ac_ext <<_ACEOF
21672 cat confdefs.h
>>conftest.
$ac_ext
21673 cat >>conftest.
$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21675 #include <readline/readline.h>
21677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21678 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21680 grep -v '^ *+' conftest.er1
>conftest.err
21682 cat conftest.err
>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } >/dev
/null
; then
21685 if test -s conftest.err
; then
21686 ac_cpp_err
=$ac_c_preproc_warn_flag
21687 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21694 if test -z "$ac_cpp_err"; then
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.
$ac_ext >&5
21702 rm -f conftest.err conftest.
$ac_ext
21703 if test $have_readline = yes
21705 cat >conftest.
$ac_ext <<_ACEOF
21708 cat confdefs.h
>>conftest.
$ac_ext
21709 cat >>conftest.
$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <readline/readline.h>
21714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21715 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21717 cat >>confdefs.h
<<\_ACEOF
21718 #define HAVE_RL_CATCH_SIGNAL 1
21726 # End of readline checks: restore LIBS
21727 LIBS
=$LIBS_no_readline
21729 echo "$as_me:$LINENO: checking for broken nice()" >&5
21730 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21731 if test "${ac_cv_broken_nice+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 if test "$cross_compiling" = yes; then
21736 ac_cv_broken_nice
=no
21738 cat >conftest.
$ac_ext <<_ACEOF
21741 cat confdefs.h
>>conftest.
$ac_ext
21742 cat >>conftest.
$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21747 int val1 = nice(1);
21748 if (val1 != -1 && val1 == nice(2))
21754 rm -f conftest
$ac_exeext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756 (eval $ac_link) 2>&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_cv_broken_nice
=yes
21767 echo "$as_me: program exited with status $ac_status" >&5
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.
$ac_ext >&5
21771 ( exit $ac_status )
21772 ac_cv_broken_nice
=no
21774 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21778 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21779 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21780 if test "$ac_cv_broken_nice" = yes
21783 cat >>confdefs.h
<<\_ACEOF
21784 #define HAVE_BROKEN_NICE 1
21789 echo "$as_me:$LINENO: checking for broken poll()" >&5
21790 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21791 if test "$cross_compiling" = yes; then
21792 ac_cv_broken_poll
=no
21794 cat >conftest.
$ac_ext <<_ACEOF
21797 cat confdefs.h
>>conftest.
$ac_ext
21798 cat >>conftest.
$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21805 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21809 int poll_test = poll (&poll_struct, 1, 0);
21815 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21826 rm -f conftest
$ac_exeext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21828 (eval $ac_link) 2>&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833 (eval $ac_try) 2>&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); }; }; then
21837 ac_cv_broken_poll
=yes
21839 echo "$as_me: program exited with status $ac_status" >&5
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.
$ac_ext >&5
21843 ( exit $ac_status )
21844 ac_cv_broken_poll
=no
21846 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21848 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21849 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21850 if test "$ac_cv_broken_poll" = yes
21853 cat >>confdefs.h
<<\_ACEOF
21854 #define HAVE_BROKEN_POLL 1
21859 # Before we can test tzset, we need to check if struct tm has a tm_zone
21860 # (which is not required by ISO C or UNIX spec) and/or if we support
21862 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21863 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21864 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21867 cat >conftest.
$ac_ext <<_ACEOF
21870 cat confdefs.h
>>conftest.
$ac_ext
21871 cat >>conftest.
$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 #include <sys/types.h>
21874 #include <$ac_cv_struct_tm>
21880 static struct tm ac_aggr;
21881 if (ac_aggr.tm_zone)
21887 rm -f conftest.
$ac_objext
21888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21889 (eval $ac_compile) 2>conftest.er1
21891 grep -v '^ *+' conftest.er1
>conftest.err
21893 cat conftest.err
>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } &&
21896 { ac_try
='test -z "$ac_c_werror_flag"
21897 || test ! -s conftest.err'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; } &&
21903 { ac_try
='test -s conftest.$ac_objext'
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; }; then
21909 ac_cv_member_struct_tm_tm_zone
=yes
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.
$ac_ext >&5
21914 cat >conftest.
$ac_ext <<_ACEOF
21917 cat confdefs.h
>>conftest.
$ac_ext
21918 cat >>conftest.
$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 #include <sys/types.h>
21921 #include <$ac_cv_struct_tm>
21927 static struct tm ac_aggr;
21928 if (sizeof ac_aggr.tm_zone)
21934 rm -f conftest.
$ac_objext
21935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21936 (eval $ac_compile) 2>conftest.er1
21938 grep -v '^ *+' conftest.er1
>conftest.err
21940 cat conftest.err
>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } &&
21943 { ac_try
='test -z "$ac_c_werror_flag"
21944 || test ! -s conftest.err'
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; } &&
21950 { ac_try
='test -s conftest.$ac_objext'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
21956 ac_cv_member_struct_tm_tm_zone
=yes
21958 echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.
$ac_ext >&5
21961 ac_cv_member_struct_tm_tm_zone
=no
21963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21967 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21968 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21969 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21971 cat >>confdefs.h
<<_ACEOF
21972 #define HAVE_STRUCT_TM_TM_ZONE 1
21978 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21980 cat >>confdefs.h
<<\_ACEOF
21981 #define HAVE_TM_ZONE 1
21985 echo "$as_me:$LINENO: checking for tzname" >&5
21986 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21987 if test "${ac_cv_var_tzname+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 cat >conftest.
$ac_ext <<_ACEOF
21993 cat confdefs.h
>>conftest.
$ac_ext
21994 cat >>conftest.
$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21997 #ifndef tzname /* For SGI. */
21998 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22009 rm -f conftest.
$ac_objext conftest
$ac_exeext
22010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22011 (eval $ac_link) 2>conftest.er1
22013 grep -v '^ *+' conftest.er1
>conftest.err
22015 cat conftest.err
>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } &&
22018 { ac_try
='test -z "$ac_c_werror_flag"
22019 || test ! -s conftest.err'
22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try
='test -s conftest$ac_exeext'
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; }; then
22031 ac_cv_var_tzname
=yes
22033 echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.
$ac_ext >&5
22036 ac_cv_var_tzname
=no
22038 rm -f conftest.err conftest.
$ac_objext \
22039 conftest
$ac_exeext conftest.
$ac_ext
22041 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22042 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22043 if test $ac_cv_var_tzname = yes; then
22045 cat >>confdefs.h
<<\_ACEOF
22046 #define HAVE_TZNAME 1
22053 # check tzset(3) exists and works like we expect it to
22054 echo "$as_me:$LINENO: checking for working tzset()" >&5
22055 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
22056 if test "${ac_cv_working_tzset+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 if test "$cross_compiling" = yes; then
22061 ac_cv_working_tzset
=no
22063 cat >conftest.
$ac_ext <<_ACEOF
22066 cat confdefs.h
>>conftest.
$ac_ext
22067 cat >>conftest.
$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22070 #include <stdlib.h>
22072 #include <string.h>
22075 extern char *tzname[];
22080 /* Note that we need to ensure that not only does tzset(3)
22081 do 'something' with localtime, but it works as documented
22082 in the library reference and as expected by the test suite.
22083 This includes making sure that tzname is set properly if
22084 tm->tm_zone does not exist since it is the alternative way
22085 of getting timezone info.
22087 Red Hat 6.2 doesn't understand the southern hemisphere
22088 after New Year's Day.
22091 time_t groundhogday = 1044144000; /* GMT-based */
22092 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22094 putenv("TZ=UTC+0");
22096 if (localtime(&groundhogday)->tm_hour != 0)
22099 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22100 if (strcmp(tzname[0], "UTC") ||
22101 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22105 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22107 if (localtime(&groundhogday)->tm_hour != 19)
22110 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22114 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22116 if (localtime(&groundhogday)->tm_hour != 11)
22119 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22123 #if HAVE_STRUCT_TM_TM_ZONE
22124 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22126 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22134 rm -f conftest
$ac_exeext
22135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22136 (eval $ac_link) 2>&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; }; then
22145 ac_cv_working_tzset
=yes
22147 echo "$as_me: program exited with status $ac_status" >&5
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.
$ac_ext >&5
22151 ( exit $ac_status )
22152 ac_cv_working_tzset
=no
22154 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22158 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22159 echo "${ECHO_T}$ac_cv_working_tzset" >&6
22160 if test "$ac_cv_working_tzset" = yes
22163 cat >>confdefs.h
<<\_ACEOF
22164 #define HAVE_WORKING_TZSET 1
22169 # Look for subsecond timestamps in struct stat
22170 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22171 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
22172 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 cat >conftest.
$ac_ext <<_ACEOF
22178 cat confdefs.h
>>conftest.
$ac_ext
22179 cat >>conftest.
$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 #include <sys/stat.h>
22187 st.st_mtim.tv_nsec = 1;
22193 rm -f conftest.
$ac_objext
22194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22195 (eval $ac_compile) 2>conftest.er1
22197 grep -v '^ *+' conftest.er1
>conftest.err
22199 cat conftest.err
>&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
22202 { ac_try
='test -z "$ac_c_werror_flag"
22203 || test ! -s conftest.err'
22204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205 (eval $ac_try) 2>&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); }; } &&
22209 { ac_try
='test -s conftest.$ac_objext'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 ac_cv_stat_tv_nsec
=yes
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.
$ac_ext >&5
22220 ac_cv_stat_tv_nsec
=no
22222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22225 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22226 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
22227 if test "$ac_cv_stat_tv_nsec" = yes
22230 cat >>confdefs.h
<<\_ACEOF
22231 #define HAVE_STAT_TV_NSEC 1
22236 # Look for BSD style subsecond timestamps in struct stat
22237 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22238 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
22239 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 cat >conftest.
$ac_ext <<_ACEOF
22245 cat confdefs.h
>>conftest.
$ac_ext
22246 cat >>conftest.
$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 #include <sys/stat.h>
22254 st.st_mtimespec.tv_nsec = 1;
22260 rm -f conftest.
$ac_objext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22262 (eval $ac_compile) 2>conftest.er1
22264 grep -v '^ *+' conftest.er1
>conftest.err
22266 cat conftest.err
>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } &&
22269 { ac_try
='test -z "$ac_c_werror_flag"
22270 || test ! -s conftest.err'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } &&
22276 { ac_try
='test -s conftest.$ac_objext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 ac_cv_stat_tv_nsec2
=yes
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.
$ac_ext >&5
22287 ac_cv_stat_tv_nsec2
=no
22289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22292 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22293 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
22294 if test "$ac_cv_stat_tv_nsec2" = yes
22297 cat >>confdefs.h
<<\_ACEOF
22298 #define HAVE_STAT_TV_NSEC2 1
22303 # On HP/UX 11.0, mvwdelch is a block with a return statement
22304 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22305 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
22306 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 cat >conftest.
$ac_ext <<_ACEOF
22312 cat confdefs.h
>>conftest.
$ac_ext
22313 cat >>conftest.
$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 #include <curses.h>
22321 rtn = mvwdelch(0,0,0);
22327 rm -f conftest.
$ac_objext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329 (eval $ac_compile) 2>conftest.er1
22331 grep -v '^ *+' conftest.er1
>conftest.err
22333 cat conftest.err
>&5
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } &&
22336 { ac_try
='test -z "$ac_c_werror_flag"
22337 || test ! -s conftest.err'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; } &&
22343 { ac_try
='test -s conftest.$ac_objext'
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; }; then
22349 ac_cv_mvwdelch_is_expression
=yes
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.
$ac_ext >&5
22354 ac_cv_mvwdelch_is_expression
=no
22356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22359 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22360 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
22362 if test "$ac_cv_mvwdelch_is_expression" = yes
22365 cat >>confdefs.h
<<\_ACEOF
22366 #define MVWDELCH_IS_EXPRESSION 1
22371 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
22372 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
22373 if test "${ac_cv_window_has_flags+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 cat >conftest.
$ac_ext <<_ACEOF
22379 cat confdefs.h
>>conftest.
$ac_ext
22380 cat >>conftest.
$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22382 #include <curses.h>
22394 rm -f conftest.
$ac_objext
22395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22396 (eval $ac_compile) 2>conftest.er1
22398 grep -v '^ *+' conftest.er1
>conftest.err
22400 cat conftest.err
>&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } &&
22403 { ac_try
='test -z "$ac_c_werror_flag"
22404 || test ! -s conftest.err'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try
='test -s conftest.$ac_objext'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22416 ac_cv_window_has_flags
=yes
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.
$ac_ext >&5
22421 ac_cv_window_has_flags
=no
22423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22426 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
22427 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
22430 if test "$ac_cv_window_has_flags" = yes
22433 cat >>confdefs.h
<<\_ACEOF
22434 #define WINDOW_HAS_FLAGS 1
22439 echo "$as_me:$LINENO: checking for is_term_resized" >&5
22440 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
22441 cat >conftest.
$ac_ext <<_ACEOF
22444 cat confdefs.h
>>conftest.
$ac_ext
22445 cat >>conftest.
$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <curses.h>
22451 void *x=is_term_resized
22456 rm -f conftest.
$ac_objext
22457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22458 (eval $ac_compile) 2>conftest.er1
22460 grep -v '^ *+' conftest.er1
>conftest.err
22462 cat conftest.err
>&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } &&
22465 { ac_try
='test -z "$ac_c_werror_flag"
22466 || test ! -s conftest.err'
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; } &&
22472 { ac_try
='test -s conftest.$ac_objext'
22473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474 (eval $ac_try) 2>&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; }; then
22479 cat >>confdefs.h
<<\_ACEOF
22480 #define HAVE_CURSES_IS_TERM_RESIZED 1
22483 echo "$as_me:$LINENO: result: yes" >&5
22484 echo "${ECHO_T}yes" >&6
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.
$ac_ext >&5
22489 echo "$as_me:$LINENO: result: no" >&5
22490 echo "${ECHO_T}no" >&6
22493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22495 echo "$as_me:$LINENO: checking for resize_term" >&5
22496 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
22497 cat >conftest.
$ac_ext <<_ACEOF
22500 cat confdefs.h
>>conftest.
$ac_ext
22501 cat >>conftest.
$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 #include <curses.h>
22507 void *x=resize_term
22512 rm -f conftest.
$ac_objext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22514 (eval $ac_compile) 2>conftest.er1
22516 grep -v '^ *+' conftest.er1
>conftest.err
22518 cat conftest.err
>&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } &&
22521 { ac_try
='test -z "$ac_c_werror_flag"
22522 || test ! -s conftest.err'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; } &&
22528 { ac_try
='test -s conftest.$ac_objext'
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22535 cat >>confdefs.h
<<\_ACEOF
22536 #define HAVE_CURSES_RESIZE_TERM 1
22539 echo "$as_me:$LINENO: result: yes" >&5
22540 echo "${ECHO_T}yes" >&6
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.
$ac_ext >&5
22545 echo "$as_me:$LINENO: result: no" >&5
22546 echo "${ECHO_T}no" >&6
22549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22551 echo "$as_me:$LINENO: checking for resizeterm" >&5
22552 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22553 cat >conftest.
$ac_ext <<_ACEOF
22556 cat confdefs.h
>>conftest.
$ac_ext
22557 cat >>conftest.
$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <curses.h>
22568 rm -f conftest.
$ac_objext
22569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22570 (eval $ac_compile) 2>conftest.er1
22572 grep -v '^ *+' conftest.er1
>conftest.err
22574 cat conftest.err
>&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
22577 { ac_try
='test -z "$ac_c_werror_flag"
22578 || test ! -s conftest.err'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; } &&
22584 { ac_try
='test -s conftest.$ac_objext'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22591 cat >>confdefs.h
<<\_ACEOF
22592 #define HAVE_CURSES_RESIZETERM 1
22595 echo "$as_me:$LINENO: result: yes" >&5
22596 echo "${ECHO_T}yes" >&6
22598 echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.
$ac_ext >&5
22601 echo "$as_me:$LINENO: result: no" >&5
22602 echo "${ECHO_T}no" >&6
22605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22607 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22608 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22610 if test -r /dev
/ptmx
22612 echo "$as_me:$LINENO: result: yes" >&5
22613 echo "${ECHO_T}yes" >&6
22615 cat >>confdefs.h
<<\_ACEOF
22616 #define HAVE_DEV_PTMX 1
22620 echo "$as_me:$LINENO: result: no" >&5
22621 echo "${ECHO_T}no" >&6
22624 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22625 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22627 if test -r /dev
/ptc
22629 echo "$as_me:$LINENO: result: yes" >&5
22630 echo "${ECHO_T}yes" >&6
22632 cat >>confdefs.h
<<\_ACEOF
22633 #define HAVE_DEV_PTC 1
22637 echo "$as_me:$LINENO: result: no" >&5
22638 echo "${ECHO_T}no" >&6
22641 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22642 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22643 if test "$cross_compiling" = yes; then
22644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22645 See \`config.log' for more details." >&5
22646 echo "$as_me: error: cannot run test program while cross compiling
22647 See \`config.log' for more details." >&2;}
22648 { (exit 1); exit 1; }; }
22650 cat >conftest.
$ac_ext <<_ACEOF
22653 cat confdefs.h
>>conftest.
$ac_ext
22654 cat >>conftest.
$ac_ext <<_ACEOF
22655 /* end confdefs.h. */
22657 #include <stddef.h>
22658 #include <string.h>
22664 #ifdef HAVE_SSIZE_T
22665 typedef ssize_t Py_ssize_t;
22666 #elif SIZEOF_VOID_P == SIZEOF_LONG
22667 typedef long Py_ssize_t;
22669 typedef int Py_ssize_t;
22672 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22675 if (strcmp(buffer, "123"))
22678 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22681 if (strcmp(buffer, "-123"))
22687 rm -f conftest
$ac_exeext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22689 (eval $ac_link) 2>&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 echo "$as_me:$LINENO: result: yes" >&5
22699 echo "${ECHO_T}yes" >&6
22701 cat >>confdefs.h
<<\_ACEOF
22702 #define PY_FORMAT_SIZE_T "z"
22706 echo "$as_me: program exited with status $ac_status" >&5
22707 echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.
$ac_ext >&5
22710 ( exit $ac_status )
22711 echo "$as_me:$LINENO: result: no" >&5
22712 echo "${ECHO_T}no" >&6
22714 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22717 echo "$as_me:$LINENO: checking for socklen_t" >&5
22718 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22719 if test "${ac_cv_type_socklen_t+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 cat >conftest.
$ac_ext <<_ACEOF
22725 cat confdefs.h
>>conftest.
$ac_ext
22726 cat >>conftest.
$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22729 #ifdef HAVE_SYS_TYPES_H
22730 #include <sys/types.h>
22732 #ifdef HAVE_SYS_SOCKET_H
22733 #include <sys/socket.h>
22740 if ((socklen_t *) 0)
22742 if (sizeof (socklen_t))
22748 rm -f conftest.
$ac_objext
22749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22750 (eval $ac_compile) 2>conftest.er1
22752 grep -v '^ *+' conftest.er1
>conftest.err
22754 cat conftest.err
>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
22757 { ac_try
='test -z "$ac_c_werror_flag"
22758 || test ! -s conftest.err'
22759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760 (eval $ac_try) 2>&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; } &&
22764 { ac_try
='test -s conftest.$ac_objext'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22770 ac_cv_type_socklen_t
=yes
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.
$ac_ext >&5
22775 ac_cv_type_socklen_t
=no
22777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22779 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22780 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22781 if test $ac_cv_type_socklen_t = yes; then
22785 cat >>confdefs.h
<<\_ACEOF
22786 #define socklen_t int
22794 for h
in `(cd $srcdir;echo Python/thread_*.h)`
22796 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
22800 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
22801 echo "$as_me:$LINENO: checking for build directories" >&5
22802 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22803 for dir
in $SRCDIRS; do
22804 if test ! -d $dir; then
22808 echo "$as_me:$LINENO: result: done" >&5
22809 echo "${ECHO_T}done" >&6
22811 # generate output files
22812 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
22814 cat >confcache
<<\_ACEOF
22815 # This file is a shell script that caches the results of configure
22816 # tests run on this system so they can be shared between configure
22817 # scripts and configure runs, see configure's option --config-cache.
22818 # It is not useful on other systems. If it contains results you don't
22819 # want to keep, you may remove or edit it.
22821 # config.status only pays attention to the cache file if you give it
22822 # the --recheck option to rerun configure.
22824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22826 # following values.
22830 # The following way of writing the cache mishandles newlines in values,
22831 # but we know of no workaround that is simple, portable, and efficient.
22832 # So, don't put newlines in cache variables' values.
22833 # Ultrix sh set writes to stderr and can't be redirected directly,
22834 # and sets the high bit in the cache file unless we assign to the vars.
22837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22839 # `set' does not quote correctly, so add quotes (double-quote
22840 # substitution turns \\\\ into \\, and sed turns \\ into \).
22843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22846 # `set' quotes correctly as required by POSIX, so do not add quotes.
22848 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22857 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22859 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22860 if test -w $cache_file; then
22861 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22862 cat confcache
>$cache_file
22864 echo "not updating unwritable cache $cache_file"
22869 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22870 # Let make expand exec_prefix.
22871 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22875 # trailing colons and then remove the whole line if VPATH becomes empty
22876 # (actually we leave an empty line to preserve line numbers).
22877 if test "x$srcdir" = x.
; then
22878 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22879 s/:*\$(srcdir):*/:/;
22880 s/:*\${srcdir}:*/:/;
22882 s/^\([^=]*=[ ]*\):*/\1/;
22888 DEFS
=-DHAVE_CONFIG_H
22892 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22893 # 1. Remove the extension, and $U if already installed.
22894 ac_i
=`echo "$ac_i" |
22895 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22897 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22898 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22900 LIBOBJS
=$ac_libobjs
22902 LTLIBOBJS
=$ac_ltlibobjs
22906 : ${CONFIG_STATUS=./config.status}
22907 ac_clean_files_save
=$ac_clean_files
22908 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22911 cat >$CONFIG_STATUS <<_ACEOF
22913 # Generated by $as_me.
22914 # Run this file to recreate the current configuration.
22915 # Compiler output produced by configure, useful for debugging
22916 # configure, is in config.log if it exists.
22919 ac_cs_recheck=false
22921 SHELL=\${CONFIG_SHELL-$SHELL}
22924 cat >>$CONFIG_STATUS <<\_ACEOF
22925 ## --------------------- ##
22926 ## M4sh Initialization. ##
22927 ## --------------------- ##
22929 # Be Bourne compatible
22930 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22934 # is contrary to our usage. Disable this feature.
22935 alias -g '${1+"$@"}'='"$@"'
22936 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22939 DUALCASE
=1; export DUALCASE
# for MKS sh
22941 # Support unset when possible.
22942 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22949 # Work around bugs in pre-3.0 UWIN ksh.
22950 $as_unset ENV MAIL MAILPATH
22957 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22958 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22959 LC_TELEPHONE LC_TIME
22961 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22962 eval $as_var=C
; export $as_var
22968 # Required to use basename.
22969 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22975 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22976 as_basename
=basename
22982 # Name of the executable.
22983 as_me
=`$as_basename "$0" ||
22984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22985 X"$0" : 'X\(//\)$' \| \
22986 X"$0" : 'X\(/\)$' \| \
22987 . : '\(.\)' 2>/dev/null ||
22989 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22990 /^X\/\(\/\/\)$/{ s//\1/; q; }
22991 /^X\/\(\/\).*/{ s//\1/; q; }
22995 # PATH needs CR, and LINENO needs CR and PATH.
22996 # Avoid depending upon Character Ranges.
22997 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22998 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22999 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23000 as_cr_digits
='0123456789'
23001 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23003 # The user is always right.
23004 if test "${PATH_SEPARATOR+set}" != set; then
23005 echo "#! /bin/sh" >conf$$.sh
23006 echo "exit 0" >>conf$$.sh
23008 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23017 as_lineno_1
=$LINENO
23018 as_lineno_2
=$LINENO
23019 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23020 test "x$as_lineno_1" != "x$as_lineno_2" &&
23021 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23022 # Find who we are. Look in the path if we contain no path at all
23025 *[\\/]* ) as_myself
=$0 ;;
23026 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23027 for as_dir
in $PATH
23030 test -z "$as_dir" && as_dir
=.
23031 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23036 # We did not find ourselves, most probably we were run as `sh COMMAND'
23037 # in which case we are not to be found in the path.
23038 if test "x$as_myself" = x
; then
23041 if test ! -f "$as_myself"; then
23042 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23043 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23044 { (exit 1); exit 1; }; }
23046 case $CONFIG_SHELL in
23048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23049 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23052 test -z "$as_dir" && as_dir
=.
23053 for as_base
in sh bash ksh sh5
; do
23056 if ("$as_dir/$as_base" -c '
23057 as_lineno_1=$LINENO
23058 as_lineno_2=$LINENO
23059 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23060 test "x$as_lineno_1" != "x$as_lineno_2" &&
23061 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23062 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23063 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23064 CONFIG_SHELL
=$as_dir/$as_base
23065 export CONFIG_SHELL
23066 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23075 # uniformly replaced by the line number. The first 'sed' inserts a
23076 # line-number line before each line; the second 'sed' does the real
23077 # work. The second script uses 'N' to pair each line-number line
23078 # with the numbered line, and appends trailing '-' during
23079 # substitution so that $LINENO is not a special case at line end.
23080 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23081 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23082 sed '=' <$as_myself |
23087 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23090 s,^['$as_cr_digits']*\n,,
23091 ' >$as_me.lineno
&&
23092 chmod +x
$as_me.lineno ||
23093 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23094 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23095 { (exit 1); exit 1; }; }
23097 # Don't try to exec as it changes $[0], causing all sort of problems
23098 # (the dirname of $[0] is not the place where we might find the
23099 # original and so on. Autoconf is especially sensible to this).
23101 # Exit status is that of the last command.
23106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23107 *c
*,-n*) ECHO_N
= ECHO_C
='
23109 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23110 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23113 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23119 rm -f conf$$ conf$$.exe conf$$.
file
23121 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23122 # We could just check for DJGPP; but this test a) works b) is more generic
23123 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23124 if test -f conf$$.exe
; then
23125 # Don't use ln at all; we don't have any links
23130 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23135 rm -f conf$$ conf$$.exe conf$$.
file
23137 if mkdir
-p .
2>/dev
/null
; then
23140 test -d .
/-p && rmdir .
/-p
23144 as_executable_p
="test -f"
23146 # Sed expression to map a string onto a valid CPP name.
23147 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23149 # Sed expression to map a string onto a valid variable name.
23150 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23154 # We need space, tab and new line, in precisely that order.
23164 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23165 # report actual input values of CONFIG_FILES etc. instead of their
23166 # values after options handling. Logging --version etc. is OK.
23170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23171 ## Running $as_me. ##
23176 This file was extended by python $as_me 2.6, which was
23177 generated by GNU Autoconf 2.59. Invocation command line was
23179 CONFIG_FILES = $CONFIG_FILES
23180 CONFIG_HEADERS = $CONFIG_HEADERS
23181 CONFIG_LINKS = $CONFIG_LINKS
23182 CONFIG_COMMANDS = $CONFIG_COMMANDS
23186 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23190 # Files that config.status was made for.
23191 if test -n "$ac_config_files"; then
23192 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23195 if test -n "$ac_config_headers"; then
23196 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23199 if test -n "$ac_config_links"; then
23200 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23203 if test -n "$ac_config_commands"; then
23204 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23207 cat >>$CONFIG_STATUS <<\_ACEOF
23210 \`$as_me' instantiates files from templates according to the
23211 current configuration.
23213 Usage: $0 [OPTIONS] [FILE]...
23215 -h, --help print this help, then exit
23216 -V, --version print version number, then exit
23217 -q, --quiet do not print progress messages
23218 -d, --debug don't remove temporary files
23219 --recheck update $as_me by reconfiguring in the same conditions
23220 --file=FILE[:TEMPLATE]
23221 instantiate the configuration file FILE
23222 --header=FILE[:TEMPLATE]
23223 instantiate the configuration header FILE
23225 Configuration files:
23228 Configuration headers:
23231 Report bugs to <bug-autoconf@gnu.org>."
23234 cat >>$CONFIG_STATUS <<_ACEOF
23236 python config.status 2.6
23237 configured by $0, generated by GNU Autoconf 2.59,
23238 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23240 Copyright (C) 2003 Free Software Foundation, Inc.
23241 This config.status script is free software; the Free Software Foundation
23242 gives unlimited permission to copy, distribute and modify it."
23247 cat >>$CONFIG_STATUS <<\_ACEOF
23248 # If no file are specified by the user, then we need to provide default
23249 # value. By we need to know if files were specified by the user.
23255 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23256 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23264 *) # This is not an option, so the user has probably given explicit
23267 ac_need_defaults
=false
;;
23271 # Handling of the options.
23273 cat >>$CONFIG_STATUS <<\_ACEOF
23274 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23276 --version |
--vers* |
-V )
23277 echo "$ac_cs_version"; exit 0 ;;
23279 # Conflict between --help and --header
23280 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23281 Try \`$0 --help' for more information." >&5
23282 echo "$as_me: error: ambiguous option: $1
23283 Try \`$0 --help' for more information." >&2;}
23284 { (exit 1); exit 1; }; };;
23285 --help |
--hel |
-h )
23286 echo "$ac_cs_usage"; exit 0 ;;
23287 --debug |
--d* |
-d )
23289 --file |
--fil |
--fi |
--f )
23291 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23292 ac_need_defaults
=false
;;
23293 --header |
--heade |
--head |
--hea )
23295 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23296 ac_need_defaults
=false
;;
23297 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23298 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23301 # This is an error.
23302 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23303 Try \`$0 --help' for more information." >&5
23304 echo "$as_me: error: unrecognized option: $1
23305 Try \`$0 --help' for more information." >&2;}
23306 { (exit 1); exit 1; }; } ;;
23308 *) ac_config_targets
="$ac_config_targets $1" ;;
23314 ac_configure_extra_args
=
23316 if $ac_cs_silent; then
23318 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23322 cat >>$CONFIG_STATUS <<_ACEOF
23323 if \$ac_cs_recheck; then
23324 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23325 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23334 cat >>$CONFIG_STATUS <<\_ACEOF
23335 for ac_config_target
in $ac_config_targets
23337 case "$ac_config_target" in
23338 # Handling of arguments.
23339 "Mac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
23340 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23341 "Mac/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23342 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
23343 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
23344 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
23345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23347 { (exit 1); exit 1; }; };;
23351 # If the user did not use the arguments to specify the items to instantiate,
23352 # then the envvar interface is used. Set only those that are not.
23353 # We use the long form for the default assignment because of an extremely
23354 # bizarre bug on SunOS 4.1.3.
23355 if $ac_need_defaults; then
23356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23360 # Have a temporary directory for convenience. Make it in the build tree
23361 # simply because there is no reason to put it here, and in addition,
23362 # creating and moving files from /tmp can sometimes cause problems.
23363 # Create a temporary directory, and hook for its removal unless debugging.
23366 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23367 trap '{ (exit 1); exit 1; }' 1 2 13 15
23370 # Create a (secure) tmp directory for tmp files.
23373 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23374 test -n "$tmp" && test -d "$tmp"
23377 tmp
=.
/confstat$$
-$RANDOM
23378 (umask 077 && mkdir
$tmp)
23381 echo "$me: cannot create a temporary directory in ." >&2
23382 { (exit 1); exit 1; }
23387 cat >>$CONFIG_STATUS <<_ACEOF
23390 # CONFIG_FILES section.
23393 # No need to generate the scripts if there are no CONFIG_FILES.
23394 # This happens for instance when ./config.status config.h
23395 if test -n "\$CONFIG_FILES"; then
23396 # Protect against being on the right side of a sed subst in config.status.
23397 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23398 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23399 s,@SHELL@,$SHELL,;t t
23400 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23401 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23402 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23403 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23404 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23405 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23406 s,@exec_prefix@,$exec_prefix,;t t
23407 s,@prefix@,$prefix,;t t
23408 s,@program_transform_name@,$program_transform_name,;t t
23409 s,@bindir@,$bindir,;t t
23410 s,@sbindir@,$sbindir,;t t
23411 s,@libexecdir@,$libexecdir,;t t
23412 s,@datadir@,$datadir,;t t
23413 s,@sysconfdir@,$sysconfdir,;t t
23414 s,@sharedstatedir@,$sharedstatedir,;t t
23415 s,@localstatedir@,$localstatedir,;t t
23416 s,@libdir@,$libdir,;t t
23417 s,@includedir@,$includedir,;t t
23418 s,@oldincludedir@,$oldincludedir,;t t
23419 s,@infodir@,$infodir,;t t
23420 s,@mandir@,$mandir,;t t
23421 s,@build_alias@,$build_alias,;t t
23422 s,@host_alias@,$host_alias,;t t
23423 s,@target_alias@,$target_alias,;t t
23424 s,@DEFS@,$DEFS,;t t
23425 s,@ECHO_C@,$ECHO_C,;t t
23426 s,@ECHO_N@,$ECHO_N,;t t
23427 s,@ECHO_T@,$ECHO_T,;t t
23428 s,@LIBS@,$LIBS,;t t
23429 s,@VERSION@,$VERSION,;t t
23430 s,@SOVERSION@,$SOVERSION,;t t
23431 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
23432 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
23433 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
23434 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
23435 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
23436 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
23437 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
23438 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
23439 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
23440 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
23441 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
23442 s,@MACHDEP@,$MACHDEP,;t t
23443 s,@SGI_ABI@,$SGI_ABI,;t t
23444 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
23445 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
23446 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
23447 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
23449 s,@CFLAGS@,$CFLAGS,;t t
23450 s,@LDFLAGS@,$LDFLAGS,;t t
23451 s,@CPPFLAGS@,$CPPFLAGS,;t t
23452 s,@ac_ct_CC@,$ac_ct_CC,;t t
23453 s,@EXEEXT@,$EXEEXT,;t t
23454 s,@OBJEXT@,$OBJEXT,;t t
23456 s,@MAINCC@,$MAINCC,;t t
23458 s,@EGREP@,$EGREP,;t t
23459 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
23460 s,@LIBRARY@,$LIBRARY,;t t
23461 s,@LDLIBRARY@,$LDLIBRARY,;t t
23462 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
23463 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
23464 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
23465 s,@INSTSONAME@,$INSTSONAME,;t t
23466 s,@RUNSHARED@,$RUNSHARED,;t t
23467 s,@LINKCC@,$LINKCC,;t t
23468 s,@RANLIB@,$RANLIB,;t t
23469 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23471 s,@SVNVERSION@,$SVNVERSION,;t t
23472 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23473 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23474 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23477 s,@BASECFLAGS@,$BASECFLAGS,;t t
23478 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
23479 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
23481 s,@LDSHARED@,$LDSHARED,;t t
23482 s,@BLDSHARED@,$BLDSHARED,;t t
23483 s,@CCSHARED@,$CCSHARED,;t t
23484 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
23485 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
23486 s,@SHLIBS@,$SHLIBS,;t t
23487 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
23488 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
23489 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
23490 s,@LDLAST@,$LDLAST,;t t
23491 s,@THREADOBJ@,$THREADOBJ,;t t
23492 s,@DLINCLDIR@,$DLINCLDIR,;t t
23493 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
23494 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
23495 s,@TRUE@,$TRUE,;t t
23496 s,@LIBOBJS@,$LIBOBJS,;t t
23497 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
23498 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
23499 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
23500 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
23501 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
23502 s,@LIBM@,$LIBM,;t t
23503 s,@LIBC@,$LIBC,;t t
23504 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
23505 s,@THREADHEADERS@,$THREADHEADERS,;t t
23506 s,@SRCDIRS@,$SRCDIRS,;t t
23507 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23512 cat >>$CONFIG_STATUS <<\_ACEOF
23513 # Split the substitutions into bite-sized pieces for seds with
23514 # small command number limits, like on Digital OSF/1 and HP-UX.
23515 ac_max_sed_lines
=48
23516 ac_sed_frag
=1 # Number of current file.
23517 ac_beg
=1 # First line for current file.
23518 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23521 while $ac_more_lines; do
23522 if test $ac_beg -gt 1; then
23523 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23525 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23527 if test ! -s $tmp/subs.frag
; then
23528 ac_more_lines
=false
23530 # The purpose of the label and of the branching condition is to
23531 # speed up the sed processing (if there are no `@' at all, there
23532 # is no need to browse any of the substitutions).
23533 # These are the two extra sed commands mentioned above.
23535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23536 if test -z "$ac_sed_cmds"; then
23537 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23539 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23541 ac_sed_frag
=`expr $ac_sed_frag + 1`
23543 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23546 if test -z "$ac_sed_cmds"; then
23549 fi # test -n "$CONFIG_FILES"
23552 cat >>$CONFIG_STATUS <<\_ACEOF
23553 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23554 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23556 - |
*:- |
*:-:* ) # input from stdin
23558 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23559 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23560 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23561 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23562 * ) ac_file_in
=$ac_file.
in ;;
23565 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23566 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23568 X"$ac_file" : 'X\(//\)[^/]' \| \
23569 X"$ac_file" : 'X\(//\)$' \| \
23570 X"$ac_file" : 'X\(/\)' \| \
23571 . : '\(.\)' 2>/dev/null ||
23573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23575 /^X\(\/\/\)$/{ s//\1/; q; }
23576 /^X\(\/\).*/{ s//\1/; q; }
23578 { if $as_mkdir_p; then
23583 while test ! -d "$as_dir"; do
23584 as_dirs
="$as_dir $as_dirs"
23585 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23587 X"$as_dir" : 'X\(//\)[^/]' \| \
23588 X"$as_dir" : 'X\(//\)$' \| \
23589 X"$as_dir" : 'X\(/\)' \| \
23590 . : '\(.\)' 2>/dev/null ||
23592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23594 /^X\(\/\/\)$/{ s//\1/; q; }
23595 /^X\(\/\).*/{ s//\1/; q; }
23598 test ! -n "$as_dirs" || mkdir
$as_dirs
23599 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23601 { (exit 1); exit 1; }; }; }
23605 if test "$ac_dir" != .
; then
23606 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23607 # A "../" for each directory in $ac_dir_suffix.
23608 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23610 ac_dir_suffix
= ac_top_builddir
=
23614 .
) # No --srcdir option. We are building in place.
23616 if test -z "$ac_top_builddir"; then
23619 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23621 [\\/]* | ?
:[\\/]* ) # Absolute path.
23622 ac_srcdir
=$srcdir$ac_dir_suffix;
23623 ac_top_srcdir
=$srcdir ;;
23624 *) # Relative path.
23625 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23626 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23629 # Do not use `cd foo && pwd` to compute absolute paths, because
23630 # the directories may not exist.
23632 .
) ac_abs_builddir
="$ac_dir";;
23635 .
) ac_abs_builddir
=`pwd`;;
23636 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23637 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23640 case $ac_abs_builddir in
23641 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23643 case ${ac_top_builddir}.
in
23644 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23645 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23646 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23649 case $ac_abs_builddir in
23650 .
) ac_abs_srcdir
=$ac_srcdir;;
23653 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23654 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23655 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23658 case $ac_abs_builddir in
23659 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23661 case $ac_top_srcdir in
23662 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23663 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23664 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23670 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23671 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23674 if test x
"$ac_file" != x-
; then
23675 { echo "$as_me:$LINENO: creating $ac_file" >&5
23676 echo "$as_me: creating $ac_file" >&6;}
23679 # Let's still pretend it is `configure' which instantiates (i.e., don't
23680 # use $as_me), people would be surprised to read:
23681 # /* config.h. Generated by config.status. */
23682 if test x
"$ac_file" = x-
; then
23685 configure_input
="$ac_file. "
23687 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23688 sed 's,.*/,,'` by configure."
23690 # First look for the input files in the build tree, otherwise in the
23692 ac_file_inputs
=`IFS=:
23693 for f in $ac_file_in; do
23695 -) echo $tmp/stdin ;;
23697 # Absolute (can't be DOS-style, as IFS=:)
23698 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23699 echo "$as_me: error: cannot find input file: $f" >&2;}
23700 { (exit 1); exit 1; }; }
23703 if test -f "$f"; then
23706 elif test -f "$srcdir/$f"; then
23711 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23712 echo "$as_me: error: cannot find input file: $f" >&2;}
23713 { (exit 1); exit 1; }; }
23716 done` ||
{ (exit 1); exit 1; }
23718 cat >>$CONFIG_STATUS <<_ACEOF
23722 cat >>$CONFIG_STATUS <<\_ACEOF
23724 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23725 s
,@configure_input@
,$configure_input,;t t
23726 s
,@srcdir@
,$ac_srcdir,;t t
23727 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23728 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23729 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23730 s
,@builddir@
,$ac_builddir,;t t
23731 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23732 s
,@top_builddir@
,$ac_top_builddir,;t t
23733 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23734 s
,@INSTALL@
,$ac_INSTALL,;t t
23735 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23737 if test x"$ac_file" != x-; then
23738 mv $tmp/out $ac_file
23746 cat >>$CONFIG_STATUS <<\_ACEOF
23749 # CONFIG_HEADER section.
23752 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23753 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23755 # ac_d sets the value in "#define NAME VALUE" lines.
23756 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23757 ac_dB
='[ ].*$,\1#\2'
23760 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23761 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23762 ac_uB
='$,\1#\2define\3'
23766 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23769 - |
*:- |
*:-:* ) # input from stdin
23771 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23772 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23773 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23774 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23775 * ) ac_file_in
=$ac_file.
in ;;
23778 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23779 echo "$as_me: creating $ac_file" >&6;}
23781 # First look for the input files in the build tree, otherwise in the
23783 ac_file_inputs
=`IFS=:
23784 for f in $ac_file_in; do
23786 -) echo $tmp/stdin ;;
23788 # Absolute (can't be DOS-style, as IFS=:)
23789 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23790 echo "$as_me: error: cannot find input file: $f" >&2;}
23791 { (exit 1); exit 1; }; }
23792 # Do quote $f, to prevent DOS paths from being IFS'd.
23795 if test -f "$f"; then
23798 elif test -f "$srcdir/$f"; then
23803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23804 echo "$as_me: error: cannot find input file: $f" >&2;}
23805 { (exit 1); exit 1; }; }
23808 done` ||
{ (exit 1); exit 1; }
23809 # Remove the trailing spaces.
23810 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23814 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23815 # `conftest.undefs', that substitutes the proper values into
23816 # config.h.in to produce config.h. The first handles `#define'
23817 # templates, and the second `#undef' templates.
23818 # And first: Protect against being on the right side of a sed subst in
23819 # config.status. Protect against being in an unquoted here document
23820 # in config.status.
23821 rm -f conftest.defines conftest.undefs
23822 # Using a here document instead of a string reduces the quoting nightmare.
23823 # Putting comments in sed scripts is not portable.
23825 # `end' is used to avoid that the second main sed command (meant for
23826 # 0-ary CPP macros) applies to n-ary macro definitions.
23827 # See the Autoconf documentation for `clear'.
23828 cat >confdef2sed.
sed <<\_ACEOF
23833 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23835 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23838 # If some macros were called several times there might be several times
23839 # the same #defines, which is useless. Nevertheless, we may not want to
23840 # sort them, since we want the *last* AC-DEFINE to be honored.
23841 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23842 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23843 rm -f confdef2sed.sed
23845 # This sed command replaces #undef with comments. This is necessary, for
23846 # example, in the case of _POSIX_SOURCE, which is predefined and required
23847 # on some systems where configure will not decide to define it.
23848 cat >>conftest.undefs <<\_ACEOF
23849 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23852 # Break up conftest.defines because some shells have a limit on the size
23853 # of here documents, and old seds have small limits too (100 cmds).
23854 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23855 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23856 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23857 echo ' :' >>$CONFIG_STATUS
23858 rm -f conftest.tail
23859 while grep . conftest.defines >/dev/null
23861 # Write a limited-size here document to $tmp/defines.sed.
23862 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23863 # Speed up: don't consider the non `#define' lines.
23864 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23865 # Work around the forget-to-reset-the-flag bug.
23866 echo 't clr' >>$CONFIG_STATUS
23867 echo ': clr' >>$CONFIG_STATUS
23868 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23870 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23872 mv $tmp/out $tmp/in
23874 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23875 rm -f conftest.defines
23876 mv conftest.
tail conftest.defines
23878 rm -f conftest.defines
23879 echo ' fi # grep' >>$CONFIG_STATUS
23880 echo >>$CONFIG_STATUS
23882 # Break up conftest.undefs because some shells have a limit on the size
23883 # of here documents, and old seds have small limits too (100 cmds).
23884 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23885 rm -f conftest.
tail
23886 while grep . conftest.undefs
>/dev
/null
23888 # Write a limited-size here document to $tmp/undefs.sed.
23889 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23890 # Speed up: don't consider the non
`#undef'
23891 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23892 # Work around the forget-to-reset-the-flag bug.
23893 echo 't clr' >>$CONFIG_STATUS
23894 echo ': clr' >>$CONFIG_STATUS
23895 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23897 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23899 mv $tmp/out $tmp/in
23901 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23902 rm -f conftest.undefs
23903 mv conftest.tail conftest.undefs
23905 rm -f conftest.undefs
23907 cat >>$CONFIG_STATUS <<\_ACEOF
23908 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23909 # use $as_me), people would be surprised to read:
23910 # /* config.h. Generated by config.status. */
23911 if test x
"$ac_file" = x-
; then
23912 echo "/* Generated by configure. */" >$tmp/config.h
23914 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23916 cat $tmp/in >>$tmp/config.h
23918 if test x
"$ac_file" != x-
; then
23919 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23920 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23921 echo "$as_me: $ac_file is unchanged" >&6;}
23923 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23924 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23925 X"$ac_file" : 'X\(//\)[^/]' \| \
23926 X"$ac_file" : 'X\(//\)$' \| \
23927 X"$ac_file" : 'X\(/\)' \| \
23928 . : '\(.\)' 2>/dev/null ||
23930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23932 /^X\(\/\/\)$/{ s//\1/; q; }
23933 /^X\(\/\).*/{ s//\1/; q; }
23935 { if $as_mkdir_p; then
23940 while test ! -d "$as_dir"; do
23941 as_dirs
="$as_dir $as_dirs"
23942 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23944 X"$as_dir" : 'X\(//\)[^/]' \| \
23945 X"$as_dir" : 'X\(//\)$' \| \
23946 X"$as_dir" : 'X\(/\)' \| \
23947 . : '\(.\)' 2>/dev/null ||
23949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23951 /^X\(\/\/\)$/{ s//\1/; q; }
23952 /^X\(\/\).*/{ s//\1/; q; }
23955 test ! -n "$as_dirs" || mkdir
$as_dirs
23956 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23957 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23958 { (exit 1); exit 1; }; }; }
23961 mv $tmp/config.h
$ac_file
23965 rm -f $tmp/config.h
23970 cat >>$CONFIG_STATUS <<\_ACEOF
23972 { (exit 0); exit 0; }
23974 chmod +x
$CONFIG_STATUS
23975 ac_clean_files
=$ac_clean_files_save
23978 # configure is writing to config.log, and then calls config.status.
23979 # config.status does its own redirection, appending to config.log.
23980 # Unfortunately, on DOS this fails, as config.log is still kept open
23981 # by configure, so config.status won't be able to write to it; its
23982 # output is simply discarded. So we exec the FD to /dev/null,
23983 # effectively closing config.log, so it can be properly (re)opened and
23984 # appended to by config.status. When coming back to configure, we
23985 # need to make the FD available again.
23986 if test "$no_create" != yes; then
23988 ac_config_status_args
=
23989 test "$silent" = yes &&
23990 ac_config_status_args
="$ac_config_status_args --quiet"
23992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23995 # would make configure fail if this is the last instruction.
23996 $ac_cs_success ||
{ (exit 1); exit 1; }
24000 echo "creating Modules/Setup"
24001 if test ! -f Modules
/Setup
24003 cp $srcdir/Modules
/Setup.dist Modules
/Setup
24006 echo "creating Modules/Setup.local"
24007 if test ! -f Modules
/Setup.
local
24009 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
24012 echo "creating Makefile"
24013 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
24014 -s Modules Modules
/Setup.config \
24015 Modules
/Setup.
local Modules
/Setup
24017 case $ac_sys_system in
24019 { echo "$as_me:$LINENO: WARNING:
24021 Support for BeOS is deprecated as of Python 2.6.
24022 See PEP 11 for the gory details.
24024 echo "$as_me: WARNING:
24026 Support for BeOS is deprecated as of Python 2.6.
24027 See PEP 11 for the gory details.
24033 mv config.c Modules