2 # From configure.in Revision: 41984 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
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.5'
274 PACKAGE_STRING
='python 2.5'
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 PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT 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.5 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.5:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-framework[=INSTALLDIR
]
849 Build
(MacOSX|Darwin
) framework
850 --enable-shared disable
/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
853 --enable-ipv6 Enable ipv6
(with ipv4
) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs
[24]]
856 Enable Unicode
strings (default is
yes)
859 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
860 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
861 --without-gcc never use gcc
862 --with-cxx=<compiler
> enable C
++ support
863 --with-suffix=.exe
set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable
/enable signal module
867 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
868 --with(out
)-threads[=DIRECTORY
]
869 disable
/enable thread support
870 --with(out
)-thread[=DIRECTORY
]
871 deprecated
; use
--with(out
)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out
)-doc-strings disable
/enable documentation
strings
874 --with(out
)-tsc enable
/disable timestamp counter profile
875 --with(out
)-pymalloc disable
/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Do not use `cd foo
&& pwd` to compute absolute paths, because
929 # the directories may not exist.
931 .) ac_abs_builddir="$ac_dir";;
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1016 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1017 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1018 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1019 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1021 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1022 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1024 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1026 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1027 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1028 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1030 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close
' the trap.
1110 trap 'exit_status
=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var
in $ac_subst_vars
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var
in $ac_subst_files
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h
; then
1173 sed "/^$/d" confdefs.h |
sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core
*.core
&&
1181 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's
/^
/|
/' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1278 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1303 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1310 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables
, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1352 mv confdefs.h.new confdefs.h
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h
<<\_ACEOF
1364 #define _GNU_SOURCE 1
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1372 cat >>confdefs.h
<<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1381 cat >>confdefs.h
<<\_ACEOF
1382 #define __BSD_VISIBLE 1
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h
<<\_ACEOF
1390 #define _BSD_TYPES 1
1394 define_xopen_source
=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS
="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval
="$enable_framework"
1406 enableval
=/Library
/Frameworks
1411 PYTHONFRAMEWORKDIR
=no-framework
1412 PYTHONFRAMEWORKPREFIX
=
1413 PYTHONFRAMEWORKINSTALLDIR
=
1417 PYTHONFRAMEWORK
=Python
1418 PYTHONFRAMEWORKDIR
=Python.framework
1419 PYTHONFRAMEWORKPREFIX
=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1427 PYTHONFRAMEWORKDIR
=no-framework
1428 PYTHONFRAMEWORKPREFIX
=
1429 PYTHONFRAMEWORKINSTALLDIR
=
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1448 ac_sys_system
=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release
=`uname -v`
1453 ac_sys_release
=`uname -r`
1455 ac_md_system
=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release
=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP
="$ac_md_system$ac_md_release"
1462 cygwin
*) MACHDEP
="cygwin";;
1463 darwin
*) MACHDEP
="darwin";;
1464 atheos
*) MACHDEP
="atheos";;
1465 irix646
) MACHDEP
="irix6";;
1466 '') MACHDEP
="unknown";;
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD
/2.
* | OpenBSD
/3.
[012345678])
1484 define_xopen_source
=no
;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1488 define_xopen_source
=no
;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1493 define_xopen_source
=no
;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1497 define_xopen_source
=no
;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD
/4.8* | Darwin
/6* )
1503 define_xopen_source
=no
;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1508 define_xopen_source
=no
;;
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source
=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1517 define_xopen_source
=no
1522 if test $define_xopen_source = yes
1524 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1525 # defined precisely as g++ defines it
1526 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1528 case $ac_sys_system/$ac_sys_release in
1529 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1531 cat >>confdefs.h
<<\_ACEOF
1532 #define _XOPEN_SOURCE 500
1538 cat >>confdefs.h
<<\_ACEOF
1539 #define _XOPEN_SOURCE 600
1545 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1546 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1547 # several APIs are not declared. Since this is also needed in some
1548 # cases for HP-UX, we define it globally.
1549 # except for Solaris 10, where it must not be defined,
1550 # as it implies XPG4.2
1551 case $ac_sys_system/$ac_sys_release in
1556 cat >>confdefs.h
<<\_ACEOF
1557 #define _XOPEN_SOURCE_EXTENDED 1
1564 cat >>confdefs.h
<<\_ACEOF
1565 #define _POSIX_C_SOURCE 200112L
1572 # SGI compilers allow the specification of the both the ABI and the
1573 # ISA on the command line. Depending on the values of these switches,
1574 # different and often incompatable code will be generated.
1576 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1577 # thus supply support for various ABI/ISA combinations. The MACHDEP
1578 # variable is also adjusted.
1581 if test ! -z "$SGI_ABI"
1584 LDFLAGS
="$SGI_ABI $LDFLAGS"
1585 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1587 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1588 echo "${ECHO_T}$MACHDEP" >&6
1590 # And add extra plat-mac for darwin
1593 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1594 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1595 if test -z "$EXTRAPLATDIR"
1599 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1600 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1608 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1609 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1611 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1612 # it may influence the way we can build extensions, so distutils
1615 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1617 # checks for alternative programs
1619 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1620 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1621 # just to get things to compile and link. Users are free to override OPT
1622 # when running configure or make. The build should not break if they do.
1623 # BASECFLAGS should generally not be messed with, however.
1625 # XXX shouldn't some/most/all of this code be merged with the stuff later
1626 # on that fiddles with OPT and BASECFLAGS?
1627 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1628 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1630 # Check whether --with-gcc or --without-gcc was given.
1631 if test "${with_gcc+set}" = set; then
1640 without_gcc
=$withval;;
1644 case $ac_sys_system in
1648 case $BE_HOST_CPU in
1652 BASECFLAGS
="$BASECFLAGS -export pragma"
1654 LDFLAGS
="$LDFLAGS -nodup"
1662 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1663 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1664 { (exit 1); exit 1; }; }
1667 AR
="\$(srcdir)/Modules/ar_beos"
1676 echo "$as_me:$LINENO: result: $without_gcc" >&5
1677 echo "${ECHO_T}$without_gcc" >&6
1682 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1683 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1685 # Check whether --with-cxx or --without-cxx was given.
1686 if test "${with_cxx+set}" = set; then
1703 echo "$as_me:$LINENO: result: $with_cxx" >&5
1704 echo "${ECHO_T}$with_cxx" >&6
1706 if test "$with_cxx" = "yes"
1708 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1709 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1710 { (exit 1); exit 1; }; }
1716 if test "$check_cxx" = "yes"
1718 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy
$ac_prog; ac_word
=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CXX+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 if test -n "$CXX"; then
1728 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir
=.
1735 for ac_exec_ext
in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CXX
="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 if test -n "$CXX"; then
1748 echo "$as_me:$LINENO: result: $CXX" >&5
1749 echo "${ECHO_T}$CXX" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$CXX" && break
1757 test -n "$CXX" || CXX
="notfound"
1759 if test "$CXX" = "notfound"
1764 ac_cpp
='$CXXCPP $CPPFLAGS'
1765 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1768 cat >conftest.
$ac_ext <<_ACEOF
1771 cat confdefs.h
>>conftest.
$ac_ext
1772 cat >>conftest.
$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1783 ac_clean_files_save
=$ac_clean_files
1784 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1788 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1789 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1790 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 # b.out is created by i960 compilers.
1804 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1806 test -f "$ac_file" ||
continue
1808 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1811 # This is the source file.
1814 # We found the default executable, but exeext='' is most
1818 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.
$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext
=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1846 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try
='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1858 if test "$cross_compiling" = maybe
; then
1861 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C++ compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1875 ac_clean_files
=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 for ac_file
in conftest.exe conftest conftest.
*; do
1895 test -f "$ac_file" ||
continue
1897 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1898 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest
$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.
$ac_ext
1917 EXEEXT
=$ac_cv_exeext
1921 ac_cpp
='$CPP $CPPFLAGS'
1922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1931 # If the user switches compilers, we can't believe the cache
1932 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1934 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1935 (it is also a good idea to do 'make clean' before compiling)" >&5
1936 echo "$as_me: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1938 { (exit 1); exit 1; }; }
1942 ac_cpp
='$CPP $CPPFLAGS'
1943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1946 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1948 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC
="$CC" # Let the user override the test.
1957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1961 test -z "$as_dir" && as_dir
=.
1962 for ac_exec_ext
in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$ac_cv_prog_CC"; then
1985 # Extract the first word of "gcc", so it can be a program name with args.
1986 set dummy gcc
; ac_word
=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir
=.
2000 for ac_exec_ext
in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_ac_ct_CC
="gcc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2028 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC
="$CC" # Let the user override the test.
2037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir
=.
2042 for ac_exec_ext
in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2063 if test -z "$ac_cv_prog_CC"; then
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc
; ac_word
=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir
=.
2080 for ac_exec_ext
in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC
="cc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2106 if test -z "$CC"; then
2107 # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc
; ac_word
=$2
2109 echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC
="$CC" # Let the user override the test.
2118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir
=.
2123 for ac_exec_ext
in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126 ac_prog_rejected
=yes
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 if test $ac_prog_rejected = yes; then
2137 # We found a bogon in the path, so make sure we never use it.
2138 set dummy
$ac_cv_prog_CC
2140 if test $# != 0; then
2141 # We chose a different compiler from the bogus one.
2142 # However, it has the same basename, so the bogon will be chosen
2143 # first if we set CC to just the basename; use the full file name.
2145 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2151 if test -n "$CC"; then
2152 echo "$as_me:$LINENO: result: $CC" >&5
2153 echo "${ECHO_T}$CC" >&6
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC
="$CC" # Let the user override the test.
2174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir
=.
2179 for ac_exec_ext
in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 if test -n "$CC"; then
2192 echo "$as_me:$LINENO: result: $CC" >&5
2193 echo "${ECHO_T}$CC" >&6
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$CC" && break
2202 if test -z "$CC"; then
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy
$ac_prog; ac_word
=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir
=.
2221 for ac_exec_ext
in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC
="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2237 echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$ac_ct_CC" && break
2250 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2256 # Provide some information about the compiler.
2257 echo "$as_me:$LINENO:" \
2258 "checking for C compiler version" >&5
2259 ac_compiler
=`set X $ac_compile; echo $2`
2260 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2261 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }
2265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2266 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }
2270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2271 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2276 cat >conftest.
$ac_ext <<_ACEOF
2279 cat confdefs.h
>>conftest.
$ac_ext
2280 cat >>conftest.
$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2291 ac_clean_files_save
=$ac_clean_files
2292 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2293 # Try to create an executable without -o first, disregard a.out.
2294 # It will help us diagnose broken compilers, and finding out an intuition
2296 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2298 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2300 (eval $ac_link_default) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # Find the output, starting from the most likely. This scheme is
2305 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2308 # Be careful to initialize this variable, since it used to be cached.
2309 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2311 # b.out is created by i960 compilers.
2312 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2314 test -f "$ac_file" ||
continue
2316 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2319 # This is the source file.
2322 # We found the default executable, but exeext='' is most
2326 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # FIXME: I believe we export ac_cv_exeext for Libtool,
2328 # but it would be cool to find out if it's true. Does anybody
2329 # maintain Libtool? --akim.
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.
$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344 { (exit 77); exit 77; }; }
2347 ac_exeext
=$ac_cv_exeext
2348 echo "$as_me:$LINENO: result: $ac_file" >&5
2349 echo "${ECHO_T}$ac_file" >&6
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2354 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2355 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2356 # If not cross compiling, check that we can run a simple program.
2357 if test "$cross_compiling" != yes; then
2358 if { ac_try
='./$ac_file'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 if test "$cross_compiling" = maybe
; then
2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2383 ac_clean_files
=$ac_clean_files_save
2384 # Check the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2388 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389 echo "${ECHO_T}$cross_compiling" >&6
2391 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2400 # work properly (i.e., refer to `conftest.exe'), while it won't with
2402 for ac_file
in conftest.exe conftest conftest.
*; do
2403 test -f "$ac_file" ||
continue
2405 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2406 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2420 rm -f conftest
$ac_cv_exeext
2421 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2422 echo "${ECHO_T}$ac_cv_exeext" >&6
2424 rm -f conftest.
$ac_ext
2425 EXEEXT
=$ac_cv_exeext
2427 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2429 if test "${ac_cv_objext+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cat >conftest.
$ac_ext <<_ACEOF
2435 cat confdefs.h
>>conftest.
$ac_ext
2436 cat >>conftest.
$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2447 rm -f conftest.o conftest.obj
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2455 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2456 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.
$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2471 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2474 echo "${ECHO_T}$ac_cv_objext" >&6
2475 OBJEXT
=$ac_cv_objext
2477 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2478 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2479 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 cat >conftest.
$ac_ext <<_ACEOF
2485 cat confdefs.h
>>conftest.
$ac_ext
2486 cat >>conftest.
$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2500 rm -f conftest.
$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1
>conftest.err
2506 cat conftest.err
>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try
='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try
='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.
$ac_ext >&5
2529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2530 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2533 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2534 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2535 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2536 ac_test_CFLAGS
=${CFLAGS+set}
2537 ac_save_CFLAGS
=$CFLAGS
2539 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2540 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2541 if test "${ac_cv_prog_cc_g+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 cat >conftest.
$ac_ext <<_ACEOF
2547 cat confdefs.h
>>conftest.
$ac_ext
2548 cat >>conftest.
$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.
$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2563 grep -v '^ *+' conftest.er1
>conftest.err
2565 cat conftest.err
>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try
='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try
='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.
$ac_ext >&5
2588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS
=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2601 if test "$GCC" = yes; then
2607 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 ac_cv_prog_cc_stdc
=no
2614 cat >conftest.
$ac_ext <<_ACEOF
2617 cat confdefs.h
>>conftest.
$ac_ext
2618 cat >>conftest.
$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2622 #include <sys/types.h>
2623 #include <sys/stat.h>
2624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625 struct buf { int x; };
2626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2638 s = g (p, va_arg (v,int));
2643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644 function prototypes and stuff, but not '\xHH' hex character constants.
2645 These don't provoke an error unfortunately, instead are silently treated
2646 as 'x'. The following induces an error, until -std1 is added to get
2647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2648 array size at least. It's necessary to write '\x00'==0 to get something
2649 that's true only with -std1. */
2650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2666 # Don't try gcc -ansi; that turns off useful extensions and
2667 # breaks some systems' header files.
2668 # AIX -qlanglvl=ansi
2669 # Ultrix and OSF/1 -std1
2670 # HP-UX 10.20 and later -Ae
2671 # HP-UX older versions -Aa -D_HPUX_SOURCE
2672 # SVR4 -Xc -D__EXTENSIONS__
2673 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675 CC
="$ac_save_CC $ac_arg"
2676 rm -f conftest.
$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2680 grep -v '^ *+' conftest.er1
>conftest.err
2682 cat conftest.err
>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try
='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try
='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_prog_cc_stdc
=$ac_arg
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.
$ac_ext >&5
2705 rm -f conftest.err conftest.
$ac_objext
2707 rm -f conftest.
$ac_ext conftest.
$ac_objext
2712 case "x$ac_cv_prog_cc_stdc" in
2714 echo "$as_me:$LINENO: result: none needed" >&5
2715 echo "${ECHO_T}none needed" >&6 ;;
2717 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2718 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2719 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2722 # Some people use a C++ compiler to compile C. Since we use `exit',
2723 # in C++ we need to declare it. In case someone uses the same compiler
2724 # for both compiling C and C++ we need to have the C++ compiler decide
2725 # the declaration of exit, since it's the most demanding environment.
2726 cat >conftest.
$ac_ext <<_ACEOF
2731 rm -f conftest.
$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1
>conftest.err
2737 cat conftest.err
>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try
='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try
='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration
in \
2755 'extern "C" void std::exit (int) throw (); using std::exit;' \
2756 'extern "C" void std::exit (int); using std::exit;' \
2757 'extern "C" void exit (int) throw ();' \
2758 'extern "C" void exit (int);' \
2761 cat >conftest.
$ac_ext <<_ACEOF
2764 cat confdefs.h
>>conftest.
$ac_ext
2765 cat >>conftest.
$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2777 rm -f conftest.
$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1
>conftest.err
2783 cat conftest.err
>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try
='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try
='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.
$ac_ext >&5
2806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2807 cat >conftest.
$ac_ext <<_ACEOF
2810 cat confdefs.h
>>conftest.
$ac_ext
2811 cat >>conftest.
$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2822 rm -f conftest.
$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2826 grep -v '^ *+' conftest.er1
>conftest.err
2828 cat conftest.err
>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try
='test -z "$ac_c_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try
='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.
$ac_ext >&5
2850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2853 if test -n "$ac_declaration"; then
2854 echo '#ifdef __cplusplus' >>confdefs.h
2855 echo $ac_declaration >>confdefs.h
2856 echo '#endif' >>confdefs.h
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.
$ac_ext >&5
2864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2866 ac_cpp
='$CPP $CPPFLAGS'
2867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2872 # checks for UNIX variants that set C preprocessor variables
2875 ac_cpp
='$CPP $CPPFLAGS'
2876 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 # Double quotes because CPP needs to be expanded
2890 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893 for ac_c_preproc_warn_flag
in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.
$ac_ext <<_ACEOF
2904 cat confdefs.h
>>conftest.
$ac_ext
2905 cat >>conftest.
$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2908 # include <limits.h>
2910 # include <assert.h>
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1
>conftest.err
2919 cat conftest.err
>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev
/null
; then
2922 if test -s conftest.err
; then
2923 ac_cpp_err
=$ac_c_preproc_warn_flag
2924 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.
$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.
$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.
$ac_ext <<_ACEOF
2947 cat confdefs.h
>>conftest.
$ac_ext
2948 cat >>conftest.
$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1
>conftest.err
2957 cat conftest.err
>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev
/null
; then
2960 if test -s conftest.err
; then
2961 ac_cpp_err
=$ac_c_preproc_warn_flag
2962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2976 # Passes both tests.
2980 rm -f conftest.err conftest.
$ac_ext
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.
$ac_ext
2985 if $ac_preproc_ok; then
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
3000 for ac_c_preproc_warn_flag
in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.
$ac_ext <<_ACEOF
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3015 # include <limits.h>
3017 # include <assert.h>
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3024 grep -v '^ *+' conftest.er1
>conftest.err
3026 cat conftest.err
>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev
/null
; then
3029 if test -s conftest.err
; then
3030 ac_cpp_err
=$ac_c_preproc_warn_flag
3031 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3038 if test -z "$ac_cpp_err"; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3044 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.
$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.
$ac_ext <<_ACEOF
3054 cat confdefs.h
>>conftest.
$ac_ext
3055 cat >>conftest.
$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1
>conftest.err
3064 cat conftest.err
>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev
/null
; then
3067 if test -s conftest.err
; then
3068 ac_cpp_err
=$ac_c_preproc_warn_flag
3069 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3083 # Passes both tests.
3087 rm -f conftest.err conftest.
$ac_ext
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.
$ac_ext
3092 if $ac_preproc_ok; then
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3103 ac_cpp
='$CPP $CPPFLAGS'
3104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for egrep" >&5
3110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3111 if test "${ac_cv_prog_egrep+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3115 then ac_cv_prog_egrep
='grep -E'
3116 else ac_cv_prog_egrep
='egrep'
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3121 EGREP
=$ac_cv_prog_egrep
3125 echo "$as_me:$LINENO: checking for AIX" >&5
3126 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3127 cat >conftest.
$ac_ext <<_ACEOF
3130 cat confdefs.h
>>conftest.
$ac_ext
3131 cat >>conftest.
$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "yes" >/dev
/null
2>&1; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142 cat >>confdefs.h
<<\_ACEOF
3143 #define _ALL_SOURCE 1
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3154 # Check for unsupported systems
3155 case $ac_sys_system/$ac_sys_release in
3157 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3158 echo See README
for details.
3163 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3164 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3166 # Check whether --with-suffix or --without-suffix was given.
3167 if test "${with_suffix+set}" = set; then
3168 withval
="$with_suffix"
3173 *) EXEEXT
=$withval;;
3176 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3177 echo "${ECHO_T}$EXEEXT" >&6
3179 # Test whether we're running on a non-case-sensitive system, in which
3180 # case we give a warning if no ext is given
3182 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3183 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3184 if test ! -d CaseSensitiveTestDir
; then
3185 mkdir CaseSensitiveTestDir
3188 if test -d casesensitivetestdir
3190 echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3198 rmdir CaseSensitiveTestDir
3203 gcc
) CC
="$CC -D_HAVE_BSDI";;
3207 case $ac_sys_system in
3210 cc|
*/cc
) CC
="$CC -Ae";;
3214 cc
) CC
="$CC -Wl,-Bexport";;
3217 # Some functions have a prototype only with that define, e.g. confstr
3219 cat >>confdefs.h
<<\_ACEOF
3220 #define __EXTENSIONS__ 1
3228 echo "$as_me:$LINENO: checking LIBRARY" >&5
3229 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3230 if test -z "$LIBRARY"
3232 LIBRARY
='libpython$(VERSION).a'
3234 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3235 echo "${ECHO_T}$LIBRARY" >&6
3237 # LDLIBRARY is the name of the library to link against (as opposed to the
3238 # name of the library into which to insert object files). BLDLIBRARY is also
3239 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3240 # is blank as the main program is not linked directly against LDLIBRARY.
3241 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3242 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3243 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3244 # DLLLIBRARY is the shared (i.e., DLL) library.
3246 # RUNSHARED is used to run shared python without installed libraries
3248 # INSTSONAME is the name of the shared library that will be use to install
3249 # on the system - some systems like version suffix, others don't
3256 LDLIBRARY
="$LIBRARY"
3257 BLDLIBRARY
='$(LDLIBRARY)'
3258 INSTSONAME
='$(LDLIBRARY)'
3263 # LINKCC is the command that links the python executable -- default is $(CC).
3264 # If CXX is set, and if it is needed to link a main function that was
3265 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3266 # python might then depend on the C++ runtime
3267 # This is altered for AIX in order to build the export list before
3270 echo "$as_me:$LINENO: checking LINKCC" >&5
3271 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3272 if test -z "$LINKCC"
3274 if test -z "$CXX"; then
3275 LINKCC
="\$(PURIFY) \$(CC)"
3277 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3278 $CXX -c conftest_a.cc
# 2>&5
3279 echo 'void foo(){}' > conftest_b.
$ac_ext
3280 $CC -c conftest_b.
$ac_ext # 2>&5
3281 if $CC -o conftest
$ac_exeext conftest_a.
$ac_objext conftest_b.
$ac_objext 2>&5 \
3282 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3284 LINKCC
="\$(PURIFY) \$(CC)"
3286 LINKCC
="\$(PURIFY) \$(CXX)"
3290 case $ac_sys_system in
3293 if test $ac_sys_release -ge 5 -o \
3294 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3297 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3299 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3302 echo "$as_me:$LINENO: result: $LINKCC" >&5
3303 echo "${ECHO_T}$LINKCC" >&6
3305 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3306 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3307 # Check whether --enable-shared or --disable-shared was given.
3308 if test "${enable_shared+set}" = set; then
3309 enableval
="$enable_shared"
3313 if test -z "$enable_shared"
3315 case $ac_sys_system in
3317 enable_shared
="yes";;
3319 enable_shared
="no";;
3322 echo "$as_me:$LINENO: result: $enable_shared" >&5
3323 echo "${ECHO_T}$enable_shared" >&6
3325 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3326 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3327 # Check whether --enable-profiling or --disable-profiling was given.
3328 if test "${enable_profiling+set}" = set; then
3329 enableval
="$enable_profiling"
3332 if test "$cross_compiling" = yes; then
3333 ac_enable_profiling
="no"
3335 cat >conftest.
$ac_ext <<_ACEOF
3338 cat confdefs.h
>>conftest.
$ac_ext
3339 cat >>conftest.
$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 int main() { return 0; }
3343 rm -f conftest
$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_enable_profiling
="yes"
3356 echo "$as_me: program exited with status $ac_status" >&5
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.
$ac_ext >&5
3361 ac_enable_profiling
="no"
3363 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3368 echo "${ECHO_T}$ac_enable_profiling" >&6
3370 case "$ac_enable_profiling" in
3372 BASECFLAGS
="-pg $BASECFLAGS"
3373 LDFLAGS
="-pg $LDFLAGS"
3377 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3378 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3380 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3381 # library that we build, but we do not want to link against it (we
3382 # will find it with a -framework option). For this reason there is an
3383 # extra variable BLDLIBRARY against which Python and the extension
3384 # modules are linked, BLDLIBRARY. This is normally the same as
3385 # LDLIBRARY, but empty for MacOSX framework builds.
3386 if test "$enable_framework"
3388 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3389 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3392 BLDLIBRARY
='$(LDLIBRARY)'
3395 # Other platforms follow
3396 if test $enable_shared = "yes"; then
3398 cat >>confdefs.h
<<\_ACEOF
3399 #define Py_ENABLE_SHARED 1
3402 case $ac_sys_system in
3404 LDLIBRARY
='libpython$(VERSION).so'
3407 LDLIBRARY
='libpython$(VERSION).dll.a'
3408 DLLLIBRARY
='libpython$(VERSION).dll'
3411 LDLIBRARY
='libpython$(VERSION).so'
3412 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3413 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3414 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3416 Linux
*|GNU
*|NetBSD
*|FreeBSD
*)
3417 LDLIBRARY
='libpython$(VERSION).so'
3418 BLDLIBRARY
='-L. -lpython$(VERSION)'
3419 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3420 case $ac_sys_system in
3422 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3425 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3428 LDLIBRARY
='libpython$(VERSION).sl'
3429 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3430 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3433 LDLIBRARY
='libpython$(VERSION).so'
3434 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3435 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3438 LDLIBRARY
='libpython$(VERSION).so'
3439 BLDLIBRARY
='-L. -lpython$(VERSION)'
3440 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3443 else # shared is disabled
3444 case $ac_sys_system in
3446 BLDLIBRARY
='$(LIBRARY)'
3447 LDLIBRARY
='libpython$(VERSION).dll.a'
3452 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3453 echo "${ECHO_T}$LDLIBRARY" >&6
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3457 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_prog_RANLIB+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 if test -n "$RANLIB"; then
3464 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_exec_ext
in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 RANLIB
=$ac_cv_prog_RANLIB
3483 if test -n "$RANLIB"; then
3484 echo "$as_me:$LINENO: result: $RANLIB" >&5
3485 echo "${ECHO_T}$RANLIB" >&6
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3492 if test -z "$ac_cv_prog_RANLIB"; then
3493 ac_ct_RANLIB
=$RANLIB
3494 # Extract the first word of "ranlib", so it can be a program name with args.
3495 set dummy ranlib
; ac_word
=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if test -n "$ac_ct_RANLIB"; then
3502 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir
=.
3509 for ac_exec_ext
in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3521 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3522 if test -n "$ac_ct_RANLIB"; then
3523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 RANLIB
=$ac_ct_RANLIB
3532 RANLIB
="$ac_cv_prog_RANLIB"
3536 for ac_prog
in ar aal
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy
$ac_prog; ac_word
=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -n "$AR"; then
3546 ac_cv_prog_AR
="$AR" # Let the user override the test.
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir
=.
3553 for ac_exec_ext
in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_AR
="$ac_prog"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$AR"; then
3566 echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 test -n "$AR" && break
3575 test -n "$AR" || AR
="ar"
3579 # Extract the first word of "svnversion", so it can be a program name with args.
3580 set dummy svnversion
; ac_word
=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test -n "$SVNVERSION"; then
3587 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir
=.
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_SVNVERSION
="found"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 SVNVERSION
=$ac_cv_prog_SVNVERSION
3606 if test -n "$SVNVERSION"; then
3607 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3608 echo "${ECHO_T}$SVNVERSION" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 if test $SVNVERSION = found
3616 SVNVERSION
="svnversion \$(srcdir)"
3618 SVNVERSION
="echo exported"
3623 # install -d does not work on BSDI or HP-UX
3624 if test -z "$INSTALL"
3626 INSTALL
="${srcdir}/install-sh -c"
3630 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3631 if test -f $ac_dir/install-sh
; then
3633 ac_install_sh
="$ac_aux_dir/install-sh -c"
3635 elif test -f $ac_dir/install.sh
; then
3637 ac_install_sh
="$ac_aux_dir/install.sh -c"
3639 elif test -f $ac_dir/shtool
; then
3641 ac_install_sh
="$ac_aux_dir/shtool install -c"
3645 if test -z "$ac_aux_dir"; then
3646 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3647 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3648 { (exit 1); exit 1; }; }
3650 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3651 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3652 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3654 # Find a good install program. We prefer a C program (faster),
3655 # so one script is as good as another. But avoid the broken or
3656 # incompatible versions:
3657 # SysV /etc/install, /usr/sbin/install
3658 # SunOS /usr/etc/install
3659 # IRIX /sbin/install
3661 # AmigaOS /C/install, which installs bootblocks on floppy discs
3662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3665 # OS/2's system install, which has a completely different semantic
3666 # ./install, which can be erroneously created by make from ./install.sh.
3667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3669 if test -z "$INSTALL"; then
3670 if test "${ac_cv_path_install+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir
=.
3678 # Account for people who put trailing slashes in PATH elements.
3680 .
/ | .
// |
/cC
/* | \
3681 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3682 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3685 # OSF1 and SCO ODT 3.0 have their own names for install.
3686 # Don't use installbsd from OSF since it installs stuff as root
3688 for ac_prog
in ginstall scoinst
install; do
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3691 if test $ac_prog = install &&
3692 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3693 # AIX install. It has an incompatible calling convention.
3695 elif test $ac_prog = install &&
3696 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3697 # program-specific install script used by HP pwplus--don't use.
3700 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL
=$ac_cv_path_install
3715 # As a last resort, use the slow shell script. We don't cache a
3716 # path for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the path is relative.
3719 INSTALL
=$ac_install_sh
3722 echo "$as_me:$LINENO: result: $INSTALL" >&5
3723 echo "${ECHO_T}$INSTALL" >&6
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3731 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3734 # Not every filesystem supports hard links
3736 if test -z "$LN" ; then
3737 case $ac_sys_system in
3739 CYGWIN
*) LN
="ln -s";;
3740 atheos
*) LN
="ln -s";;
3745 # Check for --with-pydebug
3746 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3747 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3749 # Check whether --with-pydebug or --without-pydebug was given.
3750 if test "${with_pydebug+set}" = set; then
3751 withval
="$with_pydebug"
3753 if test "$withval" != no
3756 cat >>confdefs.h
<<\_ACEOF
3760 echo "$as_me:$LINENO: result: yes" >&5
3761 echo "${ECHO_T}yes" >&6;
3763 else echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3772 # merged with this chunk of code?
3774 # Optimizer/debugger flags
3775 # ------------------------
3776 # (The following bit of code is complicated enough - please keep things
3777 # indented properly. Just pretend you're editing Python code. ;-)
3779 # There are two parallel sets of case statements below, one that checks to
3780 # see if OPT was set and one that does BASECFLAGS setting based upon
3781 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3784 # tweak OPT based on compiler and platform, only if the user didn't set
3785 # it on the command line
3791 case $ac_cv_prog_cc_g in
3793 if test "$Py_DEBUG" = 'true' ; then
3794 # Optimization messes up debuggers, so turn it off for
3796 OPT
="-g -Wall -Wstrict-prototypes"
3798 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3802 OPT
="-O3 -Wall -Wstrict-prototypes"
3805 case $ac_sys_system in
3806 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3816 # The current (beta) Monterey compiler dies with optimizations
3817 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3818 case $ac_sys_system in
3827 # tweak BASECFLAGS based on compiler and platform
3830 # Python violates C99 rules, by casting between incompatible
3831 # pointer types. GCC may generate bad code as a result of that,
3832 # so use -fno-strict-aliasing if supported.
3833 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3834 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3836 CC
="$CC -fno-strict-aliasing"
3837 if test "$cross_compiling" = yes; then
3838 ac_cv_no_strict_aliasing_ok
=no
3840 cat >conftest.
$ac_ext <<_ACEOF
3843 cat confdefs.h
>>conftest.
$ac_ext
3844 cat >>conftest.
$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 int main() { return 0; }
3848 rm -f conftest
$ac_exeext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850 (eval $ac_link) 2>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_no_strict_aliasing_ok
=yes
3861 echo "$as_me: program exited with status $ac_status" >&5
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3866 ac_cv_no_strict_aliasing_ok
=no
3868 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3871 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3872 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3873 if test $ac_cv_no_strict_aliasing_ok = yes
3875 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3877 case $ac_sys_system in
3879 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3881 # is there any other compiler on Darwin besides gcc?
3883 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 case $ac_sys_system in
3890 OpenUNIX
*|UnixWare
*)
3891 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3894 BASECFLAGS
="$BASECFLAGS -ieee -std"
3897 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3903 if test "$Py_DEBUG" = 'true'; then
3909 if test "$ac_arch_flags"
3911 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3914 # disable check for icc since it seems to pass, but generates a warning
3917 ac_cv_opt_olimit_ok
=no
3920 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3921 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3922 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 CC
="$CC -OPT:Olimit=0"
3927 if test "$cross_compiling" = yes; then
3928 ac_cv_opt_olimit_ok
=no
3930 cat >conftest.
$ac_ext <<_ACEOF
3933 cat confdefs.h
>>conftest.
$ac_ext
3934 cat >>conftest.
$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 int main() { return 0; }
3938 rm -f conftest
$ac_exeext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_opt_olimit_ok
=yes
3951 echo "$as_me: program exited with status $ac_status" >&5
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.
$ac_ext >&5
3956 ac_cv_opt_olimit_ok
=no
3958 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3964 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3965 if test $ac_cv_opt_olimit_ok = yes; then
3966 case $ac_sys_system in
3967 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3968 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3973 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3977 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3978 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3979 if test "${ac_cv_olimit_ok+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 CC
="$CC -Olimit 1500"
3984 if test "$cross_compiling" = yes; then
3987 cat >conftest.
$ac_ext <<_ACEOF
3990 cat confdefs.h
>>conftest.
$ac_ext
3991 cat >>conftest.
$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 int main() { return 0; }
3995 rm -f conftest
$ac_exeext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4008 echo "$as_me: program exited with status $ac_status" >&5
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.
$ac_ext >&5
4015 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4020 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4021 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4022 if test $ac_cv_olimit_ok = yes; then
4023 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4027 # On some compilers, pthreads are available without further options
4028 # (e.g. MacOS X). On some of these systems, the compiler will not
4029 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4030 # So we have to see first whether pthreads are available without
4031 # options before we can check whether -Kpthread improves anything.
4032 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4033 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4034 if test "${ac_cv_pthread_is_default+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test "$cross_compiling" = yes; then
4038 ac_cv_pthread_is_default
=no
4040 cat >conftest.
$ac_ext <<_ACEOF
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4047 #include <pthread.h>
4049 void* routine(void* p){return NULL;}
4053 if(pthread_create(&p,NULL,routine,NULL)!=0)
4055 (void)pthread_detach(p);
4060 rm -f conftest
$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4072 ac_cv_pthread_is_default
=yes
4077 echo "$as_me: program exited with status $ac_status" >&5
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.
$ac_ext >&5
4082 ac_cv_pthread_is_default
=no
4084 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4090 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4093 if test $ac_cv_pthread_is_default = yes
4097 # -Kpthread, if available, provides the right #defines
4098 # and linker options to make pthread_create available
4099 # Some compilers won't report that they do not support -Kpthread,
4100 # so we need to run a program to see whether it really made the
4101 # function available.
4102 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4103 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4104 if test "${ac_cv_kpthread+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 if test "$cross_compiling" = yes; then
4112 cat >conftest.
$ac_ext <<_ACEOF
4115 cat confdefs.h
>>conftest.
$ac_ext
4116 cat >>conftest.
$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 #include <pthread.h>
4121 void* routine(void* p){return NULL;}
4125 if(pthread_create(&p,NULL,routine,NULL)!=0)
4127 (void)pthread_detach(p);
4132 rm -f conftest
$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4145 echo "$as_me: program exited with status $ac_status" >&5
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.
$ac_ext >&5
4152 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4157 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4158 echo "${ECHO_T}$ac_cv_kpthread" >&6
4161 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4163 # -Kthread, if available, provides the right #defines
4164 # and linker options to make pthread_create available
4165 # Some compilers won't report that they do not support -Kthread,
4166 # so we need to run a program to see whether it really made the
4167 # function available.
4168 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4169 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4170 if test "${ac_cv_kthread+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 if test "$cross_compiling" = yes; then
4178 cat >conftest.
$ac_ext <<_ACEOF
4181 cat confdefs.h
>>conftest.
$ac_ext
4182 cat >>conftest.
$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 #include <pthread.h>
4187 void* routine(void* p){return NULL;}
4191 if(pthread_create(&p,NULL,routine,NULL)!=0)
4193 (void)pthread_detach(p);
4198 rm -f conftest
$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4211 echo "$as_me: program exited with status $ac_status" >&5
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.
$ac_ext >&5
4218 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4223 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4224 echo "${ECHO_T}$ac_cv_kthread" >&6
4227 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4229 # -pthread, if available, provides the right #defines
4230 # and linker options to make pthread_create available
4231 # Some compilers won't report that they do not support -pthread,
4232 # so we need to run a program to see whether it really made the
4233 # function available.
4234 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4235 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4236 if test "${ac_cv_thread+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if test "$cross_compiling" = yes; then
4244 cat >conftest.
$ac_ext <<_ACEOF
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 #include <pthread.h>
4253 void* routine(void* p){return NULL;}
4257 if(pthread_create(&p,NULL,routine,NULL)!=0)
4259 (void)pthread_detach(p);
4264 rm -f conftest
$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.
$ac_ext >&5
4284 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4289 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4290 echo "${ECHO_T}$ac_cv_pthread" >&6
4293 # If we have set a CC compiler flag for thread support then
4294 # check if it works for CXX, too.
4298 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4299 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4302 if test "$ac_cv_kpthread" = "yes"
4304 CXX
="$CXX -Kpthread"
4305 ac_cv_cxx_thread
=yes
4306 elif test "$ac_cv_kthread" = "yes"
4309 ac_cv_cxx_thread
=yes
4310 elif test "$ac_cv_pthread" = "yes"
4313 ac_cv_cxx_thread
=yes
4316 if test $ac_cv_cxx_thread = yes
4318 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4319 $CXX -c conftest.
$ac_ext 2>&5
4320 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4321 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4323 ac_cv_cxx_thread
=yes
4329 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4330 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4335 # checks for header files
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.
$ac_ext <<_ACEOF
4344 cat confdefs.h
>>conftest.
$ac_ext
4345 cat >>conftest.
$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4360 rm -f conftest.
$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1
>conftest.err
4366 cat conftest.err
>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try
='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try
='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_header_stdc
=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.
$ac_ext >&5
4387 ac_cv_header_stdc
=no
4389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.
$ac_ext <<_ACEOF
4396 cat confdefs.h
>>conftest.
$ac_ext
4397 cat >>conftest.
$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev
/null
2>&1; then
4406 ac_cv_header_stdc
=no
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.
$ac_ext <<_ACEOF
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev
/null
2>&1; then
4427 ac_cv_header_stdc
=no
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4438 cat >conftest.
$ac_ext <<_ACEOF
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4468 rm -f conftest
$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.
$ac_ext >&5
4486 ac_cv_header_stdc
=no
4488 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494 if test $ac_cv_header_stdc = yes; then
4496 cat >>confdefs.h
<<\_ACEOF
4497 #define STDC_HEADERS 1
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4513 inttypes.h stdint.h unistd.h
4515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 cat >conftest.
$ac_ext <<_ACEOF
4524 cat confdefs.h
>>conftest.
$ac_ext
4525 cat >>conftest.
$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 #include <$ac_header>
4531 rm -f conftest.
$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4535 grep -v '^ *+' conftest.er1
>conftest.err
4537 cat conftest.err
>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try
='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try
='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_Header=yes"
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 eval "$as_ac_Header=no"
4560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h
<<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4614 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4615 stropts.h termios.h thread.h \
4617 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4619 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4620 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4621 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4622 bluetooth
/bluetooth.h
4624 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4626 echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4634 # Is the header compilable?
4635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 cat confdefs.h
>>conftest.
$ac_ext
4641 cat >>conftest.
$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4644 #include <$ac_header>
4646 rm -f conftest.
$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4650 grep -v '^ *+' conftest.er1
>conftest.err
4652 cat conftest.err
>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try
='test -z "$ac_c_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try
='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_header_compiler
=yes
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.
$ac_ext >&5
4673 ac_header_compiler
=no
4675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4677 echo "${ECHO_T}$ac_header_compiler" >&6
4679 # Is the header present?
4680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4682 cat >conftest.
$ac_ext <<_ACEOF
4685 cat confdefs.h
>>conftest.
$ac_ext
4686 cat >>conftest.
$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <$ac_header>
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4693 grep -v '^ *+' conftest.er1
>conftest.err
4695 cat conftest.err
>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev
/null
; then
4698 if test -s conftest.err
; then
4699 ac_cpp_err
=$ac_c_preproc_warn_flag
4700 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4707 if test -z "$ac_cpp_err"; then
4708 ac_header_preproc
=yes
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.
$ac_ext >&5
4713 ac_header_preproc
=no
4715 rm -f conftest.err conftest.
$ac_ext
4716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4717 echo "${ECHO_T}$ac_header_preproc" >&6
4719 # So? What about this header?
4720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4726 ac_header_preproc
=yes
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4743 ## ------------------------------------------------ ##
4744 ## Report this to http://www.python.org/python-bugs ##
4745 ## ------------------------------------------------ ##
4748 sed "s/^/$as_me: WARNING: /" >&2
4751 echo "$as_me:$LINENO: checking for $ac_header" >&5
4752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 eval "$as_ac_Header=\$ac_header_preproc"
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763 cat >>confdefs.h
<<_ACEOF
4764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4778 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $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 <sys/types.h>
4802 rm -f conftest.
$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1
>conftest.err
4808 cat conftest.err
>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try
='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try
='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_Header=yes"
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.
$ac_ext >&5
4829 eval "$as_ac_Header=no"
4831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836 cat >>confdefs.h
<<_ACEOF
4837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4840 ac_header_dirent
=$ac_hdr; break
4844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4845 if test $ac_header_dirent = dirent.h
; then
4846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4848 if test "${ac_cv_search_opendir+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_func_search_save_LIBS
=$LIBS
4852 ac_cv_search_opendir
=no
4853 cat >conftest.
$ac_ext <<_ACEOF
4856 cat confdefs.h
>>conftest.
$ac_ext
4857 cat >>conftest.
$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4875 rm -f conftest.
$ac_objext conftest
$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877 (eval $ac_link) 2>conftest.er1
4879 grep -v '^ *+' conftest.er1
>conftest.err
4881 cat conftest.err
>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try
='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try
='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_search_opendir
="none required"
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.
$ac_ext >&5
4903 rm -f conftest.err conftest.
$ac_objext \
4904 conftest
$ac_exeext conftest.
$ac_ext
4905 if test "$ac_cv_search_opendir" = no
; then
4906 for ac_lib
in dir
; do
4907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4908 cat >conftest.
$ac_ext <<_ACEOF
4911 cat confdefs.h
>>conftest.
$ac_ext
4912 cat >>conftest.
$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4930 rm -f conftest.
$ac_objext conftest
$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1
>conftest.err
4936 cat conftest.err
>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try
='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try
='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_search_opendir
="-l$ac_lib"
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.
$ac_ext >&5
4959 rm -f conftest.err conftest.
$ac_objext \
4960 conftest
$ac_exeext conftest.
$ac_ext
4963 LIBS
=$ac_func_search_save_LIBS
4965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4967 if test "$ac_cv_search_opendir" != no
; then
4968 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4975 if test "${ac_cv_search_opendir+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 ac_func_search_save_LIBS
=$LIBS
4979 ac_cv_search_opendir
=no
4980 cat >conftest.
$ac_ext <<_ACEOF
4983 cat confdefs.h
>>conftest.
$ac_ext
4984 cat >>conftest.
$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
5002 rm -f conftest.
$ac_objext conftest
$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try
='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_search_opendir
="none required"
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5030 rm -f conftest.err conftest.
$ac_objext \
5031 conftest
$ac_exeext conftest.
$ac_ext
5032 if test "$ac_cv_search_opendir" = no
; then
5034 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5057 rm -f conftest.
$ac_objext conftest
$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1
>conftest.err
5063 cat conftest.err
>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try
='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try
='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ac_cv_search_opendir
="-l$ac_lib"
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.
$ac_ext >&5
5086 rm -f conftest.err conftest.
$ac_objext \
5087 conftest
$ac_exeext conftest.
$ac_ext
5090 LIBS
=$ac_func_search_save_LIBS
5092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5094 if test "$ac_cv_search_opendir" != no
; then
5095 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5101 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5102 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5103 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.
$ac_ext <<_ACEOF
5109 cat confdefs.h
>>conftest.
$ac_ext
5110 cat >>conftest.
$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <sys/types.h>
5116 return makedev(0, 0);
5121 rm -f conftest.
$ac_objext conftest
$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>conftest.er1
5125 grep -v '^ *+' conftest.er1
>conftest.err
5127 cat conftest.err
>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try
='test -z "$ac_c_werror_flag"
5131 || test ! -s conftest.err'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try
='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_header_sys_types_h_makedev
=yes
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.
$ac_ext >&5
5148 ac_cv_header_sys_types_h_makedev
=no
5150 rm -f conftest.err conftest.
$ac_objext \
5151 conftest
$ac_exeext conftest.
$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5155 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5157 if test $ac_cv_header_sys_types_h_makedev = no
; then
5158 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5159 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5160 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5161 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5165 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5167 # Is the header compilable?
5168 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5169 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5170 cat >conftest.
$ac_ext <<_ACEOF
5173 cat confdefs.h
>>conftest.
$ac_ext
5174 cat >>conftest.
$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <sys/mkdev.h>
5179 rm -f conftest.
$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5183 grep -v '^ *+' conftest.er1
>conftest.err
5185 cat conftest.err
>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try
='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try
='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_header_compiler
=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.
$ac_ext >&5
5206 ac_header_compiler
=no
5208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210 echo "${ECHO_T}$ac_header_compiler" >&6
5212 # Is the header present?
5213 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5214 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5215 cat >conftest.
$ac_ext <<_ACEOF
5218 cat confdefs.h
>>conftest.
$ac_ext
5219 cat >>conftest.
$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <sys/mkdev.h>
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1
>conftest.err
5228 cat conftest.err
>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev
/null
; then
5231 if test -s conftest.err
; then
5232 ac_cpp_err
=$ac_c_preproc_warn_flag
5233 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5240 if test -z "$ac_cpp_err"; then
5241 ac_header_preproc
=yes
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.
$ac_ext >&5
5246 ac_header_preproc
=no
5248 rm -f conftest.err conftest.
$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250 echo "${ECHO_T}$ac_header_preproc" >&6
5252 # So? What about this header?
5253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5259 ac_header_preproc
=yes
5262 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5263 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5265 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5267 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5276 ## ------------------------------------------------ ##
5277 ## Report this to http://www.python.org/python-bugs ##
5278 ## ------------------------------------------------ ##
5281 sed "s/^/$as_me: WARNING: /" >&2
5284 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5285 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5286 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5292 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5295 if test $ac_cv_header_sys_mkdev_h = yes; then
5297 cat >>confdefs.h
<<\_ACEOF
5298 #define MAJOR_IN_MKDEV 1
5305 if test $ac_cv_header_sys_mkdev_h = no
; then
5306 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5307 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5308 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5315 # Is the header compilable?
5316 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5317 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5318 cat >conftest.
$ac_ext <<_ACEOF
5321 cat confdefs.h
>>conftest.
$ac_ext
5322 cat >>conftest.
$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5325 #include <sys/sysmacros.h>
5327 rm -f conftest.
$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329 (eval $ac_compile) 2>conftest.er1
5331 grep -v '^ *+' conftest.er1
>conftest.err
5333 cat conftest.err
>&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try
='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try
='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_header_compiler
=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.
$ac_ext >&5
5354 ac_header_compiler
=no
5356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5362 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5363 cat >conftest.
$ac_ext <<_ACEOF
5366 cat confdefs.h
>>conftest.
$ac_ext
5367 cat >>conftest.
$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <sys/sysmacros.h>
5371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5374 grep -v '^ *+' conftest.er1
>conftest.err
5376 cat conftest.err
>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev
/null
; then
5379 if test -s conftest.err
; then
5380 ac_cpp_err
=$ac_c_preproc_warn_flag
5381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5388 if test -z "$ac_cpp_err"; then
5389 ac_header_preproc
=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.
$ac_ext >&5
5394 ac_header_preproc
=no
5396 rm -f conftest.err conftest.
$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc
=yes
5410 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5424 ## ------------------------------------------------ ##
5425 ## Report this to http://www.python.org/python-bugs ##
5426 ## ------------------------------------------------ ##
5429 sed "s/^/$as_me: WARNING: /" >&2
5432 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5433 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5434 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5440 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5443 if test $ac_cv_header_sys_sysmacros_h = yes; then
5445 cat >>confdefs.h
<<\_ACEOF
5446 #define MAJOR_IN_SYSMACROS 1
5456 # On Solaris, term.h requires curses.h
5458 for ac_header
in term.h
5460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.
$ac_ext <<_ACEOF
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #ifdef HAVE_CURSES_H
5478 #include <$ac_header>
5480 rm -f conftest.
$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5484 grep -v '^ *+' conftest.er1
>conftest.err
5486 cat conftest.err
>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try
='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try
='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 eval "$as_ac_Header=yes"
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5507 eval "$as_ac_Header=no"
5509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514 cat >>confdefs.h
<<_ACEOF
5515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5523 # On Linux, netlink.h requires asm/types.h
5525 for ac_header
in linux
/netlink.h
5527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5528 echo "$as_me:$LINENO: checking for $ac_header" >&5
5529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 cat >conftest.
$ac_ext <<_ACEOF
5536 cat confdefs.h
>>conftest.
$ac_ext
5537 cat >>conftest.
$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 #ifdef HAVE_ASM_TYPES_H
5541 #include <asm/types.h>
5543 #ifdef HAVE_SYS_SOCKET_H
5544 #include <sys/socket.h>
5548 #include <$ac_header>
5550 rm -f conftest.
$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5554 grep -v '^ *+' conftest.er1
>conftest.err
5556 cat conftest.err
>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try
='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try
='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 eval "$as_ac_Header=yes"
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.
$ac_ext >&5
5577 eval "$as_ac_Header=no"
5579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h
<<_ACEOF
5585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5593 # checks for typedefs
5595 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5596 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5597 cat >conftest.
$ac_ext <<_ACEOF
5600 cat confdefs.h
>>conftest.
$ac_ext
5601 cat >>conftest.
$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607 $EGREP "clock_t" >/dev
/null
2>&1; then
5612 cat >>confdefs.h
<<\_ACEOF
5613 #define clock_t long
5620 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5621 echo "${ECHO_T}$was_it_defined" >&6
5623 # Check whether using makedev requires defining _OSF_SOURCE
5624 echo "$as_me:$LINENO: checking for makedev" >&5
5625 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5626 cat >conftest.
$ac_ext <<_ACEOF
5629 cat confdefs.h
>>conftest.
$ac_ext
5630 cat >>conftest.
$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5641 rm -f conftest.
$ac_objext conftest
$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1
>conftest.err
5647 cat conftest.err
>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try
='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try
='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_has_makedev
=yes
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.
$ac_ext >&5
5668 ac_cv_has_makedev
=no
5670 rm -f conftest.err conftest.
$ac_objext \
5671 conftest
$ac_exeext conftest.
$ac_ext
5672 if test "$ac_cv_has_makedev" = "no"; then
5673 # we didn't link, try if _OSF_SOURCE will allow us to link
5674 cat >conftest.
$ac_ext <<_ACEOF
5677 cat confdefs.h
>>conftest.
$ac_ext
5678 cat >>conftest.
$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 #define _OSF_SOURCE 1
5682 #include <sys/types.h>
5692 rm -f conftest.
$ac_objext conftest
$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5696 grep -v '^ *+' conftest.er1
>conftest.err
5698 cat conftest.err
>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try
='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try
='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_has_makedev
=yes
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.
$ac_ext >&5
5719 ac_cv_has_makedev
=no
5721 rm -f conftest.err conftest.
$ac_objext \
5722 conftest
$ac_exeext conftest.
$ac_ext
5723 if test "$ac_cv_has_makedev" = "yes"; then
5725 cat >>confdefs.h
<<\_ACEOF
5726 #define _OSF_SOURCE 1
5731 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5732 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5733 if test "$ac_cv_has_makedev" = "yes"; then
5735 cat >>confdefs.h
<<\_ACEOF
5736 #define HAVE_MAKEDEV 1
5741 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5742 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5743 # defined, but the compiler does not support pragma redefine_extname,
5744 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5745 # structures (such as rlimit64) without declaring them. As a
5746 # work-around, disable LFS on such configurations
5749 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5750 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5751 cat >conftest.
$ac_ext <<_ACEOF
5754 cat confdefs.h
>>conftest.
$ac_ext
5755 cat >>conftest.
$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5758 #define _LARGEFILE_SOURCE 1
5759 #define _FILE_OFFSET_BITS 64
5760 #include <sys/resource.h>
5770 rm -f conftest.
$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>conftest.er1
5774 grep -v '^ *+' conftest.er1
>conftest.err
5776 cat conftest.err
>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try
='test -z "$ac_c_werror_flag"
5780 || test ! -s conftest.err'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; } &&
5786 { ac_try
='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.
$ac_ext >&5
5799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5800 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5801 echo "${ECHO_T}$sol_lfs_bug" >&6
5802 if test "$sol_lfs_bug" = "yes"; then
5806 if test "$use_lfs" = "yes"; then
5807 # Two defines needed to enable largefile support on various platforms
5808 # These may affect some typedefs
5810 cat >>confdefs.h
<<\_ACEOF
5811 #define _LARGEFILE_SOURCE 1
5815 cat >>confdefs.h
<<\_ACEOF
5816 #define _FILE_OFFSET_BITS 64
5821 # Add some code to confdefs.h so that the test for off_t works on SCO
5822 cat >> confdefs.h
<<\EOF
5828 # Type availability checks
5829 echo "$as_me:$LINENO: checking for mode_t" >&5
5830 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5831 if test "${ac_cv_type_mode_t+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.
$ac_ext <<_ACEOF
5837 cat confdefs.h
>>conftest.
$ac_ext
5838 cat >>conftest.
$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5846 if (sizeof (mode_t))
5852 rm -f conftest.
$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5856 grep -v '^ *+' conftest.er1
>conftest.err
5858 cat conftest.err
>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try
='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try
='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_type_mode_t
=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5879 ac_cv_type_mode_t
=no
5881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5884 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5885 if test $ac_cv_type_mode_t = yes; then
5889 cat >>confdefs.h
<<_ACEOF
5895 echo "$as_me:$LINENO: checking for off_t" >&5
5896 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5897 if test "${ac_cv_type_off_t+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5918 rm -f conftest.
$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5922 grep -v '^ *+' conftest.er1
>conftest.err
5924 cat conftest.err
>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try
='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try
='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_type_off_t
=yes
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.
$ac_ext >&5
5947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5955 cat >>confdefs.h
<<_ACEOF
5961 echo "$as_me:$LINENO: checking for pid_t" >&5
5962 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_pid_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.
$ac_ext <<_ACEOF
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5984 rm -f conftest.
$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>conftest.er1
5988 grep -v '^ *+' conftest.er1
>conftest.err
5990 cat conftest.err
>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try
='test -z "$ac_c_werror_flag"
5994 || test ! -s conftest.err'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try
='test -s conftest.$ac_objext'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_cv_type_pid_t
=yes
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.
$ac_ext >&5
6013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6015 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6016 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6017 if test $ac_cv_type_pid_t = yes; then
6021 cat >>confdefs.h
<<_ACEOF
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6046 void (*signal ()) ();
6057 rm -f conftest.
$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1
>conftest.err
6063 cat conftest.err
>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try
='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal
=void
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6084 ac_cv_type_signal
=int
6086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6091 cat >>confdefs.h
<<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6096 echo "$as_me:$LINENO: checking for size_t" >&5
6097 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6098 if test "${ac_cv_type_size_t+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >conftest.
$ac_ext <<_ACEOF
6104 cat confdefs.h
>>conftest.
$ac_ext
6105 cat >>conftest.
$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6113 if (sizeof (size_t))
6119 rm -f conftest.
$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
6125 cat conftest.err
>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try
='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try
='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_type_size_t
=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6146 ac_cv_type_size_t
=no
6148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6151 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6152 if test $ac_cv_type_size_t = yes; then
6156 cat >>confdefs.h
<<_ACEOF
6157 #define size_t unsigned
6162 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6163 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6164 if test "${ac_cv_type_uid_t+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cat >conftest.
$ac_ext <<_ACEOF
6170 cat confdefs.h
>>conftest.
$ac_ext
6171 cat >>conftest.
$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <sys/types.h>
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "uid_t" >/dev
/null
2>&1; then
6178 ac_cv_type_uid_t
=yes
6185 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6186 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6187 if test $ac_cv_type_uid_t = no
; then
6189 cat >>confdefs.h
<<\_ACEOF
6194 cat >>confdefs.h
<<\_ACEOF
6201 # Sizes of various common basic types
6202 # ANSI C requires sizeof(char) == 1, so no need to check it
6203 echo "$as_me:$LINENO: checking for int" >&5
6204 echo $ECHO_N "checking for int... $ECHO_C" >&6
6205 if test "${ac_cv_type_int+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 cat >conftest.
$ac_ext <<_ACEOF
6211 cat confdefs.h
>>conftest.
$ac_ext
6212 cat >>conftest.
$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 $ac_includes_default
6226 rm -f conftest.
$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6230 grep -v '^ *+' conftest.er1
>conftest.err
6232 cat conftest.err
>&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try
='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try
='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.
$ac_ext >&5
6255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6257 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6258 echo "${ECHO_T}$ac_cv_type_int" >&6
6260 echo "$as_me:$LINENO: checking size of int" >&5
6261 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6262 if test "${ac_cv_sizeof_int+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 if test "$ac_cv_type_int" = yes; then
6266 # The cast to unsigned long works around a bug in the HP C Compiler
6267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6269 # This bug is HP SR number 8606223364.
6270 if test "$cross_compiling" = yes; then
6271 # Depending upon the size, compute the lo and hi bounds.
6272 cat >conftest.
$ac_ext <<_ACEOF
6275 cat confdefs.h
>>conftest.
$ac_ext
6276 cat >>conftest.
$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 $ac_includes_default
6282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6289 rm -f conftest.
$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6293 grep -v '^ *+' conftest.er1
>conftest.err
6295 cat conftest.err
>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try
='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try
='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6313 cat >conftest.
$ac_ext <<_ACEOF
6316 cat confdefs.h
>>conftest.
$ac_ext
6317 cat >>conftest.
$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6323 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6330 rm -f conftest.
$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6334 grep -v '^ *+' conftest.er1
>conftest.err
6336 cat conftest.err
>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try
='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try
='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_hi
=$ac_mid; break
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.
$ac_ext >&5
6357 ac_lo
=`expr $ac_mid + 1`
6358 if test $ac_lo -le $ac_mid; then
6362 ac_mid
=`expr 2 '*' $ac_mid + 1`
6364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.
$ac_ext >&5
6370 cat >conftest.
$ac_ext <<_ACEOF
6373 cat confdefs.h
>>conftest.
$ac_ext
6374 cat >>conftest.
$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6380 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try
='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6411 cat >conftest.
$ac_ext <<_ACEOF
6414 cat confdefs.h
>>conftest.
$ac_ext
6415 cat >>conftest.
$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6421 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6428 rm -f conftest.
$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1
>conftest.err
6434 cat conftest.err
>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try
='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try
='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_lo
=$ac_mid; break
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.
$ac_ext >&5
6455 ac_hi
=`expr '(' $ac_mid ')' - 1`
6456 if test $ac_mid -le $ac_hi; then
6460 ac_mid
=`expr 2 '*' $ac_mid`
6462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6472 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 # Binary search between lo and hi bounds.
6474 while test "x$ac_lo" != "x$ac_hi"; do
6475 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6476 cat >conftest.
$ac_ext <<_ACEOF
6479 cat confdefs.h
>>conftest.
$ac_ext
6480 cat >>conftest.
$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 $ac_includes_default
6486 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6493 rm -f conftest.
$ac_objext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495 (eval $ac_compile) 2>conftest.er1
6497 grep -v '^ *+' conftest.er1
>conftest.err
6499 cat conftest.err
>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try
='test -z "$ac_c_werror_flag"
6503 || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try
='test -s conftest.$ac_objext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.
$ac_ext >&5
6520 ac_lo
=`expr '(' $ac_mid ')' + 1`
6522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6527 See \`config.log' for more details." >&5
6528 echo "$as_me: error: cannot compute sizeof (int), 77
6529 See \`config.log' for more details." >&2;}
6530 { (exit 1); exit 1; }; } ;;
6533 if test "$cross_compiling" = yes; then
6534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6535 See \`config.log' for more details." >&5
6536 echo "$as_me: error: cannot run test program while cross compiling
6537 See \`config.log' for more details." >&2;}
6538 { (exit 1); exit 1; }; }
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 long longval () { return (long) (sizeof (int)); }
6548 unsigned long ulongval () { return (long) (sizeof (int)); }
6555 FILE *f = fopen ("conftest.val", "w");
6558 if (((long) (sizeof (int))) < 0)
6560 long i = longval ();
6561 if (i != ((long) (sizeof (int))))
6563 fprintf (f, "%ld\n", i);
6567 unsigned long i = ulongval ();
6568 if (i != ((long) (sizeof (int))))
6570 fprintf (f, "%lu\n", i);
6572 exit (ferror (f) || fclose (f) != 0);
6578 rm -f conftest
$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_cv_sizeof_int
=`cat conftest.val`
6591 echo "$as_me: program exited with status $ac_status" >&5
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.
$ac_ext >&5
6596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6597 See \`config.log' for more details." >&5
6598 echo "$as_me: error: cannot compute sizeof (int), 77
6599 See \`config.log' for more details." >&2;}
6600 { (exit 1); exit 1; }; }
6602 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6611 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6612 cat >>confdefs.h
<<_ACEOF
6613 #define SIZEOF_INT $ac_cv_sizeof_int
6617 echo "$as_me:$LINENO: checking for long" >&5
6618 echo $ECHO_N "checking for long... $ECHO_C" >&6
6619 if test "${ac_cv_type_long+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.
$ac_ext <<_ACEOF
6625 cat confdefs.h
>>conftest.
$ac_ext
6626 cat >>conftest.
$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 $ac_includes_default
6640 rm -f conftest.
$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6644 grep -v '^ *+' conftest.er1
>conftest.err
6646 cat conftest.err
>&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try
='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try
='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.
$ac_ext >&5
6669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6671 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6672 echo "${ECHO_T}$ac_cv_type_long" >&6
6674 echo "$as_me:$LINENO: checking size of long" >&5
6675 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6676 if test "${ac_cv_sizeof_long+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 if test "$ac_cv_type_long" = yes; then
6680 # The cast to unsigned long works around a bug in the HP C Compiler
6681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6683 # This bug is HP SR number 8606223364.
6684 if test "$cross_compiling" = yes; then
6685 # Depending upon the size, compute the lo and hi bounds.
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 $ac_includes_default
6696 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6703 rm -f conftest.
$ac_objext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>conftest.er1
6707 grep -v '^ *+' conftest.er1
>conftest.err
6709 cat conftest.err
>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try
='test -z "$ac_c_werror_flag"
6713 || test ! -s conftest.err'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try
='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6727 cat >conftest.
$ac_ext <<_ACEOF
6730 cat confdefs.h
>>conftest.
$ac_ext
6731 cat >>conftest.
$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 $ac_includes_default
6737 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6744 rm -f conftest.
$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>conftest.er1
6748 grep -v '^ *+' conftest.er1
>conftest.err
6750 cat conftest.err
>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try
='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try
='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_hi
=$ac_mid; break
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.
$ac_ext >&5
6771 ac_lo
=`expr $ac_mid + 1`
6772 if test $ac_lo -le $ac_mid; then
6776 ac_mid
=`expr 2 '*' $ac_mid + 1`
6778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.
$ac_ext >&5
6784 cat >conftest.
$ac_ext <<_ACEOF
6787 cat confdefs.h
>>conftest.
$ac_ext
6788 cat >>conftest.
$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 $ac_includes_default
6794 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6801 rm -f conftest.
$ac_objext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803 (eval $ac_compile) 2>conftest.er1
6805 grep -v '^ *+' conftest.er1
>conftest.err
6807 cat conftest.err
>&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try
='test -z "$ac_c_werror_flag"
6811 || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try
='test -s conftest.$ac_objext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6825 cat >conftest.
$ac_ext <<_ACEOF
6828 cat confdefs.h
>>conftest.
$ac_ext
6829 cat >>conftest.
$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6835 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6842 rm -f conftest.
$ac_objext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>conftest.er1
6846 grep -v '^ *+' conftest.er1
>conftest.err
6848 cat conftest.err
>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try
='test -z "$ac_c_werror_flag"
6852 || test ! -s conftest.err'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try
='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_lo
=$ac_mid; break
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.
$ac_ext >&5
6869 ac_hi
=`expr '(' $ac_mid ')' - 1`
6870 if test $ac_mid -le $ac_hi; then
6874 ac_mid
=`expr 2 '*' $ac_mid`
6876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.
$ac_ext >&5
6884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6887 # Binary search between lo and hi bounds.
6888 while test "x$ac_lo" != "x$ac_hi"; do
6889 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6890 cat >conftest.
$ac_ext <<_ACEOF
6893 cat confdefs.h
>>conftest.
$ac_ext
6894 cat >>conftest.
$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 $ac_includes_default
6900 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6907 rm -f conftest.
$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6911 grep -v '^ *+' conftest.er1
>conftest.err
6913 cat conftest.err
>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try
='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try
='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.
$ac_ext >&5
6934 ac_lo
=`expr '(' $ac_mid ')' + 1`
6936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6940 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6941 See \`config.log' for more details." >&5
6942 echo "$as_me: error: cannot compute sizeof (long), 77
6943 See \`config.log' for more details." >&2;}
6944 { (exit 1); exit 1; }; } ;;
6947 if test "$cross_compiling" = yes; then
6948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6949 See \`config.log' for more details." >&5
6950 echo "$as_me: error: cannot run test program while cross compiling
6951 See \`config.log' for more details." >&2;}
6952 { (exit 1); exit 1; }; }
6954 cat >conftest.
$ac_ext <<_ACEOF
6957 cat confdefs.h
>>conftest.
$ac_ext
6958 cat >>conftest.
$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6961 long longval () { return (long) (sizeof (long)); }
6962 unsigned long ulongval () { return (long) (sizeof (long)); }
6969 FILE *f = fopen ("conftest.val", "w");
6972 if (((long) (sizeof (long))) < 0)
6974 long i = longval ();
6975 if (i != ((long) (sizeof (long))))
6977 fprintf (f, "%ld\n", i);
6981 unsigned long i = ulongval ();
6982 if (i != ((long) (sizeof (long))))
6984 fprintf (f, "%lu\n", i);
6986 exit (ferror (f) || fclose (f) != 0);
6992 rm -f conftest
$ac_exeext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994 (eval $ac_link) 2>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_cv_sizeof_long
=`cat conftest.val`
7005 echo "$as_me: program exited with status $ac_status" >&5
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.
$ac_ext >&5
7010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (long), 77
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; }
7016 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7025 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7026 cat >>confdefs.h
<<_ACEOF
7027 #define SIZEOF_LONG $ac_cv_sizeof_long
7031 echo "$as_me:$LINENO: checking for void *" >&5
7032 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7033 if test "${ac_cv_type_void_p+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 cat >conftest.
$ac_ext <<_ACEOF
7039 cat confdefs.h
>>conftest.
$ac_ext
7040 cat >>conftest.
$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 $ac_includes_default
7048 if (sizeof (void *))
7054 rm -f conftest.
$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7058 grep -v '^ *+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try
='test -s conftest.$ac_objext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_type_void_p
=yes
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.
$ac_ext >&5
7081 ac_cv_type_void_p
=no
7083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7085 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7086 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7088 echo "$as_me:$LINENO: checking size of void *" >&5
7089 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7090 if test "${ac_cv_sizeof_void_p+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 if test "$ac_cv_type_void_p" = yes; then
7094 # The cast to unsigned long works around a bug in the HP C Compiler
7095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7097 # This bug is HP SR number 8606223364.
7098 if test "$cross_compiling" = yes; then
7099 # Depending upon the size, compute the lo and hi bounds.
7100 cat >conftest.
$ac_ext <<_ACEOF
7103 cat confdefs.h
>>conftest.
$ac_ext
7104 cat >>conftest.
$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7110 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7117 rm -f conftest.
$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7121 grep -v '^ *+' conftest.er1
>conftest.err
7123 cat conftest.err
>&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try
='test -z "$ac_c_werror_flag"
7127 || test ! -s conftest.err'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; } &&
7133 { ac_try
='test -s conftest.$ac_objext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7141 cat >conftest.
$ac_ext <<_ACEOF
7144 cat confdefs.h
>>conftest.
$ac_ext
7145 cat >>conftest.
$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 $ac_includes_default
7151 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7158 rm -f conftest.
$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>conftest.er1
7162 grep -v '^ *+' conftest.er1
>conftest.err
7164 cat conftest.err
>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try
='test -z "$ac_c_werror_flag"
7168 || test ! -s conftest.err'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; } &&
7174 { ac_try
='test -s conftest.$ac_objext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_hi
=$ac_mid; break
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.
$ac_ext >&5
7185 ac_lo
=`expr $ac_mid + 1`
7186 if test $ac_lo -le $ac_mid; then
7190 ac_mid
=`expr 2 '*' $ac_mid + 1`
7192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.
$ac_ext >&5
7198 cat >conftest.
$ac_ext <<_ACEOF
7201 cat confdefs.h
>>conftest.
$ac_ext
7202 cat >>conftest.
$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7208 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7215 rm -f conftest.
$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7219 grep -v '^ *+' conftest.er1
>conftest.err
7221 cat conftest.err
>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try
='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try
='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7239 cat >conftest.
$ac_ext <<_ACEOF
7242 cat confdefs.h
>>conftest.
$ac_ext
7243 cat >>conftest.
$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7249 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7256 rm -f conftest.
$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>conftest.er1
7260 grep -v '^ *+' conftest.er1
>conftest.err
7262 cat conftest.err
>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try
='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try
='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_lo
=$ac_mid; break
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.
$ac_ext >&5
7283 ac_hi
=`expr '(' $ac_mid ')' - 1`
7284 if test $ac_mid -le $ac_hi; then
7288 ac_mid
=`expr 2 '*' $ac_mid`
7290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.
$ac_ext >&5
7298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7301 # Binary search between lo and hi bounds.
7302 while test "x$ac_lo" != "x$ac_hi"; do
7303 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7304 cat >conftest.
$ac_ext <<_ACEOF
7307 cat confdefs.h
>>conftest.
$ac_ext
7308 cat >>conftest.
$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7314 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7321 rm -f conftest.
$ac_objext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>conftest.er1
7325 grep -v '^ *+' conftest.er1
>conftest.err
7327 cat conftest.err
>&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } &&
7330 { ac_try
='test -z "$ac_c_werror_flag"
7331 || test ! -s conftest.err'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; } &&
7337 { ac_try
='test -s conftest.$ac_objext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.
$ac_ext >&5
7348 ac_lo
=`expr '(' $ac_mid ')' + 1`
7350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7355 See \`config.log' for more details." >&5
7356 echo "$as_me: error: cannot compute sizeof (void *), 77
7357 See \`config.log' for more details." >&2;}
7358 { (exit 1); exit 1; }; } ;;
7361 if test "$cross_compiling" = yes; then
7362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&5
7364 echo "$as_me: error: cannot run test program while cross compiling
7365 See \`config.log' for more details." >&2;}
7366 { (exit 1); exit 1; }; }
7368 cat >conftest.
$ac_ext <<_ACEOF
7371 cat confdefs.h
>>conftest.
$ac_ext
7372 cat >>conftest.
$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 long longval () { return (long) (sizeof (void *)); }
7376 unsigned long ulongval () { return (long) (sizeof (void *)); }
7383 FILE *f = fopen ("conftest.val", "w");
7386 if (((long) (sizeof (void *))) < 0)
7388 long i = longval ();
7389 if (i != ((long) (sizeof (void *))))
7391 fprintf (f, "%ld\n", i);
7395 unsigned long i = ulongval ();
7396 if (i != ((long) (sizeof (void *))))
7398 fprintf (f, "%lu\n", i);
7400 exit (ferror (f) || fclose (f) != 0);
7406 rm -f conftest
$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7417 ac_cv_sizeof_void_p
=`cat conftest.val`
7419 echo "$as_me: program exited with status $ac_status" >&5
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.
$ac_ext >&5
7424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (void *), 77
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; }
7430 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7435 ac_cv_sizeof_void_p
=0
7438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7439 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7440 cat >>confdefs.h
<<_ACEOF
7441 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7445 echo "$as_me:$LINENO: checking for short" >&5
7446 echo $ECHO_N "checking for short... $ECHO_C" >&6
7447 if test "${ac_cv_type_short+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 cat >conftest.
$ac_ext <<_ACEOF
7453 cat confdefs.h
>>conftest.
$ac_ext
7454 cat >>conftest.
$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7468 rm -f conftest.
$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7472 grep -v '^ *+' conftest.er1
>conftest.err
7474 cat conftest.err
>&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try
='test -z "$ac_c_werror_flag"
7478 || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try
='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_type_short
=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.
$ac_ext >&5
7497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7500 echo "${ECHO_T}$ac_cv_type_short" >&6
7502 echo "$as_me:$LINENO: checking size of short" >&5
7503 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7504 if test "${ac_cv_sizeof_short+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 if test "$ac_cv_type_short" = yes; then
7508 # The cast to unsigned long works around a bug in the HP C Compiler
7509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7511 # This bug is HP SR number 8606223364.
7512 if test "$cross_compiling" = yes; then
7513 # Depending upon the size, compute the lo and hi bounds.
7514 cat >conftest.
$ac_ext <<_ACEOF
7517 cat confdefs.h
>>conftest.
$ac_ext
7518 cat >>conftest.
$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7524 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7531 rm -f conftest.
$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>conftest.er1
7535 grep -v '^ *+' conftest.er1
>conftest.err
7537 cat conftest.err
>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try
='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try
='test -s conftest.$ac_objext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7555 cat >conftest.
$ac_ext <<_ACEOF
7558 cat confdefs.h
>>conftest.
$ac_ext
7559 cat >>conftest.
$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7565 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7572 rm -f conftest.
$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>conftest.er1
7576 grep -v '^ *+' conftest.er1
>conftest.err
7578 cat conftest.err
>&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try
='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try
='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_hi
=$ac_mid; break
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.
$ac_ext >&5
7599 ac_lo
=`expr $ac_mid + 1`
7600 if test $ac_lo -le $ac_mid; then
7604 ac_mid
=`expr 2 '*' $ac_mid + 1`
7606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.
$ac_ext >&5
7612 cat >conftest.
$ac_ext <<_ACEOF
7615 cat confdefs.h
>>conftest.
$ac_ext
7616 cat >>conftest.
$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 $ac_includes_default
7622 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7629 rm -f conftest.
$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631 (eval $ac_compile) 2>conftest.er1
7633 grep -v '^ *+' conftest.er1
>conftest.err
7635 cat conftest.err
>&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try
='test -z "$ac_c_werror_flag"
7639 || test ! -s conftest.err'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try
='test -s conftest.$ac_objext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7653 cat >conftest.
$ac_ext <<_ACEOF
7656 cat confdefs.h
>>conftest.
$ac_ext
7657 cat >>conftest.
$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7663 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7670 rm -f conftest.
$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7674 grep -v '^ *+' conftest.er1
>conftest.err
7676 cat conftest.err
>&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try
='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try
='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_lo
=$ac_mid; break
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.
$ac_ext >&5
7697 ac_hi
=`expr '(' $ac_mid ')' - 1`
7698 if test $ac_mid -le $ac_hi; then
7702 ac_mid
=`expr 2 '*' $ac_mid`
7704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.
$ac_ext >&5
7712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7715 # Binary search between lo and hi bounds.
7716 while test "x$ac_lo" != "x$ac_hi"; do
7717 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7718 cat >conftest.
$ac_ext <<_ACEOF
7721 cat confdefs.h
>>conftest.
$ac_ext
7722 cat >>conftest.
$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 $ac_includes_default
7728 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7735 rm -f conftest.
$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7739 grep -v '^ *+' conftest.er1
>conftest.err
7741 cat conftest.err
>&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try
='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try
='test -s conftest.$ac_objext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.
$ac_ext >&5
7762 ac_lo
=`expr '(' $ac_mid ')' + 1`
7764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7767 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7769 See \`config.log' for more details." >&5
7770 echo "$as_me: error: cannot compute sizeof (short), 77
7771 See \`config.log' for more details." >&2;}
7772 { (exit 1); exit 1; }; } ;;
7775 if test "$cross_compiling" = yes; then
7776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7777 See \`config.log' for more details." >&5
7778 echo "$as_me: error: cannot run test program while cross compiling
7779 See \`config.log' for more details." >&2;}
7780 { (exit 1); exit 1; }; }
7782 cat >conftest.
$ac_ext <<_ACEOF
7785 cat confdefs.h
>>conftest.
$ac_ext
7786 cat >>conftest.
$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 long longval () { return (long) (sizeof (short)); }
7790 unsigned long ulongval () { return (long) (sizeof (short)); }
7797 FILE *f = fopen ("conftest.val", "w");
7800 if (((long) (sizeof (short))) < 0)
7802 long i = longval ();
7803 if (i != ((long) (sizeof (short))))
7805 fprintf (f, "%ld\n", i);
7809 unsigned long i = ulongval ();
7810 if (i != ((long) (sizeof (short))))
7812 fprintf (f, "%lu\n", i);
7814 exit (ferror (f) || fclose (f) != 0);
7820 rm -f conftest
$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_cv_sizeof_short
=`cat conftest.val`
7833 echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.
$ac_ext >&5
7838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842 { (exit 1); exit 1; }; }
7844 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7849 ac_cv_sizeof_short
=0
7852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7853 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7854 cat >>confdefs.h
<<_ACEOF
7855 #define SIZEOF_SHORT $ac_cv_sizeof_short
7859 echo "$as_me:$LINENO: checking for float" >&5
7860 echo $ECHO_N "checking for float... $ECHO_C" >&6
7861 if test "${ac_cv_type_float+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 cat >conftest.
$ac_ext <<_ACEOF
7867 cat confdefs.h
>>conftest.
$ac_ext
7868 cat >>conftest.
$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7882 rm -f conftest.
$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>conftest.er1
7886 grep -v '^ *+' conftest.er1
>conftest.err
7888 cat conftest.err
>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try
='test -z "$ac_c_werror_flag"
7892 || test ! -s conftest.err'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; } &&
7898 { ac_try
='test -s conftest.$ac_objext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_type_float
=yes
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.
$ac_ext >&5
7911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7913 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7914 echo "${ECHO_T}$ac_cv_type_float" >&6
7916 echo "$as_me:$LINENO: checking size of float" >&5
7917 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7918 if test "${ac_cv_sizeof_float+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 if test "$ac_cv_type_float" = yes; then
7922 # The cast to unsigned long works around a bug in the HP C Compiler
7923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7925 # This bug is HP SR number 8606223364.
7926 if test "$cross_compiling" = yes; then
7927 # Depending upon the size, compute the lo and hi bounds.
7928 cat >conftest.
$ac_ext <<_ACEOF
7931 cat confdefs.h
>>conftest.
$ac_ext
7932 cat >>conftest.
$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7938 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7945 rm -f conftest.
$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>conftest.er1
7949 grep -v '^ *+' conftest.er1
>conftest.err
7951 cat conftest.err
>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try
='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try
='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7969 cat >conftest.
$ac_ext <<_ACEOF
7972 cat confdefs.h
>>conftest.
$ac_ext
7973 cat >>conftest.
$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7979 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7986 rm -f conftest.
$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7990 grep -v '^ *+' conftest.er1
>conftest.err
7992 cat conftest.err
>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try
='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try
='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_hi
=$ac_mid; break
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.
$ac_ext >&5
8013 ac_lo
=`expr $ac_mid + 1`
8014 if test $ac_lo -le $ac_mid; then
8018 ac_mid
=`expr 2 '*' $ac_mid + 1`
8020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.
$ac_ext >&5
8026 cat >conftest.
$ac_ext <<_ACEOF
8029 cat confdefs.h
>>conftest.
$ac_ext
8030 cat >>conftest.
$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8036 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8043 rm -f conftest.
$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8047 grep -v '^ *+' conftest.er1
>conftest.err
8049 cat conftest.err
>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try
='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try
='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8067 cat >conftest.
$ac_ext <<_ACEOF
8070 cat confdefs.h
>>conftest.
$ac_ext
8071 cat >>conftest.
$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8077 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8084 rm -f conftest.
$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086 (eval $ac_compile) 2>conftest.er1
8088 grep -v '^ *+' conftest.er1
>conftest.err
8090 cat conftest.err
>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try
='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try
='test -s conftest.$ac_objext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_lo
=$ac_mid; break
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.
$ac_ext >&5
8111 ac_hi
=`expr '(' $ac_mid ')' - 1`
8112 if test $ac_mid -le $ac_hi; then
8116 ac_mid
=`expr 2 '*' $ac_mid`
8118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8128 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8129 # Binary search between lo and hi bounds.
8130 while test "x$ac_lo" != "x$ac_hi"; do
8131 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8132 cat >conftest.
$ac_ext <<_ACEOF
8135 cat confdefs.h
>>conftest.
$ac_ext
8136 cat >>conftest.
$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 $ac_includes_default
8142 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8149 rm -f conftest.
$ac_objext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151 (eval $ac_compile) 2>conftest.er1
8153 grep -v '^ *+' conftest.er1
>conftest.err
8155 cat conftest.err
>&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try
='test -z "$ac_c_werror_flag"
8159 || test ! -s conftest.err'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; } &&
8165 { ac_try
='test -s conftest.$ac_objext'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.
$ac_ext >&5
8176 ac_lo
=`expr '(' $ac_mid ')' + 1`
8178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8181 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8183 See \`config.log' for more details." >&5
8184 echo "$as_me: error: cannot compute sizeof (float), 77
8185 See \`config.log' for more details." >&2;}
8186 { (exit 1); exit 1; }; } ;;
8189 if test "$cross_compiling" = yes; then
8190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8191 See \`config.log' for more details." >&5
8192 echo "$as_me: error: cannot run test program while cross compiling
8193 See \`config.log' for more details." >&2;}
8194 { (exit 1); exit 1; }; }
8196 cat >conftest.
$ac_ext <<_ACEOF
8199 cat confdefs.h
>>conftest.
$ac_ext
8200 cat >>conftest.
$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8203 long longval () { return (long) (sizeof (float)); }
8204 unsigned long ulongval () { return (long) (sizeof (float)); }
8211 FILE *f = fopen ("conftest.val", "w");
8214 if (((long) (sizeof (float))) < 0)
8216 long i = longval ();
8217 if (i != ((long) (sizeof (float))))
8219 fprintf (f, "%ld\n", i);
8223 unsigned long i = ulongval ();
8224 if (i != ((long) (sizeof (float))))
8226 fprintf (f, "%lu\n", i);
8228 exit (ferror (f) || fclose (f) != 0);
8234 rm -f conftest
$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_sizeof_float
=`cat conftest.val`
8247 echo "$as_me: program exited with status $ac_status" >&5
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.
$ac_ext >&5
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (float), 77
8255 See \`config.log' for more details." >&2;}
8256 { (exit 1); exit 1; }; }
8258 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8263 ac_cv_sizeof_float
=0
8266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8267 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8268 cat >>confdefs.h
<<_ACEOF
8269 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8273 echo "$as_me:$LINENO: checking for double" >&5
8274 echo $ECHO_N "checking for double... $ECHO_C" >&6
8275 if test "${ac_cv_type_double+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 cat >conftest.
$ac_ext <<_ACEOF
8281 cat confdefs.h
>>conftest.
$ac_ext
8282 cat >>conftest.
$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 $ac_includes_default
8290 if (sizeof (double))
8296 rm -f conftest.
$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8300 grep -v '^ *+' conftest.er1
>conftest.err
8302 cat conftest.err
>&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try
='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try
='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_type_double
=yes
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.
$ac_ext >&5
8323 ac_cv_type_double
=no
8325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8328 echo "${ECHO_T}$ac_cv_type_double" >&6
8330 echo "$as_me:$LINENO: checking size of double" >&5
8331 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8332 if test "${ac_cv_sizeof_double+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 if test "$ac_cv_type_double" = yes; then
8336 # The cast to unsigned long works around a bug in the HP C Compiler
8337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8339 # This bug is HP SR number 8606223364.
8340 if test "$cross_compiling" = yes; then
8341 # Depending upon the size, compute the lo and hi bounds.
8342 cat >conftest.
$ac_ext <<_ACEOF
8345 cat confdefs.h
>>conftest.
$ac_ext
8346 cat >>conftest.
$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8352 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8359 rm -f conftest.
$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>conftest.er1
8363 grep -v '^ *+' conftest.er1
>conftest.err
8365 cat conftest.err
>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try
='test -z "$ac_c_werror_flag"
8369 || test ! -s conftest.err'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try
='test -s conftest.$ac_objext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8383 cat >conftest.
$ac_ext <<_ACEOF
8386 cat confdefs.h
>>conftest.
$ac_ext
8387 cat >>conftest.
$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8393 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8400 rm -f conftest.
$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1
>conftest.err
8406 cat conftest.err
>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try
='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try
='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_hi
=$ac_mid; break
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.
$ac_ext >&5
8427 ac_lo
=`expr $ac_mid + 1`
8428 if test $ac_lo -le $ac_mid; then
8432 ac_mid
=`expr 2 '*' $ac_mid + 1`
8434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.
$ac_ext >&5
8440 cat >conftest.
$ac_ext <<_ACEOF
8443 cat confdefs.h
>>conftest.
$ac_ext
8444 cat >>conftest.
$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8450 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8457 rm -f conftest.
$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>conftest.er1
8461 grep -v '^ *+' conftest.er1
>conftest.err
8463 cat conftest.err
>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try
='test -z "$ac_c_werror_flag"
8467 || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try
='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8481 cat >conftest.
$ac_ext <<_ACEOF
8484 cat confdefs.h
>>conftest.
$ac_ext
8485 cat >>conftest.
$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8491 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8498 rm -f conftest.
$ac_objext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500 (eval $ac_compile) 2>conftest.er1
8502 grep -v '^ *+' conftest.er1
>conftest.err
8504 cat conftest.err
>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try
='test -z "$ac_c_werror_flag"
8508 || test ! -s conftest.err'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; } &&
8514 { ac_try
='test -s conftest.$ac_objext'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_lo
=$ac_mid; break
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.
$ac_ext >&5
8525 ac_hi
=`expr '(' $ac_mid ')' - 1`
8526 if test $ac_mid -le $ac_hi; then
8530 ac_mid
=`expr 2 '*' $ac_mid`
8532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.
$ac_ext >&5
8540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8543 # Binary search between lo and hi bounds.
8544 while test "x$ac_lo" != "x$ac_hi"; do
8545 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8546 cat >conftest.
$ac_ext <<_ACEOF
8549 cat confdefs.h
>>conftest.
$ac_ext
8550 cat >>conftest.
$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8556 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8563 rm -f conftest.
$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>conftest.er1
8567 grep -v '^ *+' conftest.er1
>conftest.err
8569 cat conftest.err
>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try
='test -z "$ac_c_werror_flag"
8573 || test ! -s conftest.err'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; } &&
8579 { ac_try
='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.
$ac_ext >&5
8590 ac_lo
=`expr '(' $ac_mid ')' + 1`
8592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8597 See \`config.log' for more details." >&5
8598 echo "$as_me: error: cannot compute sizeof (double), 77
8599 See \`config.log' for more details." >&2;}
8600 { (exit 1); exit 1; }; } ;;
8603 if test "$cross_compiling" = yes; then
8604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8605 See \`config.log' for more details." >&5
8606 echo "$as_me: error: cannot run test program while cross compiling
8607 See \`config.log' for more details." >&2;}
8608 { (exit 1); exit 1; }; }
8610 cat >conftest.
$ac_ext <<_ACEOF
8613 cat confdefs.h
>>conftest.
$ac_ext
8614 cat >>conftest.
$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 long longval () { return (long) (sizeof (double)); }
8618 unsigned long ulongval () { return (long) (sizeof (double)); }
8625 FILE *f = fopen ("conftest.val", "w");
8628 if (((long) (sizeof (double))) < 0)
8630 long i = longval ();
8631 if (i != ((long) (sizeof (double))))
8633 fprintf (f, "%ld\n", i);
8637 unsigned long i = ulongval ();
8638 if (i != ((long) (sizeof (double))))
8640 fprintf (f, "%lu\n", i);
8642 exit (ferror (f) || fclose (f) != 0);
8648 rm -f conftest
$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_sizeof_double
=`cat conftest.val`
8661 echo "$as_me: program exited with status $ac_status" >&5
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.
$ac_ext >&5
8666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (double), 77
8669 See \`config.log' for more details." >&2;}
8670 { (exit 1); exit 1; }; }
8672 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8677 ac_cv_sizeof_double
=0
8680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8681 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8682 cat >>confdefs.h
<<_ACEOF
8683 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8687 echo "$as_me:$LINENO: checking for fpos_t" >&5
8688 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8689 if test "${ac_cv_type_fpos_t+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 cat >conftest.
$ac_ext <<_ACEOF
8695 cat confdefs.h
>>conftest.
$ac_ext
8696 cat >>conftest.
$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8704 if (sizeof (fpos_t))
8710 rm -f conftest.
$ac_objext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8712 (eval $ac_compile) 2>conftest.er1
8714 grep -v '^ *+' conftest.er1
>conftest.err
8716 cat conftest.err
>&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try
='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try
='test -s conftest.$ac_objext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_type_fpos_t
=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.
$ac_ext >&5
8737 ac_cv_type_fpos_t
=no
8739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8742 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8744 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8745 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8746 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 if test "$ac_cv_type_fpos_t" = yes; then
8750 # The cast to unsigned long works around a bug in the HP C Compiler
8751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8753 # This bug is HP SR number 8606223364.
8754 if test "$cross_compiling" = yes; then
8755 # Depending upon the size, compute the lo and hi bounds.
8756 cat >conftest.
$ac_ext <<_ACEOF
8759 cat confdefs.h
>>conftest.
$ac_ext
8760 cat >>conftest.
$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8766 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8773 rm -f conftest.
$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>conftest.er1
8777 grep -v '^ *+' conftest.er1
>conftest.err
8779 cat conftest.err
>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try
='test -z "$ac_c_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try
='test -s conftest.$ac_objext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8797 cat >conftest.
$ac_ext <<_ACEOF
8800 cat confdefs.h
>>conftest.
$ac_ext
8801 cat >>conftest.
$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8807 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8814 rm -f conftest.
$ac_objext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 (eval $ac_compile) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1
>conftest.err
8820 cat conftest.err
>&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try
='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try
='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_hi
=$ac_mid; break
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.
$ac_ext >&5
8841 ac_lo
=`expr $ac_mid + 1`
8842 if test $ac_lo -le $ac_mid; then
8846 ac_mid
=`expr 2 '*' $ac_mid + 1`
8848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.
$ac_ext >&5
8854 cat >conftest.
$ac_ext <<_ACEOF
8857 cat confdefs.h
>>conftest.
$ac_ext
8858 cat >>conftest.
$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 $ac_includes_default
8864 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8871 rm -f conftest.
$ac_objext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873 (eval $ac_compile) 2>conftest.er1
8875 grep -v '^ *+' conftest.er1
>conftest.err
8877 cat conftest.err
>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try
='test -z "$ac_c_werror_flag"
8881 || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try
='test -s conftest.$ac_objext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8895 cat >conftest.
$ac_ext <<_ACEOF
8898 cat confdefs.h
>>conftest.
$ac_ext
8899 cat >>conftest.
$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8905 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8912 rm -f conftest.
$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8916 grep -v '^ *+' conftest.er1
>conftest.err
8918 cat conftest.err
>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try
='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try
='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_lo
=$ac_mid; break
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.
$ac_ext >&5
8939 ac_hi
=`expr '(' $ac_mid ')' - 1`
8940 if test $ac_mid -le $ac_hi; then
8944 ac_mid
=`expr 2 '*' $ac_mid`
8946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.
$ac_ext >&5
8954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8957 # Binary search between lo and hi bounds.
8958 while test "x$ac_lo" != "x$ac_hi"; do
8959 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8960 cat >conftest.
$ac_ext <<_ACEOF
8963 cat confdefs.h
>>conftest.
$ac_ext
8964 cat >>conftest.
$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966 $ac_includes_default
8970 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8977 rm -f conftest.
$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979 (eval $ac_compile) 2>conftest.er1
8981 grep -v '^ *+' conftest.er1
>conftest.err
8983 cat conftest.err
>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try
='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try
='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.
$ac_ext >&5
9004 ac_lo
=`expr '(' $ac_mid ')' + 1`
9006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9009 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9011 See \`config.log' for more details." >&5
9012 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9013 See \`config.log' for more details." >&2;}
9014 { (exit 1); exit 1; }; } ;;
9017 if test "$cross_compiling" = yes; then
9018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9019 See \`config.log' for more details." >&5
9020 echo "$as_me: error: cannot run test program while cross compiling
9021 See \`config.log' for more details." >&2;}
9022 { (exit 1); exit 1; }; }
9024 cat >conftest.
$ac_ext <<_ACEOF
9027 cat confdefs.h
>>conftest.
$ac_ext
9028 cat >>conftest.
$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 $ac_includes_default
9031 long longval () { return (long) (sizeof (fpos_t)); }
9032 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9039 FILE *f = fopen ("conftest.val", "w");
9042 if (((long) (sizeof (fpos_t))) < 0)
9044 long i = longval ();
9045 if (i != ((long) (sizeof (fpos_t))))
9047 fprintf (f, "%ld\n", i);
9051 unsigned long i = ulongval ();
9052 if (i != ((long) (sizeof (fpos_t))))
9054 fprintf (f, "%lu\n", i);
9056 exit (ferror (f) || fclose (f) != 0);
9062 rm -f conftest
$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9075 echo "$as_me: program exited with status $ac_status" >&5
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.
$ac_ext >&5
9080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9081 See \`config.log' for more details." >&5
9082 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9083 See \`config.log' for more details." >&2;}
9084 { (exit 1); exit 1; }; }
9086 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9091 ac_cv_sizeof_fpos_t
=0
9094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9095 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9096 cat >>confdefs.h
<<_ACEOF
9097 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9102 echo "$as_me:$LINENO: checking for long long support" >&5
9103 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9105 cat >conftest.
$ac_ext <<_ACEOF
9108 cat confdefs.h
>>conftest.
$ac_ext
9109 cat >>conftest.
$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9115 long long x; x = (long long)0;
9120 rm -f conftest.
$ac_objext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9122 (eval $ac_compile) 2>conftest.er1
9124 grep -v '^ *+' conftest.er1
>conftest.err
9126 cat conftest.err
>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try
='test -z "$ac_c_werror_flag"
9130 || test ! -s conftest.err'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
9136 { ac_try
='test -s conftest.$ac_objext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9144 cat >>confdefs.h
<<\_ACEOF
9145 #define HAVE_LONG_LONG 1
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.
$ac_ext >&5
9155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9156 echo "$as_me:$LINENO: result: $have_long_long" >&5
9157 echo "${ECHO_T}$have_long_long" >&6
9158 if test "$have_long_long" = yes ; then
9159 echo "$as_me:$LINENO: checking for long long" >&5
9160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9161 if test "${ac_cv_type_long_long+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.
$ac_ext <<_ACEOF
9167 cat confdefs.h
>>conftest.
$ac_ext
9168 cat >>conftest.
$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 $ac_includes_default
9174 if ((long long *) 0)
9176 if (sizeof (long long))
9182 rm -f conftest.
$ac_objext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9184 (eval $ac_compile) 2>conftest.er1
9186 grep -v '^ *+' conftest.er1
>conftest.err
9188 cat conftest.err
>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try
='test -z "$ac_c_werror_flag"
9192 || test ! -s conftest.err'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try
='test -s conftest.$ac_objext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_type_long_long
=yes
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.
$ac_ext >&5
9209 ac_cv_type_long_long
=no
9211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9216 echo "$as_me:$LINENO: checking size of long long" >&5
9217 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9218 if test "${ac_cv_sizeof_long_long+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 if test "$ac_cv_type_long_long" = yes; then
9222 # The cast to unsigned long works around a bug in the HP C Compiler
9223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9225 # This bug is HP SR number 8606223364.
9226 if test "$cross_compiling" = yes; then
9227 # Depending upon the size, compute the lo and hi bounds.
9228 cat >conftest.
$ac_ext <<_ACEOF
9231 cat confdefs.h
>>conftest.
$ac_ext
9232 cat >>conftest.
$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9245 rm -f conftest.
$ac_objext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247 (eval $ac_compile) 2>conftest.er1
9249 grep -v '^ *+' conftest.er1
>conftest.err
9251 cat conftest.err
>&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try
='test -z "$ac_c_werror_flag"
9255 || test ! -s conftest.err'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; } &&
9261 { ac_try
='test -s conftest.$ac_objext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9269 cat >conftest.
$ac_ext <<_ACEOF
9272 cat confdefs.h
>>conftest.
$ac_ext
9273 cat >>conftest.
$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 $ac_includes_default
9279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9286 rm -f conftest.
$ac_objext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9288 (eval $ac_compile) 2>conftest.er1
9290 grep -v '^ *+' conftest.er1
>conftest.err
9292 cat conftest.err
>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try
='test -z "$ac_c_werror_flag"
9296 || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try
='test -s conftest.$ac_objext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_hi
=$ac_mid; break
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.
$ac_ext >&5
9313 ac_lo
=`expr $ac_mid + 1`
9314 if test $ac_lo -le $ac_mid; then
9318 ac_mid
=`expr 2 '*' $ac_mid + 1`
9320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.
$ac_ext >&5
9326 cat >conftest.
$ac_ext <<_ACEOF
9329 cat confdefs.h
>>conftest.
$ac_ext
9330 cat >>conftest.
$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9343 rm -f conftest.
$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>conftest.er1
9347 grep -v '^ *+' conftest.er1
>conftest.err
9349 cat conftest.err
>&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try
='test -z "$ac_c_werror_flag"
9353 || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try
='test -s conftest.$ac_objext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9367 cat >conftest.
$ac_ext <<_ACEOF
9370 cat confdefs.h
>>conftest.
$ac_ext
9371 cat >>conftest.
$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9384 rm -f conftest.
$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1
>conftest.err
9390 cat conftest.err
>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try
='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try
='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_lo
=$ac_mid; break
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.
$ac_ext >&5
9411 ac_hi
=`expr '(' $ac_mid ')' - 1`
9412 if test $ac_mid -le $ac_hi; then
9416 ac_mid
=`expr 2 '*' $ac_mid`
9418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.
$ac_ext >&5
9426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9429 # Binary search between lo and hi bounds.
9430 while test "x$ac_lo" != "x$ac_hi"; do
9431 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9432 cat >conftest.
$ac_ext <<_ACEOF
9435 cat confdefs.h
>>conftest.
$ac_ext
9436 cat >>conftest.
$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9442 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9449 rm -f conftest.
$ac_objext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>conftest.er1
9453 grep -v '^ *+' conftest.er1
>conftest.err
9455 cat conftest.err
>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try
='test -z "$ac_c_werror_flag"
9459 || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try
='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.
$ac_ext >&5
9476 ac_lo
=`expr '(' $ac_mid ')' + 1`
9478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9481 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9483 See \`config.log' for more details." >&5
9484 echo "$as_me: error: cannot compute sizeof (long long), 77
9485 See \`config.log' for more details." >&2;}
9486 { (exit 1); exit 1; }; } ;;
9489 if test "$cross_compiling" = yes; then
9490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9491 See \`config.log' for more details." >&5
9492 echo "$as_me: error: cannot run test program while cross compiling
9493 See \`config.log' for more details." >&2;}
9494 { (exit 1); exit 1; }; }
9496 cat >conftest.
$ac_ext <<_ACEOF
9499 cat confdefs.h
>>conftest.
$ac_ext
9500 cat >>conftest.
$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9503 long longval () { return (long) (sizeof (long long)); }
9504 unsigned long ulongval () { return (long) (sizeof (long long)); }
9511 FILE *f = fopen ("conftest.val", "w");
9514 if (((long) (sizeof (long long))) < 0)
9516 long i = longval ();
9517 if (i != ((long) (sizeof (long long))))
9519 fprintf (f, "%ld\n", i);
9523 unsigned long i = ulongval ();
9524 if (i != ((long) (sizeof (long long))))
9526 fprintf (f, "%lu\n", i);
9528 exit (ferror (f) || fclose (f) != 0);
9534 rm -f conftest
$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_sizeof_long_long
=`cat conftest.val`
9547 echo "$as_me: program exited with status $ac_status" >&5
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.
$ac_ext >&5
9552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9553 See \`config.log' for more details." >&5
9554 echo "$as_me: error: cannot compute sizeof (long long), 77
9555 See \`config.log' for more details." >&2;}
9556 { (exit 1); exit 1; }; }
9558 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9563 ac_cv_sizeof_long_long
=0
9566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9567 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9568 cat >>confdefs.h
<<_ACEOF
9569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9575 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
9576 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
9578 cat >conftest.
$ac_ext <<_ACEOF
9581 cat confdefs.h
>>conftest.
$ac_ext
9582 cat >>conftest.
$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9588 uintptr_t x; x = (uintptr_t)0;
9593 rm -f conftest.
$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9597 grep -v '^ *+' conftest.er1
>conftest.err
9599 cat conftest.err
>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try
='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try
='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9617 cat >>confdefs.h
<<\_ACEOF
9618 #define HAVE_UINTPTR_T 1
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.
$ac_ext >&5
9628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9629 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
9630 echo "${ECHO_T}$have_uintptr_t" >&6
9631 if test "$have_uintptr_t" = yes ; then
9632 echo "$as_me:$LINENO: checking for uintptr_t" >&5
9633 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
9634 if test "${ac_cv_type_uintptr_t+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 cat >conftest.
$ac_ext <<_ACEOF
9640 cat confdefs.h
>>conftest.
$ac_ext
9641 cat >>conftest.
$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9647 if ((uintptr_t *) 0)
9649 if (sizeof (uintptr_t))
9655 rm -f conftest.
$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>conftest.er1
9659 grep -v '^ *+' conftest.er1
>conftest.err
9661 cat conftest.err
>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try
='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try
='test -s conftest.$ac_objext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_type_uintptr_t
=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.
$ac_ext >&5
9682 ac_cv_type_uintptr_t
=no
9684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9686 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
9687 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
9689 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
9690 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
9691 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 if test "$ac_cv_type_uintptr_t" = yes; then
9695 # The cast to unsigned long works around a bug in the HP C Compiler
9696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9698 # This bug is HP SR number 8606223364.
9699 if test "$cross_compiling" = yes; then
9700 # Depending upon the size, compute the lo and hi bounds.
9701 cat >conftest.
$ac_ext <<_ACEOF
9704 cat confdefs.h
>>conftest.
$ac_ext
9705 cat >>conftest.
$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9711 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
9718 rm -f conftest.
$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1
>conftest.err
9724 cat conftest.err
>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try
='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try
='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9742 cat >conftest.
$ac_ext <<_ACEOF
9745 cat confdefs.h
>>conftest.
$ac_ext
9746 cat >>conftest.
$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9752 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9759 rm -f conftest.
$ac_objext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761 (eval $ac_compile) 2>conftest.er1
9763 grep -v '^ *+' conftest.er1
>conftest.err
9765 cat conftest.err
>&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try
='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try
='test -s conftest.$ac_objext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_hi
=$ac_mid; break
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.
$ac_ext >&5
9786 ac_lo
=`expr $ac_mid + 1`
9787 if test $ac_lo -le $ac_mid; then
9791 ac_mid
=`expr 2 '*' $ac_mid + 1`
9793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9799 cat >conftest.
$ac_ext <<_ACEOF
9802 cat confdefs.h
>>conftest.
$ac_ext
9803 cat >>conftest.
$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 $ac_includes_default
9809 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
9816 rm -f conftest.
$ac_objext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9820 grep -v '^ *+' conftest.er1
>conftest.err
9822 cat conftest.err
>&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try
='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try
='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9840 cat >conftest.
$ac_ext <<_ACEOF
9843 cat confdefs.h
>>conftest.
$ac_ext
9844 cat >>conftest.
$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9850 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
9857 rm -f conftest.
$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>conftest.er1
9861 grep -v '^ *+' conftest.er1
>conftest.err
9863 cat conftest.err
>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try
='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try
='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_lo
=$ac_mid; break
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.
$ac_ext >&5
9884 ac_hi
=`expr '(' $ac_mid ')' - 1`
9885 if test $ac_mid -le $ac_hi; then
9889 ac_mid
=`expr 2 '*' $ac_mid`
9891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.
$ac_ext >&5
9899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9902 # Binary search between lo and hi bounds.
9903 while test "x$ac_lo" != "x$ac_hi"; do
9904 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9905 cat >conftest.
$ac_ext <<_ACEOF
9908 cat confdefs.h
>>conftest.
$ac_ext
9909 cat >>conftest.
$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 $ac_includes_default
9915 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9922 rm -f conftest.
$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924 (eval $ac_compile) 2>conftest.er1
9926 grep -v '^ *+' conftest.er1
>conftest.err
9928 cat conftest.err
>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try
='test -z "$ac_c_werror_flag"
9932 || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try
='test -s conftest.$ac_objext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.
$ac_ext >&5
9949 ac_lo
=`expr '(' $ac_mid ')' + 1`
9951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9954 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
9955 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
9956 See \`config.log' for more details." >&5
9957 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
9958 See \`config.log' for more details." >&2;}
9959 { (exit 1); exit 1; }; } ;;
9962 if test "$cross_compiling" = yes; then
9963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9964 See \`config.log' for more details." >&5
9965 echo "$as_me: error: cannot run test program while cross compiling
9966 See \`config.log' for more details." >&2;}
9967 { (exit 1); exit 1; }; }
9969 cat >conftest.
$ac_ext <<_ACEOF
9972 cat confdefs.h
>>conftest.
$ac_ext
9973 cat >>conftest.
$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9976 long longval () { return (long) (sizeof (uintptr_t)); }
9977 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
9984 FILE *f = fopen ("conftest.val", "w");
9987 if (((long) (sizeof (uintptr_t))) < 0)
9989 long i = longval ();
9990 if (i != ((long) (sizeof (uintptr_t))))
9992 fprintf (f, "%ld\n", i);
9996 unsigned long i = ulongval ();
9997 if (i != ((long) (sizeof (uintptr_t))))
9999 fprintf (f, "%lu\n", i);
10001 exit (ferror (f) || fclose (f) != 0);
10007 rm -f conftest
$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10020 echo "$as_me: program exited with status $ac_status" >&5
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.
$ac_ext >&5
10024 ( exit $ac_status )
10025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10026 See \`config.log' for more details." >&5
10027 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10028 See \`config.log' for more details." >&2;}
10029 { (exit 1); exit 1; }; }
10031 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10036 ac_cv_sizeof_uintptr_t
=0
10039 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10040 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10041 cat >>confdefs.h
<<_ACEOF
10042 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10048 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10049 echo "$as_me:$LINENO: checking size of off_t" >&5
10050 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10051 if test "${ac_cv_sizeof_off_t+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 if test "$cross_compiling" = yes; then
10055 ac_cv_sizeof_off_t
=4
10057 cat >conftest.
$ac_ext <<_ACEOF
10060 cat confdefs.h
>>conftest.
$ac_ext
10061 cat >>conftest.
$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10064 #include <sys/types.h>
10067 FILE *f=fopen("conftestval", "w");
10069 fprintf(f, "%d\n", sizeof(off_t));
10073 rm -f conftest
$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_sizeof_off_t
=`cat conftestval`
10086 echo "$as_me: program exited with status $ac_status" >&5
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.
$ac_ext >&5
10090 ( exit $ac_status )
10091 ac_cv_sizeof_off_t
=0
10093 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10099 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10101 cat >>confdefs.h
<<_ACEOF
10102 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10106 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10107 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10108 if test "$have_long_long" = yes -a \
10109 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10110 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10112 cat >>confdefs.h
<<\_ACEOF
10113 #define HAVE_LARGEFILE_SUPPORT 1
10116 echo "$as_me:$LINENO: result: yes" >&5
10117 echo "${ECHO_T}yes" >&6
10119 echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10123 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10124 echo "$as_me:$LINENO: checking size of time_t" >&5
10125 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10126 if test "${ac_cv_sizeof_time_t+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 if test "$cross_compiling" = yes; then
10130 ac_cv_sizeof_time_t
=4
10132 cat >conftest.
$ac_ext <<_ACEOF
10135 cat confdefs.h
>>conftest.
$ac_ext
10136 cat >>conftest.
$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10142 FILE *f=fopen("conftestval", "w");
10144 fprintf(f, "%d\n", sizeof(time_t));
10148 rm -f conftest
$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_sizeof_time_t
=`cat conftestval`
10161 echo "$as_me: program exited with status $ac_status" >&5
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.
$ac_ext >&5
10165 ( exit $ac_status )
10166 ac_cv_sizeof_time_t
=0
10168 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10174 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10176 cat >>confdefs.h
<<_ACEOF
10177 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10182 # if have pthread_t then define SIZEOF_PTHREAD_T
10184 if test "$ac_cv_kpthread" = "yes"
10185 then CC
="$CC -Kpthread"
10186 elif test "$ac_cv_kthread" = "yes"
10187 then CC
="$CC -Kthread"
10188 elif test "$ac_cv_pthread" = "yes"
10189 then CC
="$CC -pthread"
10191 echo "$as_me:$LINENO: checking for pthread_t" >&5
10192 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10194 cat >conftest.
$ac_ext <<_ACEOF
10197 cat confdefs.h
>>conftest.
$ac_ext
10198 cat >>conftest.
$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 #include <pthread.h>
10204 pthread_t x; x = *(pthread_t*)0;
10209 rm -f conftest.
$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10213 grep -v '^ *+' conftest.er1
>conftest.err
10215 cat conftest.err
>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try
='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try
='test -s conftest.$ac_objext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.
$ac_ext >&5
10237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10238 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10239 echo "${ECHO_T}$have_pthread_t" >&6
10240 if test "$have_pthread_t" = yes ; then
10241 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10242 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10243 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10244 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_sizeof_pthread_t
=4
10250 cat >conftest.
$ac_ext <<_ACEOF
10253 cat confdefs.h
>>conftest.
$ac_ext
10254 cat >>conftest.
$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10257 #include <pthread.h>
10260 FILE *f=fopen("conftestval", "w");
10262 fprintf(f, "%d\n", sizeof(pthread_t));
10266 rm -f conftest
$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_sizeof_pthread_t
=`cat conftestval`
10279 echo "$as_me: program exited with status $ac_status" >&5
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.
$ac_ext >&5
10283 ( exit $ac_status )
10284 ac_cv_sizeof_pthread_t
=0
10286 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10291 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10292 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10294 cat >>confdefs.h
<<_ACEOF
10295 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10301 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10302 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10303 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10304 if test "${enable_toolbox_glue+set}" = set; then
10305 enableval
="$enable_toolbox_glue"
10309 if test -z "$enable_toolbox_glue"
10311 case $ac_sys_system/$ac_sys_release in
10313 enable_toolbox_glue
="yes";;
10315 enable_toolbox_glue
="no";;
10318 case "$enable_toolbox_glue" in
10320 extra_machdep_objs
="Python/mactoolboxglue.o"
10321 extra_undefs
="-u _PyMac_Error"
10323 cat >>confdefs.h
<<\_ACEOF
10324 #define USE_TOOLBOX_OBJECT_GLUE 1
10329 extra_machdep_objs
=""
10333 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10334 echo "${ECHO_T}$enable_toolbox_glue" >&6
10337 case $ac_sys_system/$ac_sys_release in
10338 Darwin
/[01234567].
*)
10339 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10342 OTHER_LIBTOOL_OPT
=""
10347 case $ac_sys_system/$ac_sys_release in
10348 Darwin
/[01234567].
*)
10349 LIBTOOL_CRUFT
="-framework System -lcc_dynamic -arch_only ppc"
10350 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10351 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10353 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10354 if test ${gcc_version} '<' 4.0
10356 LIBTOOL_CRUFT
="-lcc_dynamic"
10360 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc'
10361 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10362 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10365 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10366 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10367 if test "$enable_framework"
10369 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10370 # -F. is needed to allow linking to the framework while
10371 # in the build location.
10373 cat >>confdefs.h
<<\_ACEOF
10374 #define WITH_NEXT_FRAMEWORK 1
10377 echo "$as_me:$LINENO: result: yes" >&5
10378 echo "${ECHO_T}yes" >&6
10380 echo "$as_me:$LINENO: result: no" >&5
10381 echo "${ECHO_T}no" >&6
10384 echo "$as_me:$LINENO: checking for dyld" >&5
10385 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10386 case $ac_sys_system/$ac_sys_release in
10389 cat >>confdefs.h
<<\_ACEOF
10390 #define WITH_DYLD 1
10393 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10394 echo "${ECHO_T}always on for Darwin" >&6
10397 echo "$as_me:$LINENO: result: no" >&5
10398 echo "${ECHO_T}no" >&6
10402 # Set info about shared libraries.
10408 # SO is the extension of shared libraries `(including the dot!)
10409 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10410 echo "$as_me:$LINENO: checking SO" >&5
10411 echo $ECHO_N "checking SO... $ECHO_C" >&6
10414 case $ac_sys_system in
10420 # this might also be a termcap variable, see #610332
10422 echo '====================================================================='
10424 echo '+ WARNING: You have set SO in your environment. +'
10425 echo '+ Do you really mean to change the extension for shared libraries? +'
10426 echo '+ Continuing in 10 seconds to let you to ponder. +'
10428 echo '====================================================================='
10431 echo "$as_me:$LINENO: result: $SO" >&5
10432 echo "${ECHO_T}$SO" >&6
10433 # LDSHARED is the ld *command* used to create shared library
10434 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10435 # (Shared libraries in this instance are shared modules to be loaded into
10436 # Python, as opposed to building Python itself as a shared library.)
10437 echo "$as_me:$LINENO: checking LDSHARED" >&5
10438 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10439 if test -z "$LDSHARED"
10441 case $ac_sys_system/$ac_sys_release in
10443 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10444 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10447 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10448 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10450 IRIX
/5*) LDSHARED
="ld -shared";;
10451 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10453 if test "$GCC" = "yes"
10454 then LDSHARED
='$(CC) -shared'
10455 else LDSHARED
='$(CC) -G';
10457 hp
*|HP
*) LDSHARED
="ld -b";;
10458 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10460 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10461 if test "$enable_framework" ; then
10462 # Link against the framework. All externals should be defined.
10463 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10464 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10466 # No framework. Ignore undefined symbols, assuming they come from Python
10467 LDSHARED
="$LDSHARED -undefined suppress"
10469 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10470 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10471 if test "$enable_framework" ; then
10472 # Link against the framework. All externals should be defined.
10473 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10474 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10476 # No framework, use the Python app as bundle-loader
10477 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10478 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10481 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10482 # This allows an extension to be used in any Python
10483 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10484 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10485 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10487 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10488 BLDSHARED
="$LDSHARED"
10490 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10491 if test "$enable_framework" ; then
10492 # Link against the framework. All externals should be defined.
10493 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10494 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10496 # No framework, use the Python app as bundle-loader
10497 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10498 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10502 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10503 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10505 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10507 LDSHARED
="$CC -shared ${LDFLAGS}"
10509 LDSHARED
="ld -Bshareable ${LDFLAGS}"
10511 NetBSD
*) LDSHARED
="cc -shared ${LDFLAGS}";;
10512 OpenUNIX
*|UnixWare
*)
10513 if test "$GCC" = "yes"
10514 then LDSHARED
='$(CC) -shared'
10515 else LDSHARED
='$(CC) -G'
10517 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
10518 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
10519 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
10520 atheos
*) LDSHARED
="gcc -shared";;
10524 echo "$as_me:$LINENO: result: $LDSHARED" >&5
10525 echo "${ECHO_T}$LDSHARED" >&6
10526 BLDSHARED
=${BLDSHARED-$LDSHARED}
10527 # CCSHARED are the C *flags* used to create objects to go into a shared
10528 # library (module) -- this is only needed for a few systems
10529 echo "$as_me:$LINENO: checking CCSHARED" >&5
10530 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
10531 if test -z "$CCSHARED"
10533 case $ac_sys_system/$ac_sys_release in
10534 SunOS
*) if test "$GCC" = yes;
10535 then CCSHARED
="-fPIC";
10536 else CCSHARED
="-xcode=pic32";
10538 hp
*|HP
*) if test "$GCC" = yes;
10539 then CCSHARED
="-fPIC";
10540 else CCSHARED
="+z";
10542 Linux
*|GNU
*) CCSHARED
="-fPIC";;
10543 BSD
/OS
*/4*) CCSHARED
="-fpic";;
10544 FreeBSD
*|NetBSD
*|OpenBSD
*) CCSHARED
="-fPIC";;
10545 OpenUNIX
*|UnixWare
*)
10546 if test "$GCC" = "yes"
10547 then CCSHARED
="-fPIC"
10548 else CCSHARED
="-KPIC"
10551 if test "$GCC" = "yes"
10552 then CCSHARED
="-fPIC"
10553 else CCSHARED
="-Kpic -belf"
10555 Monterey
*) CCSHARED
="-G";;
10556 IRIX
*/6*) case $CC in
10557 *gcc
*) CCSHARED
="-shared";;
10560 atheos
*) CCSHARED
="-fPIC";;
10563 echo "$as_me:$LINENO: result: $CCSHARED" >&5
10564 echo "${ECHO_T}$CCSHARED" >&6
10565 # LINKFORSHARED are the flags passed to the $(CC) command that links
10566 # the python executable -- this is only needed for a few systems
10567 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
10568 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
10569 if test -z "$LINKFORSHARED"
10571 case $ac_sys_system/$ac_sys_release in
10572 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
10574 LINKFORSHARED
="-Wl,-E -Wl,+s";;
10575 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
10576 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
10577 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
10578 # -u libsys_s pulls in all symbols in libsys
10580 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
10582 # not used by the core itself but which needs to be in the core so
10583 # that dynamically loaded extension modules have access to it.
10584 # -prebind is no longer used, because it actually seems to give a
10585 # slowdown in stead of a speedup, maybe due to the large number of
10586 # dynamic loads Python does.
10588 LINKFORSHARED
="$extra_undefs"
10589 if test "$enable_framework"
10591 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10593 LINKFORSHARED
="$LINKFORSHARED";;
10594 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
10595 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
10596 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
10597 FreeBSD
*|NetBSD
*|OpenBSD
*)
10598 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10600 LINKFORSHARED
="-Wl,--export-dynamic"
10602 SunOS
/5*) case $CC in
10604 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
10606 LINKFORSHARED
="-Xlinker --export-dynamic"
10610 if test $enable_shared = "no"
10612 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
10616 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
10617 echo "${ECHO_T}$LINKFORSHARED" >&6
10620 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
10621 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
10622 if test ! "$LIBRARY" = "$LDLIBRARY"
10624 case $ac_sys_system in
10626 # Cygwin needs CCSHARED when building extension DLLs
10627 # but not when building the interpreter DLL.
10628 CFLAGSFORSHARED
='';;
10630 CFLAGSFORSHARED
='$(CCSHARED)'
10633 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
10634 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
10636 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
10637 # library (with --enable-shared).
10638 # For platforms on which shared libraries are not allowed to have unresolved
10639 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
10640 # if it is not required, since it creates a dependency of the shared library
10641 # to LIBS. This, in turn, means that applications linking the shared libpython
10642 # don't need to link LIBS explicitly. The default should be only changed
10643 # on systems where this approach causes problems.
10645 echo "$as_me:$LINENO: checking SHLIBS" >&5
10646 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
10647 case "$ac_sys_system" in
10651 echo "$as_me:$LINENO: result: $SHLIBS" >&5
10652 echo "${ECHO_T}$SHLIBS" >&6
10655 # checks for libraries
10657 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 ac_check_lib_save_LIBS
=$LIBS
10664 cat >conftest.
$ac_ext <<_ACEOF
10667 cat confdefs.h
>>conftest.
$ac_ext
10668 cat >>conftest.
$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10671 /* Override any gcc2 internal prototype to avoid an error. */
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10686 rm -f conftest.
$ac_objext conftest
$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688 (eval $ac_link) 2>conftest.er1
10690 grep -v '^ *+' conftest.er1
>conftest.err
10692 cat conftest.err
>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try
='test -z "$ac_c_werror_flag"
10696 || test ! -s conftest.err'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try
='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_lib_dl_dlopen
=yes
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.
$ac_ext >&5
10713 ac_cv_lib_dl_dlopen
=no
10715 rm -f conftest.err conftest.
$ac_objext \
10716 conftest
$ac_exeext conftest.
$ac_ext
10717 LIBS
=$ac_check_lib_save_LIBS
10719 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10720 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10721 if test $ac_cv_lib_dl_dlopen = yes; then
10722 cat >>confdefs.h
<<_ACEOF
10723 #define HAVE_LIBDL 1
10729 # Dynamic linking for SunOS/Solaris and SYSV
10731 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 ac_check_lib_save_LIBS
=$LIBS
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 /* Override any gcc2 internal prototype to avoid an error. */
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10760 rm -f conftest.
$ac_objext conftest
$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762 (eval $ac_link) 2>conftest.er1
10764 grep -v '^ *+' conftest.er1
>conftest.err
10766 cat conftest.err
>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try
='test -z "$ac_c_werror_flag"
10770 || test ! -s conftest.err'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try
='test -s conftest$ac_exeext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_lib_dld_shl_load
=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.
$ac_ext >&5
10787 ac_cv_lib_dld_shl_load
=no
10789 rm -f conftest.err conftest.
$ac_objext \
10790 conftest
$ac_exeext conftest.
$ac_ext
10791 LIBS
=$ac_check_lib_save_LIBS
10793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10794 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10795 if test $ac_cv_lib_dld_shl_load = yes; then
10796 cat >>confdefs.h
<<_ACEOF
10797 #define HAVE_LIBDLD 1
10803 # Dynamic linking for HP-UX
10805 # only check for sem_ini if thread support is requested
10806 if test "$with_threads" = "yes" -o -z "$with_threads"; then
10807 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
10808 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
10809 if test "${ac_cv_search_sem_init+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 ac_func_search_save_LIBS
=$LIBS
10813 ac_cv_search_sem_init
=no
10814 cat >conftest.
$ac_ext <<_ACEOF
10817 cat confdefs.h
>>conftest.
$ac_ext
10818 cat >>conftest.
$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10836 rm -f conftest.
$ac_objext conftest
$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>conftest.er1
10840 grep -v '^ *+' conftest.er1
>conftest.err
10842 cat conftest.err
>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try
='test -z "$ac_c_werror_flag"
10846 || test ! -s conftest.err'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try
='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_search_sem_init
="none required"
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.
$ac_ext >&5
10864 rm -f conftest.err conftest.
$ac_objext \
10865 conftest
$ac_exeext conftest.
$ac_ext
10866 if test "$ac_cv_search_sem_init" = no
; then
10867 for ac_lib
in pthread rt posix4
; do
10868 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10869 cat >conftest.
$ac_ext <<_ACEOF
10872 cat confdefs.h
>>conftest.
$ac_ext
10873 cat >>conftest.
$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10876 /* Override any gcc2 internal prototype to avoid an error. */
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10891 rm -f conftest.
$ac_objext conftest
$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>conftest.er1
10895 grep -v '^ *+' conftest.er1
>conftest.err
10897 cat conftest.err
>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try
='test -z "$ac_c_werror_flag"
10901 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try
='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_search_sem_init
="-l$ac_lib"
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.
$ac_ext >&5
10920 rm -f conftest.err conftest.
$ac_objext \
10921 conftest
$ac_exeext conftest.
$ac_ext
10924 LIBS
=$ac_func_search_save_LIBS
10926 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
10927 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
10928 if test "$ac_cv_search_sem_init" != no
; then
10929 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
10932 # 'Real Time' functions on Solaris
10933 # posix4 on Solaris 2.6
10934 # pthread (first!) on Linux
10937 # check if we need libintl for locale functions
10938 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
10939 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
10940 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 ac_check_lib_save_LIBS
=$LIBS
10944 LIBS
="-lintl $LIBS"
10945 cat >conftest.
$ac_ext <<_ACEOF
10948 cat confdefs.h
>>conftest.
$ac_ext
10949 cat >>conftest.
$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10952 /* Override any gcc2 internal prototype to avoid an error. */
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char textdomain ();
10967 rm -f conftest.
$ac_objext conftest
$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>conftest.er1
10971 grep -v '^ *+' conftest.er1
>conftest.err
10973 cat conftest.err
>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try
='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try
='test -s conftest$ac_exeext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_lib_intl_textdomain
=yes
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.
$ac_ext >&5
10994 ac_cv_lib_intl_textdomain
=no
10996 rm -f conftest.err conftest.
$ac_objext \
10997 conftest
$ac_exeext conftest.
$ac_ext
10998 LIBS
=$ac_check_lib_save_LIBS
11000 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11001 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11002 if test $ac_cv_lib_intl_textdomain = yes; then
11004 cat >>confdefs.h
<<\_ACEOF
11005 #define WITH_LIBINTL 1
11011 # checks for system dependent C++ extensions support
11012 case "$ac_sys_system" in
11013 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11014 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11015 cat >conftest.
$ac_ext <<_ACEOF
11018 cat confdefs.h
>>conftest.
$ac_ext
11019 cat >>conftest.
$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 #include "/usr/lpp/xlC/include/load.h"
11025 loadAndInit("", 0, "")
11030 rm -f conftest.
$ac_objext conftest
$ac_exeext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032 (eval $ac_link) 2>conftest.er1
11034 grep -v '^ *+' conftest.er1
>conftest.err
11036 cat conftest.err
>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try
='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try
='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11053 cat >>confdefs.h
<<\_ACEOF
11054 #define AIX_GENUINE_CPLUSPLUS 1
11057 echo "$as_me:$LINENO: result: yes" >&5
11058 echo "${ECHO_T}yes" >&6
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.
$ac_ext >&5
11063 echo "$as_me:$LINENO: result: no" >&5
11064 echo "${ECHO_T}no" >&6
11066 rm -f conftest.err conftest.
$ac_objext \
11067 conftest
$ac_exeext conftest.
$ac_ext;;
11071 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11072 # BeOS' sockets are stashed in libnet.
11073 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11074 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11075 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 ac_check_lib_save_LIBS
=$LIBS
11080 cat >conftest.
$ac_ext <<_ACEOF
11083 cat confdefs.h
>>conftest.
$ac_ext
11084 cat >>conftest.
$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11087 /* Override any gcc2 internal prototype to avoid an error. */
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11102 rm -f conftest.
$ac_objext conftest
$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>conftest.er1
11106 grep -v '^ *+' conftest.er1
>conftest.err
11108 cat conftest.err
>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try
='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try
='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_cv_lib_nsl_t_open
=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.
$ac_ext >&5
11129 ac_cv_lib_nsl_t_open
=no
11131 rm -f conftest.err conftest.
$ac_objext \
11132 conftest
$ac_exeext conftest.
$ac_ext
11133 LIBS
=$ac_check_lib_save_LIBS
11135 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11136 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11137 if test $ac_cv_lib_nsl_t_open = yes; then
11141 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11142 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11143 if test "${ac_cv_lib_socket_socket+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 ac_check_lib_save_LIBS
=$LIBS
11147 LIBS
="-lsocket $LIBS $LIBS"
11148 cat >conftest.
$ac_ext <<_ACEOF
11151 cat confdefs.h
>>conftest.
$ac_ext
11152 cat >>conftest.
$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11170 rm -f conftest.
$ac_objext conftest
$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>conftest.er1
11174 grep -v '^ *+' conftest.er1
>conftest.err
11176 cat conftest.err
>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try
='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try
='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_lib_socket_socket
=yes
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.
$ac_ext >&5
11197 ac_cv_lib_socket_socket
=no
11199 rm -f conftest.err conftest.
$ac_objext \
11200 conftest
$ac_exeext conftest.
$ac_ext
11201 LIBS
=$ac_check_lib_save_LIBS
11203 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11204 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11205 if test $ac_cv_lib_socket_socket = yes; then
11206 LIBS
="-lsocket $LIBS"
11210 case "$ac_sys_system" in
11212 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11213 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11214 if test "${ac_cv_lib_net_socket+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 ac_check_lib_save_LIBS
=$LIBS
11218 LIBS
="-lnet $LIBS $LIBS"
11219 cat >conftest.
$ac_ext <<_ACEOF
11222 cat confdefs.h
>>conftest.
$ac_ext
11223 cat >>conftest.
$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11226 /* Override any gcc2 internal prototype to avoid an error. */
11230 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */
11241 rm -f conftest.
$ac_objext conftest
$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>conftest.er1
11245 grep -v '^ *+' conftest.er1
>conftest.err
11247 cat conftest.err
>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try
='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try
='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_net_socket
=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.
$ac_ext >&5
11268 ac_cv_lib_net_socket
=no
11270 rm -f conftest.err conftest.
$ac_objext \
11271 conftest
$ac_exeext conftest.
$ac_ext
11272 LIBS
=$ac_check_lib_save_LIBS
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11275 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11276 if test $ac_cv_lib_net_socket = yes; then
11283 echo "$as_me:$LINENO: checking for --with-libs" >&5
11284 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11286 # Check whether --with-libs or --without-libs was given.
11287 if test "${with_libs+set}" = set; then
11288 withval
="$with_libs"
11290 echo "$as_me:$LINENO: result: $withval" >&5
11291 echo "${ECHO_T}$withval" >&6
11292 LIBS
="$withval $LIBS"
11295 echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11299 # Determine if signalmodule should be used.
11302 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11303 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11305 # Check whether --with-signal-module or --without-signal-module was given.
11306 if test "${with_signal_module+set}" = set; then
11307 withval
="$with_signal_module"
11311 if test -z "$with_signal_module"
11312 then with_signal_module
="yes"
11314 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11315 echo "${ECHO_T}$with_signal_module" >&6
11317 if test "${with_signal_module}" = "yes"; then
11318 USE_SIGNAL_MODULE
=""
11321 USE_SIGNAL_MODULE
="#"
11322 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11325 # This is used to generate Setup.config
11327 USE_THREAD_MODULE
=""
11329 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11330 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11333 # Check whether --with-dec-threads or --without-dec-threads was given.
11334 if test "${with_dec_threads+set}" = set; then
11335 withval
="$with_dec_threads"
11337 echo "$as_me:$LINENO: result: $withval" >&5
11338 echo "${ECHO_T}$withval" >&6
11340 if test "${with_thread+set}" != set; then
11341 with_thread
="$withval";
11344 echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6
11348 # Templates for things AC_DEFINEd more than once.
11349 # For a single AC_DEFINE, no template is needed.
11357 echo "$as_me:$LINENO: checking for --with-threads" >&5
11358 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11360 # Check whether --with-threads or --without-threads was given.
11361 if test "${with_threads+set}" = set; then
11362 withval
="$with_threads"
11366 # --with-thread is deprecated, but check for it anyway
11368 # Check whether --with-thread or --without-thread was given.
11369 if test "${with_thread+set}" = set; then
11370 withval
="$with_thread"
11371 with_threads
=$with_thread
11374 if test -z "$with_threads"
11375 then with_threads
="yes"
11377 echo "$as_me:$LINENO: result: $with_threads" >&5
11378 echo "${ECHO_T}$with_threads" >&6
11381 if test "$with_threads" = "no"
11383 USE_THREAD_MODULE
="#"
11384 elif test "$ac_cv_pthread_is_default" = yes
11386 cat >>confdefs.h
<<\_ACEOF
11387 #define WITH_THREAD 1
11390 # Defining _REENTRANT on system with POSIX threads should not hurt.
11391 cat >>confdefs.h
<<\_ACEOF
11392 #define _REENTRANT 1
11396 THREADOBJ
="Python/thread.o"
11397 elif test "$ac_cv_kpthread" = "yes"
11400 if test "$ac_cv_cxx_thread" = "yes"; then
11401 CXX
="$CXX -Kpthread"
11403 cat >>confdefs.h
<<\_ACEOF
11404 #define WITH_THREAD 1
11408 THREADOBJ
="Python/thread.o"
11409 elif test "$ac_cv_kthread" = "yes"
11412 if test "$ac_cv_cxx_thread" = "yes"; then
11413 CXX
="$CXX -Kthread"
11415 cat >>confdefs.h
<<\_ACEOF
11416 #define WITH_THREAD 1
11420 THREADOBJ
="Python/thread.o"
11421 elif test "$ac_cv_pthread" = "yes"
11424 if test "$ac_cv_cxx_thread" = "yes"; then
11425 CXX
="$CXX -pthread"
11427 cat >>confdefs.h
<<\_ACEOF
11428 #define WITH_THREAD 1
11432 THREADOBJ
="Python/thread.o"
11434 if test ! -z "$with_threads" -a -d "$with_threads"
11435 then LDFLAGS
="$LDFLAGS -L$with_threads"
11437 if test ! -z "$withval" -a -d "$withval"
11438 then LDFLAGS
="$LDFLAGS -L$withval"
11441 # According to the POSIX spec, a pthreads implementation must
11442 # define _POSIX_THREADS in unistd.h. Some apparently don't
11443 # (e.g. gnu pth with pthread emulation)
11444 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11445 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11446 cat >conftest.
$ac_ext <<_ACEOF
11449 cat confdefs.h
>>conftest.
$ac_ext
11450 cat >>conftest.
$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11453 #include <unistd.h>
11454 #ifdef _POSIX_THREADS
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 $EGREP "yes" >/dev
/null
2>&1; then
11461 unistd_defines_pthreads
=yes
11463 unistd_defines_pthreads
=no
11467 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11468 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11470 cat >>confdefs.h
<<\_ACEOF
11471 #define _REENTRANT 1
11474 if test "${ac_cv_header_cthreads_h+set}" = set; then
11475 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11476 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11477 if test "${ac_cv_header_cthreads_h+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11481 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11483 # Is the header compilable?
11484 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11485 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11486 cat >conftest.
$ac_ext <<_ACEOF
11489 cat confdefs.h
>>conftest.
$ac_ext
11490 cat >>conftest.
$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 $ac_includes_default
11493 #include <cthreads.h>
11495 rm -f conftest.
$ac_objext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>conftest.er1
11499 grep -v '^ *+' conftest.er1
>conftest.err
11501 cat conftest.err
>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try
='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try
='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_header_compiler
=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.
$ac_ext >&5
11522 ac_header_compiler
=no
11524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6
11528 # Is the header present?
11529 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
11530 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
11531 cat >conftest.
$ac_ext <<_ACEOF
11534 cat confdefs.h
>>conftest.
$ac_ext
11535 cat >>conftest.
$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <cthreads.h>
11539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11540 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11542 grep -v '^ *+' conftest.er1
>conftest.err
11544 cat conftest.err
>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev
/null
; then
11547 if test -s conftest.err
; then
11548 ac_cpp_err
=$ac_c_preproc_warn_flag
11549 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11556 if test -z "$ac_cpp_err"; then
11557 ac_header_preproc
=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.
$ac_ext >&5
11562 ac_header_preproc
=no
11564 rm -f conftest.err conftest.
$ac_ext
11565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11566 echo "${ECHO_T}$ac_header_preproc" >&6
11568 # So? What about this header?
11569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11571 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11572 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
11574 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
11575 ac_header_preproc
=yes
11578 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
11579 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
11581 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
11583 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11585 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
11587 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
11589 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
11592 ## ------------------------------------------------ ##
11593 ## Report this to http://www.python.org/python-bugs ##
11594 ## ------------------------------------------------ ##
11597 sed "s/^/$as_me: WARNING: /" >&2
11600 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11601 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11602 if test "${ac_cv_header_cthreads_h+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 ac_cv_header_cthreads_h
=$ac_header_preproc
11607 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11608 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11611 if test $ac_cv_header_cthreads_h = yes; then
11612 cat >>confdefs.h
<<\_ACEOF
11613 #define WITH_THREAD 1
11616 cat >>confdefs.h
<<\_ACEOF
11617 #define C_THREADS 1
11621 cat >>confdefs.h
<<\_ACEOF
11622 #define HURD_C_THREADS 1
11625 LIBS
="$LIBS -lthreads"
11626 THREADOBJ
="Python/thread.o"
11629 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11630 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11631 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11632 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11638 # Is the header compilable?
11639 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
11640 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
11641 cat >conftest.
$ac_ext <<_ACEOF
11644 cat confdefs.h
>>conftest.
$ac_ext
11645 cat >>conftest.
$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11648 #include <mach/cthreads.h>
11650 rm -f conftest.
$ac_objext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652 (eval $ac_compile) 2>conftest.er1
11654 grep -v '^ *+' conftest.er1
>conftest.err
11656 cat conftest.err
>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try
='test -z "$ac_c_werror_flag"
11660 || test ! -s conftest.err'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try
='test -s conftest.$ac_objext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_header_compiler
=yes
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.
$ac_ext >&5
11677 ac_header_compiler
=no
11679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11681 echo "${ECHO_T}$ac_header_compiler" >&6
11683 # Is the header present?
11684 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
11685 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
11686 cat >conftest.
$ac_ext <<_ACEOF
11689 cat confdefs.h
>>conftest.
$ac_ext
11690 cat >>conftest.
$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <mach/cthreads.h>
11694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11697 grep -v '^ *+' conftest.er1
>conftest.err
11699 cat conftest.err
>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } >/dev
/null
; then
11702 if test -s conftest.err
; then
11703 ac_cpp_err
=$ac_c_preproc_warn_flag
11704 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11711 if test -z "$ac_cpp_err"; then
11712 ac_header_preproc
=yes
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.
$ac_ext >&5
11717 ac_header_preproc
=no
11719 rm -f conftest.err conftest.
$ac_ext
11720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11721 echo "${ECHO_T}$ac_header_preproc" >&6
11723 # So? What about this header?
11724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11727 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
11729 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
11730 ac_header_preproc
=yes
11733 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
11734 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
11736 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
11738 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11740 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
11742 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
11744 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
11747 ## ------------------------------------------------ ##
11748 ## Report this to http://www.python.org/python-bugs ##
11749 ## ------------------------------------------------ ##
11752 sed "s/^/$as_me: WARNING: /" >&2
11755 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11756 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11757 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
11762 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11763 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11766 if test $ac_cv_header_mach_cthreads_h = yes; then
11767 cat >>confdefs.h
<<\_ACEOF
11768 #define WITH_THREAD 1
11771 cat >>confdefs.h
<<\_ACEOF
11772 #define C_THREADS 1
11776 cat >>confdefs.h
<<\_ACEOF
11777 #define MACH_C_THREADS 1
11780 THREADOBJ
="Python/thread.o"
11783 echo "$as_me:$LINENO: checking for --with-pth" >&5
11784 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
11786 # Check whether --with-pth or --without-pth was given.
11787 if test "${with_pth+set}" = set; then
11788 withval
="$with_pth"
11789 echo "$as_me:$LINENO: result: $withval" >&5
11790 echo "${ECHO_T}$withval" >&6
11791 cat >>confdefs.h
<<\_ACEOF
11792 #define WITH_THREAD 1
11796 cat >>confdefs.h
<<\_ACEOF
11801 THREADOBJ
="Python/thread.o"
11803 echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6
11806 # Just looking for pthread_create in libpthread is not enough:
11807 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
11808 # So we really have to include pthread.h, and then link.
11810 LIBS
="$LIBS -lpthread"
11811 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
11812 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
11813 cat >conftest.
$ac_ext <<_ACEOF
11816 cat confdefs.h
>>conftest.
$ac_ext
11817 cat >>conftest.
$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <pthread.h>
11821 void * start_routine (void *arg) { exit (0); }
11826 pthread_create (NULL, NULL, start_routine, NULL)
11831 rm -f conftest.
$ac_objext conftest
$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>conftest.er1
11835 grep -v '^ *+' conftest.er1
>conftest.err
11837 cat conftest.err
>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try
='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try
='test -s conftest$ac_exeext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11854 echo "$as_me:$LINENO: result: yes" >&5
11855 echo "${ECHO_T}yes" >&6
11856 cat >>confdefs.h
<<\_ACEOF
11857 #define WITH_THREAD 1
11861 THREADOBJ
="Python/thread.o"
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.
$ac_ext >&5
11868 echo "$as_me:$LINENO: checking for pthread_detach" >&5
11869 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
11870 if test "${ac_cv_func_pthread_detach+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.
$ac_ext <<_ACEOF
11876 cat confdefs.h
>>conftest.
$ac_ext
11877 cat >>conftest.
$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* System header to define __stub macros and hopefully few prototypes,
11880 which can conflict with char pthread_detach (); below.
11881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11882 <limits.h> exists even on freestanding compilers. Under hpux,
11883 including <limits.h> includes <sys/time.h> and causes problems
11884 checking for functions defined therein. */
11885 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
11886 # include <limits.h>
11888 # include <assert.h>
11890 /* Override any gcc2 internal prototype to avoid an error. */
11895 /* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11897 char pthread_detach ();
11898 /* The GNU C library defines this for functions which it implements
11899 to always fail with ENOSYS. Some functions are actually named
11900 something starting with __ and the normal name is an alias. */
11901 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
11904 char (*f) () = pthread_detach;
11913 return f != pthread_detach;
11918 rm -f conftest.
$ac_objext conftest
$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1
>conftest.err
11924 cat conftest.err
>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try
='test -z "$ac_c_werror_flag"
11928 || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try
='test -s conftest$ac_exeext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ac_cv_func_pthread_detach
=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.
$ac_ext >&5
11945 ac_cv_func_pthread_detach
=no
11947 rm -f conftest.err conftest.
$ac_objext \
11948 conftest
$ac_exeext conftest.
$ac_ext
11950 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
11951 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
11952 if test $ac_cv_func_pthread_detach = yes; then
11953 cat >>confdefs.h
<<\_ACEOF
11954 #define WITH_THREAD 1
11958 THREADOBJ
="Python/thread.o"
11961 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11962 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
11963 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
11964 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
11968 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
11970 # Is the header compilable?
11971 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
11972 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
11973 cat >conftest.
$ac_ext <<_ACEOF
11976 cat confdefs.h
>>conftest.
$ac_ext
11977 cat >>conftest.
$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 $ac_includes_default
11980 #include <atheos/threads.h>
11982 rm -f conftest.
$ac_objext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>conftest.er1
11986 grep -v '^ *+' conftest.er1
>conftest.err
11988 cat conftest.err
>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try
='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try
='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_header_compiler
=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.
$ac_ext >&5
12009 ac_header_compiler
=no
12011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 echo "${ECHO_T}$ac_header_compiler" >&6
12015 # Is the header present?
12016 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12017 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12018 cat >conftest.
$ac_ext <<_ACEOF
12021 cat confdefs.h
>>conftest.
$ac_ext
12022 cat >>conftest.
$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 #include <atheos/threads.h>
12026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12027 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12029 grep -v '^ *+' conftest.er1
>conftest.err
12031 cat conftest.err
>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } >/dev
/null
; then
12034 if test -s conftest.err
; then
12035 ac_cpp_err
=$ac_c_preproc_warn_flag
12036 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12043 if test -z "$ac_cpp_err"; then
12044 ac_header_preproc
=yes
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.
$ac_ext >&5
12049 ac_header_preproc
=no
12051 rm -f conftest.err conftest.
$ac_ext
12052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12053 echo "${ECHO_T}$ac_header_preproc" >&6
12055 # So? What about this header?
12056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12058 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12059 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12061 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12062 ac_header_preproc
=yes
12065 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12066 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12068 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12070 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12072 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12074 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12076 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12079 ## ------------------------------------------------ ##
12080 ## Report this to http://www.python.org/python-bugs ##
12081 ## ------------------------------------------------ ##
12084 sed "s/^/$as_me: WARNING: /" >&2
12087 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12088 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12089 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12094 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12095 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12098 if test $ac_cv_header_atheos_threads_h = yes; then
12099 cat >>confdefs.h
<<\_ACEOF
12100 #define WITH_THREAD 1
12104 cat >>confdefs.h
<<\_ACEOF
12105 #define ATHEOS_THREADS 1
12108 THREADOBJ
="Python/thread.o"
12111 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12112 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12113 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12114 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12118 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12120 # Is the header compilable?
12121 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12122 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12123 cat >conftest.
$ac_ext <<_ACEOF
12126 cat confdefs.h
>>conftest.
$ac_ext
12127 cat >>conftest.
$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 $ac_includes_default
12130 #include <kernel/OS.h>
12132 rm -f conftest.
$ac_objext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134 (eval $ac_compile) 2>conftest.er1
12136 grep -v '^ *+' conftest.er1
>conftest.err
12138 cat conftest.err
>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try
='test -z "$ac_c_werror_flag"
12142 || test ! -s conftest.err'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try
='test -s conftest.$ac_objext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 ac_header_compiler
=yes
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.
$ac_ext >&5
12159 ac_header_compiler
=no
12161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12163 echo "${ECHO_T}$ac_header_compiler" >&6
12165 # Is the header present?
12166 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12167 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12168 cat >conftest.
$ac_ext <<_ACEOF
12171 cat confdefs.h
>>conftest.
$ac_ext
12172 cat >>conftest.
$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <kernel/OS.h>
12176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12177 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12179 grep -v '^ *+' conftest.er1
>conftest.err
12181 cat conftest.err
>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } >/dev
/null
; then
12184 if test -s conftest.err
; then
12185 ac_cpp_err
=$ac_c_preproc_warn_flag
12186 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12193 if test -z "$ac_cpp_err"; then
12194 ac_header_preproc
=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.
$ac_ext >&5
12199 ac_header_preproc
=no
12201 rm -f conftest.err conftest.
$ac_ext
12202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12203 echo "${ECHO_T}$ac_header_preproc" >&6
12205 # So? What about this header?
12206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12208 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12209 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12211 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12212 ac_header_preproc
=yes
12215 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12216 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12218 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12220 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12222 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12224 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12226 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12229 ## ------------------------------------------------ ##
12230 ## Report this to http://www.python.org/python-bugs ##
12231 ## ------------------------------------------------ ##
12234 sed "s/^/$as_me: WARNING: /" >&2
12237 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12238 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12239 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12244 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12245 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12248 if test $ac_cv_header_kernel_OS_h = yes; then
12249 cat >>confdefs.h
<<\_ACEOF
12250 #define WITH_THREAD 1
12254 cat >>confdefs.h
<<\_ACEOF
12255 #define BEOS_THREADS 1
12258 THREADOBJ
="Python/thread.o"
12261 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12262 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12263 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 ac_check_lib_save_LIBS
=$LIBS
12267 LIBS
="-lpthreads $LIBS"
12268 cat >conftest.
$ac_ext <<_ACEOF
12271 cat confdefs.h
>>conftest.
$ac_ext
12272 cat >>conftest.
$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 /* Override any gcc2 internal prototype to avoid an error. */
12279 /* We use char because int might match the return type of a gcc2
12280 builtin and then its argument prototype would still apply. */
12281 char pthread_create ();
12290 rm -f conftest.
$ac_objext conftest
$ac_exeext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12292 (eval $ac_link) 2>conftest.er1
12294 grep -v '^ *+' conftest.er1
>conftest.err
12296 cat conftest.err
>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try
='test -z "$ac_c_werror_flag"
12300 || test ! -s conftest.err'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; } &&
12306 { ac_try
='test -s conftest$ac_exeext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12312 ac_cv_lib_pthreads_pthread_create
=yes
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.
$ac_ext >&5
12317 ac_cv_lib_pthreads_pthread_create
=no
12319 rm -f conftest.err conftest.
$ac_objext \
12320 conftest
$ac_exeext conftest.
$ac_ext
12321 LIBS
=$ac_check_lib_save_LIBS
12323 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12324 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12325 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12326 cat >>confdefs.h
<<\_ACEOF
12327 #define WITH_THREAD 1
12331 LIBS
="$LIBS -lpthreads"
12332 THREADOBJ
="Python/thread.o"
12335 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12336 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12337 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 ac_check_lib_save_LIBS
=$LIBS
12342 cat >conftest.
$ac_ext <<_ACEOF
12345 cat confdefs.h
>>conftest.
$ac_ext
12346 cat >>conftest.
$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12349 /* Override any gcc2 internal prototype to avoid an error. */
12353 /* We use char because int might match the return type of a gcc2
12354 builtin and then its argument prototype would still apply. */
12355 char pthread_create ();
12364 rm -f conftest.
$ac_objext conftest
$ac_exeext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>conftest.er1
12368 grep -v '^ *+' conftest.er1
>conftest.err
12370 cat conftest.err
>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
12373 { ac_try
='test -z "$ac_c_werror_flag"
12374 || test ! -s conftest.err'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try
='test -s conftest$ac_exeext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_lib_c_r_pthread_create
=yes
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.
$ac_ext >&5
12391 ac_cv_lib_c_r_pthread_create
=no
12393 rm -f conftest.err conftest.
$ac_objext \
12394 conftest
$ac_exeext conftest.
$ac_ext
12395 LIBS
=$ac_check_lib_save_LIBS
12397 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12398 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12399 if test $ac_cv_lib_c_r_pthread_create = yes; then
12400 cat >>confdefs.h
<<\_ACEOF
12401 #define WITH_THREAD 1
12406 THREADOBJ
="Python/thread.o"
12409 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12410 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12411 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 ac_check_lib_save_LIBS
=$LIBS
12415 LIBS
="-lpthread $LIBS"
12416 cat >conftest.
$ac_ext <<_ACEOF
12419 cat confdefs.h
>>conftest.
$ac_ext
12420 cat >>conftest.
$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12423 /* Override any gcc2 internal prototype to avoid an error. */
12427 /* We use char because int might match the return type of a gcc2
12428 builtin and then its argument prototype would still apply. */
12429 char __pthread_create_system ();
12433 __pthread_create_system ();
12438 rm -f conftest.
$ac_objext conftest
$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440 (eval $ac_link) 2>conftest.er1
12442 grep -v '^ *+' conftest.er1
>conftest.err
12444 cat conftest.err
>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try
='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try
='test -s conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_lib_pthread___pthread_create_system
=yes
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.
$ac_ext >&5
12465 ac_cv_lib_pthread___pthread_create_system
=no
12467 rm -f conftest.err conftest.
$ac_objext \
12468 conftest
$ac_exeext conftest.
$ac_ext
12469 LIBS
=$ac_check_lib_save_LIBS
12471 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12472 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12473 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12474 cat >>confdefs.h
<<\_ACEOF
12475 #define WITH_THREAD 1
12479 LIBS
="$LIBS -lpthread"
12480 THREADOBJ
="Python/thread.o"
12483 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12484 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12485 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 ac_check_lib_save_LIBS
=$LIBS
12490 cat >conftest.
$ac_ext <<_ACEOF
12493 cat confdefs.h
>>conftest.
$ac_ext
12494 cat >>conftest.
$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any gcc2 internal prototype to avoid an error. */
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12503 char pthread_create ();
12512 rm -f conftest.
$ac_objext conftest
$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>conftest.er1
12516 grep -v '^ *+' conftest.er1
>conftest.err
12518 cat conftest.err
>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try
='test -z "$ac_c_werror_flag"
12522 || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try
='test -s conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_lib_cma_pthread_create
=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.
$ac_ext >&5
12539 ac_cv_lib_cma_pthread_create
=no
12541 rm -f conftest.err conftest.
$ac_objext \
12542 conftest
$ac_exeext conftest.
$ac_ext
12543 LIBS
=$ac_check_lib_save_LIBS
12545 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
12546 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
12547 if test $ac_cv_lib_cma_pthread_create = yes; then
12548 cat >>confdefs.h
<<\_ACEOF
12549 #define WITH_THREAD 1
12554 THREADOBJ
="Python/thread.o"
12557 USE_THREAD_MODULE
="#"
12576 rm -f conftest.err conftest.
$ac_objext \
12577 conftest
$ac_exeext conftest.
$ac_ext
12586 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
12587 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
12588 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 ac_check_lib_save_LIBS
=$LIBS
12593 cat >conftest.
$ac_ext <<_ACEOF
12596 cat confdefs.h
>>conftest.
$ac_ext
12597 cat >>conftest.
$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12600 /* Override any gcc2 internal prototype to avoid an error. */
12604 /* We use char because int might match the return type of a gcc2
12605 builtin and then its argument prototype would still apply. */
12615 rm -f conftest.
$ac_objext conftest
$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>conftest.er1
12619 grep -v '^ *+' conftest.er1
>conftest.err
12621 cat conftest.err
>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try
='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try
='test -s conftest$ac_exeext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_cv_lib_mpc_usconfig
=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.
$ac_ext >&5
12642 ac_cv_lib_mpc_usconfig
=no
12644 rm -f conftest.err conftest.
$ac_objext \
12645 conftest
$ac_exeext conftest.
$ac_ext
12646 LIBS
=$ac_check_lib_save_LIBS
12648 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
12649 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
12650 if test $ac_cv_lib_mpc_usconfig = yes; then
12651 cat >>confdefs.h
<<\_ACEOF
12652 #define WITH_THREAD 1
12656 THREADOBJ
="Python/thread.o"
12657 USE_THREAD_MODULE
=""
12661 if test "$posix_threads" != "yes"; then
12662 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
12663 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
12664 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 ac_check_lib_save_LIBS
=$LIBS
12668 LIBS
="-lthread $LIBS"
12669 cat >conftest.
$ac_ext <<_ACEOF
12672 cat confdefs.h
>>conftest.
$ac_ext
12673 cat >>conftest.
$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any gcc2 internal prototype to avoid an error. */
12680 /* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12682 char thr_create ();
12691 rm -f conftest.
$ac_objext conftest
$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>conftest.er1
12695 grep -v '^ *+' conftest.er1
>conftest.err
12697 cat conftest.err
>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try
='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try
='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_lib_thread_thr_create
=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.
$ac_ext >&5
12718 ac_cv_lib_thread_thr_create
=no
12720 rm -f conftest.err conftest.
$ac_objext \
12721 conftest
$ac_exeext conftest.
$ac_ext
12722 LIBS
=$ac_check_lib_save_LIBS
12724 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
12725 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
12726 if test $ac_cv_lib_thread_thr_create = yes; then
12727 cat >>confdefs.h
<<\_ACEOF
12728 #define WITH_THREAD 1
12731 LIBS
="$LIBS -lthread"
12732 THREADOBJ
="Python/thread.o"
12733 USE_THREAD_MODULE
=""
12738 if test "$USE_THREAD_MODULE" != "#"
12740 # If the above checks didn't disable threads, (at least) OSF1
12741 # needs this '-threads' argument during linking.
12742 case $ac_sys_system in
12743 OSF1
) LDLAST
=-threads;;
12748 if test "$posix_threads" = "yes"; then
12749 if test "$unistd_defines_pthreads" = "no"; then
12751 cat >>confdefs.h
<<\_ACEOF
12752 #define _POSIX_THREADS 1
12757 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
12758 case $ac_sys_system/$ac_sys_release in
12760 cat >>confdefs.h
<<\_ACEOF
12761 #define HAVE_PTHREAD_DESTRUCTOR 1
12766 cat >>confdefs.h
<<\_ACEOF
12767 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
12773 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
12774 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
12775 if test "${ac_cv_pthread_system_supported+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 if test "$cross_compiling" = yes; then
12779 ac_cv_pthread_system_supported
=no
12781 cat >conftest.
$ac_ext <<_ACEOF
12784 cat confdefs.h
>>conftest.
$ac_ext
12785 cat >>conftest.
$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 #include <pthread.h>
12788 void *foo(void *parm) {
12792 pthread_attr_t attr;
12794 if (pthread_attr_init(&attr)) exit(-1);
12795 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
12796 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
12800 rm -f conftest
$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_pthread_system_supported
=yes
12813 echo "$as_me: program exited with status $ac_status" >&5
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.
$ac_ext >&5
12817 ( exit $ac_status )
12818 ac_cv_pthread_system_supported
=no
12820 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12825 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
12826 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
12827 if test "$ac_cv_pthread_system_supported" = "yes"; then
12829 cat >>confdefs.h
<<\_ACEOF
12830 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
12835 for ac_func
in pthread_sigmask
12837 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12838 echo "$as_me:$LINENO: checking for $ac_func" >&5
12839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12840 if eval "test \"\${$as_ac_var+set}\" = set"; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 cat >conftest.
$ac_ext <<_ACEOF
12846 cat confdefs.h
>>conftest.
$ac_ext
12847 cat >>conftest.
$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12849 /* System header to define __stub macros and hopefully few prototypes,
12850 which can conflict with char $ac_func (); below.
12851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852 <limits.h> exists even on freestanding compilers. Under hpux,
12853 including <limits.h> includes <sys/time.h> and causes problems
12854 checking for functions defined therein. */
12855 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
12856 # include <limits.h>
12858 # include <assert.h>
12860 /* Override any gcc2 internal prototype to avoid an error. */
12865 /* We use char because int might match the return type of a gcc2
12866 builtin and then its argument prototype would still apply. */
12868 /* The GNU C library defines this for functions which it implements
12869 to always fail with ENOSYS. Some functions are actually named
12870 something starting with __ and the normal name is an alias. */
12871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12874 char (*f) () = $ac_func;
12883 return f != $ac_func;
12888 rm -f conftest.
$ac_objext conftest
$ac_exeext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12890 (eval $ac_link) 2>conftest.er1
12892 grep -v '^ *+' conftest.er1
>conftest.err
12894 cat conftest.err
>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try
='test -z "$ac_c_werror_flag"
12898 || test ! -s conftest.err'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try
='test -s conftest$ac_exeext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 eval "$as_ac_var=yes"
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.
$ac_ext >&5
12915 eval "$as_ac_var=no"
12917 rm -f conftest.err conftest.
$ac_objext \
12918 conftest
$ac_exeext conftest.
$ac_ext
12920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12922 if test `eval echo '${'$as_ac_var'}'` = yes; then
12923 cat >>confdefs.h
<<_ACEOF
12924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12926 case $ac_sys_system in
12929 cat >>confdefs.h
<<\_ACEOF
12930 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
12941 # Check for enable-ipv6
12944 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
12945 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
12946 # Check whether --enable-ipv6 or --disable-ipv6 was given.
12947 if test "${enable_ipv6+set}" = set; then
12948 enableval
="$enable_ipv6"
12949 case "$enableval" in
12951 echo "$as_me:$LINENO: result: no" >&5
12952 echo "${ECHO_T}no" >&6
12955 *) echo "$as_me:$LINENO: result: yes" >&5
12956 echo "${ECHO_T}yes" >&6
12957 cat >>confdefs.h
<<\_ACEOF
12958 #define ENABLE_IPV6 1
12966 if test "$cross_compiling" = yes; then
12967 echo "$as_me:$LINENO: result: no" >&5
12968 echo "${ECHO_T}no" >&6
12972 cat >conftest.
$ac_ext <<_ACEOF
12975 cat confdefs.h
>>conftest.
$ac_ext
12976 cat >>conftest.
$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12978 /* AF_INET6 available check */
12979 #include <sys/types.h>
12980 #include <sys/socket.h>
12983 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
12990 rm -f conftest
$ac_exeext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12992 (eval $ac_link) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 echo "$as_me:$LINENO: result: yes" >&5
13002 echo "${ECHO_T}yes" >&6
13005 echo "$as_me: program exited with status $ac_status" >&5
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.
$ac_ext >&5
13009 ( exit $ac_status )
13010 echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6
13014 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13017 if test "$ipv6" = "yes"; then
13018 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13019 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13020 cat >conftest.
$ac_ext <<_ACEOF
13023 cat confdefs.h
>>conftest.
$ac_ext
13024 cat >>conftest.
$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13026 #include <sys/types.h>
13027 #include <netinet/in.h>
13031 struct sockaddr_in6 x;
13037 rm -f conftest.
$ac_objext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039 (eval $ac_compile) 2>conftest.er1
13041 grep -v '^ *+' conftest.er1
>conftest.err
13043 cat conftest.err
>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try
='test -z "$ac_c_werror_flag"
13047 || test ! -s conftest.err'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try
='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 echo "$as_me:$LINENO: result: yes" >&5
13060 echo "${ECHO_T}yes" >&6
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.
$ac_ext >&5
13066 echo "$as_me:$LINENO: result: no" >&5
13067 echo "${ECHO_T}no" >&6
13070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13073 if test "$ipv6" = "yes"; then
13074 cat >>confdefs.h
<<\_ACEOF
13075 #define ENABLE_IPV6 1
13086 if test "$ipv6" = "yes"; then
13087 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13088 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13089 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13093 cat >conftest.
$ac_ext <<_ACEOF
13096 cat confdefs.h
>>conftest.
$ac_ext
13097 cat >>conftest.
$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 #include <netinet/in.h>
13101 #ifdef IPV6_INRIA_VERSION
13105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13106 $EGREP "yes" >/dev
/null
2>&1; then
13113 cat >conftest.
$ac_ext <<_ACEOF
13116 cat confdefs.h
>>conftest.
$ac_ext
13117 cat >>conftest.
$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13120 #include <netinet/in.h>
13125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13126 $EGREP "yes" >/dev
/null
2>&1; then
13129 ipv6libdir
=/usr
/local
/v
6/lib
13136 cat >conftest.
$ac_ext <<_ACEOF
13139 cat confdefs.h
>>conftest.
$ac_ext
13140 cat >>conftest.
$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13143 #include <features.h>
13144 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13149 $EGREP "yes" >/dev
/null
2>&1; then
13157 if test -d /usr
/inet6
; then
13160 ipv6libdir
=/usr
/inet
6/lib
13161 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13165 if test -f /etc
/netconfig
; then
13166 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13173 cat >conftest.
$ac_ext <<_ACEOF
13176 cat confdefs.h
>>conftest.
$ac_ext
13177 cat >>conftest.
$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 #include <sys/param.h>
13181 #ifdef _TOSHIBA_INET6
13185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13186 $EGREP "yes" >/dev
/null
2>&1; then
13189 ipv6libdir
=/usr
/local
/v
6/lib
13195 cat >conftest.
$ac_ext <<_ACEOF
13198 cat confdefs.h
>>conftest.
$ac_ext
13199 cat >>conftest.
$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 #include </usr/local/v6/include/sys/v6config.h>
13207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13208 $EGREP "yes" >/dev
/null
2>&1; then
13211 ipv6libdir
=/usr
/local
/v
6/lib
;
13212 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13218 cat >conftest.
$ac_ext <<_ACEOF
13221 cat confdefs.h
>>conftest.
$ac_ext
13222 cat >>conftest.
$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13225 #include <sys/param.h>
13226 #ifdef _ZETA_MINAMI_INET6
13230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13231 $EGREP "yes" >/dev
/null
2>&1; then
13234 ipv6libdir
=/usr
/local
/v
6/lib
13240 if test "$ipv6type" != "unknown"; then
13244 echo "$as_me:$LINENO: result: $ipv6type" >&5
13245 echo "${ECHO_T}$ipv6type" >&6
13248 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13249 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13250 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13251 echo "using lib$ipv6lib"
13253 if test $ipv6trylibc = "yes"; then
13256 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13257 echo "You need to fetch lib$ipv6lib.a from appropriate"
13258 echo 'ipv6 kit and compile beforehand.'
13264 # Check for --with-doc-strings
13265 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13266 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13268 # Check whether --with-doc-strings or --without-doc-strings was given.
13269 if test "${with_doc_strings+set}" = set; then
13270 withval
="$with_doc_strings"
13274 if test -z "$with_doc_strings"
13275 then with_doc_strings
="yes"
13277 if test "$with_doc_strings" != "no"
13280 cat >>confdefs.h
<<\_ACEOF
13281 #define WITH_DOC_STRINGS 1
13285 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13286 echo "${ECHO_T}$with_doc_strings" >&6
13288 # Check for Python-specific malloc support
13289 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13290 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13292 # Check whether --with-tsc or --without-tsc was given.
13293 if test "${with_tsc+set}" = set; then
13294 withval
="$with_tsc"
13296 if test "$withval" != no
13299 cat >>confdefs.h
<<\_ACEOF
13303 echo "$as_me:$LINENO: result: yes" >&5
13304 echo "${ECHO_T}yes" >&6
13305 else echo "$as_me:$LINENO: result: no" >&5
13306 echo "${ECHO_T}no" >&6
13309 echo "$as_me:$LINENO: result: no" >&5
13310 echo "${ECHO_T}no" >&6
13313 # Check for Python-specific malloc support
13314 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13315 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13317 # Check whether --with-pymalloc or --without-pymalloc was given.
13318 if test "${with_pymalloc+set}" = set; then
13319 withval
="$with_pymalloc"
13323 if test -z "$with_pymalloc"
13324 then with_pymalloc
="yes"
13326 if test "$with_pymalloc" != "no"
13329 cat >>confdefs.h
<<\_ACEOF
13330 #define WITH_PYMALLOC 1
13334 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13335 echo "${ECHO_T}$with_pymalloc" >&6
13337 # Check for --with-wctype-functions
13338 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13339 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13341 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13342 if test "${with_wctype_functions+set}" = set; then
13343 withval
="$with_wctype_functions"
13345 if test "$withval" != no
13348 cat >>confdefs.h
<<\_ACEOF
13349 #define WANT_WCTYPE_FUNCTIONS 1
13352 echo "$as_me:$LINENO: result: yes" >&5
13353 echo "${ECHO_T}yes" >&6
13354 else echo "$as_me:$LINENO: result: no" >&5
13355 echo "${ECHO_T}no" >&6
13358 echo "$as_me:$LINENO: result: no" >&5
13359 echo "${ECHO_T}no" >&6
13362 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13366 # the dlopen() function means we might want to use dynload_shlib.o. some
13367 # platforms, such as AIX, have dlopen(), but don't want to use it.
13369 for ac_func
in dlopen
13371 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13372 echo "$as_me:$LINENO: checking for $ac_func" >&5
13373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13374 if eval "test \"\${$as_ac_var+set}\" = set"; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 cat >conftest.
$ac_ext <<_ACEOF
13380 cat confdefs.h
>>conftest.
$ac_ext
13381 cat >>conftest.
$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 /* System header to define __stub macros and hopefully few prototypes,
13384 which can conflict with char $ac_func (); below.
13385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13386 <limits.h> exists even on freestanding compilers. Under hpux,
13387 including <limits.h> includes <sys/time.h> and causes problems
13388 checking for functions defined therein. */
13389 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
13390 # include <limits.h>
13392 # include <assert.h>
13394 /* Override any gcc2 internal prototype to avoid an error. */
13399 /* We use char because int might match the return type of a gcc2
13400 builtin and then its argument prototype would still apply. */
13402 /* The GNU C library defines this for functions which it implements
13403 to always fail with ENOSYS. Some functions are actually named
13404 something starting with __ and the normal name is an alias. */
13405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13408 char (*f) () = $ac_func;
13417 return f != $ac_func;
13422 rm -f conftest.
$ac_objext conftest
$ac_exeext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13424 (eval $ac_link) 2>conftest.er1
13426 grep -v '^ *+' conftest.er1
>conftest.err
13428 cat conftest.err
>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try
='test -z "$ac_c_werror_flag"
13432 || test ! -s conftest.err'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try
='test -s conftest$ac_exeext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 eval "$as_ac_var=yes"
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.
$ac_ext >&5
13449 eval "$as_ac_var=no"
13451 rm -f conftest.err conftest.
$ac_objext \
13452 conftest
$ac_exeext conftest.
$ac_ext
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13456 if test `eval echo '${'$as_ac_var'}'` = yes; then
13457 cat >>confdefs.h
<<_ACEOF
13458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13465 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13466 # loading of modules.
13468 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13469 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13470 if test -z "$DYNLOADFILE"
13472 case $ac_sys_system/$ac_sys_release in
13473 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13474 if test "$ac_cv_func_dlopen" = yes
13475 then DYNLOADFILE
="dynload_shlib.o"
13476 else DYNLOADFILE
="dynload_aix.o"
13479 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
13480 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
13481 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
13482 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
13484 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13485 # out any dynamic loading
13486 if test "$ac_cv_func_dlopen" = yes
13487 then DYNLOADFILE
="dynload_shlib.o"
13488 else DYNLOADFILE
="dynload_stub.o"
13493 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13494 echo "${ECHO_T}$DYNLOADFILE" >&6
13495 if test "$DYNLOADFILE" != "dynload_stub.o"
13498 cat >>confdefs.h
<<\_ACEOF
13499 #define HAVE_DYNAMIC_LOADING 1
13504 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
13507 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
13508 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
13509 if test -z "$MACHDEP_OBJS"
13511 MACHDEP_OBJS
=$extra_machdep_objs
13513 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
13515 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
13516 echo "${ECHO_T}MACHDEP_OBJS" >&6
13518 # checks for library functions
13593 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
13594 execv fork fpathconf ftime ftruncate \
13595 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
13596 getpriority getpwent getspnam getspent getsid getwd \
13597 kill killpg lchown lstat
mkfifo mknod mktime \
13598 mremap nice pathconf pause plock poll pthread_init \
13599 putenv readlink realpath \
13600 select setegid seteuid setgid \
13601 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
13602 sigaction siginterrupt sigrelse strftime \
13603 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
13604 truncate uname unsetenv utimes waitpid wcscoll _getpty
13606 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13607 echo "$as_me:$LINENO: checking for $ac_func" >&5
13608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13609 if eval "test \"\${$as_ac_var+set}\" = set"; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 cat >conftest.
$ac_ext <<_ACEOF
13615 cat confdefs.h
>>conftest.
$ac_ext
13616 cat >>conftest.
$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 /* System header to define __stub macros and hopefully few prototypes,
13619 which can conflict with char $ac_func (); below.
13620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13621 <limits.h> exists even on freestanding compilers. Under hpux,
13622 including <limits.h> includes <sys/time.h> and causes problems
13623 checking for functions defined therein. */
13624 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
13625 # include <limits.h>
13627 # include <assert.h>
13629 /* Override any gcc2 internal prototype to avoid an error. */
13634 /* We use char because int might match the return type of a gcc2
13635 builtin and then its argument prototype would still apply. */
13637 /* The GNU C library defines this for functions which it implements
13638 to always fail with ENOSYS. Some functions are actually named
13639 something starting with __ and the normal name is an alias. */
13640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13643 char (*f) () = $ac_func;
13652 return f != $ac_func;
13657 rm -f conftest.
$ac_objext conftest
$ac_exeext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13659 (eval $ac_link) 2>conftest.er1
13661 grep -v '^ *+' conftest.er1
>conftest.err
13663 cat conftest.err
>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try
='test -z "$ac_c_werror_flag"
13667 || test ! -s conftest.err'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try
='test -s conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 eval "$as_ac_var=yes"
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.
$ac_ext >&5
13684 eval "$as_ac_var=no"
13686 rm -f conftest.err conftest.
$ac_objext \
13687 conftest
$ac_exeext conftest.
$ac_ext
13689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13691 if test `eval echo '${'$as_ac_var'}'` = yes; then
13692 cat >>confdefs.h
<<_ACEOF
13693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13700 # For some functions, having a definition is not sufficient, since
13701 # we want to take their address.
13702 echo "$as_me:$LINENO: checking for chroot" >&5
13703 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
13704 cat >conftest.
$ac_ext <<_ACEOF
13707 cat confdefs.h
>>conftest.
$ac_ext
13708 cat >>conftest.
$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 #include <unistd.h>
13719 rm -f conftest.
$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721 (eval $ac_compile) 2>conftest.er1
13723 grep -v '^ *+' conftest.er1
>conftest.err
13725 cat conftest.err
>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try
='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try
='test -s conftest.$ac_objext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13742 cat >>confdefs.h
<<\_ACEOF
13743 #define HAVE_CHROOT 1
13746 echo "$as_me:$LINENO: result: yes" >&5
13747 echo "${ECHO_T}yes" >&6
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.
$ac_ext >&5
13752 echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6
13756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13757 echo "$as_me:$LINENO: checking for link" >&5
13758 echo $ECHO_N "checking for link... $ECHO_C" >&6
13759 cat >conftest.
$ac_ext <<_ACEOF
13762 cat confdefs.h
>>conftest.
$ac_ext
13763 cat >>conftest.
$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 #include <unistd.h>
13774 rm -f conftest.
$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13778 grep -v '^ *+' conftest.er1
>conftest.err
13780 cat conftest.err
>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try
='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try
='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13797 cat >>confdefs.h
<<\_ACEOF
13798 #define HAVE_LINK 1
13801 echo "$as_me:$LINENO: result: yes" >&5
13802 echo "${ECHO_T}yes" >&6
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.
$ac_ext >&5
13807 echo "$as_me:$LINENO: result: no" >&5
13808 echo "${ECHO_T}no" >&6
13811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13812 echo "$as_me:$LINENO: checking for symlink" >&5
13813 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
13814 cat >conftest.
$ac_ext <<_ACEOF
13817 cat confdefs.h
>>conftest.
$ac_ext
13818 cat >>conftest.
$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 #include <unistd.h>
13829 rm -f conftest.
$ac_objext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13831 (eval $ac_compile) 2>conftest.er1
13833 grep -v '^ *+' conftest.er1
>conftest.err
13835 cat conftest.err
>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try
='test -z "$ac_c_werror_flag"
13839 || test ! -s conftest.err'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try
='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13852 cat >>confdefs.h
<<\_ACEOF
13853 #define HAVE_SYMLINK 1
13856 echo "$as_me:$LINENO: result: yes" >&5
13857 echo "${ECHO_T}yes" >&6
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.
$ac_ext >&5
13862 echo "$as_me:$LINENO: result: no" >&5
13863 echo "${ECHO_T}no" >&6
13866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13867 echo "$as_me:$LINENO: checking for fchdir" >&5
13868 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
13869 cat >conftest.
$ac_ext <<_ACEOF
13872 cat confdefs.h
>>conftest.
$ac_ext
13873 cat >>conftest.
$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 #include <unistd.h>
13884 rm -f conftest.
$ac_objext
13885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13886 (eval $ac_compile) 2>conftest.er1
13888 grep -v '^ *+' conftest.er1
>conftest.err
13890 cat conftest.err
>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try
='test -z "$ac_c_werror_flag"
13894 || test ! -s conftest.err'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; } &&
13900 { ac_try
='test -s conftest.$ac_objext'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13907 cat >>confdefs.h
<<\_ACEOF
13908 #define HAVE_FCHDIR 1
13911 echo "$as_me:$LINENO: result: yes" >&5
13912 echo "${ECHO_T}yes" >&6
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.
$ac_ext >&5
13917 echo "$as_me:$LINENO: result: no" >&5
13918 echo "${ECHO_T}no" >&6
13921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13922 echo "$as_me:$LINENO: checking for fsync" >&5
13923 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
13924 cat >conftest.
$ac_ext <<_ACEOF
13927 cat confdefs.h
>>conftest.
$ac_ext
13928 cat >>conftest.
$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <unistd.h>
13939 rm -f conftest.
$ac_objext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941 (eval $ac_compile) 2>conftest.er1
13943 grep -v '^ *+' conftest.er1
>conftest.err
13945 cat conftest.err
>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try
='test -z "$ac_c_werror_flag"
13949 || test ! -s conftest.err'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; } &&
13955 { ac_try
='test -s conftest.$ac_objext'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13962 cat >>confdefs.h
<<\_ACEOF
13963 #define HAVE_FSYNC 1
13966 echo "$as_me:$LINENO: result: yes" >&5
13967 echo "${ECHO_T}yes" >&6
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.
$ac_ext >&5
13972 echo "$as_me:$LINENO: result: no" >&5
13973 echo "${ECHO_T}no" >&6
13976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13977 echo "$as_me:$LINENO: checking for fdatasync" >&5
13978 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
13979 cat >conftest.
$ac_ext <<_ACEOF
13982 cat confdefs.h
>>conftest.
$ac_ext
13983 cat >>conftest.
$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <unistd.h>
13994 rm -f conftest.
$ac_objext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996 (eval $ac_compile) 2>conftest.er1
13998 grep -v '^ *+' conftest.er1
>conftest.err
14000 cat conftest.err
>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try
='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try
='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14017 cat >>confdefs.h
<<\_ACEOF
14018 #define HAVE_FDATASYNC 1
14021 echo "$as_me:$LINENO: result: yes" >&5
14022 echo "${ECHO_T}yes" >&6
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.
$ac_ext >&5
14027 echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6
14031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14033 # On some systems (eg. FreeBSD 5), we would find a definition of the
14034 # functions ctermid_r, setgroups in the library, but no prototype
14035 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14036 # address to avoid compiler warnings and potential miscompilations
14037 # because of the missing prototypes.
14039 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14040 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14041 cat >conftest.
$ac_ext <<_ACEOF
14044 cat confdefs.h
>>conftest.
$ac_ext
14045 cat >>conftest.
$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14048 #include "confdefs.h"
14054 void* p = ctermid_r
14059 rm -f conftest.
$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061 (eval $ac_compile) 2>conftest.er1
14063 grep -v '^ *+' conftest.er1
>conftest.err
14065 cat conftest.err
>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try
='test -z "$ac_c_werror_flag"
14069 || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try
='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14082 cat >>confdefs.h
<<\_ACEOF
14083 #define HAVE_CTERMID_R 1
14086 echo "$as_me:$LINENO: result: yes" >&5
14087 echo "${ECHO_T}yes" >&6
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.
$ac_ext >&5
14092 echo "$as_me:$LINENO: result: no" >&5
14093 echo "${ECHO_T}no" >&6
14096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14098 echo "$as_me:$LINENO: checking for flock" >&5
14099 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14100 cat >conftest.
$ac_ext <<_ACEOF
14103 cat confdefs.h
>>conftest.
$ac_ext
14104 cat >>conftest.
$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14107 #include "confdefs.h"
14108 #include <sys/file.h>
14118 rm -f conftest.
$ac_objext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120 (eval $ac_compile) 2>conftest.er1
14122 grep -v '^ *+' conftest.er1
>conftest.err
14124 cat conftest.err
>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try
='test -z "$ac_c_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try
='test -s conftest.$ac_objext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14141 cat >>confdefs.h
<<\_ACEOF
14142 #define HAVE_FLOCK 1
14145 echo "$as_me:$LINENO: result: yes" >&5
14146 echo "${ECHO_T}yes" >&6
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.
$ac_ext >&5
14151 echo "$as_me:$LINENO: result: no" >&5
14152 echo "${ECHO_T}no" >&6
14155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14157 echo "$as_me:$LINENO: checking for getpagesize" >&5
14158 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14159 cat >conftest.
$ac_ext <<_ACEOF
14162 cat confdefs.h
>>conftest.
$ac_ext
14163 cat >>conftest.
$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14166 #include "confdefs.h"
14167 #include <unistd.h>
14172 void* p = getpagesize
14177 rm -f conftest.
$ac_objext
14178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14179 (eval $ac_compile) 2>conftest.er1
14181 grep -v '^ *+' conftest.er1
>conftest.err
14183 cat conftest.err
>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try
='test -z "$ac_c_werror_flag"
14187 || test ! -s conftest.err'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; } &&
14193 { ac_try
='test -s conftest.$ac_objext'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14200 cat >>confdefs.h
<<\_ACEOF
14201 #define HAVE_GETPAGESIZE 1
14204 echo "$as_me:$LINENO: result: yes" >&5
14205 echo "${ECHO_T}yes" >&6
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.
$ac_ext >&5
14210 echo "$as_me:$LINENO: result: no" >&5
14211 echo "${ECHO_T}no" >&6
14214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14216 for ac_prog
in true
14218 # Extract the first word of "$ac_prog", so it can be a program name with args.
14219 set dummy
$ac_prog; ac_word
=$2
14220 echo "$as_me:$LINENO: checking for $ac_word" >&5
14221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14222 if test "${ac_cv_prog_TRUE+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 if test -n "$TRUE"; then
14226 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14229 for as_dir
in $PATH
14232 test -z "$as_dir" && as_dir
=.
14233 for ac_exec_ext
in '' $ac_executable_extensions; do
14234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14235 ac_cv_prog_TRUE
="$ac_prog"
14236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 TRUE
=$ac_cv_prog_TRUE
14245 if test -n "$TRUE"; then
14246 echo "$as_me:$LINENO: result: $TRUE" >&5
14247 echo "${ECHO_T}$TRUE" >&6
14249 echo "$as_me:$LINENO: result: no" >&5
14250 echo "${ECHO_T}no" >&6
14253 test -n "$TRUE" && break
14255 test -n "$TRUE" || TRUE
="/bin/true"
14258 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14259 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14260 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 ac_check_lib_save_LIBS
=$LIBS
14265 cat >conftest.
$ac_ext <<_ACEOF
14268 cat confdefs.h
>>conftest.
$ac_ext
14269 cat >>conftest.
$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14272 /* Override any gcc2 internal prototype to avoid an error. */
14276 /* We use char because int might match the return type of a gcc2
14277 builtin and then its argument prototype would still apply. */
14287 rm -f conftest.
$ac_objext conftest
$ac_exeext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14289 (eval $ac_link) 2>conftest.er1
14291 grep -v '^ *+' conftest.er1
>conftest.err
14293 cat conftest.err
>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try
='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try
='test -s conftest$ac_exeext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_lib_c_inet_aton
=yes
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14314 ac_cv_lib_c_inet_aton
=no
14316 rm -f conftest.err conftest.
$ac_objext \
14317 conftest
$ac_exeext conftest.
$ac_ext
14318 LIBS
=$ac_check_lib_save_LIBS
14320 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14321 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14322 if test $ac_cv_lib_c_inet_aton = yes; then
14326 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14327 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14328 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 ac_check_lib_save_LIBS
=$LIBS
14332 LIBS
="-lresolv $LIBS"
14333 cat >conftest.
$ac_ext <<_ACEOF
14336 cat confdefs.h
>>conftest.
$ac_ext
14337 cat >>conftest.
$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14340 /* Override any gcc2 internal prototype to avoid an error. */
14344 /* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14355 rm -f conftest.
$ac_objext conftest
$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1
>conftest.err
14361 cat conftest.err
>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try
='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try
='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_lib_resolv_inet_aton
=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.
$ac_ext >&5
14382 ac_cv_lib_resolv_inet_aton
=no
14384 rm -f conftest.err conftest.
$ac_objext \
14385 conftest
$ac_exeext conftest.
$ac_ext
14386 LIBS
=$ac_check_lib_save_LIBS
14388 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14389 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14390 if test $ac_cv_lib_resolv_inet_aton = yes; then
14391 cat >>confdefs.h
<<_ACEOF
14392 #define HAVE_LIBRESOLV 1
14395 LIBS
="-lresolv $LIBS"
14403 echo "$as_me:$LINENO: checking for hstrerror" >&5
14404 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14405 cat >conftest.
$ac_ext <<_ACEOF
14408 cat confdefs.h
>>conftest.
$ac_ext
14409 cat >>conftest.
$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14412 #include "confdefs.h"
14418 void* p = hstrerror; hstrerror(0)
14423 rm -f conftest.
$ac_objext conftest
$ac_exeext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>conftest.er1
14427 grep -v '^ *+' conftest.er1
>conftest.err
14429 cat conftest.err
>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try
='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try
='test -s conftest$ac_exeext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14446 cat >>confdefs.h
<<\_ACEOF
14447 #define HAVE_HSTRERROR 1
14450 echo "$as_me:$LINENO: result: yes" >&5
14451 echo "${ECHO_T}yes" >&6
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.
$ac_ext >&5
14456 echo "$as_me:$LINENO: result: no" >&5
14457 echo "${ECHO_T}no" >&6
14460 rm -f conftest.err conftest.
$ac_objext \
14461 conftest
$ac_exeext conftest.
$ac_ext
14463 echo "$as_me:$LINENO: checking for inet_aton" >&5
14464 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14465 cat >conftest.
$ac_ext <<_ACEOF
14468 cat confdefs.h
>>conftest.
$ac_ext
14469 cat >>conftest.
$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14472 #include "confdefs.h"
14473 #include <sys/socket.h>
14474 #include <netinet/in.h>
14475 #include <arpa/inet.h>
14480 void* p = inet_aton;inet_aton(0,0)
14485 rm -f conftest.
$ac_objext conftest
$ac_exeext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14487 (eval $ac_link) 2>conftest.er1
14489 grep -v '^ *+' conftest.er1
>conftest.err
14491 cat conftest.err
>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try
='test -z "$ac_c_werror_flag"
14495 || test ! -s conftest.err'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try
='test -s conftest$ac_exeext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14508 cat >>confdefs.h
<<\_ACEOF
14509 #define HAVE_INET_ATON 1
14512 echo "$as_me:$LINENO: result: yes" >&5
14513 echo "${ECHO_T}yes" >&6
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.
$ac_ext >&5
14518 echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6
14522 rm -f conftest.err conftest.
$ac_objext \
14523 conftest
$ac_exeext conftest.
$ac_ext
14525 echo "$as_me:$LINENO: checking for inet_pton" >&5
14526 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
14527 cat >conftest.
$ac_ext <<_ACEOF
14530 cat confdefs.h
>>conftest.
$ac_ext
14531 cat >>conftest.
$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14534 #include "confdefs.h"
14535 #include <sys/types.h>
14536 #include <sys/socket.h>
14537 #include <netinet/in.h>
14538 #include <arpa/inet.h>
14543 void* p = inet_pton
14548 rm -f conftest.
$ac_objext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550 (eval $ac_compile) 2>conftest.er1
14552 grep -v '^ *+' conftest.er1
>conftest.err
14554 cat conftest.err
>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try
='test -z "$ac_c_werror_flag"
14558 || test ! -s conftest.err'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try
='test -s conftest.$ac_objext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14571 cat >>confdefs.h
<<\_ACEOF
14572 #define HAVE_INET_PTON 1
14575 echo "$as_me:$LINENO: result: yes" >&5
14576 echo "${ECHO_T}yes" >&6
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.
$ac_ext >&5
14581 echo "$as_me:$LINENO: result: no" >&5
14582 echo "${ECHO_T}no" >&6
14585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14587 # On some systems, setgroups is in unistd.h, on others, in grp.h
14588 echo "$as_me:$LINENO: checking for setgroups" >&5
14589 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
14590 cat >conftest.
$ac_ext <<_ACEOF
14593 cat confdefs.h
>>conftest.
$ac_ext
14594 cat >>conftest.
$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14597 #include "confdefs.h"
14598 #include <unistd.h>
14606 void* p = setgroups
14611 rm -f conftest.
$ac_objext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613 (eval $ac_compile) 2>conftest.er1
14615 grep -v '^ *+' conftest.er1
>conftest.err
14617 cat conftest.err
>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try
='test -z "$ac_c_werror_flag"
14621 || test ! -s conftest.err'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try
='test -s conftest.$ac_objext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14634 cat >>confdefs.h
<<\_ACEOF
14635 #define HAVE_SETGROUPS 1
14638 echo "$as_me:$LINENO: result: yes" >&5
14639 echo "${ECHO_T}yes" >&6
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.
$ac_ext >&5
14644 echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6
14648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14650 # check for openpty and forkpty
14653 for ac_func
in openpty
14655 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14656 echo "$as_me:$LINENO: checking for $ac_func" >&5
14657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14658 if eval "test \"\${$as_ac_var+set}\" = set"; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 cat >conftest.
$ac_ext <<_ACEOF
14664 cat confdefs.h
>>conftest.
$ac_ext
14665 cat >>conftest.
$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 /* System header to define __stub macros and hopefully few prototypes,
14668 which can conflict with char $ac_func (); below.
14669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14670 <limits.h> exists even on freestanding compilers. Under hpux,
14671 including <limits.h> includes <sys/time.h> and causes problems
14672 checking for functions defined therein. */
14673 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14674 # include <limits.h>
14676 # include <assert.h>
14678 /* Override any gcc2 internal prototype to avoid an error. */
14683 /* We use char because int might match the return type of a gcc2
14684 builtin and then its argument prototype would still apply. */
14686 /* The GNU C library defines this for functions which it implements
14687 to always fail with ENOSYS. Some functions are actually named
14688 something starting with __ and the normal name is an alias. */
14689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14692 char (*f) () = $ac_func;
14701 return f != $ac_func;
14706 rm -f conftest.
$ac_objext conftest
$ac_exeext
14707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14708 (eval $ac_link) 2>conftest.er1
14710 grep -v '^ *+' conftest.er1
>conftest.err
14712 cat conftest.err
>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try
='test -z "$ac_c_werror_flag"
14716 || test ! -s conftest.err'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try
='test -s conftest$ac_exeext'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 eval "$as_ac_var=yes"
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.
$ac_ext >&5
14733 eval "$as_ac_var=no"
14735 rm -f conftest.err conftest.
$ac_objext \
14736 conftest
$ac_exeext conftest.
$ac_ext
14738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14740 if test `eval echo '${'$as_ac_var'}'` = yes; then
14741 cat >>confdefs.h
<<_ACEOF
14742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14746 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
14747 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14748 if test "${ac_cv_lib_util_openpty+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 ac_check_lib_save_LIBS
=$LIBS
14752 LIBS
="-lutil $LIBS"
14753 cat >conftest.
$ac_ext <<_ACEOF
14756 cat confdefs.h
>>conftest.
$ac_ext
14757 cat >>conftest.
$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14760 /* Override any gcc2 internal prototype to avoid an error. */
14764 /* We use char because int might match the return type of a gcc2
14765 builtin and then its argument prototype would still apply. */
14775 rm -f conftest.
$ac_objext conftest
$ac_exeext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777 (eval $ac_link) 2>conftest.er1
14779 grep -v '^ *+' conftest.er1
>conftest.err
14781 cat conftest.err
>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try
='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try
='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_lib_util_openpty
=yes
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.
$ac_ext >&5
14802 ac_cv_lib_util_openpty
=no
14804 rm -f conftest.err conftest.
$ac_objext \
14805 conftest
$ac_exeext conftest.
$ac_ext
14806 LIBS
=$ac_check_lib_save_LIBS
14808 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
14809 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14810 if test $ac_cv_lib_util_openpty = yes; then
14811 cat >>confdefs.h
<<\_ACEOF
14812 #define HAVE_OPENPTY 1
14814 LIBS
="$LIBS -lutil"
14816 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
14817 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
14818 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 ac_check_lib_save_LIBS
=$LIBS
14823 cat >conftest.
$ac_ext <<_ACEOF
14826 cat confdefs.h
>>conftest.
$ac_ext
14827 cat >>conftest.
$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14830 /* Override any gcc2 internal prototype to avoid an error. */
14834 /* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14845 rm -f conftest.
$ac_objext conftest
$ac_exeext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847 (eval $ac_link) 2>conftest.er1
14849 grep -v '^ *+' conftest.er1
>conftest.err
14851 cat conftest.err
>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try
='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try
='test -s conftest$ac_exeext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_cv_lib_bsd_openpty
=yes
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.
$ac_ext >&5
14872 ac_cv_lib_bsd_openpty
=no
14874 rm -f conftest.err conftest.
$ac_objext \
14875 conftest
$ac_exeext conftest.
$ac_ext
14876 LIBS
=$ac_check_lib_save_LIBS
14878 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
14879 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
14880 if test $ac_cv_lib_bsd_openpty = yes; then
14881 cat >>confdefs.h
<<\_ACEOF
14882 #define HAVE_OPENPTY 1
14895 for ac_func
in forkpty
14897 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14898 echo "$as_me:$LINENO: checking for $ac_func" >&5
14899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14900 if eval "test \"\${$as_ac_var+set}\" = set"; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 cat >conftest.
$ac_ext <<_ACEOF
14906 cat confdefs.h
>>conftest.
$ac_ext
14907 cat >>conftest.
$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 /* System header to define __stub macros and hopefully few prototypes,
14910 which can conflict with char $ac_func (); below.
14911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14912 <limits.h> exists even on freestanding compilers. Under hpux,
14913 including <limits.h> includes <sys/time.h> and causes problems
14914 checking for functions defined therein. */
14915 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14916 # include <limits.h>
14918 # include <assert.h>
14920 /* Override any gcc2 internal prototype to avoid an error. */
14925 /* We use char because int might match the return type of a gcc2
14926 builtin and then its argument prototype would still apply. */
14928 /* The GNU C library defines this for functions which it implements
14929 to always fail with ENOSYS. Some functions are actually named
14930 something starting with __ and the normal name is an alias. */
14931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14934 char (*f) () = $ac_func;
14943 return f != $ac_func;
14948 rm -f conftest.
$ac_objext conftest
$ac_exeext
14949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14950 (eval $ac_link) 2>conftest.er1
14952 grep -v '^ *+' conftest.er1
>conftest.err
14954 cat conftest.err
>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try
='test -z "$ac_c_werror_flag"
14958 || test ! -s conftest.err'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try
='test -s conftest$ac_exeext'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14970 eval "$as_ac_var=yes"
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.
$ac_ext >&5
14975 eval "$as_ac_var=no"
14977 rm -f conftest.err conftest.
$ac_objext \
14978 conftest
$ac_exeext conftest.
$ac_ext
14980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14982 if test `eval echo '${'$as_ac_var'}'` = yes; then
14983 cat >>confdefs.h
<<_ACEOF
14984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14988 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
14989 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
14990 if test "${ac_cv_lib_util_forkpty+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 ac_check_lib_save_LIBS
=$LIBS
14994 LIBS
="-lutil $LIBS"
14995 cat >conftest.
$ac_ext <<_ACEOF
14998 cat confdefs.h
>>conftest.
$ac_ext
14999 cat >>conftest.
$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15002 /* Override any gcc2 internal prototype to avoid an error. */
15006 /* We use char because int might match the return type of a gcc2
15007 builtin and then its argument prototype would still apply. */
15017 rm -f conftest.
$ac_objext conftest
$ac_exeext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15021 grep -v '^ *+' conftest.er1
>conftest.err
15023 cat conftest.err
>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try
='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try
='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_cv_lib_util_forkpty
=yes
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.
$ac_ext >&5
15044 ac_cv_lib_util_forkpty
=no
15046 rm -f conftest.err conftest.
$ac_objext \
15047 conftest
$ac_exeext conftest.
$ac_ext
15048 LIBS
=$ac_check_lib_save_LIBS
15050 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15051 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15052 if test $ac_cv_lib_util_forkpty = yes; then
15053 cat >>confdefs.h
<<\_ACEOF
15054 #define HAVE_FORKPTY 1
15056 LIBS
="$LIBS -lutil"
15058 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15059 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15060 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 ac_check_lib_save_LIBS
=$LIBS
15065 cat >conftest.
$ac_ext <<_ACEOF
15068 cat confdefs.h
>>conftest.
$ac_ext
15069 cat >>conftest.
$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15072 /* Override any gcc2 internal prototype to avoid an error. */
15076 /* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15087 rm -f conftest.
$ac_objext conftest
$ac_exeext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089 (eval $ac_link) 2>conftest.er1
15091 grep -v '^ *+' conftest.er1
>conftest.err
15093 cat conftest.err
>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try
='test -z "$ac_c_werror_flag"
15097 || test ! -s conftest.err'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; } &&
15103 { ac_try
='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_cv_lib_bsd_forkpty
=yes
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.
$ac_ext >&5
15114 ac_cv_lib_bsd_forkpty
=no
15116 rm -f conftest.err conftest.
$ac_objext \
15117 conftest
$ac_exeext conftest.
$ac_ext
15118 LIBS
=$ac_check_lib_save_LIBS
15120 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15121 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15122 if test $ac_cv_lib_bsd_forkpty = yes; then
15123 cat >>confdefs.h
<<\_ACEOF
15124 #define HAVE_FORKPTY 1
15137 # check for long file support functions
15144 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15146 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15147 echo "$as_me:$LINENO: checking for $ac_func" >&5
15148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15149 if eval "test \"\${$as_ac_var+set}\" = set"; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 cat >conftest.
$ac_ext <<_ACEOF
15155 cat confdefs.h
>>conftest.
$ac_ext
15156 cat >>conftest.
$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 /* System header to define __stub macros and hopefully few prototypes,
15159 which can conflict with char $ac_func (); below.
15160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15161 <limits.h> exists even on freestanding compilers. Under hpux,
15162 including <limits.h> includes <sys/time.h> and causes problems
15163 checking for functions defined therein. */
15164 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15165 # include <limits.h>
15167 # include <assert.h>
15169 /* Override any gcc2 internal prototype to avoid an error. */
15174 /* We use char because int might match the return type of a gcc2
15175 builtin and then its argument prototype would still apply. */
15177 /* The GNU C library defines this for functions which it implements
15178 to always fail with ENOSYS. Some functions are actually named
15179 something starting with __ and the normal name is an alias. */
15180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15183 char (*f) () = $ac_func;
15192 return f != $ac_func;
15197 rm -f conftest.
$ac_objext conftest
$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199 (eval $ac_link) 2>conftest.er1
15201 grep -v '^ *+' conftest.er1
>conftest.err
15203 cat conftest.err
>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try
='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try
='test -s conftest$ac_exeext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 eval "$as_ac_var=yes"
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.
$ac_ext >&5
15224 eval "$as_ac_var=no"
15226 rm -f conftest.err conftest.
$ac_objext \
15227 conftest
$ac_exeext conftest.
$ac_ext
15229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15231 if test `eval echo '${'$as_ac_var'}'` = yes; then
15232 cat >>confdefs.h
<<_ACEOF
15233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15245 for ac_func
in dup2 getcwd strdup strerror memmove
15247 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15248 echo "$as_me:$LINENO: checking for $ac_func" >&5
15249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15250 if eval "test \"\${$as_ac_var+set}\" = set"; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 cat >conftest.
$ac_ext <<_ACEOF
15256 cat confdefs.h
>>conftest.
$ac_ext
15257 cat >>conftest.
$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char $ac_func (); below.
15261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262 <limits.h> exists even on freestanding compilers. Under hpux,
15263 including <limits.h> includes <sys/time.h> and causes problems
15264 checking for functions defined therein. */
15265 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15266 # include <limits.h>
15268 # include <assert.h>
15270 /* Override any gcc2 internal prototype to avoid an error. */
15275 /* We use char because int might match the return type of a gcc2
15276 builtin and then its argument prototype would still apply. */
15278 /* The GNU C library defines this for functions which it implements
15279 to always fail with ENOSYS. Some functions are actually named
15280 something starting with __ and the normal name is an alias. */
15281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15284 char (*f) () = $ac_func;
15293 return f != $ac_func;
15298 rm -f conftest.
$ac_objext conftest
$ac_exeext
15299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15300 (eval $ac_link) 2>conftest.er1
15302 grep -v '^ *+' conftest.er1
>conftest.err
15304 cat conftest.err
>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
15307 { ac_try
='test -z "$ac_c_werror_flag"
15308 || test ! -s conftest.err'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try
='test -s conftest$ac_exeext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 eval "$as_ac_var=yes"
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.
$ac_ext >&5
15325 eval "$as_ac_var=no"
15327 rm -f conftest.err conftest.
$ac_objext \
15328 conftest
$ac_exeext conftest.
$ac_ext
15330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15332 if test `eval echo '${'$as_ac_var'}'` = yes; then
15333 cat >>confdefs.h
<<_ACEOF
15334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15339 "$ac_func.$ac_objext" | \
15340 *" $ac_func.$ac_objext" | \
15341 "$ac_func.$ac_objext "* | \
15342 *" $ac_func.$ac_objext "* ) ;;
15343 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15351 for ac_func
in getpgrp
15353 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15354 echo "$as_me:$LINENO: checking for $ac_func" >&5
15355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15356 if eval "test \"\${$as_ac_var+set}\" = set"; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 cat >conftest.
$ac_ext <<_ACEOF
15362 cat confdefs.h
>>conftest.
$ac_ext
15363 cat >>conftest.
$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 /* System header to define __stub macros and hopefully few prototypes,
15366 which can conflict with char $ac_func (); below.
15367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15368 <limits.h> exists even on freestanding compilers. Under hpux,
15369 including <limits.h> includes <sys/time.h> and causes problems
15370 checking for functions defined therein. */
15371 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15372 # include <limits.h>
15374 # include <assert.h>
15376 /* Override any gcc2 internal prototype to avoid an error. */
15381 /* We use char because int might match the return type of a gcc2
15382 builtin and then its argument prototype would still apply. */
15384 /* The GNU C library defines this for functions which it implements
15385 to always fail with ENOSYS. Some functions are actually named
15386 something starting with __ and the normal name is an alias. */
15387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15390 char (*f) () = $ac_func;
15399 return f != $ac_func;
15404 rm -f conftest.
$ac_objext conftest
$ac_exeext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15406 (eval $ac_link) 2>conftest.er1
15408 grep -v '^ *+' conftest.er1
>conftest.err
15410 cat conftest.err
>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try
='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try
='test -s conftest$ac_exeext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 eval "$as_ac_var=yes"
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.
$ac_ext >&5
15431 eval "$as_ac_var=no"
15433 rm -f conftest.err conftest.
$ac_objext \
15434 conftest
$ac_exeext conftest.
$ac_ext
15436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15438 if test `eval echo '${'$as_ac_var'}'` = yes; then
15439 cat >>confdefs.h
<<_ACEOF
15440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15442 cat >conftest.
$ac_ext <<_ACEOF
15445 cat confdefs.h
>>conftest.
$ac_ext
15446 cat >>conftest.
$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 #include <unistd.h>
15457 rm -f conftest.
$ac_objext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15459 (eval $ac_compile) 2>conftest.er1
15461 grep -v '^ *+' conftest.er1
>conftest.err
15463 cat conftest.err
>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try
='test -z "$ac_c_werror_flag"
15467 || test ! -s conftest.err'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try
='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15480 cat >>confdefs.h
<<\_ACEOF
15481 #define GETPGRP_HAVE_ARG 1
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.
$ac_ext >&5
15490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15496 for ac_func
in setpgrp
15498 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15499 echo "$as_me:$LINENO: checking for $ac_func" >&5
15500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15501 if eval "test \"\${$as_ac_var+set}\" = set"; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 cat >conftest.
$ac_ext <<_ACEOF
15507 cat confdefs.h
>>conftest.
$ac_ext
15508 cat >>conftest.
$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 /* System header to define __stub macros and hopefully few prototypes,
15511 which can conflict with char $ac_func (); below.
15512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15513 <limits.h> exists even on freestanding compilers. Under hpux,
15514 including <limits.h> includes <sys/time.h> and causes problems
15515 checking for functions defined therein. */
15516 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15517 # include <limits.h>
15519 # include <assert.h>
15521 /* Override any gcc2 internal prototype to avoid an error. */
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15529 /* The GNU C library defines this for functions which it implements
15530 to always fail with ENOSYS. Some functions are actually named
15531 something starting with __ and the normal name is an alias. */
15532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15535 char (*f) () = $ac_func;
15544 return f != $ac_func;
15549 rm -f conftest.
$ac_objext conftest
$ac_exeext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15551 (eval $ac_link) 2>conftest.er1
15553 grep -v '^ *+' conftest.er1
>conftest.err
15555 cat conftest.err
>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try
='test -z "$ac_c_werror_flag"
15559 || test ! -s conftest.err'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; } &&
15565 { ac_try
='test -s conftest$ac_exeext'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 eval "$as_ac_var=yes"
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.
$ac_ext >&5
15576 eval "$as_ac_var=no"
15578 rm -f conftest.err conftest.
$ac_objext \
15579 conftest
$ac_exeext conftest.
$ac_ext
15581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15583 if test `eval echo '${'$as_ac_var'}'` = yes; then
15584 cat >>confdefs.h
<<_ACEOF
15585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15587 cat >conftest.
$ac_ext <<_ACEOF
15590 cat confdefs.h
>>conftest.
$ac_ext
15591 cat >>conftest.
$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 #include <unistd.h>
15602 rm -f conftest.
$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>conftest.er1
15606 grep -v '^ *+' conftest.er1
>conftest.err
15608 cat conftest.err
>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try
='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try
='test -s conftest.$ac_objext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15625 cat >>confdefs.h
<<\_ACEOF
15626 #define SETPGRP_HAVE_ARG 1
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.
$ac_ext >&5
15635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15641 for ac_func
in gettimeofday
15643 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15644 echo "$as_me:$LINENO: checking for $ac_func" >&5
15645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15646 if eval "test \"\${$as_ac_var+set}\" = set"; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 cat >conftest.
$ac_ext <<_ACEOF
15652 cat confdefs.h
>>conftest.
$ac_ext
15653 cat >>conftest.
$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 /* System header to define __stub macros and hopefully few prototypes,
15656 which can conflict with char $ac_func (); below.
15657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15658 <limits.h> exists even on freestanding compilers. Under hpux,
15659 including <limits.h> includes <sys/time.h> and causes problems
15660 checking for functions defined therein. */
15661 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15662 # include <limits.h>
15664 # include <assert.h>
15666 /* Override any gcc2 internal prototype to avoid an error. */
15671 /* We use char because int might match the return type of a gcc2
15672 builtin and then its argument prototype would still apply. */
15674 /* The GNU C library defines this for functions which it implements
15675 to always fail with ENOSYS. Some functions are actually named
15676 something starting with __ and the normal name is an alias. */
15677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15680 char (*f) () = $ac_func;
15689 return f != $ac_func;
15694 rm -f conftest.
$ac_objext conftest
$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>conftest.er1
15698 grep -v '^ *+' conftest.er1
>conftest.err
15700 cat conftest.err
>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try
='test -z "$ac_c_werror_flag"
15704 || test ! -s conftest.err'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try
='test -s conftest$ac_exeext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 eval "$as_ac_var=yes"
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.
$ac_ext >&5
15721 eval "$as_ac_var=no"
15723 rm -f conftest.err conftest.
$ac_objext \
15724 conftest
$ac_exeext conftest.
$ac_ext
15726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15728 if test `eval echo '${'$as_ac_var'}'` = yes; then
15729 cat >>confdefs.h
<<_ACEOF
15730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15732 cat >conftest.
$ac_ext <<_ACEOF
15735 cat confdefs.h
>>conftest.
$ac_ext
15736 cat >>conftest.
$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <sys/time.h>
15742 gettimeofday((struct timeval*)0,(struct timezone*)0);
15747 rm -f conftest.
$ac_objext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15749 (eval $ac_compile) 2>conftest.er1
15751 grep -v '^ *+' conftest.er1
>conftest.err
15753 cat conftest.err
>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try
='test -z "$ac_c_werror_flag"
15757 || test ! -s conftest.err'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try
='test -s conftest.$ac_objext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.
$ac_ext >&5
15775 cat >>confdefs.h
<<\_ACEOF
15776 #define GETTIMEOFDAY_NO_TZ 1
15781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15787 echo "$as_me:$LINENO: checking for major" >&5
15788 echo $ECHO_N "checking for major... $ECHO_C" >&6
15789 cat >conftest.
$ac_ext <<_ACEOF
15792 cat confdefs.h
>>conftest.
$ac_ext
15793 cat >>conftest.
$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15796 #if defined(MAJOR_IN_MKDEV)
15797 #include <sys/mkdev.h>
15798 #elif defined(MAJOR_IN_SYSMACROS)
15799 #include <sys/sysmacros.h>
15801 #include <sys/types.h>
15808 makedev(major(0),minor(0));
15814 rm -f conftest.
$ac_objext conftest
$ac_exeext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15816 (eval $ac_link) 2>conftest.er1
15818 grep -v '^ *+' conftest.er1
>conftest.err
15820 cat conftest.err
>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try
='test -z "$ac_c_werror_flag"
15824 || test ! -s conftest.err'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try
='test -s conftest$ac_exeext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15838 cat >>confdefs.h
<<\_ACEOF
15839 #define HAVE_DEVICE_MACROS 1
15842 echo "$as_me:$LINENO: result: yes" >&5
15843 echo "${ECHO_T}yes" >&6
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.
$ac_ext >&5
15850 echo "$as_me:$LINENO: result: no" >&5
15851 echo "${ECHO_T}no" >&6
15854 rm -f conftest.err conftest.
$ac_objext \
15855 conftest
$ac_exeext conftest.
$ac_ext
15857 # On OSF/1 V5.1, getaddrinfo is available, but a define
15858 # for [no]getaddrinfo in netdb.h.
15859 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
15860 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
15861 cat >conftest.
$ac_ext <<_ACEOF
15864 cat confdefs.h
>>conftest.
$ac_ext
15865 cat >>conftest.
$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15868 #include <sys/types.h>
15869 #include <sys/socket.h>
15877 getaddrinfo(NULL, NULL, NULL, NULL);
15883 rm -f conftest.
$ac_objext conftest
$ac_exeext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15885 (eval $ac_link) 2>conftest.er1
15887 grep -v '^ *+' conftest.er1
>conftest.err
15889 cat conftest.err
>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } &&
15892 { ac_try
='test -z "$ac_c_werror_flag"
15893 || test ! -s conftest.err'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try
='test -s conftest$ac_exeext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15906 echo "$as_me:$LINENO: result: yes" >&5
15907 echo "${ECHO_T}yes" >&6
15908 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
15909 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
15910 if test "$cross_compiling" = yes; then
15911 echo "$as_me:$LINENO: result: buggy" >&5
15912 echo "${ECHO_T}buggy" >&6
15913 buggygetaddrinfo
=yes
15915 cat >conftest.
$ac_ext <<_ACEOF
15918 cat confdefs.h
>>conftest.
$ac_ext
15919 cat >>conftest.
$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15922 #include <sys/types.h>
15924 #include <string.h>
15925 #include <sys/socket.h>
15926 #include <netinet/in.h>
15930 int passive, gaierr, inet4 = 0, inet6 = 0;
15931 struct addrinfo hints, *ai, *aitop;
15932 char straddr[INET6_ADDRSTRLEN], strport[16];
15934 for (passive = 0; passive <= 1; passive++) {
15935 memset(&hints, 0, sizeof(hints));
15936 hints.ai_family = AF_UNSPEC;
15937 hints.ai_flags = passive ? AI_PASSIVE : 0;
15938 hints.ai_socktype = SOCK_STREAM;
15939 hints.ai_protocol = IPPROTO_TCP;
15940 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
15941 (void)gai_strerror(gaierr);
15944 for (ai = aitop; ai; ai = ai->ai_next) {
15945 if (ai->ai_addr == NULL ||
15946 ai->ai_addrlen == 0 ||
15947 getnameinfo(ai->ai_addr, ai->ai_addrlen,
15948 straddr, sizeof(straddr), strport, sizeof(strport),
15949 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
15952 switch (ai->ai_family) {
15954 if (strcmp(strport, "54321") != 0) {
15958 if (strcmp(straddr, "0.0.0.0") != 0) {
15962 if (strcmp(straddr, "127.0.0.1") != 0) {
15969 if (strcmp(strport, "54321") != 0) {
15973 if (strcmp(straddr, "::") != 0) {
15977 if (strcmp(straddr, "::1") != 0) {
15987 /* another family support? */
15993 if (!(inet4 == 0 || inet4 == 2))
15995 if (!(inet6 == 0 || inet6 == 2))
15999 freeaddrinfo(aitop);
16004 freeaddrinfo(aitop);
16009 rm -f conftest
$ac_exeext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16011 (eval $ac_link) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 echo "$as_me:$LINENO: result: good" >&5
16021 echo "${ECHO_T}good" >&6
16022 buggygetaddrinfo
=no
16024 echo "$as_me: program exited with status $ac_status" >&5
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.
$ac_ext >&5
16028 ( exit $ac_status )
16029 echo "$as_me:$LINENO: result: buggy" >&5
16030 echo "${ECHO_T}buggy" >&6
16031 buggygetaddrinfo
=yes
16033 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16036 echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.
$ac_ext >&5
16040 echo "$as_me:$LINENO: result: no" >&5
16041 echo "${ECHO_T}no" >&6
16042 buggygetaddrinfo
=yes
16045 rm -f conftest.err conftest.
$ac_objext \
16046 conftest
$ac_exeext conftest.
$ac_ext
16048 if test "$buggygetaddrinfo" = "yes"; then
16049 if test "$ipv6" = "yes"; then
16050 echo 'Fatal: You must get working getaddrinfo() function.'
16051 echo ' or you can specify "--disable-ipv6"'.
16056 cat >>confdefs.h
<<\_ACEOF
16057 #define HAVE_GETADDRINFO 1
16062 for ac_func
in getnameinfo
16064 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16065 echo "$as_me:$LINENO: checking for $ac_func" >&5
16066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16067 if eval "test \"\${$as_ac_var+set}\" = set"; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 cat >conftest.
$ac_ext <<_ACEOF
16073 cat confdefs.h
>>conftest.
$ac_ext
16074 cat >>conftest.
$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 /* System header to define __stub macros and hopefully few prototypes,
16077 which can conflict with char $ac_func (); below.
16078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16079 <limits.h> exists even on freestanding compilers. Under hpux,
16080 including <limits.h> includes <sys/time.h> and causes problems
16081 checking for functions defined therein. */
16082 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
16083 # include <limits.h>
16085 # include <assert.h>
16087 /* Override any gcc2 internal prototype to avoid an error. */
16092 /* We use char because int might match the return type of a gcc2
16093 builtin and then its argument prototype would still apply. */
16095 /* The GNU C library defines this for functions which it implements
16096 to always fail with ENOSYS. Some functions are actually named
16097 something starting with __ and the normal name is an alias. */
16098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16101 char (*f) () = $ac_func;
16110 return f != $ac_func;
16115 rm -f conftest.
$ac_objext conftest
$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117 (eval $ac_link) 2>conftest.er1
16119 grep -v '^ *+' conftest.er1
>conftest.err
16121 cat conftest.err
>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try
='test -z "$ac_c_werror_flag"
16125 || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try
='test -s conftest$ac_exeext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 eval "$as_ac_var=yes"
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.
$ac_ext >&5
16142 eval "$as_ac_var=no"
16144 rm -f conftest.err conftest.
$ac_objext \
16145 conftest
$ac_exeext conftest.
$ac_ext
16147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16149 if test `eval echo '${'$as_ac_var'}'` = yes; then
16150 cat >>confdefs.h
<<_ACEOF
16151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16158 # checks for structures
16159 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16160 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16161 if test "${ac_cv_header_time+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 cat >conftest.
$ac_ext <<_ACEOF
16167 cat confdefs.h
>>conftest.
$ac_ext
16168 cat >>conftest.
$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 #include <sys/types.h>
16171 #include <sys/time.h>
16177 if ((struct tm *) 0)
16183 rm -f conftest.
$ac_objext
16184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16185 (eval $ac_compile) 2>conftest.er1
16187 grep -v '^ *+' conftest.er1
>conftest.err
16189 cat conftest.err
>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } &&
16192 { ac_try
='test -z "$ac_c_werror_flag"
16193 || test ! -s conftest.err'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try
='test -s conftest.$ac_objext'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_header_time
=yes
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.
$ac_ext >&5
16210 ac_cv_header_time
=no
16212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16214 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16215 echo "${ECHO_T}$ac_cv_header_time" >&6
16216 if test $ac_cv_header_time = yes; then
16218 cat >>confdefs.h
<<\_ACEOF
16219 #define TIME_WITH_SYS_TIME 1
16224 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16225 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16226 if test "${ac_cv_struct_tm+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 cat >conftest.
$ac_ext <<_ACEOF
16232 cat confdefs.h
>>conftest.
$ac_ext
16233 cat >>conftest.
$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 #include <sys/types.h>
16241 struct tm *tp; tp->tm_sec;
16246 rm -f conftest.
$ac_objext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248 (eval $ac_compile) 2>conftest.er1
16250 grep -v '^ *+' conftest.er1
>conftest.err
16252 cat conftest.err
>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try
='test -z "$ac_c_werror_flag"
16256 || test ! -s conftest.err'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; } &&
16262 { ac_try
='test -s conftest.$ac_objext'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 ac_cv_struct_tm
=time.h
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.
$ac_ext >&5
16273 ac_cv_struct_tm
=sys
/time.h
16275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16277 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16278 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16279 if test $ac_cv_struct_tm = sys
/time.h
; then
16281 cat >>confdefs.h
<<\_ACEOF
16282 #define TM_IN_SYS_TIME 1
16287 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16288 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16289 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 cat >conftest.
$ac_ext <<_ACEOF
16295 cat confdefs.h
>>conftest.
$ac_ext
16296 cat >>conftest.
$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <sys/types.h>
16299 #include <$ac_cv_struct_tm>
16305 static struct tm ac_aggr;
16306 if (ac_aggr.tm_zone)
16312 rm -f conftest.
$ac_objext
16313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16314 (eval $ac_compile) 2>conftest.er1
16316 grep -v '^ *+' conftest.er1
>conftest.err
16318 cat conftest.err
>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try
='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try
='test -s conftest.$ac_objext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_member_struct_tm_tm_zone
=yes
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.
$ac_ext >&5
16339 cat >conftest.
$ac_ext <<_ACEOF
16342 cat confdefs.h
>>conftest.
$ac_ext
16343 cat >>conftest.
$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <sys/types.h>
16346 #include <$ac_cv_struct_tm>
16352 static struct tm ac_aggr;
16353 if (sizeof ac_aggr.tm_zone)
16359 rm -f conftest.
$ac_objext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16361 (eval $ac_compile) 2>conftest.er1
16363 grep -v '^ *+' conftest.er1
>conftest.err
16365 cat conftest.err
>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try
='test -z "$ac_c_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try
='test -s conftest.$ac_objext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_member_struct_tm_tm_zone
=yes
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.
$ac_ext >&5
16386 ac_cv_member_struct_tm_tm_zone
=no
16388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16392 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16393 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16394 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16396 cat >>confdefs.h
<<_ACEOF
16397 #define HAVE_STRUCT_TM_TM_ZONE 1
16403 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16405 cat >>confdefs.h
<<\_ACEOF
16406 #define HAVE_TM_ZONE 1
16410 echo "$as_me:$LINENO: checking for tzname" >&5
16411 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16412 if test "${ac_cv_var_tzname+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 cat >conftest.
$ac_ext <<_ACEOF
16418 cat confdefs.h
>>conftest.
$ac_ext
16419 cat >>conftest.
$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16422 #ifndef tzname /* For SGI. */
16423 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16434 rm -f conftest.
$ac_objext conftest
$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436 (eval $ac_link) 2>conftest.er1
16438 grep -v '^ *+' conftest.er1
>conftest.err
16440 cat conftest.err
>&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } &&
16443 { ac_try
='test -z "$ac_c_werror_flag"
16444 || test ! -s conftest.err'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try
='test -s conftest$ac_exeext'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 ac_cv_var_tzname
=yes
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.
$ac_ext >&5
16461 ac_cv_var_tzname
=no
16463 rm -f conftest.err conftest.
$ac_objext \
16464 conftest
$ac_exeext conftest.
$ac_ext
16466 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16467 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16468 if test $ac_cv_var_tzname = yes; then
16470 cat >>confdefs.h
<<\_ACEOF
16471 #define HAVE_TZNAME 1
16477 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16478 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16479 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 cat >conftest.
$ac_ext <<_ACEOF
16485 cat confdefs.h
>>conftest.
$ac_ext
16486 cat >>conftest.
$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 $ac_includes_default
16492 static struct stat ac_aggr;
16493 if (ac_aggr.st_rdev)
16499 rm -f conftest.
$ac_objext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>conftest.er1
16503 grep -v '^ *+' conftest.er1
>conftest.err
16505 cat conftest.err
>&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try
='test -z "$ac_c_werror_flag"
16509 || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try
='test -s conftest.$ac_objext'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_cv_member_struct_stat_st_rdev
=yes
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.
$ac_ext >&5
16526 cat >conftest.
$ac_ext <<_ACEOF
16529 cat confdefs.h
>>conftest.
$ac_ext
16530 cat >>conftest.
$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 $ac_includes_default
16536 static struct stat ac_aggr;
16537 if (sizeof ac_aggr.st_rdev)
16543 rm -f conftest.
$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545 (eval $ac_compile) 2>conftest.er1
16547 grep -v '^ *+' conftest.er1
>conftest.err
16549 cat conftest.err
>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try
='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try
='test -s conftest.$ac_objext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_member_struct_stat_st_rdev
=yes
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.
$ac_ext >&5
16570 ac_cv_member_struct_stat_st_rdev
=no
16572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16577 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16578 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16580 cat >>confdefs.h
<<_ACEOF
16581 #define HAVE_STRUCT_STAT_ST_RDEV 1
16587 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16588 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16589 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 cat >conftest.
$ac_ext <<_ACEOF
16595 cat confdefs.h
>>conftest.
$ac_ext
16596 cat >>conftest.
$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 $ac_includes_default
16602 static struct stat ac_aggr;
16603 if (ac_aggr.st_blksize)
16609 rm -f conftest.
$ac_objext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16611 (eval $ac_compile) 2>conftest.er1
16613 grep -v '^ *+' conftest.er1
>conftest.err
16615 cat conftest.err
>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
16618 { ac_try
='test -z "$ac_c_werror_flag"
16619 || test ! -s conftest.err'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try
='test -s conftest.$ac_objext'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_member_struct_stat_st_blksize
=yes
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.
$ac_ext >&5
16636 cat >conftest.
$ac_ext <<_ACEOF
16639 cat confdefs.h
>>conftest.
$ac_ext
16640 cat >>conftest.
$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 $ac_includes_default
16646 static struct stat ac_aggr;
16647 if (sizeof ac_aggr.st_blksize)
16653 rm -f conftest.
$ac_objext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16655 (eval $ac_compile) 2>conftest.er1
16657 grep -v '^ *+' conftest.er1
>conftest.err
16659 cat conftest.err
>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } &&
16662 { ac_try
='test -z "$ac_c_werror_flag"
16663 || test ! -s conftest.err'
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try
='test -s conftest.$ac_objext'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_cv_member_struct_stat_st_blksize
=yes
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.
$ac_ext >&5
16680 ac_cv_member_struct_stat_st_blksize
=no
16682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16686 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16687 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16688 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16690 cat >>confdefs.h
<<_ACEOF
16691 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16697 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
16698 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
16699 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 cat >conftest.
$ac_ext <<_ACEOF
16705 cat confdefs.h
>>conftest.
$ac_ext
16706 cat >>conftest.
$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 $ac_includes_default
16712 static struct stat ac_aggr;
16713 if (ac_aggr.st_flags)
16719 rm -f conftest.
$ac_objext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721 (eval $ac_compile) 2>conftest.er1
16723 grep -v '^ *+' conftest.er1
>conftest.err
16725 cat conftest.err
>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try
='test -z "$ac_c_werror_flag"
16729 || test ! -s conftest.err'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try
='test -s conftest.$ac_objext'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_member_struct_stat_st_flags
=yes
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.
$ac_ext >&5
16746 cat >conftest.
$ac_ext <<_ACEOF
16749 cat confdefs.h
>>conftest.
$ac_ext
16750 cat >>conftest.
$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 $ac_includes_default
16756 static struct stat ac_aggr;
16757 if (sizeof ac_aggr.st_flags)
16763 rm -f conftest.
$ac_objext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765 (eval $ac_compile) 2>conftest.er1
16767 grep -v '^ *+' conftest.er1
>conftest.err
16769 cat conftest.err
>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try
='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try
='test -s conftest.$ac_objext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_member_struct_stat_st_flags
=yes
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.
$ac_ext >&5
16790 ac_cv_member_struct_stat_st_flags
=no
16792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16796 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
16797 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
16798 if test $ac_cv_member_struct_stat_st_flags = yes; then
16800 cat >>confdefs.h
<<_ACEOF
16801 #define HAVE_STRUCT_STAT_ST_FLAGS 1
16807 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
16808 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
16809 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 cat >conftest.
$ac_ext <<_ACEOF
16815 cat confdefs.h
>>conftest.
$ac_ext
16816 cat >>conftest.
$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 $ac_includes_default
16822 static struct stat ac_aggr;
16823 if (ac_aggr.st_gen)
16829 rm -f conftest.
$ac_objext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831 (eval $ac_compile) 2>conftest.er1
16833 grep -v '^ *+' conftest.er1
>conftest.err
16835 cat conftest.err
>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try
='test -z "$ac_c_werror_flag"
16839 || test ! -s conftest.err'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try
='test -s conftest.$ac_objext'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_cv_member_struct_stat_st_gen
=yes
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.
$ac_ext >&5
16856 cat >conftest.
$ac_ext <<_ACEOF
16859 cat confdefs.h
>>conftest.
$ac_ext
16860 cat >>conftest.
$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 $ac_includes_default
16866 static struct stat ac_aggr;
16867 if (sizeof ac_aggr.st_gen)
16873 rm -f conftest.
$ac_objext
16874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16875 (eval $ac_compile) 2>conftest.er1
16877 grep -v '^ *+' conftest.er1
>conftest.err
16879 cat conftest.err
>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try
='test -z "$ac_c_werror_flag"
16883 || test ! -s conftest.err'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try
='test -s conftest.$ac_objext'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_member_struct_stat_st_gen
=yes
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.
$ac_ext >&5
16900 ac_cv_member_struct_stat_st_gen
=no
16902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16906 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
16907 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
16908 if test $ac_cv_member_struct_stat_st_gen = yes; then
16910 cat >>confdefs.h
<<_ACEOF
16911 #define HAVE_STRUCT_STAT_ST_GEN 1
16917 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
16918 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
16919 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 cat >conftest.
$ac_ext <<_ACEOF
16925 cat confdefs.h
>>conftest.
$ac_ext
16926 cat >>conftest.
$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 $ac_includes_default
16932 static struct stat ac_aggr;
16933 if (ac_aggr.st_birthtime)
16939 rm -f conftest.
$ac_objext
16940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16941 (eval $ac_compile) 2>conftest.er1
16943 grep -v '^ *+' conftest.er1
>conftest.err
16945 cat conftest.err
>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try
='test -z "$ac_c_werror_flag"
16949 || test ! -s conftest.err'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try
='test -s conftest.$ac_objext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_cv_member_struct_stat_st_birthtime
=yes
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.
$ac_ext >&5
16966 cat >conftest.
$ac_ext <<_ACEOF
16969 cat confdefs.h
>>conftest.
$ac_ext
16970 cat >>conftest.
$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 $ac_includes_default
16976 static struct stat ac_aggr;
16977 if (sizeof ac_aggr.st_birthtime)
16983 rm -f conftest.
$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985 (eval $ac_compile) 2>conftest.er1
16987 grep -v '^ *+' conftest.er1
>conftest.err
16989 cat conftest.err
>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
16992 { ac_try
='test -z "$ac_c_werror_flag"
16993 || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try
='test -s conftest.$ac_objext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_member_struct_stat_st_birthtime
=yes
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.
$ac_ext >&5
17010 ac_cv_member_struct_stat_st_birthtime
=no
17012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17016 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17017 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17018 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17020 cat >>confdefs.h
<<_ACEOF
17021 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17027 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17028 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17029 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 cat >conftest.
$ac_ext <<_ACEOF
17035 cat confdefs.h
>>conftest.
$ac_ext
17036 cat >>conftest.
$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 $ac_includes_default
17042 static struct stat ac_aggr;
17043 if (ac_aggr.st_blocks)
17049 rm -f conftest.
$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>conftest.er1
17053 grep -v '^ *+' conftest.er1
>conftest.err
17055 cat conftest.err
>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
17058 { ac_try
='test -z "$ac_c_werror_flag"
17059 || test ! -s conftest.err'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try
='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_member_struct_stat_st_blocks
=yes
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.
$ac_ext >&5
17076 cat >conftest.
$ac_ext <<_ACEOF
17079 cat confdefs.h
>>conftest.
$ac_ext
17080 cat >>conftest.
$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 $ac_includes_default
17086 static struct stat ac_aggr;
17087 if (sizeof ac_aggr.st_blocks)
17093 rm -f conftest.
$ac_objext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17095 (eval $ac_compile) 2>conftest.er1
17097 grep -v '^ *+' conftest.er1
>conftest.err
17099 cat conftest.err
>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try
='test -z "$ac_c_werror_flag"
17103 || test ! -s conftest.err'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try
='test -s conftest.$ac_objext'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_member_struct_stat_st_blocks
=yes
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.
$ac_ext >&5
17120 ac_cv_member_struct_stat_st_blocks
=no
17122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17128 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17130 cat >>confdefs.h
<<_ACEOF
17131 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17135 cat >>confdefs.h
<<\_ACEOF
17136 #define HAVE_ST_BLOCKS 1
17141 "fileblocks.$ac_objext" | \
17142 *" fileblocks.$ac_objext" | \
17143 "fileblocks.$ac_objext "* | \
17144 *" fileblocks.$ac_objext "* ) ;;
17145 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17152 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17153 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17154 if test "${ac_cv_header_time_altzone+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 cat >conftest.
$ac_ext <<_ACEOF
17160 cat confdefs.h
>>conftest.
$ac_ext
17161 cat >>conftest.
$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17172 rm -f conftest.
$ac_objext
17173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17174 (eval $ac_compile) 2>conftest.er1
17176 grep -v '^ *+' conftest.er1
>conftest.err
17178 cat conftest.err
>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } &&
17181 { ac_try
='test -z "$ac_c_werror_flag"
17182 || test ! -s conftest.err'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; } &&
17188 { ac_try
='test -s conftest.$ac_objext'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_header_time_altzone
=yes
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.
$ac_ext >&5
17199 ac_cv_header_time_altzone
=no
17201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17204 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17205 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17206 if test $ac_cv_header_time_altzone = yes; then
17208 cat >>confdefs.h
<<\_ACEOF
17209 #define HAVE_ALTZONE 1
17215 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17216 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17217 cat >conftest.
$ac_ext <<_ACEOF
17220 cat confdefs.h
>>conftest.
$ac_ext
17221 cat >>conftest.
$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17224 #include <sys/types.h>
17225 #include <sys/select.h>
17226 #include <sys/time.h>
17236 rm -f conftest.
$ac_objext
17237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17238 (eval $ac_compile) 2>conftest.er1
17240 grep -v '^ *+' conftest.er1
>conftest.err
17242 cat conftest.err
>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try
='test -z "$ac_c_werror_flag"
17246 || test ! -s conftest.err'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try
='test -s conftest.$ac_objext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17260 cat >>confdefs.h
<<\_ACEOF
17261 #define SYS_SELECT_WITH_SYS_TIME 1
17267 echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.
$ac_ext >&5
17271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17272 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17273 echo "${ECHO_T}$was_it_defined" >&6
17275 echo "$as_me:$LINENO: checking for addrinfo" >&5
17276 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17277 if test "${ac_cv_struct_addrinfo+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 cat >conftest.
$ac_ext <<_ACEOF
17283 cat confdefs.h
>>conftest.
$ac_ext
17284 cat >>conftest.
$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17287 # include <netdb.h>
17296 rm -f conftest.
$ac_objext
17297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17298 (eval $ac_compile) 2>conftest.er1
17300 grep -v '^ *+' conftest.er1
>conftest.err
17302 cat conftest.err
>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try
='test -z "$ac_c_werror_flag"
17306 || test ! -s conftest.err'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try
='test -s conftest.$ac_objext'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 ac_cv_struct_addrinfo
=yes
17320 echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.
$ac_ext >&5
17323 ac_cv_struct_addrinfo
=no
17325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17328 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17329 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17330 if test $ac_cv_struct_addrinfo = yes; then
17332 cat >>confdefs.h
<<\_ACEOF
17333 #define HAVE_ADDRINFO 1
17338 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17339 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17340 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 cat >conftest.
$ac_ext <<_ACEOF
17346 cat confdefs.h
>>conftest.
$ac_ext
17347 cat >>conftest.
$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17350 # include <sys/types.h>
17351 # include <sys/socket.h>
17355 struct sockaddr_storage s
17360 rm -f conftest.
$ac_objext
17361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17362 (eval $ac_compile) 2>conftest.er1
17364 grep -v '^ *+' conftest.er1
>conftest.err
17366 cat conftest.err
>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } &&
17369 { ac_try
='test -z "$ac_c_werror_flag"
17370 || test ! -s conftest.err'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try
='test -s conftest.$ac_objext'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
17382 ac_cv_struct_sockaddr_storage
=yes
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.
$ac_ext >&5
17387 ac_cv_struct_sockaddr_storage
=no
17389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17392 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17393 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17394 if test $ac_cv_struct_sockaddr_storage = yes; then
17396 cat >>confdefs.h
<<\_ACEOF
17397 #define HAVE_SOCKADDR_STORAGE 1
17402 # checks for compiler characteristics
17405 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17406 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17407 if test "${ac_cv_c_char_unsigned+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 cat >conftest.
$ac_ext <<_ACEOF
17413 cat confdefs.h
>>conftest.
$ac_ext
17414 cat >>conftest.
$ac_ext <<_ACEOF
17415 /* end confdefs.h. */
17416 $ac_includes_default
17420 static int test_array [1 - 2 * !(((char) -1) < 0)];
17427 rm -f conftest.
$ac_objext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>conftest.er1
17431 grep -v '^ *+' conftest.er1
>conftest.err
17433 cat conftest.err
>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try
='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try
='test -s conftest.$ac_objext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 ac_cv_c_char_unsigned
=no
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.
$ac_ext >&5
17454 ac_cv_c_char_unsigned
=yes
17456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17458 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
17459 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
17460 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
17461 cat >>confdefs.h
<<\_ACEOF
17462 #define __CHAR_UNSIGNED__ 1
17467 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17468 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17469 if test "${ac_cv_c_const+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 cat >conftest.
$ac_ext <<_ACEOF
17475 cat confdefs.h
>>conftest.
$ac_ext
17476 cat >>conftest.
$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17482 /* FIXME: Include the comments suggested by Paul. */
17483 #ifndef __cplusplus
17484 /* Ultrix mips cc rejects this. */
17485 typedef int charset[2];
17487 /* SunOS 4.1.1 cc rejects this. */
17488 char const *const *ccp;
17490 /* NEC SVR4.0.2 mips cc rejects this. */
17491 struct point {int x, y;};
17492 static struct point const zero = {0,0};
17493 /* AIX XL C 1.02.0.0 rejects this.
17494 It does not let you subtract one const X* pointer from another in
17495 an arm of an if-expression whose if-part is not a constant
17497 const char *g = "string";
17498 ccp = &g + (g ? g-g : 0);
17499 /* HPUX 7.0 cc rejects these. */
17502 ccp = (char const *const *) p;
17503 { /* SCO 3.2v4 cc rejects this. */
17505 char const *s = 0 ? (char *) 0 : (char const *) 0;
17509 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17510 int x[] = {25, 17};
17511 const int *foo = &x[0];
17514 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17515 typedef const int *iptr;
17519 { /* AIX XL C 1.02.0.0 rejects this saying
17520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17521 struct s { int j; const int *ap[3]; };
17522 struct s *b; b->j = 5;
17524 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17525 const int foo = 10;
17533 rm -f conftest.
$ac_objext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17535 (eval $ac_compile) 2>conftest.er1
17537 grep -v '^ *+' conftest.er1
>conftest.err
17539 cat conftest.err
>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
17542 { ac_try
='test -z "$ac_c_werror_flag"
17543 || test ! -s conftest.err'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try
='test -s conftest.$ac_objext'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.
$ac_ext >&5
17562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17564 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17565 echo "${ECHO_T}$ac_cv_c_const" >&6
17566 if test $ac_cv_c_const = no
; then
17568 cat >>confdefs.h
<<\_ACEOF
17576 echo "$as_me:$LINENO: checking for working volatile" >&5
17577 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
17578 cat >conftest.
$ac_ext <<_ACEOF
17581 cat confdefs.h
>>conftest.
$ac_ext
17582 cat >>conftest.
$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17588 volatile int x; x = 0;
17593 rm -f conftest.
$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>conftest.er1
17597 grep -v '^ *+' conftest.er1
>conftest.err
17599 cat conftest.err
>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try
='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try
='test -s conftest.$ac_objext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.
$ac_ext >&5
17621 cat >>confdefs.h
<<\_ACEOF
17627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17628 echo "$as_me:$LINENO: result: $works" >&5
17629 echo "${ECHO_T}$works" >&6
17632 echo "$as_me:$LINENO: checking for working signed char" >&5
17633 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
17634 cat >conftest.
$ac_ext <<_ACEOF
17637 cat confdefs.h
>>conftest.
$ac_ext
17638 cat >>conftest.
$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17649 rm -f conftest.
$ac_objext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>conftest.er1
17653 grep -v '^ *+' conftest.er1
>conftest.err
17655 cat conftest.err
>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try
='test -z "$ac_c_werror_flag"
17659 || test ! -s conftest.err'
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); }; } &&
17665 { ac_try
='test -s conftest.$ac_objext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.
$ac_ext >&5
17677 cat >>confdefs.h
<<\_ACEOF
17683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17684 echo "$as_me:$LINENO: result: $works" >&5
17685 echo "${ECHO_T}$works" >&6
17688 echo "$as_me:$LINENO: checking for prototypes" >&5
17689 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
17690 cat >conftest.
$ac_ext <<_ACEOF
17693 cat confdefs.h
>>conftest.
$ac_ext
17694 cat >>conftest.
$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17696 int foo(int x) { return 0; }
17705 rm -f conftest.
$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707 (eval $ac_compile) 2>conftest.er1
17709 grep -v '^ *+' conftest.er1
>conftest.err
17711 cat conftest.err
>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try
='test -z "$ac_c_werror_flag"
17715 || test ! -s conftest.err'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try
='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17729 cat >>confdefs.h
<<\_ACEOF
17730 #define HAVE_PROTOTYPES 1
17733 have_prototypes
=yes
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.
$ac_ext >&5
17740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17741 echo "$as_me:$LINENO: result: $have_prototypes" >&5
17742 echo "${ECHO_T}$have_prototypes" >&6
17745 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
17746 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
17747 cat >conftest.
$ac_ext <<_ACEOF
17750 cat confdefs.h
>>conftest.
$ac_ext
17751 cat >>conftest.
$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17754 #include <stdarg.h>
17755 int foo(int x, ...) {
17759 va_arg(va, char *);
17760 va_arg(va, double);
17767 return foo(10, "", 3.14);
17772 rm -f conftest.
$ac_objext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17774 (eval $ac_compile) 2>conftest.er1
17776 grep -v '^ *+' conftest.er1
>conftest.err
17778 cat conftest.err
>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try
='test -z "$ac_c_werror_flag"
17782 || test ! -s conftest.err'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try
='test -s conftest.$ac_objext'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17796 cat >>confdefs.h
<<\_ACEOF
17797 #define HAVE_STDARG_PROTOTYPES 1
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.
$ac_ext >&5
17807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17808 echo "$as_me:$LINENO: result: $works" >&5
17809 echo "${ECHO_T}$works" >&6
17811 # check for socketpair
17812 echo "$as_me:$LINENO: checking for socketpair" >&5
17813 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
17814 cat >conftest.
$ac_ext <<_ACEOF
17817 cat confdefs.h
>>conftest.
$ac_ext
17818 cat >>conftest.
$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17821 #include <sys/types.h>
17822 #include <sys/socket.h>
17832 rm -f conftest.
$ac_objext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17834 (eval $ac_compile) 2>conftest.er1
17836 grep -v '^ *+' conftest.er1
>conftest.err
17838 cat conftest.err
>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try
='test -z "$ac_c_werror_flag"
17842 || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try
='test -s conftest.$ac_objext'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17855 cat >>confdefs.h
<<\_ACEOF
17856 #define HAVE_SOCKETPAIR 1
17859 echo "$as_me:$LINENO: result: yes" >&5
17860 echo "${ECHO_T}yes" >&6
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.
$ac_ext >&5
17865 echo "$as_me:$LINENO: result: no" >&5
17866 echo "${ECHO_T}no" >&6
17869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17871 # check if sockaddr has sa_len member
17872 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
17873 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
17874 cat >conftest.
$ac_ext <<_ACEOF
17877 cat confdefs.h
>>conftest.
$ac_ext
17878 cat >>conftest.
$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17880 #include <sys/types.h>
17881 #include <sys/socket.h>
17891 rm -f conftest.
$ac_objext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17893 (eval $ac_compile) 2>conftest.er1
17895 grep -v '^ *+' conftest.er1
>conftest.err
17897 cat conftest.err
>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try
='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try
='test -s conftest.$ac_objext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 echo "$as_me:$LINENO: result: yes" >&5
17914 echo "${ECHO_T}yes" >&6
17916 cat >>confdefs.h
<<\_ACEOF
17917 #define HAVE_SOCKADDR_SA_LEN 1
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.
$ac_ext >&5
17924 echo "$as_me:$LINENO: result: no" >&5
17925 echo "${ECHO_T}no" >&6
17927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17929 va_list_is_array
=no
17930 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
17931 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
17932 cat >conftest.
$ac_ext <<_ACEOF
17935 cat confdefs.h
>>conftest.
$ac_ext
17936 cat >>conftest.
$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17939 #ifdef HAVE_STDARG_PROTOTYPES
17940 #include <stdarg.h>
17942 #include <varargs.h>
17948 va_list list1, list2; list1 = list2;
17953 rm -f conftest.
$ac_objext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17955 (eval $ac_compile) 2>conftest.er1
17957 grep -v '^ *+' conftest.er1
>conftest.err
17959 cat conftest.err
>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try
='test -z "$ac_c_werror_flag"
17963 || test ! -s conftest.err'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try
='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.
$ac_ext >&5
17982 cat >>confdefs.h
<<\_ACEOF
17983 #define VA_LIST_IS_ARRAY 1
17986 va_list_is_array
=yes
17989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17990 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
17991 echo "${ECHO_T}$va_list_is_array" >&6
17993 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
17997 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17998 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17999 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 cat >conftest.
$ac_ext <<_ACEOF
18005 cat confdefs.h
>>conftest.
$ac_ext
18006 cat >>conftest.
$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 /* System header to define __stub macros and hopefully few prototypes,
18009 which can conflict with char gethostbyname_r (); below.
18010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18011 <limits.h> exists even on freestanding compilers. Under hpux,
18012 including <limits.h> includes <sys/time.h> and causes problems
18013 checking for functions defined therein. */
18014 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18015 # include <limits.h>
18017 # include <assert.h>
18019 /* Override any gcc2 internal prototype to avoid an error. */
18024 /* We use char because int might match the return type of a gcc2
18025 builtin and then its argument prototype would still apply. */
18026 char gethostbyname_r ();
18027 /* The GNU C library defines this for functions which it implements
18028 to always fail with ENOSYS. Some functions are actually named
18029 something starting with __ and the normal name is an alias. */
18030 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18033 char (*f) () = gethostbyname_r;
18042 return f != gethostbyname_r;
18047 rm -f conftest.
$ac_objext conftest
$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 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_exeext'
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_func_gethostbyname_r
=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.
$ac_ext >&5
18074 ac_cv_func_gethostbyname_r
=no
18076 rm -f conftest.err conftest.
$ac_objext \
18077 conftest
$ac_exeext conftest.
$ac_ext
18079 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18080 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18081 if test $ac_cv_func_gethostbyname_r = yes; then
18083 cat >>confdefs.h
<<\_ACEOF
18084 #define HAVE_GETHOSTBYNAME_R 1
18087 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18088 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18090 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18091 cat >conftest.
$ac_ext <<_ACEOF
18094 cat confdefs.h
>>conftest.
$ac_ext
18095 cat >>conftest.
$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18098 # include <netdb.h>
18105 struct hostent *he, *res;
18110 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18116 rm -f conftest.
$ac_objext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18118 (eval $ac_compile) 2>conftest.er1
18120 grep -v '^ *+' conftest.er1
>conftest.err
18122 cat conftest.err
>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try
='test -z "$ac_c_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try
='test -s conftest.$ac_objext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18139 cat >>confdefs.h
<<\_ACEOF
18140 #define HAVE_GETHOSTBYNAME_R 1
18144 cat >>confdefs.h
<<\_ACEOF
18145 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18148 echo "$as_me:$LINENO: result: yes" >&5
18149 echo "${ECHO_T}yes" >&6
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.
$ac_ext >&5
18156 echo "$as_me:$LINENO: result: no" >&5
18157 echo "${ECHO_T}no" >&6
18158 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18159 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18160 cat >conftest.
$ac_ext <<_ACEOF
18163 cat confdefs.h
>>conftest.
$ac_ext
18164 cat >>conftest.
$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18167 # include <netdb.h>
18174 struct hostent *he;
18179 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18185 rm -f conftest.
$ac_objext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187 (eval $ac_compile) 2>conftest.er1
18189 grep -v '^ *+' conftest.er1
>conftest.err
18191 cat conftest.err
>&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try
='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try
='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18208 cat >>confdefs.h
<<\_ACEOF
18209 #define HAVE_GETHOSTBYNAME_R 1
18213 cat >>confdefs.h
<<\_ACEOF
18214 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18217 echo "$as_me:$LINENO: result: yes" >&5
18218 echo "${ECHO_T}yes" >&6
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.
$ac_ext >&5
18225 echo "$as_me:$LINENO: result: no" >&5
18226 echo "${ECHO_T}no" >&6
18227 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18228 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18229 cat >conftest.
$ac_ext <<_ACEOF
18232 cat confdefs.h
>>conftest.
$ac_ext
18233 cat >>conftest.
$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18236 # include <netdb.h>
18243 struct hostent *he;
18244 struct hostent_data data;
18246 (void) gethostbyname_r(name, he, &data);
18252 rm -f conftest.
$ac_objext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18254 (eval $ac_compile) 2>conftest.er1
18256 grep -v '^ *+' conftest.er1
>conftest.err
18258 cat conftest.err
>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try
='test -z "$ac_c_werror_flag"
18262 || test ! -s conftest.err'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try
='test -s conftest.$ac_objext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18275 cat >>confdefs.h
<<\_ACEOF
18276 #define HAVE_GETHOSTBYNAME_R 1
18280 cat >>confdefs.h
<<\_ACEOF
18281 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18284 echo "$as_me:$LINENO: result: yes" >&5
18285 echo "${ECHO_T}yes" >&6
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.
$ac_ext >&5
18292 echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6
18296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18308 for ac_func
in gethostbyname
18310 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18311 echo "$as_me:$LINENO: checking for $ac_func" >&5
18312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18313 if eval "test \"\${$as_ac_var+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 /* System header to define __stub macros and hopefully few prototypes,
18323 which can conflict with char $ac_func (); below.
18324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18325 <limits.h> exists even on freestanding compilers. Under hpux,
18326 including <limits.h> includes <sys/time.h> and causes problems
18327 checking for functions defined therein. */
18328 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18329 # include <limits.h>
18331 # include <assert.h>
18333 /* Override any gcc2 internal prototype to avoid an error. */
18338 /* We use char because int might match the return type of a gcc2
18339 builtin and then its argument prototype would still apply. */
18341 /* The GNU C library defines this for functions which it implements
18342 to always fail with ENOSYS. Some functions are actually named
18343 something starting with __ and the normal name is an alias. */
18344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18347 char (*f) () = $ac_func;
18356 return f != $ac_func;
18361 rm -f conftest.
$ac_objext conftest
$ac_exeext
18362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18363 (eval $ac_link) 2>conftest.er1
18365 grep -v '^ *+' conftest.er1
>conftest.err
18367 cat conftest.err
>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try
='test -z "$ac_c_werror_flag"
18371 || test ! -s conftest.err'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try
='test -s conftest$ac_exeext'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 eval "$as_ac_var=yes"
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.
$ac_ext >&5
18388 eval "$as_ac_var=no"
18390 rm -f conftest.err conftest.
$ac_objext \
18391 conftest
$ac_exeext conftest.
$ac_ext
18393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18395 if test `eval echo '${'$as_ac_var'}'` = yes; then
18396 cat >>confdefs.h
<<_ACEOF
18397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18412 # checks for system services
18415 # Linux requires this for correct f.p. operations
18416 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18417 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18418 if test "${ac_cv_func___fpu_control+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 cat >conftest.
$ac_ext <<_ACEOF
18424 cat confdefs.h
>>conftest.
$ac_ext
18425 cat >>conftest.
$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18427 /* System header to define __stub macros and hopefully few prototypes,
18428 which can conflict with char __fpu_control (); below.
18429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430 <limits.h> exists even on freestanding compilers. Under hpux,
18431 including <limits.h> includes <sys/time.h> and causes problems
18432 checking for functions defined therein. */
18433 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18434 # include <limits.h>
18436 # include <assert.h>
18438 /* Override any gcc2 internal prototype to avoid an error. */
18443 /* We use char because int might match the return type of a gcc2
18444 builtin and then its argument prototype would still apply. */
18445 char __fpu_control ();
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
18452 char (*f) () = __fpu_control;
18461 return f != __fpu_control;
18466 rm -f conftest.
$ac_objext conftest
$ac_exeext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18468 (eval $ac_link) 2>conftest.er1
18470 grep -v '^ *+' conftest.er1
>conftest.err
18472 cat conftest.err
>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try
='test -z "$ac_c_werror_flag"
18476 || test ! -s conftest.err'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try
='test -s conftest$ac_exeext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_cv_func___fpu_control
=yes
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.
$ac_ext >&5
18493 ac_cv_func___fpu_control
=no
18495 rm -f conftest.err conftest.
$ac_objext \
18496 conftest
$ac_exeext conftest.
$ac_ext
18498 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
18499 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
18500 if test $ac_cv_func___fpu_control = yes; then
18504 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
18505 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
18506 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 ac_check_lib_save_LIBS
=$LIBS
18510 LIBS
="-lieee $LIBS"
18511 cat >conftest.
$ac_ext <<_ACEOF
18514 cat confdefs.h
>>conftest.
$ac_ext
18515 cat >>conftest.
$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18518 /* Override any gcc2 internal prototype to avoid an error. */
18522 /* We use char because int might match the return type of a gcc2
18523 builtin and then its argument prototype would still apply. */
18524 char __fpu_control ();
18533 rm -f conftest.
$ac_objext conftest
$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>conftest.er1
18537 grep -v '^ *+' conftest.er1
>conftest.err
18539 cat conftest.err
>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try
='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try
='test -s conftest$ac_exeext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_cv_lib_ieee___fpu_control
=yes
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.
$ac_ext >&5
18560 ac_cv_lib_ieee___fpu_control
=no
18562 rm -f conftest.err conftest.
$ac_objext \
18563 conftest
$ac_exeext conftest.
$ac_ext
18564 LIBS
=$ac_check_lib_save_LIBS
18566 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
18567 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
18568 if test $ac_cv_lib_ieee___fpu_control = yes; then
18569 cat >>confdefs.h
<<_ACEOF
18570 #define HAVE_LIBIEEE 1
18573 LIBS
="-lieee $LIBS"
18581 # Check for --with-fpectl
18582 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
18583 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
18585 # Check whether --with-fpectl or --without-fpectl was given.
18586 if test "${with_fpectl+set}" = set; then
18587 withval
="$with_fpectl"
18589 if test "$withval" != no
18592 cat >>confdefs.h
<<\_ACEOF
18593 #define WANT_SIGFPE_HANDLER 1
18596 echo "$as_me:$LINENO: result: yes" >&5
18597 echo "${ECHO_T}yes" >&6
18598 else echo "$as_me:$LINENO: result: no" >&5
18599 echo "${ECHO_T}no" >&6
18602 echo "$as_me:$LINENO: result: no" >&5
18603 echo "${ECHO_T}no" >&6
18606 # check for --with-libm=...
18608 case $ac_sys_system in
18613 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
18614 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
18616 # Check whether --with-libm or --without-libm was given.
18617 if test "${with_libm+set}" = set; then
18618 withval
="$with_libm"
18620 if test "$withval" = no
18622 echo "$as_me:$LINENO: result: force LIBM empty" >&5
18623 echo "${ECHO_T}force LIBM empty" >&6
18624 elif test "$withval" != yes
18626 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
18627 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
18628 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
18629 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
18630 { (exit 1); exit 1; }; }
18633 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
18634 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
18637 # check for --with-libc=...
18639 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
18640 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
18642 # Check whether --with-libc or --without-libc was given.
18643 if test "${with_libc+set}" = set; then
18644 withval
="$with_libc"
18646 if test "$withval" = no
18648 echo "$as_me:$LINENO: result: force LIBC empty" >&5
18649 echo "${ECHO_T}force LIBC empty" >&6
18650 elif test "$withval" != yes
18652 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
18653 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
18654 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
18655 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
18656 { (exit 1); exit 1; }; }
18659 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
18660 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
18663 # check for hypot() in math library
18667 for ac_func
in hypot
18669 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18670 echo "$as_me:$LINENO: checking for $ac_func" >&5
18671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18672 if eval "test \"\${$as_ac_var+set}\" = set"; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 cat >conftest.
$ac_ext <<_ACEOF
18678 cat confdefs.h
>>conftest.
$ac_ext
18679 cat >>conftest.
$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 /* System header to define __stub macros and hopefully few prototypes,
18682 which can conflict with char $ac_func (); below.
18683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18684 <limits.h> exists even on freestanding compilers. Under hpux,
18685 including <limits.h> includes <sys/time.h> and causes problems
18686 checking for functions defined therein. */
18687 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18688 # include <limits.h>
18690 # include <assert.h>
18692 /* Override any gcc2 internal prototype to avoid an error. */
18697 /* We use char because int might match the return type of a gcc2
18698 builtin and then its argument prototype would still apply. */
18700 /* The GNU C library defines this for functions which it implements
18701 to always fail with ENOSYS. Some functions are actually named
18702 something starting with __ and the normal name is an alias. */
18703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18706 char (*f) () = $ac_func;
18715 return f != $ac_func;
18720 rm -f conftest.
$ac_objext conftest
$ac_exeext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722 (eval $ac_link) 2>conftest.er1
18724 grep -v '^ *+' conftest.er1
>conftest.err
18726 cat conftest.err
>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try
='test -z "$ac_c_werror_flag"
18730 || test ! -s conftest.err'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try
='test -s conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 eval "$as_ac_var=yes"
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.
$ac_ext >&5
18747 eval "$as_ac_var=no"
18749 rm -f conftest.err conftest.
$ac_objext \
18750 conftest
$ac_exeext conftest.
$ac_ext
18752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18754 if test `eval echo '${'$as_ac_var'}'` = yes; then
18755 cat >>confdefs.h
<<_ACEOF
18756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18761 "$ac_func.$ac_objext" | \
18762 *" $ac_func.$ac_objext" | \
18763 "$ac_func.$ac_objext "* | \
18764 *" $ac_func.$ac_objext "* ) ;;
18765 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
18774 # check for wchar.h
18775 if test "${ac_cv_header_wchar_h+set}" = set; then
18776 echo "$as_me:$LINENO: checking for wchar.h" >&5
18777 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18778 if test "${ac_cv_header_wchar_h+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18782 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18784 # Is the header compilable?
18785 echo "$as_me:$LINENO: checking wchar.h usability" >&5
18786 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
18787 cat >conftest.
$ac_ext <<_ACEOF
18790 cat confdefs.h
>>conftest.
$ac_ext
18791 cat >>conftest.
$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 $ac_includes_default
18796 rm -f conftest.
$ac_objext
18797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18798 (eval $ac_compile) 2>conftest.er1
18800 grep -v '^ *+' conftest.er1
>conftest.err
18802 cat conftest.err
>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try
='test -z "$ac_c_werror_flag"
18806 || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try
='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 ac_header_compiler
=yes
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.
$ac_ext >&5
18823 ac_header_compiler
=no
18825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18827 echo "${ECHO_T}$ac_header_compiler" >&6
18829 # Is the header present?
18830 echo "$as_me:$LINENO: checking wchar.h presence" >&5
18831 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
18832 cat >conftest.
$ac_ext <<_ACEOF
18835 cat confdefs.h
>>conftest.
$ac_ext
18836 cat >>conftest.
$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18841 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18843 grep -v '^ *+' conftest.er1
>conftest.err
18845 cat conftest.err
>&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } >/dev
/null
; then
18848 if test -s conftest.err
; then
18849 ac_cpp_err
=$ac_c_preproc_warn_flag
18850 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18857 if test -z "$ac_cpp_err"; then
18858 ac_header_preproc
=yes
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.
$ac_ext >&5
18863 ac_header_preproc
=no
18865 rm -f conftest.err conftest.
$ac_ext
18866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18867 echo "${ECHO_T}$ac_header_preproc" >&6
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18872 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
18873 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18874 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
18875 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
18876 ac_header_preproc
=yes
18879 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
18880 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
18882 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
18884 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
18886 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
18888 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
18890 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
18893 ## ------------------------------------------------ ##
18894 ## Report this to http://www.python.org/python-bugs ##
18895 ## ------------------------------------------------ ##
18898 sed "s/^/$as_me: WARNING: /" >&2
18901 echo "$as_me:$LINENO: checking for wchar.h" >&5
18902 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18903 if test "${ac_cv_header_wchar_h+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 ac_cv_header_wchar_h
=$ac_header_preproc
18908 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18909 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18912 if test $ac_cv_header_wchar_h = yes; then
18915 cat >>confdefs.h
<<\_ACEOF
18916 #define HAVE_WCHAR_H 1
18928 # determine wchar_t size
18929 if test "$wchar_h" = yes
18931 echo "$as_me:$LINENO: checking for wchar_t" >&5
18932 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
18933 if test "${ac_cv_type_wchar_t+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 cat >conftest.
$ac_ext <<_ACEOF
18939 cat confdefs.h
>>conftest.
$ac_ext
18940 cat >>conftest.
$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18949 if (sizeof (wchar_t))
18955 rm -f conftest.
$ac_objext
18956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18957 (eval $ac_compile) 2>conftest.er1
18959 grep -v '^ *+' conftest.er1
>conftest.err
18961 cat conftest.err
>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try
='test -z "$ac_c_werror_flag"
18965 || test ! -s conftest.err'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try
='test -s conftest.$ac_objext'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18977 ac_cv_type_wchar_t
=yes
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.
$ac_ext >&5
18982 ac_cv_type_wchar_t
=no
18984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18986 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
18987 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
18989 echo "$as_me:$LINENO: checking size of wchar_t" >&5
18990 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18991 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 if test "$ac_cv_type_wchar_t" = yes; then
18995 # The cast to unsigned long works around a bug in the HP C Compiler
18996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18998 # This bug is HP SR number 8606223364.
18999 if test "$cross_compiling" = yes; then
19000 # Depending upon the size, compute the lo and hi bounds.
19001 cat >conftest.
$ac_ext <<_ACEOF
19004 cat confdefs.h
>>conftest.
$ac_ext
19005 cat >>conftest.
$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19012 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19019 rm -f conftest.
$ac_objext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19023 grep -v '^ *+' conftest.er1
>conftest.err
19025 cat conftest.err
>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try
='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try
='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19043 cat >conftest.
$ac_ext <<_ACEOF
19046 cat confdefs.h
>>conftest.
$ac_ext
19047 cat >>conftest.
$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19054 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19061 rm -f conftest.
$ac_objext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063 (eval $ac_compile) 2>conftest.er1
19065 grep -v '^ *+' conftest.er1
>conftest.err
19067 cat conftest.err
>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try
='test -z "$ac_c_werror_flag"
19071 || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try
='test -s conftest.$ac_objext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_hi
=$ac_mid; break
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.
$ac_ext >&5
19088 ac_lo
=`expr $ac_mid + 1`
19089 if test $ac_lo -le $ac_mid; then
19093 ac_mid
=`expr 2 '*' $ac_mid + 1`
19095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.
$ac_ext >&5
19101 cat >conftest.
$ac_ext <<_ACEOF
19104 cat confdefs.h
>>conftest.
$ac_ext
19105 cat >>conftest.
$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19112 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19119 rm -f conftest.
$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121 (eval $ac_compile) 2>conftest.er1
19123 grep -v '^ *+' conftest.er1
>conftest.err
19125 cat conftest.err
>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try
='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try
='test -s conftest.$ac_objext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19143 cat >conftest.
$ac_ext <<_ACEOF
19146 cat confdefs.h
>>conftest.
$ac_ext
19147 cat >>conftest.
$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19154 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19161 rm -f conftest.
$ac_objext
19162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19163 (eval $ac_compile) 2>conftest.er1
19165 grep -v '^ *+' conftest.er1
>conftest.err
19167 cat conftest.err
>&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } &&
19170 { ac_try
='test -z "$ac_c_werror_flag"
19171 || test ! -s conftest.err'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try
='test -s conftest.$ac_objext'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
19183 ac_lo
=$ac_mid; break
19185 echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.
$ac_ext >&5
19188 ac_hi
=`expr '(' $ac_mid ')' - 1`
19189 if test $ac_mid -le $ac_hi; then
19193 ac_mid
=`expr 2 '*' $ac_mid`
19195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.
$ac_ext >&5
19203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19206 # Binary search between lo and hi bounds.
19207 while test "x$ac_lo" != "x$ac_hi"; do
19208 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19209 cat >conftest.
$ac_ext <<_ACEOF
19212 cat confdefs.h
>>conftest.
$ac_ext
19213 cat >>conftest.
$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19220 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19227 rm -f conftest.
$ac_objext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>conftest.er1
19231 grep -v '^ *+' conftest.er1
>conftest.err
19233 cat conftest.err
>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try
='test -z "$ac_c_werror_flag"
19237 || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try
='test -s conftest.$ac_objext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.
$ac_ext >&5
19254 ac_lo
=`expr '(' $ac_mid ')' + 1`
19256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19259 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19261 See \`config.log' for more details." >&5
19262 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19263 See \`config.log' for more details." >&2;}
19264 { (exit 1); exit 1; }; } ;;
19267 if test "$cross_compiling" = yes; then
19268 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19269 See \`config.log' for more details." >&5
19270 echo "$as_me: error: cannot run test program while cross compiling
19271 See \`config.log' for more details." >&2;}
19272 { (exit 1); exit 1; }; }
19274 cat >conftest.
$ac_ext <<_ACEOF
19277 cat confdefs.h
>>conftest.
$ac_ext
19278 cat >>conftest.
$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19282 long longval () { return (long) (sizeof (wchar_t)); }
19283 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19285 #include <stdlib.h>
19290 FILE *f = fopen ("conftest.val", "w");
19293 if (((long) (sizeof (wchar_t))) < 0)
19295 long i = longval ();
19296 if (i != ((long) (sizeof (wchar_t))))
19298 fprintf (f, "%ld\n", i);
19302 unsigned long i = ulongval ();
19303 if (i != ((long) (sizeof (wchar_t))))
19305 fprintf (f, "%lu\n", i);
19307 exit (ferror (f) || fclose (f) != 0);
19313 rm -f conftest
$ac_exeext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19326 echo "$as_me: program exited with status $ac_status" >&5
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.
$ac_ext >&5
19330 ( exit $ac_status )
19331 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19332 See \`config.log' for more details." >&5
19333 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19334 See \`config.log' for more details." >&2;}
19335 { (exit 1); exit 1; }; }
19337 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19342 ac_cv_sizeof_wchar_t
=0
19345 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19346 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19347 cat >>confdefs.h
<<_ACEOF
19348 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19354 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19355 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19357 cat >conftest.
$ac_ext <<_ACEOF
19360 cat confdefs.h
>>conftest.
$ac_ext
19361 cat >>conftest.
$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19365 #if TCL_UTF_MAX != 6
19366 # error "NOT UCS4_TCL"
19376 rm -f conftest.
$ac_objext
19377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19378 (eval $ac_compile) 2>conftest.er1
19380 grep -v '^ *+' conftest.er1
>conftest.err
19382 cat conftest.err
>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try
='test -z "$ac_c_werror_flag"
19386 || test ! -s conftest.err'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; } &&
19392 { ac_try
='test -s conftest.$ac_objext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19400 cat >>confdefs.h
<<\_ACEOF
19401 #define HAVE_UCS4_TCL 1
19407 echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.
$ac_ext >&5
19411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19412 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19413 echo "${ECHO_T}$have_ucs4_tcl" >&6
19415 # check whether wchar_t is signed or not
19416 if test "$wchar_h" = yes
19418 # check whether wchar_t is signed or not
19419 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
19420 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
19421 if test "${ac_cv_wchar_t_signed+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 if test "$cross_compiling" = yes; then
19426 ac_cv_wchar_t_signed
=yes
19428 cat >conftest.
$ac_ext <<_ACEOF
19431 cat confdefs.h
>>conftest.
$ac_ext
19432 cat >>conftest.
$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19438 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
19442 rm -f conftest
$ac_exeext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19444 (eval $ac_link) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_cv_wchar_t_signed
=yes
19455 echo "$as_me: program exited with status $ac_status" >&5
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.
$ac_ext >&5
19459 ( exit $ac_status )
19460 ac_cv_wchar_t_signed
=no
19462 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19466 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
19467 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
19470 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
19471 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
19472 # Check whether --enable-unicode or --disable-unicode was given.
19473 if test "${enable_unicode+set}" = set; then
19474 enableval
="$enable_unicode"
19480 if test $enable_unicode = yes
19482 # Without any arguments, Py_UNICODE defaults to two-byte mode
19483 case "$have_ucs4_tcl" in
19484 yes) enable_unicode
="ucs4"
19486 *) enable_unicode
="ucs2"
19493 case "$enable_unicode" in
19494 ucs2
) unicode_size
="2"
19495 cat >>confdefs.h
<<\_ACEOF
19496 #define Py_UNICODE_SIZE 2
19500 ucs4
) unicode_size
="4"
19501 cat >>confdefs.h
<<\_ACEOF
19502 #define Py_UNICODE_SIZE 4
19512 if test "$enable_unicode" = "no"
19515 echo "$as_me:$LINENO: result: not used" >&5
19516 echo "${ECHO_T}not used" >&6
19518 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
19520 cat >>confdefs.h
<<\_ACEOF
19521 #define Py_USING_UNICODE 1
19525 # wchar_t is only usable if it maps to an unsigned type
19526 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
19527 -a "$ac_cv_wchar_t_signed" = "no"
19529 PY_UNICODE_TYPE
="wchar_t"
19531 cat >>confdefs.h
<<\_ACEOF
19532 #define HAVE_USABLE_WCHAR_T 1
19535 cat >>confdefs.h
<<\_ACEOF
19536 #define PY_UNICODE_TYPE wchar_t
19539 elif test "$ac_cv_sizeof_short" = "$unicode_size"
19541 PY_UNICODE_TYPE
="unsigned short"
19542 cat >>confdefs.h
<<\_ACEOF
19543 #define PY_UNICODE_TYPE unsigned short
19546 elif test "$ac_cv_sizeof_long" = "$unicode_size"
19548 PY_UNICODE_TYPE
="unsigned long"
19549 cat >>confdefs.h
<<\_ACEOF
19550 #define PY_UNICODE_TYPE unsigned long
19554 PY_UNICODE_TYPE
="no type found"
19556 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
19557 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
19560 # check for endianness
19561 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19562 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19563 if test "${ac_cv_c_bigendian+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19566 # See if sys/param.h defines the BYTE_ORDER macro.
19567 cat >conftest.
$ac_ext <<_ACEOF
19570 cat confdefs.h
>>conftest.
$ac_ext
19571 cat >>conftest.
$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19573 #include <sys/types.h>
19574 #include <sys/param.h>
19579 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19580 bogus endian macros
19587 rm -f conftest.
$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1
>conftest.err
19593 cat conftest.err
>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try
='test -z "$ac_c_werror_flag"
19597 || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try
='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 # It does; now see whether it defined to BIG_ENDIAN or not.
19610 cat >conftest.
$ac_ext <<_ACEOF
19613 cat confdefs.h
>>conftest.
$ac_ext
19614 cat >>conftest.
$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19616 #include <sys/types.h>
19617 #include <sys/param.h>
19622 #if BYTE_ORDER != BIG_ENDIAN
19630 rm -f conftest.
$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19634 grep -v '^ *+' conftest.er1
>conftest.err
19636 cat conftest.err
>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try
='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try
='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_cv_c_bigendian
=yes
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.
$ac_ext >&5
19657 ac_cv_c_bigendian
=no
19659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.
$ac_ext >&5
19664 # It does not; compile a test program.
19665 if test "$cross_compiling" = yes; then
19666 # try to guess the endianness by grepping values into an object file
19667 ac_cv_c_bigendian
=unknown
19668 cat >conftest.
$ac_ext <<_ACEOF
19671 cat confdefs.h
>>conftest.
$ac_ext
19672 cat >>conftest.
$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19675 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19676 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19677 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19678 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19679 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19683 _ascii (); _ebcdic ();
19688 rm -f conftest.
$ac_objext
19689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19690 (eval $ac_compile) 2>conftest.er1
19692 grep -v '^ *+' conftest.er1
>conftest.err
19694 cat conftest.err
>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
19697 { ac_try
='test -z "$ac_c_werror_flag"
19698 || test ! -s conftest.err'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try
='test -s conftest.$ac_objext'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
19711 ac_cv_c_bigendian
=yes
19713 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
19714 if test "$ac_cv_c_bigendian" = unknown
; then
19715 ac_cv_c_bigendian
=no
19717 # finding both strings is unlikely to happen, but who knows?
19718 ac_cv_c_bigendian
=unknown
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.
$ac_ext >&5
19726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19728 cat >conftest.
$ac_ext <<_ACEOF
19731 cat confdefs.h
>>conftest.
$ac_ext
19732 cat >>conftest.
$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19737 /* Are we little or big endian? From Harbison&Steele. */
19741 char c[sizeof (long)];
19744 exit (u.c[sizeof (long) - 1] == 1);
19747 rm -f conftest
$ac_exeext
19748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19749 (eval $ac_link) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 ac_cv_c_bigendian
=no
19760 echo "$as_me: program exited with status $ac_status" >&5
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.
$ac_ext >&5
19764 ( exit $ac_status )
19765 ac_cv_c_bigendian
=yes
19767 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19772 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19773 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19774 case $ac_cv_c_bigendian in
19777 cat >>confdefs.h
<<\_ACEOF
19778 #define WORDS_BIGENDIAN 1
19784 { { echo "$as_me:$LINENO: error: unknown endianness
19785 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19786 echo "$as_me: error: unknown endianness
19787 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19788 { (exit 1); exit 1; }; } ;;
19792 # Check whether right shifting a negative integer extends the sign bit
19793 # or fills with zeros (like the Cray J90, according to Tim Peters).
19794 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
19795 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
19796 if test "${ac_cv_rshift_extends_sign+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 if test "$cross_compiling" = yes; then
19801 ac_cv_rshift_extends_sign
=yes
19803 cat >conftest.
$ac_ext <<_ACEOF
19806 cat confdefs.h
>>conftest.
$ac_ext
19807 cat >>conftest.
$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19812 exit(((-1)>>3 == -1) ? 0 : 1);
19816 rm -f conftest
$ac_exeext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19818 (eval $ac_link) 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_rshift_extends_sign
=yes
19829 echo "$as_me: program exited with status $ac_status" >&5
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.
$ac_ext >&5
19833 ( exit $ac_status )
19834 ac_cv_rshift_extends_sign
=no
19836 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19840 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
19841 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
19842 if test "$ac_cv_rshift_extends_sign" = no
19845 cat >>confdefs.h
<<\_ACEOF
19846 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
19851 # check for getc_unlocked and related locking functions
19852 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
19853 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
19854 if test "${ac_cv_have_getc_unlocked+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 cat >conftest.
$ac_ext <<_ACEOF
19861 cat confdefs.h
>>conftest.
$ac_ext
19862 cat >>conftest.
$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19869 FILE *f = fopen("/dev/null", "r");
19878 rm -f conftest.
$ac_objext conftest
$ac_exeext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19880 (eval $ac_link) 2>conftest.er1
19882 grep -v '^ *+' conftest.er1
>conftest.err
19884 cat conftest.err
>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try
='test -z "$ac_c_werror_flag"
19888 || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try
='test -s conftest$ac_exeext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_cv_have_getc_unlocked
=yes
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.
$ac_ext >&5
19905 ac_cv_have_getc_unlocked
=no
19907 rm -f conftest.err conftest.
$ac_objext \
19908 conftest
$ac_exeext conftest.
$ac_ext
19911 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
19912 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
19913 if test "$ac_cv_have_getc_unlocked" = yes
19916 cat >>confdefs.h
<<\_ACEOF
19917 #define HAVE_GETC_UNLOCKED 1
19922 # check where readline lives
19924 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
19925 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
19926 if test "${ac_cv_lib_readline_readline+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 ac_check_lib_save_LIBS
=$LIBS
19930 LIBS
="-lreadline $LIBS"
19931 cat >conftest.
$ac_ext <<_ACEOF
19934 cat confdefs.h
>>conftest.
$ac_ext
19935 cat >>conftest.
$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19938 /* Override any gcc2 internal prototype to avoid an error. */
19942 /* We use char because int might match the return type of a gcc2
19943 builtin and then its argument prototype would still apply. */
19953 rm -f conftest.
$ac_objext conftest
$ac_exeext
19954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19955 (eval $ac_link) 2>conftest.er1
19957 grep -v '^ *+' conftest.er1
>conftest.err
19959 cat conftest.err
>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try
='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try
='test -s conftest$ac_exeext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_lib_readline_readline
=yes
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.
$ac_ext >&5
19980 ac_cv_lib_readline_readline
=no
19982 rm -f conftest.err conftest.
$ac_objext \
19983 conftest
$ac_exeext conftest.
$ac_ext
19984 LIBS
=$ac_check_lib_save_LIBS
19986 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
19987 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
19988 if test $ac_cv_lib_readline_readline = yes; then
19989 cat >>confdefs.h
<<_ACEOF
19990 #define HAVE_LIBREADLINE 1
19993 LIBS
="-lreadline $LIBS"
19997 if test "$ac_cv_have_readline_readline" = no
20000 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20001 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20002 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 ac_check_lib_save_LIBS
=$LIBS
20006 LIBS
="-ltermcap $LIBS"
20007 cat >conftest.
$ac_ext <<_ACEOF
20010 cat confdefs.h
>>conftest.
$ac_ext
20011 cat >>conftest.
$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20014 /* Override any gcc2 internal prototype to avoid an error. */
20018 /* We use char because int might match the return type of a gcc2
20019 builtin and then its argument prototype would still apply. */
20029 rm -f conftest.
$ac_objext conftest
$ac_exeext
20030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20031 (eval $ac_link) 2>conftest.er1
20033 grep -v '^ *+' conftest.er1
>conftest.err
20035 cat conftest.err
>&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
20038 { ac_try
='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try
='test -s conftest$ac_exeext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 ac_cv_lib_termcap_readline
=yes
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.
$ac_ext >&5
20056 ac_cv_lib_termcap_readline
=no
20058 rm -f conftest.err conftest.
$ac_objext \
20059 conftest
$ac_exeext conftest.
$ac_ext
20060 LIBS
=$ac_check_lib_save_LIBS
20062 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20063 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20064 if test $ac_cv_lib_termcap_readline = yes; then
20065 cat >>confdefs.h
<<_ACEOF
20066 #define HAVE_LIBTERMCAP 1
20069 LIBS
="-ltermcap $LIBS"
20075 # check for readline 2.1
20076 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20077 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20078 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 ac_check_lib_save_LIBS
=$LIBS
20082 LIBS
="-lreadline $LIBS"
20083 cat >conftest.
$ac_ext <<_ACEOF
20086 cat confdefs.h
>>conftest.
$ac_ext
20087 cat >>conftest.
$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20090 /* Override any gcc2 internal prototype to avoid an error. */
20094 /* We use char because int might match the return type of a gcc2
20095 builtin and then its argument prototype would still apply. */
20096 char rl_callback_handler_install ();
20100 rl_callback_handler_install ();
20105 rm -f conftest.
$ac_objext conftest
$ac_exeext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20107 (eval $ac_link) 2>conftest.er1
20109 grep -v '^ *+' conftest.er1
>conftest.err
20111 cat conftest.err
>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try
='test -z "$ac_c_werror_flag"
20115 || test ! -s conftest.err'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; } &&
20121 { ac_try
='test -s conftest$ac_exeext'
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
20127 ac_cv_lib_readline_rl_callback_handler_install
=yes
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.
$ac_ext >&5
20132 ac_cv_lib_readline_rl_callback_handler_install
=no
20134 rm -f conftest.err conftest.
$ac_objext \
20135 conftest
$ac_exeext conftest.
$ac_ext
20136 LIBS
=$ac_check_lib_save_LIBS
20138 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20139 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20140 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20142 cat >>confdefs.h
<<\_ACEOF
20143 #define HAVE_RL_CALLBACK 1
20149 # check for readline 2.2
20150 cat >conftest.
$ac_ext <<_ACEOF
20153 cat confdefs.h
>>conftest.
$ac_ext
20154 cat >>conftest.
$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 #include <readline/readline.h>
20158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20159 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20161 grep -v '^ *+' conftest.er1
>conftest.err
20163 cat conftest.err
>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } >/dev
/null
; then
20166 if test -s conftest.err
; then
20167 ac_cpp_err
=$ac_c_preproc_warn_flag
20168 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20175 if test -z "$ac_cpp_err"; then
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.
$ac_ext >&5
20183 rm -f conftest.err conftest.
$ac_ext
20184 if test $have_readline = yes
20186 cat >conftest.
$ac_ext <<_ACEOF
20189 cat confdefs.h
>>conftest.
$ac_ext
20190 cat >>conftest.
$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 #include <readline/readline.h>
20195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20196 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20198 cat >>confdefs.h
<<\_ACEOF
20199 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20207 # check for readline 4.0
20208 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20209 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20210 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 ac_check_lib_save_LIBS
=$LIBS
20214 LIBS
="-lreadline $LIBS"
20215 cat >conftest.
$ac_ext <<_ACEOF
20218 cat confdefs.h
>>conftest.
$ac_ext
20219 cat >>conftest.
$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20222 /* Override any gcc2 internal prototype to avoid an error. */
20226 /* We use char because int might match the return type of a gcc2
20227 builtin and then its argument prototype would still apply. */
20228 char rl_pre_input_hook ();
20232 rl_pre_input_hook ();
20237 rm -f conftest.
$ac_objext conftest
$ac_exeext
20238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20239 (eval $ac_link) 2>conftest.er1
20241 grep -v '^ *+' conftest.er1
>conftest.err
20243 cat conftest.err
>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } &&
20246 { ac_try
='test -z "$ac_c_werror_flag"
20247 || test ! -s conftest.err'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; } &&
20253 { ac_try
='test -s conftest$ac_exeext'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20259 ac_cv_lib_readline_rl_pre_input_hook
=yes
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.
$ac_ext >&5
20264 ac_cv_lib_readline_rl_pre_input_hook
=no
20266 rm -f conftest.err conftest.
$ac_objext \
20267 conftest
$ac_exeext conftest.
$ac_ext
20268 LIBS
=$ac_check_lib_save_LIBS
20270 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20271 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20272 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20274 cat >>confdefs.h
<<\_ACEOF
20275 #define HAVE_RL_PRE_INPUT_HOOK 1
20281 # check for readline 4.2
20282 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20283 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20284 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 ac_check_lib_save_LIBS
=$LIBS
20288 LIBS
="-lreadline $LIBS"
20289 cat >conftest.
$ac_ext <<_ACEOF
20292 cat confdefs.h
>>conftest.
$ac_ext
20293 cat >>conftest.
$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 /* Override any gcc2 internal prototype to avoid an error. */
20300 /* We use char because int might match the return type of a gcc2
20301 builtin and then its argument prototype would still apply. */
20302 char rl_completion_matches ();
20306 rl_completion_matches ();
20311 rm -f conftest.
$ac_objext conftest
$ac_exeext
20312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20313 (eval $ac_link) 2>conftest.er1
20315 grep -v '^ *+' conftest.er1
>conftest.err
20317 cat conftest.err
>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try
='test -z "$ac_c_werror_flag"
20321 || test ! -s conftest.err'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try
='test -s conftest$ac_exeext'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_lib_readline_rl_completion_matches
=yes
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.
$ac_ext >&5
20338 ac_cv_lib_readline_rl_completion_matches
=no
20340 rm -f conftest.err conftest.
$ac_objext \
20341 conftest
$ac_exeext conftest.
$ac_ext
20342 LIBS
=$ac_check_lib_save_LIBS
20344 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20345 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20346 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20348 cat >>confdefs.h
<<\_ACEOF
20349 #define HAVE_RL_COMPLETION_MATCHES 1
20355 # also in readline 4.2
20356 cat >conftest.
$ac_ext <<_ACEOF
20359 cat confdefs.h
>>conftest.
$ac_ext
20360 cat >>conftest.
$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include <readline/readline.h>
20364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20367 grep -v '^ *+' conftest.er1
>conftest.err
20369 cat conftest.err
>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } >/dev
/null
; then
20372 if test -s conftest.err
; then
20373 ac_cpp_err
=$ac_c_preproc_warn_flag
20374 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20381 if test -z "$ac_cpp_err"; then
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.
$ac_ext >&5
20389 rm -f conftest.err conftest.
$ac_ext
20390 if test $have_readline = yes
20392 cat >conftest.
$ac_ext <<_ACEOF
20395 cat confdefs.h
>>conftest.
$ac_ext
20396 cat >>conftest.
$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20398 #include <readline/readline.h>
20401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20402 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
20404 cat >>confdefs.h
<<\_ACEOF
20405 #define HAVE_RL_CATCH_SIGNAL 1
20413 echo "$as_me:$LINENO: checking for broken nice()" >&5
20414 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
20415 if test "${ac_cv_broken_nice+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 if test "$cross_compiling" = yes; then
20420 ac_cv_broken_nice
=no
20422 cat >conftest.
$ac_ext <<_ACEOF
20425 cat confdefs.h
>>conftest.
$ac_ext
20426 cat >>conftest.
$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20431 int val1 = nice(1);
20432 if (val1 != -1 && val1 == nice(2))
20438 rm -f conftest
$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440 (eval $ac_link) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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
20449 ac_cv_broken_nice
=yes
20451 echo "$as_me: program exited with status $ac_status" >&5
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.
$ac_ext >&5
20455 ( exit $ac_status )
20456 ac_cv_broken_nice
=no
20458 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
20463 echo "${ECHO_T}$ac_cv_broken_nice" >&6
20464 if test "$ac_cv_broken_nice" = yes
20467 cat >>confdefs.h
<<\_ACEOF
20468 #define HAVE_BROKEN_NICE 1
20473 echo "$as_me:$LINENO: checking for broken poll()" >&5
20474 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
20475 if test "$cross_compiling" = yes; then
20476 ac_cv_broken_poll
=no
20478 cat >conftest.
$ac_ext <<_ACEOF
20481 cat confdefs.h
>>conftest.
$ac_ext
20482 cat >>conftest.
$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20489 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
20493 int poll_test = poll (&poll_struct, 1, 0);
20499 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
20510 rm -f conftest
$ac_exeext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20512 (eval $ac_link) 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_cv_broken_poll
=yes
20523 echo "$as_me: program exited with status $ac_status" >&5
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.
$ac_ext >&5
20527 ( exit $ac_status )
20528 ac_cv_broken_poll
=no
20530 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20532 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
20533 echo "${ECHO_T}$ac_cv_broken_poll" >&6
20534 if test "$ac_cv_broken_poll" = yes
20537 cat >>confdefs.h
<<\_ACEOF
20538 #define HAVE_BROKEN_POLL 1
20543 # Before we can test tzset, we need to check if struct tm has a tm_zone
20544 # (which is not required by ISO C or UNIX spec) and/or if we support
20546 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20547 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20548 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 cat >conftest.
$ac_ext <<_ACEOF
20554 cat confdefs.h
>>conftest.
$ac_ext
20555 cat >>conftest.
$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 #include <sys/types.h>
20558 #include <$ac_cv_struct_tm>
20564 static struct tm ac_aggr;
20565 if (ac_aggr.tm_zone)
20571 rm -f conftest.
$ac_objext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20573 (eval $ac_compile) 2>conftest.er1
20575 grep -v '^ *+' conftest.er1
>conftest.err
20577 cat conftest.err
>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } &&
20580 { ac_try
='test -z "$ac_c_werror_flag"
20581 || test ! -s conftest.err'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; } &&
20587 { ac_try
='test -s conftest.$ac_objext'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; }; then
20593 ac_cv_member_struct_tm_tm_zone
=yes
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.
$ac_ext >&5
20598 cat >conftest.
$ac_ext <<_ACEOF
20601 cat confdefs.h
>>conftest.
$ac_ext
20602 cat >>conftest.
$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604 #include <sys/types.h>
20605 #include <$ac_cv_struct_tm>
20611 static struct tm ac_aggr;
20612 if (sizeof ac_aggr.tm_zone)
20618 rm -f conftest.
$ac_objext
20619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20620 (eval $ac_compile) 2>conftest.er1
20622 grep -v '^ *+' conftest.er1
>conftest.err
20624 cat conftest.err
>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } &&
20627 { ac_try
='test -z "$ac_c_werror_flag"
20628 || test ! -s conftest.err'
20629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630 (eval $ac_try) 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; } &&
20634 { ac_try
='test -s conftest.$ac_objext'
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; }; then
20640 ac_cv_member_struct_tm_tm_zone
=yes
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.
$ac_ext >&5
20645 ac_cv_member_struct_tm_tm_zone
=no
20647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20651 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20652 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20653 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20655 cat >>confdefs.h
<<_ACEOF
20656 #define HAVE_STRUCT_TM_TM_ZONE 1
20662 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20664 cat >>confdefs.h
<<\_ACEOF
20665 #define HAVE_TM_ZONE 1
20669 echo "$as_me:$LINENO: checking for tzname" >&5
20670 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20671 if test "${ac_cv_var_tzname+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20674 cat >conftest.
$ac_ext <<_ACEOF
20677 cat confdefs.h
>>conftest.
$ac_ext
20678 cat >>conftest.
$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20681 #ifndef tzname /* For SGI. */
20682 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20693 rm -f conftest.
$ac_objext conftest
$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695 (eval $ac_link) 2>conftest.er1
20697 grep -v '^ *+' conftest.er1
>conftest.err
20699 cat conftest.err
>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try
='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try
='test -s conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_var_tzname
=yes
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.
$ac_ext >&5
20720 ac_cv_var_tzname
=no
20722 rm -f conftest.err conftest.
$ac_objext \
20723 conftest
$ac_exeext conftest.
$ac_ext
20725 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20726 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20727 if test $ac_cv_var_tzname = yes; then
20729 cat >>confdefs.h
<<\_ACEOF
20730 #define HAVE_TZNAME 1
20737 # check tzset(3) exists and works like we expect it to
20738 echo "$as_me:$LINENO: checking for working tzset()" >&5
20739 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
20740 if test "${ac_cv_working_tzset+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 if test "$cross_compiling" = yes; then
20745 ac_cv_working_tzset
=no
20747 cat >conftest.
$ac_ext <<_ACEOF
20750 cat confdefs.h
>>conftest.
$ac_ext
20751 cat >>conftest.
$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20754 #include <stdlib.h>
20756 #include <string.h>
20759 extern char *tzname[];
20764 /* Note that we need to ensure that not only does tzset(3)
20765 do 'something' with localtime, but it works as documented
20766 in the library reference and as expected by the test suite.
20767 This includes making sure that tzname is set properly if
20768 tm->tm_zone does not exist since it is the alternative way
20769 of getting timezone info.
20771 Red Hat 6.2 doesn't understand the southern hemisphere
20772 after New Year's Day.
20775 time_t groundhogday = 1044144000; /* GMT-based */
20776 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
20778 putenv("TZ=UTC+0");
20780 if (localtime(&groundhogday)->tm_hour != 0)
20783 /* For UTC, tzname[1] is sometimes "", sometimes " " */
20784 if (strcmp(tzname[0], "UTC") ||
20785 (tzname[1][0] != 0 && tzname[1][0] != ' '))
20789 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
20791 if (localtime(&groundhogday)->tm_hour != 19)
20794 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
20798 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
20800 if (localtime(&groundhogday)->tm_hour != 11)
20803 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
20807 #if HAVE_STRUCT_TM_TM_ZONE
20808 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
20810 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
20818 rm -f conftest
$ac_exeext
20819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20820 (eval $ac_link) 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_cv_working_tzset
=yes
20831 echo "$as_me: program exited with status $ac_status" >&5
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.
$ac_ext >&5
20835 ( exit $ac_status )
20836 ac_cv_working_tzset
=no
20838 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20842 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
20843 echo "${ECHO_T}$ac_cv_working_tzset" >&6
20844 if test "$ac_cv_working_tzset" = yes
20847 cat >>confdefs.h
<<\_ACEOF
20848 #define HAVE_WORKING_TZSET 1
20853 # Look for subsecond timestamps in struct stat
20854 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
20855 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
20856 if test "${ac_cv_stat_tv_nsec+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 cat >conftest.
$ac_ext <<_ACEOF
20862 cat confdefs.h
>>conftest.
$ac_ext
20863 cat >>conftest.
$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 #include <sys/stat.h>
20871 st.st_mtim.tv_nsec = 1;
20877 rm -f conftest.
$ac_objext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879 (eval $ac_compile) 2>conftest.er1
20881 grep -v '^ *+' conftest.er1
>conftest.err
20883 cat conftest.err
>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try
='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try
='test -s conftest.$ac_objext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_cv_stat_tv_nsec
=yes
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.
$ac_ext >&5
20904 ac_cv_stat_tv_nsec
=no
20906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20909 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
20910 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
20911 if test "$ac_cv_stat_tv_nsec" = yes
20914 cat >>confdefs.h
<<\_ACEOF
20915 #define HAVE_STAT_TV_NSEC 1
20920 # Look for BSD style subsecond timestamps in struct stat
20921 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
20922 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
20923 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 cat >conftest.
$ac_ext <<_ACEOF
20929 cat confdefs.h
>>conftest.
$ac_ext
20930 cat >>conftest.
$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <sys/stat.h>
20938 st.st_mtimespec.tv_nsec = 1;
20944 rm -f conftest.
$ac_objext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20946 (eval $ac_compile) 2>conftest.er1
20948 grep -v '^ *+' conftest.er1
>conftest.err
20950 cat conftest.err
>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
20953 { ac_try
='test -z "$ac_c_werror_flag"
20954 || test ! -s conftest.err'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; } &&
20960 { ac_try
='test -s conftest.$ac_objext'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ac_cv_stat_tv_nsec2
=yes
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.
$ac_ext >&5
20971 ac_cv_stat_tv_nsec2
=no
20973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20976 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
20977 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
20978 if test "$ac_cv_stat_tv_nsec2" = yes
20981 cat >>confdefs.h
<<\_ACEOF
20982 #define HAVE_STAT_TV_NSEC2 1
20987 # On HP/UX 11.0, mvwdelch is a block with a return statement
20988 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
20989 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
20990 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 cat >conftest.
$ac_ext <<_ACEOF
20996 cat confdefs.h
>>conftest.
$ac_ext
20997 cat >>conftest.
$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 #include <curses.h>
21005 rtn = mvwdelch(0,0,0);
21011 rm -f conftest.
$ac_objext
21012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013 (eval $ac_compile) 2>conftest.er1
21015 grep -v '^ *+' conftest.er1
>conftest.err
21017 cat conftest.err
>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
21020 { ac_try
='test -z "$ac_c_werror_flag"
21021 || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try
='test -s conftest.$ac_objext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_mvwdelch_is_expression
=yes
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.
$ac_ext >&5
21038 ac_cv_mvwdelch_is_expression
=no
21040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21043 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21044 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21046 if test "$ac_cv_mvwdelch_is_expression" = yes
21049 cat >>confdefs.h
<<\_ACEOF
21050 #define MVWDELCH_IS_EXPRESSION 1
21055 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21056 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21057 if test "${ac_cv_window_has_flags+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 cat >conftest.
$ac_ext <<_ACEOF
21063 cat confdefs.h
>>conftest.
$ac_ext
21064 cat >>conftest.
$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 #include <curses.h>
21078 rm -f conftest.
$ac_objext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21080 (eval $ac_compile) 2>conftest.er1
21082 grep -v '^ *+' conftest.er1
>conftest.err
21084 cat conftest.err
>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } &&
21087 { ac_try
='test -z "$ac_c_werror_flag"
21088 || test ! -s conftest.err'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; } &&
21094 { ac_try
='test -s conftest.$ac_objext'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 ac_cv_window_has_flags
=yes
21102 echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.
$ac_ext >&5
21105 ac_cv_window_has_flags
=no
21107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21110 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21111 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21114 if test "$ac_cv_window_has_flags" = yes
21117 cat >>confdefs.h
<<\_ACEOF
21118 #define WINDOW_HAS_FLAGS 1
21123 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21124 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21126 if test -e /dev
/ptmx
21128 echo "$as_me:$LINENO: result: yes" >&5
21129 echo "${ECHO_T}yes" >&6
21131 cat >>confdefs.h
<<\_ACEOF
21132 #define HAVE_DEV_PTMX 1
21136 echo "$as_me:$LINENO: result: no" >&5
21137 echo "${ECHO_T}no" >&6
21140 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21141 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21143 if test -e /dev
/ptc
21145 echo "$as_me:$LINENO: result: yes" >&5
21146 echo "${ECHO_T}yes" >&6
21148 cat >>confdefs.h
<<\_ACEOF
21149 #define HAVE_DEV_PTC 1
21153 echo "$as_me:$LINENO: result: no" >&5
21154 echo "${ECHO_T}no" >&6
21157 echo "$as_me:$LINENO: checking for socklen_t" >&5
21158 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21159 if test "${ac_cv_type_socklen_t+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 cat >conftest.
$ac_ext <<_ACEOF
21165 cat confdefs.h
>>conftest.
$ac_ext
21166 cat >>conftest.
$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21169 #ifdef HAVE_SYS_TYPES_H
21170 #include <sys/types.h>
21172 #ifdef HAVE_SYS_SOCKET_H
21173 #include <sys/socket.h>
21180 if ((socklen_t *) 0)
21182 if (sizeof (socklen_t))
21188 rm -f conftest.
$ac_objext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21190 (eval $ac_compile) 2>conftest.er1
21192 grep -v '^ *+' conftest.er1
>conftest.err
21194 cat conftest.err
>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
21197 { ac_try
='test -z "$ac_c_werror_flag"
21198 || test ! -s conftest.err'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; } &&
21204 { ac_try
='test -s conftest.$ac_objext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_cv_type_socklen_t
=yes
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.
$ac_ext >&5
21215 ac_cv_type_socklen_t
=no
21217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21219 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21220 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21221 if test $ac_cv_type_socklen_t = yes; then
21225 cat >>confdefs.h
<<\_ACEOF
21226 #define socklen_t int
21234 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21236 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21240 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21241 echo "$as_me:$LINENO: checking for build directories" >&5
21242 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21243 for dir
in $SRCDIRS; do
21244 if test ! -d $dir; then
21248 echo "$as_me:$LINENO: result: done" >&5
21249 echo "${ECHO_T}done" >&6
21251 # generate output files
21252 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21254 cat >confcache
<<\_ACEOF
21255 # This file is a shell script that caches the results of configure
21256 # tests run on this system so they can be shared between configure
21257 # scripts and configure runs, see configure's option --config-cache.
21258 # It is not useful on other systems. If it contains results you don't
21259 # want to keep, you may remove or edit it.
21261 # config.status only pays attention to the cache file if you give it
21262 # the --recheck option to rerun configure.
21264 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21265 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21266 # following values.
21270 # The following way of writing the cache mishandles newlines in values,
21271 # but we know of no workaround that is simple, portable, and efficient.
21272 # So, don't put newlines in cache variables' values.
21273 # Ultrix sh set writes to stderr and can't be redirected directly,
21274 # and sets the high bit in the cache file unless we assign to the vars.
21277 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21279 # `set' does not quote correctly, so add quotes (double-quote
21280 # substitution turns \\\\ into \\, and sed turns \\ into \).
21283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21286 # `set' quotes correctly as required by POSIX, so do not add quotes.
21288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21297 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21299 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21300 if test -w $cache_file; then
21301 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21302 cat confcache
>$cache_file
21304 echo "not updating unwritable cache $cache_file"
21309 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21310 # Let make expand exec_prefix.
21311 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21313 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21314 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21315 # trailing colons and then remove the whole line if VPATH becomes empty
21316 # (actually we leave an empty line to preserve line numbers).
21317 if test "x$srcdir" = x.
; then
21318 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21319 s/:*\$(srcdir):*/:/;
21320 s/:*\${srcdir}:*/:/;
21322 s/^\([^=]*=[ ]*\):*/\1/;
21328 DEFS
=-DHAVE_CONFIG_H
21332 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21333 # 1. Remove the extension, and $U if already installed.
21334 ac_i
=`echo "$ac_i" |
21335 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21337 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21338 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21340 LIBOBJS
=$ac_libobjs
21342 LTLIBOBJS
=$ac_ltlibobjs
21346 : ${CONFIG_STATUS=./config.status}
21347 ac_clean_files_save
=$ac_clean_files
21348 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21349 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21350 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21351 cat >$CONFIG_STATUS <<_ACEOF
21353 # Generated by $as_me.
21354 # Run this file to recreate the current configuration.
21355 # Compiler output produced by configure, useful for debugging
21356 # configure, is in config.log if it exists.
21359 ac_cs_recheck=false
21361 SHELL=\${CONFIG_SHELL-$SHELL}
21364 cat >>$CONFIG_STATUS <<\_ACEOF
21365 ## --------------------- ##
21366 ## M4sh Initialization. ##
21367 ## --------------------- ##
21369 # Be Bourne compatible
21370 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21373 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21374 # is contrary to our usage. Disable this feature.
21375 alias -g '${1+"$@"}'='"$@"'
21376 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21379 DUALCASE
=1; export DUALCASE
# for MKS sh
21381 # Support unset when possible.
21382 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21389 # Work around bugs in pre-3.0 UWIN ksh.
21390 $as_unset ENV MAIL MAILPATH
21397 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21398 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21399 LC_TELEPHONE LC_TIME
21401 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21402 eval $as_var=C
; export $as_var
21408 # Required to use basename.
21409 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21415 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21416 as_basename
=basename
21422 # Name of the executable.
21423 as_me
=`$as_basename "$0" ||
21424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21425 X"$0" : 'X\(//\)$' \| \
21426 X"$0" : 'X\(/\)$' \| \
21427 . : '\(.\)' 2>/dev/null ||
21429 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21430 /^X\/\(\/\/\)$/{ s//\1/; q; }
21431 /^X\/\(\/\).*/{ s//\1/; q; }
21435 # PATH needs CR, and LINENO needs CR and PATH.
21436 # Avoid depending upon Character Ranges.
21437 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21438 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21439 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21440 as_cr_digits
='0123456789'
21441 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21443 # The user is always right.
21444 if test "${PATH_SEPARATOR+set}" != set; then
21445 echo "#! /bin/sh" >conf$$.sh
21446 echo "exit 0" >>conf$$.sh
21448 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21457 as_lineno_1
=$LINENO
21458 as_lineno_2
=$LINENO
21459 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21460 test "x$as_lineno_1" != "x$as_lineno_2" &&
21461 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21462 # Find who we are. Look in the path if we contain no path at all
21465 *[\\/]* ) as_myself
=$0 ;;
21466 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21467 for as_dir
in $PATH
21470 test -z "$as_dir" && as_dir
=.
21471 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21476 # We did not find ourselves, most probably we were run as `sh COMMAND'
21477 # in which case we are not to be found in the path.
21478 if test "x$as_myself" = x
; then
21481 if test ! -f "$as_myself"; then
21482 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21483 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21484 { (exit 1); exit 1; }; }
21486 case $CONFIG_SHELL in
21488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21489 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21492 test -z "$as_dir" && as_dir
=.
21493 for as_base
in sh bash ksh sh5
; do
21496 if ("$as_dir/$as_base" -c '
21497 as_lineno_1=$LINENO
21498 as_lineno_2=$LINENO
21499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21500 test "x$as_lineno_1" != "x$as_lineno_2" &&
21501 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21502 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21503 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21504 CONFIG_SHELL
=$as_dir/$as_base
21505 export CONFIG_SHELL
21506 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21515 # uniformly replaced by the line number. The first 'sed' inserts a
21516 # line-number line before each line; the second 'sed' does the real
21517 # work. The second script uses 'N' to pair each line-number line
21518 # with the numbered line, and appends trailing '-' during
21519 # substitution so that $LINENO is not a special case at line end.
21520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21521 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21522 sed '=' <$as_myself |
21527 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21530 s,^['$as_cr_digits']*\n,,
21531 ' >$as_me.lineno
&&
21532 chmod +x
$as_me.lineno ||
21533 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21534 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21535 { (exit 1); exit 1; }; }
21537 # Don't try to exec as it changes $[0], causing all sort of problems
21538 # (the dirname of $[0] is not the place where we might find the
21539 # original and so on. Autoconf is especially sensible to this).
21541 # Exit status is that of the last command.
21546 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21547 *c
*,-n*) ECHO_N
= ECHO_C
='
21549 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21550 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21553 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21559 rm -f conf$$ conf$$.exe conf$$.
file
21561 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21562 # We could just check for DJGPP; but this test a) works b) is more generic
21563 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21564 if test -f conf$$.exe
; then
21565 # Don't use ln at all; we don't have any links
21570 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21575 rm -f conf$$ conf$$.exe conf$$.
file
21577 if mkdir
-p .
2>/dev
/null
; then
21580 test -d .
/-p && rmdir .
/-p
21584 as_executable_p
="test -f"
21586 # Sed expression to map a string onto a valid CPP name.
21587 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21589 # Sed expression to map a string onto a valid variable name.
21590 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21594 # We need space, tab and new line, in precisely that order.
21604 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21605 # report actual input values of CONFIG_FILES etc. instead of their
21606 # values after options handling. Logging --version etc. is OK.
21610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21611 ## Running $as_me. ##
21616 This file was extended by python $as_me 2.5, which was
21617 generated by GNU Autoconf 2.59. Invocation command line was
21619 CONFIG_FILES = $CONFIG_FILES
21620 CONFIG_HEADERS = $CONFIG_HEADERS
21621 CONFIG_LINKS = $CONFIG_LINKS
21622 CONFIG_COMMANDS = $CONFIG_COMMANDS
21626 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21630 # Files that config.status was made for.
21631 if test -n "$ac_config_files"; then
21632 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21635 if test -n "$ac_config_headers"; then
21636 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21639 if test -n "$ac_config_links"; then
21640 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21643 if test -n "$ac_config_commands"; then
21644 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21647 cat >>$CONFIG_STATUS <<\_ACEOF
21650 \`$as_me' instantiates files from templates according to the
21651 current configuration.
21653 Usage: $0 [OPTIONS] [FILE]...
21655 -h, --help print this help, then exit
21656 -V, --version print version number, then exit
21657 -q, --quiet do not print progress messages
21658 -d, --debug don't remove temporary files
21659 --recheck update $as_me by reconfiguring in the same conditions
21660 --file=FILE[:TEMPLATE]
21661 instantiate the configuration file FILE
21662 --header=FILE[:TEMPLATE]
21663 instantiate the configuration header FILE
21665 Configuration files:
21668 Configuration headers:
21671 Report bugs to <bug-autoconf@gnu.org>."
21674 cat >>$CONFIG_STATUS <<_ACEOF
21676 python config.status 2.5
21677 configured by $0, generated by GNU Autoconf 2.59,
21678 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21680 Copyright (C) 2003 Free Software Foundation, Inc.
21681 This config.status script is free software; the Free Software Foundation
21682 gives unlimited permission to copy, distribute and modify it."
21687 cat >>$CONFIG_STATUS <<\_ACEOF
21688 # If no file are specified by the user, then we need to provide default
21689 # value. By we need to know if files were specified by the user.
21695 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21696 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21704 *) # This is not an option, so the user has probably given explicit
21707 ac_need_defaults
=false
;;
21711 # Handling of the options.
21713 cat >>$CONFIG_STATUS <<\_ACEOF
21714 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21716 --version |
--vers* |
-V )
21717 echo "$ac_cs_version"; exit 0 ;;
21719 # Conflict between --help and --header
21720 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21721 Try \`$0 --help' for more information." >&5
21722 echo "$as_me: error: ambiguous option: $1
21723 Try \`$0 --help' for more information." >&2;}
21724 { (exit 1); exit 1; }; };;
21725 --help |
--hel |
-h )
21726 echo "$ac_cs_usage"; exit 0 ;;
21727 --debug |
--d* |
-d )
21729 --file |
--fil |
--fi |
--f )
21731 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21732 ac_need_defaults
=false
;;
21733 --header |
--heade |
--head |
--hea )
21735 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21736 ac_need_defaults
=false
;;
21737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21738 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21741 # This is an error.
21742 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21743 Try \`$0 --help' for more information." >&5
21744 echo "$as_me: error: unrecognized option: $1
21745 Try \`$0 --help' for more information." >&2;}
21746 { (exit 1); exit 1; }; } ;;
21748 *) ac_config_targets
="$ac_config_targets $1" ;;
21754 ac_configure_extra_args
=
21756 if $ac_cs_silent; then
21758 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21762 cat >>$CONFIG_STATUS <<_ACEOF
21763 if \$ac_cs_recheck; then
21764 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21765 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21774 cat >>$CONFIG_STATUS <<\_ACEOF
21775 for ac_config_target
in $ac_config_targets
21777 case "$ac_config_target" in
21778 # Handling of arguments.
21779 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
21780 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
21781 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
21782 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21783 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21784 { (exit 1); exit 1; }; };;
21788 # If the user did not use the arguments to specify the items to instantiate,
21789 # then the envvar interface is used. Set only those that are not.
21790 # We use the long form for the default assignment because of an extremely
21791 # bizarre bug on SunOS 4.1.3.
21792 if $ac_need_defaults; then
21793 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21794 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21797 # Have a temporary directory for convenience. Make it in the build tree
21798 # simply because there is no reason to put it here, and in addition,
21799 # creating and moving files from /tmp can sometimes cause problems.
21800 # Create a temporary directory, and hook for its removal unless debugging.
21803 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21804 trap '{ (exit 1); exit 1; }' 1 2 13 15
21807 # Create a (secure) tmp directory for tmp files.
21810 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21811 test -n "$tmp" && test -d "$tmp"
21814 tmp
=.
/confstat$$
-$RANDOM
21815 (umask 077 && mkdir
$tmp)
21818 echo "$me: cannot create a temporary directory in ." >&2
21819 { (exit 1); exit 1; }
21824 cat >>$CONFIG_STATUS <<_ACEOF
21827 # CONFIG_FILES section.
21830 # No need to generate the scripts if there are no CONFIG_FILES.
21831 # This happens for instance when ./config.status config.h
21832 if test -n "\$CONFIG_FILES"; then
21833 # Protect against being on the right side of a sed subst in config.status.
21834 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21835 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21836 s,@SHELL@,$SHELL,;t t
21837 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21838 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21839 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21840 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21841 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21842 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21843 s,@exec_prefix@,$exec_prefix,;t t
21844 s,@prefix@,$prefix,;t t
21845 s,@program_transform_name@,$program_transform_name,;t t
21846 s,@bindir@,$bindir,;t t
21847 s,@sbindir@,$sbindir,;t t
21848 s,@libexecdir@,$libexecdir,;t t
21849 s,@datadir@,$datadir,;t t
21850 s,@sysconfdir@,$sysconfdir,;t t
21851 s,@sharedstatedir@,$sharedstatedir,;t t
21852 s,@localstatedir@,$localstatedir,;t t
21853 s,@libdir@,$libdir,;t t
21854 s,@includedir@,$includedir,;t t
21855 s,@oldincludedir@,$oldincludedir,;t t
21856 s,@infodir@,$infodir,;t t
21857 s,@mandir@,$mandir,;t t
21858 s,@build_alias@,$build_alias,;t t
21859 s,@host_alias@,$host_alias,;t t
21860 s,@target_alias@,$target_alias,;t t
21861 s,@DEFS@,$DEFS,;t t
21862 s,@ECHO_C@,$ECHO_C,;t t
21863 s,@ECHO_N@,$ECHO_N,;t t
21864 s,@ECHO_T@,$ECHO_T,;t t
21865 s,@LIBS@,$LIBS,;t t
21866 s,@VERSION@,$VERSION,;t t
21867 s,@SOVERSION@,$SOVERSION,;t t
21868 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
21869 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
21870 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
21871 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
21872 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
21873 s,@MACHDEP@,$MACHDEP,;t t
21874 s,@SGI_ABI@,$SGI_ABI,;t t
21875 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
21876 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
21877 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
21879 s,@MAINOBJ@,$MAINOBJ,;t t
21880 s,@EXEEXT@,$EXEEXT,;t t
21882 s,@CFLAGS@,$CFLAGS,;t t
21883 s,@LDFLAGS@,$LDFLAGS,;t t
21884 s,@CPPFLAGS@,$CPPFLAGS,;t t
21885 s,@ac_ct_CC@,$ac_ct_CC,;t t
21886 s,@OBJEXT@,$OBJEXT,;t t
21888 s,@EGREP@,$EGREP,;t t
21889 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
21890 s,@LIBRARY@,$LIBRARY,;t t
21891 s,@LDLIBRARY@,$LDLIBRARY,;t t
21892 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
21893 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
21894 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
21895 s,@INSTSONAME@,$INSTSONAME,;t t
21896 s,@RUNSHARED@,$RUNSHARED,;t t
21897 s,@LINKCC@,$LINKCC,;t t
21898 s,@RANLIB@,$RANLIB,;t t
21899 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21901 s,@SVNVERSION@,$SVNVERSION,;t t
21902 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21903 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21904 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21907 s,@BASECFLAGS@,$BASECFLAGS,;t t
21908 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
21909 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
21911 s,@LDSHARED@,$LDSHARED,;t t
21912 s,@BLDSHARED@,$BLDSHARED,;t t
21913 s,@CCSHARED@,$CCSHARED,;t t
21914 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
21915 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
21916 s,@SHLIBS@,$SHLIBS,;t t
21917 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
21918 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
21919 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
21920 s,@LDLAST@,$LDLAST,;t t
21921 s,@THREADOBJ@,$THREADOBJ,;t t
21922 s,@DLINCLDIR@,$DLINCLDIR,;t t
21923 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
21924 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
21925 s,@TRUE@,$TRUE,;t t
21926 s,@LIBOBJS@,$LIBOBJS,;t t
21927 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
21928 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
21929 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
21930 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
21931 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
21932 s,@LIBM@,$LIBM,;t t
21933 s,@LIBC@,$LIBC,;t t
21934 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
21935 s,@THREADHEADERS@,$THREADHEADERS,;t t
21936 s,@SRCDIRS@,$SRCDIRS,;t t
21937 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21942 cat >>$CONFIG_STATUS <<\_ACEOF
21943 # Split the substitutions into bite-sized pieces for seds with
21944 # small command number limits, like on Digital OSF/1 and HP-UX.
21945 ac_max_sed_lines
=48
21946 ac_sed_frag
=1 # Number of current file.
21947 ac_beg
=1 # First line for current file.
21948 ac_end
=$ac_max_sed_lines # Line after last line for current file.
21951 while $ac_more_lines; do
21952 if test $ac_beg -gt 1; then
21953 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21955 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21957 if test ! -s $tmp/subs.frag
; then
21958 ac_more_lines
=false
21960 # The purpose of the label and of the branching condition is to
21961 # speed up the sed processing (if there are no `@' at all, there
21962 # is no need to browse any of the substitutions).
21963 # These are the two extra sed commands mentioned above.
21965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
21966 if test -z "$ac_sed_cmds"; then
21967 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
21969 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21971 ac_sed_frag
=`expr $ac_sed_frag + 1`
21973 ac_end
=`expr $ac_end + $ac_max_sed_lines`
21976 if test -z "$ac_sed_cmds"; then
21979 fi # test -n "$CONFIG_FILES"
21982 cat >>$CONFIG_STATUS <<\_ACEOF
21983 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
21984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21986 - |
*:- |
*:-:* ) # input from stdin
21988 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21989 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21990 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21991 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21992 * ) ac_file_in
=$ac_file.
in ;;
21995 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21996 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21998 X"$ac_file" : 'X\(//\)[^/]' \| \
21999 X"$ac_file" : 'X\(//\)$' \| \
22000 X"$ac_file" : 'X\(/\)' \| \
22001 . : '\(.\)' 2>/dev/null ||
22003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22005 /^X\(\/\/\)$/{ s//\1/; q; }
22006 /^X\(\/\).*/{ s//\1/; q; }
22008 { if $as_mkdir_p; then
22013 while test ! -d "$as_dir"; do
22014 as_dirs
="$as_dir $as_dirs"
22015 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22017 X"$as_dir" : 'X\(//\)[^/]' \| \
22018 X"$as_dir" : 'X\(//\)$' \| \
22019 X"$as_dir" : 'X\(/\)' \| \
22020 . : '\(.\)' 2>/dev/null ||
22022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22024 /^X\(\/\/\)$/{ s//\1/; q; }
22025 /^X\(\/\).*/{ s//\1/; q; }
22028 test ! -n "$as_dirs" || mkdir
$as_dirs
22029 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22030 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22031 { (exit 1); exit 1; }; }; }
22035 if test "$ac_dir" != .
; then
22036 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22037 # A "../" for each directory in $ac_dir_suffix.
22038 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22040 ac_dir_suffix
= ac_top_builddir
=
22044 .
) # No --srcdir option. We are building in place.
22046 if test -z "$ac_top_builddir"; then
22049 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22051 [\\/]* | ?
:[\\/]* ) # Absolute path.
22052 ac_srcdir
=$srcdir$ac_dir_suffix;
22053 ac_top_srcdir
=$srcdir ;;
22054 *) # Relative path.
22055 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22056 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22059 # Do not use `cd foo && pwd` to compute absolute paths, because
22060 # the directories may not exist.
22062 .
) ac_abs_builddir
="$ac_dir";;
22065 .
) ac_abs_builddir
=`pwd`;;
22066 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22067 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22070 case $ac_abs_builddir in
22071 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22073 case ${ac_top_builddir}.
in
22074 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22075 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22076 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22079 case $ac_abs_builddir in
22080 .
) ac_abs_srcdir
=$ac_srcdir;;
22083 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22084 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22085 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22088 case $ac_abs_builddir in
22089 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22091 case $ac_top_srcdir in
22092 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22093 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22094 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22100 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22101 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22104 if test x
"$ac_file" != x-
; then
22105 { echo "$as_me:$LINENO: creating $ac_file" >&5
22106 echo "$as_me: creating $ac_file" >&6;}
22109 # Let's still pretend it is `configure' which instantiates (i.e., don't
22110 # use $as_me), people would be surprised to read:
22111 # /* config.h. Generated by config.status. */
22112 if test x
"$ac_file" = x-
; then
22115 configure_input
="$ac_file. "
22117 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22118 sed 's,.*/,,'` by configure."
22120 # First look for the input files in the build tree, otherwise in the
22122 ac_file_inputs
=`IFS=:
22123 for f in $ac_file_in; do
22125 -) echo $tmp/stdin ;;
22127 # Absolute (can't be DOS-style, as IFS=:)
22128 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22129 echo "$as_me: error: cannot find input file: $f" >&2;}
22130 { (exit 1); exit 1; }; }
22133 if test -f "$f"; then
22136 elif test -f "$srcdir/$f"; then
22141 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22142 echo "$as_me: error: cannot find input file: $f" >&2;}
22143 { (exit 1); exit 1; }; }
22146 done` ||
{ (exit 1); exit 1; }
22148 cat >>$CONFIG_STATUS <<_ACEOF
22152 cat >>$CONFIG_STATUS <<\_ACEOF
22154 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22155 s
,@configure_input@
,$configure_input,;t t
22156 s
,@srcdir@
,$ac_srcdir,;t t
22157 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22158 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22159 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22160 s
,@builddir@
,$ac_builddir,;t t
22161 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22162 s
,@top_builddir@
,$ac_top_builddir,;t t
22163 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22164 s
,@INSTALL@
,$ac_INSTALL,;t t
22165 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22167 if test x"$ac_file" != x-; then
22168 mv $tmp/out $ac_file
22176 cat >>$CONFIG_STATUS <<\_ACEOF
22179 # CONFIG_HEADER section.
22182 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22183 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22185 # ac_d sets the value in "#define NAME VALUE" lines.
22186 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22187 ac_dB
='[ ].*$,\1#\2'
22190 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22191 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22192 ac_uB
='$,\1#\2define\3'
22196 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22199 - |
*:- |
*:-:* ) # input from stdin
22201 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22202 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22203 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22204 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22205 * ) ac_file_in
=$ac_file.
in ;;
22208 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22209 echo "$as_me: creating $ac_file" >&6;}
22211 # First look for the input files in the build tree, otherwise in the
22213 ac_file_inputs
=`IFS=:
22214 for f in $ac_file_in; do
22216 -) echo $tmp/stdin ;;
22218 # Absolute (can't be DOS-style, as IFS=:)
22219 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22220 echo "$as_me: error: cannot find input file: $f" >&2;}
22221 { (exit 1); exit 1; }; }
22222 # Do quote $f, to prevent DOS paths from being IFS'd.
22225 if test -f "$f"; then
22228 elif test -f "$srcdir/$f"; then
22233 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22234 echo "$as_me: error: cannot find input file: $f" >&2;}
22235 { (exit 1); exit 1; }; }
22238 done` ||
{ (exit 1); exit 1; }
22239 # Remove the trailing spaces.
22240 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22244 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22245 # `conftest.undefs', that substitutes the proper values into
22246 # config.h.in to produce config.h. The first handles `#define'
22247 # templates, and the second `#undef' templates.
22248 # And first: Protect against being on the right side of a sed subst in
22249 # config.status. Protect against being in an unquoted here document
22250 # in config.status.
22251 rm -f conftest.defines conftest.undefs
22252 # Using a here document instead of a string reduces the quoting nightmare.
22253 # Putting comments in sed scripts is not portable.
22255 # `end' is used to avoid that the second main sed command (meant for
22256 # 0-ary CPP macros) applies to n-ary macro definitions.
22257 # See the Autoconf documentation for `clear'.
22258 cat >confdef2sed.
sed <<\_ACEOF
22263 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22265 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22268 # If some macros were called several times there might be several times
22269 # the same #defines, which is useless. Nevertheless, we may not want to
22270 # sort them, since we want the *last* AC-DEFINE to be honored.
22271 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22272 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22273 rm -f confdef2sed.sed
22275 # This sed command replaces #undef with comments. This is necessary, for
22276 # example, in the case of _POSIX_SOURCE, which is predefined and required
22277 # on some systems where configure will not decide to define it.
22278 cat >>conftest.undefs <<\_ACEOF
22279 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22282 # Break up conftest.defines because some shells have a limit on the size
22283 # of here documents, and old seds have small limits too (100 cmds).
22284 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22285 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22286 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22287 echo ' :' >>$CONFIG_STATUS
22288 rm -f conftest.tail
22289 while grep . conftest.defines >/dev/null
22291 # Write a limited-size here document to $tmp/defines.sed.
22292 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22293 # Speed up: don't consider the non `#define' lines.
22294 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22295 # Work around the forget-to-reset-the-flag bug.
22296 echo 't clr' >>$CONFIG_STATUS
22297 echo ': clr' >>$CONFIG_STATUS
22298 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22300 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22302 mv $tmp/out $tmp/in
22304 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22305 rm -f conftest.defines
22306 mv conftest.
tail conftest.defines
22308 rm -f conftest.defines
22309 echo ' fi # grep' >>$CONFIG_STATUS
22310 echo >>$CONFIG_STATUS
22312 # Break up conftest.undefs because some shells have a limit on the size
22313 # of here documents, and old seds have small limits too (100 cmds).
22314 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22315 rm -f conftest.
tail
22316 while grep . conftest.undefs
>/dev
/null
22318 # Write a limited-size here document to $tmp/undefs.sed.
22319 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22320 # Speed up: don't consider the non
`#undef'
22321 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22322 # Work around the forget-to-reset-the-flag bug.
22323 echo 't clr' >>$CONFIG_STATUS
22324 echo ': clr' >>$CONFIG_STATUS
22325 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22327 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22329 mv $tmp/out $tmp/in
22331 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22332 rm -f conftest.undefs
22333 mv conftest.tail conftest.undefs
22335 rm -f conftest.undefs
22337 cat >>$CONFIG_STATUS <<\_ACEOF
22338 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22339 # use $as_me), people would be surprised to read:
22340 # /* config.h. Generated by config.status. */
22341 if test x
"$ac_file" = x-
; then
22342 echo "/* Generated by configure. */" >$tmp/config.h
22344 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22346 cat $tmp/in >>$tmp/config.h
22348 if test x
"$ac_file" != x-
; then
22349 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22350 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22351 echo "$as_me: $ac_file is unchanged" >&6;}
22353 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22355 X"$ac_file" : 'X\(//\)[^/]' \| \
22356 X"$ac_file" : 'X\(//\)$' \| \
22357 X"$ac_file" : 'X\(/\)' \| \
22358 . : '\(.\)' 2>/dev/null ||
22360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22362 /^X\(\/\/\)$/{ s//\1/; q; }
22363 /^X\(\/\).*/{ s//\1/; q; }
22365 { if $as_mkdir_p; then
22370 while test ! -d "$as_dir"; do
22371 as_dirs
="$as_dir $as_dirs"
22372 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22374 X"$as_dir" : 'X\(//\)[^/]' \| \
22375 X"$as_dir" : 'X\(//\)$' \| \
22376 X"$as_dir" : 'X\(/\)' \| \
22377 . : '\(.\)' 2>/dev/null ||
22379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22381 /^X\(\/\/\)$/{ s//\1/; q; }
22382 /^X\(\/\).*/{ s//\1/; q; }
22385 test ! -n "$as_dirs" || mkdir
$as_dirs
22386 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22387 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22388 { (exit 1); exit 1; }; }; }
22391 mv $tmp/config.h
$ac_file
22395 rm -f $tmp/config.h
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22402 { (exit 0); exit 0; }
22404 chmod +x
$CONFIG_STATUS
22405 ac_clean_files
=$ac_clean_files_save
22408 # configure is writing to config.log, and then calls config.status.
22409 # config.status does its own redirection, appending to config.log.
22410 # Unfortunately, on DOS this fails, as config.log is still kept open
22411 # by configure, so config.status won't be able to write to it; its
22412 # output is simply discarded. So we exec the FD to /dev/null,
22413 # effectively closing config.log, so it can be properly (re)opened and
22414 # appended to by config.status. When coming back to configure, we
22415 # need to make the FD available again.
22416 if test "$no_create" != yes; then
22418 ac_config_status_args
=
22419 test "$silent" = yes &&
22420 ac_config_status_args
="$ac_config_status_args --quiet"
22422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22425 # would make configure fail if this is the last instruction.
22426 $ac_cs_success ||
{ (exit 1); exit 1; }
22430 echo "creating Setup"
22431 if test ! -f Modules
/Setup
22433 cp $srcdir/Modules
/Setup.dist Modules
/Setup
22436 echo "creating Setup.local"
22437 if test ! -f Modules
/Setup.
local
22439 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
22442 echo "creating Makefile"
22443 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
22444 -s Modules Modules
/Setup.config \
22445 Modules
/Setup.
local Modules
/Setup
22446 mv config.c Modules