2 # From configure.in Revision: 46010 .
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 UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures python 2.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-universalsdk[SDKDIR
]
849 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
850 --enable-framework[=INSTALLDIR
]
851 Build
(MacOSX|Darwin
) framework
852 --enable-shared disable
/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
855 --enable-ipv6 Enable ipv6
(with ipv4
) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs
[24]]
858 Enable Unicode
strings (default is
yes)
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler
>
865 compile main
() and link python executable with C
++
867 --with-suffix=.exe
set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable
/enable signal module
872 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
873 --with(out
)-threads[=DIRECTORY
]
874 disable
/enable thread support
875 --with(out
)-thread[=DIRECTORY
]
876 deprecated
; use
--with(out
)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out
)-doc-strings disable
/enable documentation
strings
879 --with(out
)-tsc enable
/disable timestamp counter profile
880 --with(out
)-pymalloc disable
/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables
, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1357 mv confdefs.h.new confdefs.h
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h
<<\_ACEOF
1369 #define _GNU_SOURCE 1
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1386 cat >>confdefs.h
<<\_ACEOF
1387 #define __BSD_VISIBLE 1
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h
<<\_ACEOF
1395 #define _BSD_TYPES 1
1399 define_xopen_source
=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS
="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval
="$enable_universalsdk"
1411 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
1417 enable_universalsdk
=
1420 UNIVERSALSDK
=$enableval
1427 enable_universalsdk
=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval
="$enable_framework"
1438 enableval
=/Library
/Frameworks
1443 PYTHONFRAMEWORKDIR
=no-framework
1444 PYTHONFRAMEWORKPREFIX
=
1445 PYTHONFRAMEWORKINSTALLDIR
=
1449 PYTHONFRAMEWORK
=Python
1450 PYTHONFRAMEWORKDIR
=Python.framework
1451 PYTHONFRAMEWORKPREFIX
=$enableval
1452 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1453 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1455 # Add makefiles for Mac specific code to the list of output
1457 ac_config_files
="$ac_config_files Mac/OSX/Makefile"
1459 ac_config_files
="$ac_config_files Mac/OSX/PythonLauncher/Makefile"
1461 ac_config_files
="$ac_config_files Mac/OSX/IDLE/Makefile"
1468 PYTHONFRAMEWORKDIR
=no-framework
1469 PYTHONFRAMEWORKPREFIX
=
1470 PYTHONFRAMEWORKINSTALLDIR
=
1480 ## AC_HELP_STRING(--with-dyld,
1481 ## Use (OpenStep|Rhapsody) dynamic linker))
1483 # Set name for machine-dependent library files
1485 echo "$as_me:$LINENO: checking MACHDEP" >&5
1486 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1487 if test -z "$MACHDEP"
1489 ac_sys_system
=`uname -s`
1490 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1491 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1492 ac_sys_release
=`uname -v`
1494 ac_sys_release
=`uname -r`
1496 ac_md_system
=`echo $ac_sys_system |
1497 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1498 ac_md_release
=`echo $ac_sys_release |
1499 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1500 MACHDEP
="$ac_md_system$ac_md_release"
1503 cygwin
*) MACHDEP
="cygwin";;
1504 darwin
*) MACHDEP
="darwin";;
1505 atheos
*) MACHDEP
="atheos";;
1506 irix646
) MACHDEP
="irix6";;
1507 '') MACHDEP
="unknown";;
1511 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1512 # disable features if it is defined, without any means to access these
1513 # features as extensions. For these systems, we skip the definition of
1514 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1515 # some feature, make sure there is no alternative way to access this
1516 # feature. Also, when using wildcards, make sure you have verified the
1517 # need for not defining _XOPEN_SOURCE on all systems matching the
1518 # wildcard, and that the wildcard does not include future systems
1519 # (which may remove their limitations).
1520 case $ac_sys_system/$ac_sys_release in
1521 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1522 # even though select is a POSIX function. Reported by J. Ribbens.
1523 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1524 OpenBSD
/2.
* | OpenBSD
/3.
[012345678])
1525 define_xopen_source
=no
;;
1526 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1527 # of union __?sigval. Reported by Stuart Bishop.
1529 define_xopen_source
=no
;;
1530 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1531 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1532 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1533 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1534 define_xopen_source
=no
;;
1535 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1536 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1538 define_xopen_source
=no
;;
1539 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1540 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1541 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1542 # This should hopefully be fixed in FreeBSD 4.9
1543 FreeBSD
/4.8* | Darwin
/6* )
1544 define_xopen_source
=no
;;
1545 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1546 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1547 # or has another value. By not (re)defining it, the defaults come in place.
1549 define_xopen_source
=no
;;
1551 if test `uname -r` -eq 1; then
1552 define_xopen_source
=no
1555 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1556 # disables platform specific features beyond repair.
1557 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1558 # has no effect, don't bother defineing them
1560 define_xopen_source
=no
1565 if test $define_xopen_source = yes
1567 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1568 # defined precisely as g++ defines it
1569 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1571 case $ac_sys_system/$ac_sys_release in
1572 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1574 cat >>confdefs.h
<<\_ACEOF
1575 #define _XOPEN_SOURCE 500
1581 cat >>confdefs.h
<<\_ACEOF
1582 #define _XOPEN_SOURCE 600
1588 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1589 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1590 # several APIs are not declared. Since this is also needed in some
1591 # cases for HP-UX, we define it globally.
1592 # except for Solaris 10, where it must not be defined,
1593 # as it implies XPG4.2
1594 case $ac_sys_system/$ac_sys_release in
1599 cat >>confdefs.h
<<\_ACEOF
1600 #define _XOPEN_SOURCE_EXTENDED 1
1607 cat >>confdefs.h
<<\_ACEOF
1608 #define _POSIX_C_SOURCE 200112L
1615 # SGI compilers allow the specification of the both the ABI and the
1616 # ISA on the command line. Depending on the values of these switches,
1617 # different and often incompatable code will be generated.
1619 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1620 # thus supply support for various ABI/ISA combinations. The MACHDEP
1621 # variable is also adjusted.
1624 if test ! -z "$SGI_ABI"
1627 LDFLAGS
="$SGI_ABI $LDFLAGS"
1628 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1630 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1631 echo "${ECHO_T}$MACHDEP" >&6
1633 # And add extra plat-mac for darwin
1636 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1637 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1638 if test -z "$EXTRAPLATDIR"
1642 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1643 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1651 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1652 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1654 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1655 # it may influence the way we can build extensions, so distutils
1659 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1660 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1662 # checks for alternative programs
1664 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1665 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1666 # just to get things to compile and link. Users are free to override OPT
1667 # when running configure or make. The build should not break if they do.
1668 # BASECFLAGS should generally not be messed with, however.
1670 # XXX shouldn't some/most/all of this code be merged with the stuff later
1671 # on that fiddles with OPT and BASECFLAGS?
1672 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1673 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1675 # Check whether --with-gcc or --without-gcc was given.
1676 if test "${with_gcc+set}" = set; then
1685 without_gcc
=$withval;;
1689 case $ac_sys_system in
1693 case $BE_HOST_CPU in
1697 BASECFLAGS
="$BASECFLAGS -export pragma"
1699 LDFLAGS
="$LDFLAGS -nodup"
1707 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1708 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1709 { (exit 1); exit 1; }; }
1712 AR
="\$(srcdir)/Modules/ar_beos"
1721 echo "$as_me:$LINENO: result: $without_gcc" >&5
1722 echo "${ECHO_T}$without_gcc" >&6
1724 # If the user switches compilers, we can't believe the cache
1725 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1727 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1728 (it is also a good idea to do 'make clean' before compiling)" >&5
1729 echo "$as_me: error: cached CC is different -- throw away $cache_file
1730 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1731 { (exit 1); exit 1; }; }
1735 ac_cpp
='$CPP $CPPFLAGS'
1736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1739 if test -n "$ac_tool_prefix"; then
1740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1741 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC
="$CC" # Let the user override the test.
1750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1754 test -z "$as_dir" && as_dir
=.
1755 for ac_exec_ext
in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 if test -n "$CC"; then
1768 echo "$as_me:$LINENO: result: $CC" >&5
1769 echo "${ECHO_T}$CC" >&6
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1776 if test -z "$ac_cv_prog_CC"; then
1778 # Extract the first word of "gcc", so it can be a program name with args.
1779 set dummy gcc
; ac_word
=$2
1780 echo "$as_me:$LINENO: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 if test -n "$ac_ct_CC"; then
1786 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1792 test -z "$as_dir" && as_dir
=.
1793 for ac_exec_ext
in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_ac_ct_CC
="gcc"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1805 if test -n "$ac_ct_CC"; then
1806 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1807 echo "${ECHO_T}$ac_ct_CC" >&6
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1818 if test -z "$CC"; then
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1821 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC
="$CC" # Let the user override the test.
1830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir
=.
1835 for ac_exec_ext
in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1858 # Extract the first word of "cc", so it can be a program name with args.
1859 set dummy cc
; ac_word
=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir
=.
1873 for ac_exec_ext
in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC
="cc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1899 if test -z "$CC"; then
1900 # Extract the first word of "cc", so it can be a program name with args.
1901 set dummy cc
; ac_word
=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC
="$CC" # Let the user override the test.
1911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1915 test -z "$as_dir" && as_dir
=.
1916 for ac_exec_ext
in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1919 ac_prog_rejected
=yes
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 if test $ac_prog_rejected = yes; then
1930 # We found a bogon in the path, so make sure we never use it.
1931 set dummy
$ac_cv_prog_CC
1933 if test $# != 0; then
1934 # We chose a different compiler from the bogus one.
1935 # However, it has the same basename, so the bogon will be chosen
1936 # first if we set CC to just the basename; use the full file name.
1938 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1944 if test -n "$CC"; then
1945 echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1953 if test -z "$CC"; then
1954 if test -n "$ac_tool_prefix"; then
1957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC
="$CC" # Let the user override the test.
1967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir
=.
1972 for ac_exec_ext
in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CC"; then
1985 echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1992 test -n "$CC" && break
1995 if test -z "$CC"; then
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy
$ac_prog; ac_word
=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_CC"; then
2007 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir
=.
2014 for ac_exec_ext
in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CC
="$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2034 test -n "$ac_ct_CC" && break
2043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: no acceptable C compiler found in \$PATH
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2049 # Provide some information about the compiler.
2050 echo "$as_me:$LINENO:" \
2051 "checking for C compiler version" >&5
2052 ac_compiler
=`set X $ac_compile; echo $2`
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2054 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }
2058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2059 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }
2063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2064 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }
2069 cat >conftest.
$ac_ext <<_ACEOF
2072 cat confdefs.h
>>conftest.
$ac_ext
2073 cat >>conftest.
$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2084 ac_clean_files_save
=$ac_clean_files
2085 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2086 # Try to create an executable without -o first, disregard a.out.
2087 # It will help us diagnose broken compilers, and finding out an intuition
2089 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2090 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2091 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093 (eval $ac_link_default) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; then
2097 # Find the output, starting from the most likely. This scheme is
2098 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2101 # Be careful to initialize this variable, since it used to be cached.
2102 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 # b.out is created by i960 compilers.
2105 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2107 test -f "$ac_file" ||
continue
2109 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2112 # This is the source file.
2115 # We found the default executable, but exeext='' is most
2119 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 # FIXME: I believe we export ac_cv_exeext for Libtool,
2121 # but it would be cool to find out if it's true. Does anybody
2122 # maintain Libtool? --akim.
2130 echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.
$ac_ext >&5
2133 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: C compiler cannot create executables
2136 See \`config.log' for more details." >&2;}
2137 { (exit 77); exit 77; }; }
2140 ac_exeext
=$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_file" >&5
2142 echo "${ECHO_T}$ac_file" >&6
2144 # Check the compiler produces executables we can run. If not, either
2145 # the compiler is broken, or we cross compile.
2146 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2147 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2148 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2149 # If not cross compiling, check that we can run a simple program.
2150 if test "$cross_compiling" != yes; then
2151 if { ac_try
='./$ac_file'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2159 if test "$cross_compiling" = maybe
; then
2162 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2163 If you meant to cross compile, use \`--host'.
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: cannot run C compiled programs.
2166 If you meant to cross compile, use \`--host'.
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2172 echo "$as_me:$LINENO: result: yes" >&5
2173 echo "${ECHO_T}yes" >&6
2175 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2176 ac_clean_files
=$ac_clean_files_save
2177 # Check the compiler produces executables we can run. If not, either
2178 # the compiler is broken, or we cross compile.
2179 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2180 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2181 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2182 echo "${ECHO_T}$cross_compiling" >&6
2184 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2185 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2187 (eval $ac_link) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; then
2191 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2192 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2193 # work properly (i.e., refer to `conftest.exe'), while it won't with
2195 for ac_file
in conftest.exe conftest conftest.
*; do
2196 test -f "$ac_file" ||
continue
2198 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2199 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2209 See \`config.log' for more details." >&2;}
2210 { (exit 1); exit 1; }; }
2213 rm -f conftest
$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2215 echo "${ECHO_T}$ac_cv_exeext" >&6
2217 rm -f conftest.
$ac_ext
2218 EXEEXT
=$ac_cv_exeext
2220 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2221 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2222 if test "${ac_cv_objext+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 cat >conftest.
$ac_ext <<_ACEOF
2228 cat confdefs.h
>>conftest.
$ac_ext
2229 cat >>conftest.
$ac_ext <<_ACEOF
2230 /* end confdefs.h. */
2240 rm -f conftest.o conftest.obj
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; then
2246 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2248 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2249 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.
$ac_ext >&5
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2264 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2266 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267 echo "${ECHO_T}$ac_cv_objext" >&6
2268 OBJEXT
=$ac_cv_objext
2270 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 cat >conftest.
$ac_ext <<_ACEOF
2278 cat confdefs.h
>>conftest.
$ac_ext
2279 cat >>conftest.
$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2293 rm -f conftest.
$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>conftest.er1
2297 grep -v '^ *+' conftest.er1
>conftest.err
2299 cat conftest.err
>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try
='test -z "$ac_c_werror_flag"
2303 || test ! -s conftest.err'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; } &&
2309 { ac_try
='test -s conftest.$ac_objext'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; }; then
2317 echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.
$ac_ext >&5
2322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2323 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2326 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2328 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2329 ac_test_CFLAGS
=${CFLAGS+set}
2330 ac_save_CFLAGS
=$CFLAGS
2332 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2333 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2334 if test "${ac_cv_prog_cc_g+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 cat >conftest.
$ac_ext <<_ACEOF
2340 cat confdefs.h
>>conftest.
$ac_ext
2341 cat >>conftest.
$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2352 rm -f conftest.
$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>conftest.er1
2356 grep -v '^ *+' conftest.er1
>conftest.err
2358 cat conftest.err
>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try
='test -z "$ac_c_werror_flag"
2362 || test ! -s conftest.err'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; } &&
2368 { ac_try
='test -s conftest.$ac_objext'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.
$ac_ext >&5
2381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2384 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2385 if test "$ac_test_CFLAGS" = set; then
2386 CFLAGS
=$ac_save_CFLAGS
2387 elif test $ac_cv_prog_cc_g = yes; then
2388 if test "$GCC" = yes; then
2394 if test "$GCC" = yes; then
2400 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2401 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2402 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 ac_cv_prog_cc_stdc
=no
2407 cat >conftest.
$ac_ext <<_ACEOF
2410 cat confdefs.h
>>conftest.
$ac_ext
2411 cat >>conftest.
$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2415 #include <sys/types.h>
2416 #include <sys/stat.h>
2417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2418 struct buf { int x; };
2419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2420 static char *e (p, i)
2426 static char *f (char * (*g) (char **, int), char **p, ...)
2431 s = g (p, va_arg (v,int));
2436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2437 function prototypes and stuff, but not '\xHH' hex character constants.
2438 These don't provoke an error unfortunately, instead are silently treated
2439 as 'x'. The following induces an error, until -std1 is added to get
2440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2441 array size at least. It's necessary to write '\x00'==0 to get something
2442 that's true only with -std1. */
2443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2445 int test (int i, double x);
2446 struct s1 {int (*f) (int a);};
2447 struct s2 {int (*f) (double a);};
2448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2454 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2459 # Don't try gcc -ansi; that turns off useful extensions and
2460 # breaks some systems' header files.
2461 # AIX -qlanglvl=ansi
2462 # Ultrix and OSF/1 -std1
2463 # HP-UX 10.20 and later -Ae
2464 # HP-UX older versions -Aa -D_HPUX_SOURCE
2465 # SVR4 -Xc -D__EXTENSIONS__
2466 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2468 CC
="$ac_save_CC $ac_arg"
2469 rm -f conftest.
$ac_objext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471 (eval $ac_compile) 2>conftest.er1
2473 grep -v '^ *+' conftest.er1
>conftest.err
2475 cat conftest.err
>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try
='test -z "$ac_c_werror_flag"
2479 || test ! -s conftest.err'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try
='test -s conftest.$ac_objext'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 ac_cv_prog_cc_stdc
=$ac_arg
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.
$ac_ext >&5
2498 rm -f conftest.err conftest.
$ac_objext
2500 rm -f conftest.
$ac_ext conftest.
$ac_objext
2505 case "x$ac_cv_prog_cc_stdc" in
2507 echo "$as_me:$LINENO: result: none needed" >&5
2508 echo "${ECHO_T}none needed" >&6 ;;
2510 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2511 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2512 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2515 # Some people use a C++ compiler to compile C. Since we use `exit',
2516 # in C++ we need to declare it. In case someone uses the same compiler
2517 # for both compiling C and C++ we need to have the C++ compiler decide
2518 # the declaration of exit, since it's the most demanding environment.
2519 cat >conftest.
$ac_ext <<_ACEOF
2524 rm -f conftest.
$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>conftest.er1
2528 grep -v '^ *+' conftest.er1
>conftest.err
2530 cat conftest.err
>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try
='test -z "$ac_c_werror_flag"
2534 || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try
='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 for ac_declaration
in \
2548 'extern "C" void std::exit (int) throw (); using std::exit;' \
2549 'extern "C" void std::exit (int); using std::exit;' \
2550 'extern "C" void exit (int) throw ();' \
2551 'extern "C" void exit (int);' \
2554 cat >conftest.
$ac_ext <<_ACEOF
2557 cat confdefs.h
>>conftest.
$ac_ext
2558 cat >>conftest.
$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2570 rm -f conftest.
$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2574 grep -v '^ *+' conftest.er1
>conftest.err
2576 cat conftest.err
>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try
='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try
='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.
$ac_ext >&5
2599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2600 cat >conftest.
$ac_ext <<_ACEOF
2603 cat confdefs.h
>>conftest.
$ac_ext
2604 cat >>conftest.
$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.
$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2619 grep -v '^ *+' conftest.er1
>conftest.err
2621 cat conftest.err
>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try
='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try
='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.
$ac_ext >&5
2643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2646 if test -n "$ac_declaration"; then
2647 echo '#ifdef __cplusplus' >>confdefs.h
2648 echo $ac_declaration >>confdefs.h
2649 echo '#endif' >>confdefs.h
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.
$ac_ext >&5
2657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2659 ac_cpp
='$CPP $CPPFLAGS'
2660 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2667 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2668 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2670 # Check whether --with-cxx_main or --without-cxx_main was given.
2671 if test "${with_cxx_main+set}" = set; then
2672 withval
="$with_cxx_main"
2676 no
) with_cxx_main
=no
2678 yes) with_cxx_main
=yes
2680 *) with_cxx_main
=yes
2693 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2694 echo "${ECHO_T}$with_cxx_main" >&6
2700 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2701 set dummy g
++; ac_word
=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_path_CXX+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 for as_dir
in notfound
2716 test -z "$as_dir" && as_dir
=.
2717 for ac_exec_ext
in '' $ac_executable_extensions; do
2718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2732 if test -n "$CXX"; then
2733 echo "$as_me:$LINENO: result: $CXX" >&5
2734 echo "${ECHO_T}$CXX" >&6
2736 echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2740 cc
) # Extract the first word of "c++", so it can be a program name with args.
2741 set dummy c
++; ac_word
=$2
2742 echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_path_CXX+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2753 for as_dir
in notfound
2756 test -z "$as_dir" && as_dir
=.
2757 for ac_exec_ext
in '' $ac_executable_extensions; do
2758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2772 if test -n "$CXX"; then
2773 echo "$as_me:$LINENO: result: $CXX" >&5
2774 echo "${ECHO_T}$CXX" >&6
2776 echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6
2781 if test "$CXX" = "notfound"
2788 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy
$ac_prog; ac_word
=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir
=.
2805 for ac_exec_ext
in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_CXX
="$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 if test -n "$CXX"; then
2818 echo "$as_me:$LINENO: result: $CXX" >&5
2819 echo "${ECHO_T}$CXX" >&6
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2825 test -n "$CXX" && break
2827 test -n "$CXX" || CXX
="notfound"
2829 if test "$CXX" = "notfound"
2834 if test "$preset_cxx" != "$CXX"
2836 { echo "$as_me:$LINENO: WARNING:
2838 By default, distutils will build C++ extension modules with \"$CXX\".
2839 If this is not intended, then set CXX on the configure command line.
2841 echo "$as_me: WARNING:
2843 By default, distutils will build C++ extension modules with \"$CXX\".
2844 If this is not intended, then set CXX on the configure command line.
2849 # checks for UNIX variants that set C preprocessor variables
2852 ac_cpp
='$CPP $CPPFLAGS'
2853 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2856 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2857 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2858 # On Suns, sometimes $CPP names a directory.
2859 if test -n "$CPP" && test -d "$CPP"; then
2862 if test -z "$CPP"; then
2863 if test "${ac_cv_prog_CPP+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 # Double quotes because CPP needs to be expanded
2867 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2870 for ac_c_preproc_warn_flag
in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2885 # include <limits.h>
2887 # include <assert.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev
/null
; then
2899 if test -s conftest.err
; then
2900 ac_cpp_err
=$ac_c_preproc_warn_flag
2901 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2914 # Broken: fails on valid input.
2917 rm -f conftest.err conftest.
$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1
>conftest.err
2934 cat conftest.err
>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev
/null
; then
2937 if test -s conftest.err
; then
2938 ac_cpp_err
=$ac_c_preproc_warn_flag
2939 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 # Passes both tests.
2957 rm -f conftest.err conftest.
$ac_ext
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.
$ac_ext
2962 if $ac_preproc_ok; then
2974 echo "$as_me:$LINENO: result: $CPP" >&5
2975 echo "${ECHO_T}$CPP" >&6
2977 for ac_c_preproc_warn_flag
in '' yes
2979 # Use a header file that comes with gcc, so configuring glibc
2980 # with a fresh cross-compiler works.
2981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2982 # <limits.h> exists even on freestanding compilers.
2983 # On the NeXT, cc -E runs the code through the compiler's parser,
2984 # not just through cpp. "Syntax error" is here to catch this case.
2985 cat >conftest.
$ac_ext <<_ACEOF
2988 cat confdefs.h
>>conftest.
$ac_ext
2989 cat >>conftest.
$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2992 # include <limits.h>
2994 # include <assert.h>
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2999 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3001 grep -v '^ *+' conftest.er1
>conftest.err
3003 cat conftest.err
>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev
/null
; then
3006 if test -s conftest.err
; then
3007 ac_cpp_err
=$ac_c_preproc_warn_flag
3008 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3015 if test -z "$ac_cpp_err"; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.
$ac_ext >&5
3021 # Broken: fails on valid input.
3024 rm -f conftest.err conftest.
$ac_ext
3026 # OK, works on sane cases. Now check whether non-existent headers
3027 # can be detected and how.
3028 cat >conftest.
$ac_ext <<_ACEOF
3031 cat confdefs.h
>>conftest.
$ac_ext
3032 cat >>conftest.
$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 #include <ac_nonexistent.h>
3036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3039 grep -v '^ *+' conftest.er1
>conftest.err
3041 cat conftest.err
>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev
/null
; then
3044 if test -s conftest.err
; then
3045 ac_cpp_err
=$ac_c_preproc_warn_flag
3046 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3053 if test -z "$ac_cpp_err"; then
3054 # Broken: success on invalid input.
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.
$ac_ext >&5
3060 # Passes both tests.
3064 rm -f conftest.err conftest.
$ac_ext
3067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3068 rm -f conftest.err conftest.
$ac_ext
3069 if $ac_preproc_ok; then
3072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3073 See \`config.log' for more details." >&5
3074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3075 See \`config.log' for more details." >&2;}
3076 { (exit 1); exit 1; }; }
3080 ac_cpp
='$CPP $CPPFLAGS'
3081 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3086 echo "$as_me:$LINENO: checking for egrep" >&5
3087 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3088 if test "${ac_cv_prog_egrep+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3092 then ac_cv_prog_egrep
='grep -E'
3093 else ac_cv_prog_egrep
='egrep'
3096 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3097 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3098 EGREP
=$ac_cv_prog_egrep
3102 echo "$as_me:$LINENO: checking for AIX" >&5
3103 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3104 cat >conftest.
$ac_ext <<_ACEOF
3107 cat confdefs.h
>>conftest.
$ac_ext
3108 cat >>conftest.
$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3116 $EGREP "yes" >/dev
/null
2>&1; then
3117 echo "$as_me:$LINENO: result: yes" >&5
3118 echo "${ECHO_T}yes" >&6
3119 cat >>confdefs.h
<<\_ACEOF
3120 #define _ALL_SOURCE 1
3124 echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6
3131 # Check for unsupported systems
3132 case $ac_sys_system/$ac_sys_release in
3134 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3135 echo See README
for details.
3140 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3141 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3143 # Check whether --with-suffix or --without-suffix was given.
3144 if test "${with_suffix+set}" = set; then
3145 withval
="$with_suffix"
3150 *) EXEEXT
=$withval;;
3153 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3154 echo "${ECHO_T}$EXEEXT" >&6
3156 # Test whether we're running on a non-case-sensitive system, in which
3157 # case we give a warning if no ext is given
3159 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3160 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3161 if test ! -d CaseSensitiveTestDir
; then
3162 mkdir CaseSensitiveTestDir
3165 if test -d casesensitivetestdir
3167 echo "$as_me:$LINENO: result: yes" >&5
3168 echo "${ECHO_T}yes" >&6
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3175 rmdir CaseSensitiveTestDir
3180 gcc
) CC
="$CC -D_HAVE_BSDI";;
3184 case $ac_sys_system in
3187 cc|
*/cc
) CC
="$CC -Ae";;
3191 cc
) CC
="$CC -Wl,-Bexport";;
3194 # Some functions have a prototype only with that define, e.g. confstr
3196 cat >>confdefs.h
<<\_ACEOF
3197 #define __EXTENSIONS__ 1
3205 echo "$as_me:$LINENO: checking LIBRARY" >&5
3206 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3207 if test -z "$LIBRARY"
3209 LIBRARY
='libpython$(VERSION).a'
3211 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3212 echo "${ECHO_T}$LIBRARY" >&6
3214 # LDLIBRARY is the name of the library to link against (as opposed to the
3215 # name of the library into which to insert object files). BLDLIBRARY is also
3216 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3217 # is blank as the main program is not linked directly against LDLIBRARY.
3218 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3219 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3220 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3221 # DLLLIBRARY is the shared (i.e., DLL) library.
3223 # RUNSHARED is used to run shared python without installed libraries
3225 # INSTSONAME is the name of the shared library that will be use to install
3226 # on the system - some systems like version suffix, others don't
3233 LDLIBRARY
="$LIBRARY"
3234 BLDLIBRARY
='$(LDLIBRARY)'
3235 INSTSONAME
='$(LDLIBRARY)'
3240 # LINKCC is the command that links the python executable -- default is $(CC).
3241 # If CXX is set, and if it is needed to link a main function that was
3242 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3243 # python might then depend on the C++ runtime
3244 # This is altered for AIX in order to build the export list before
3247 echo "$as_me:$LINENO: checking LINKCC" >&5
3248 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3249 if test -z "$LINKCC"
3251 LINKCC
='$(PURIFY) $(MAINCC)'
3252 case $ac_sys_system in
3255 if test $ac_sys_release -ge 5 -o \
3256 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3259 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3261 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3264 echo "$as_me:$LINENO: result: $LINKCC" >&5
3265 echo "${ECHO_T}$LINKCC" >&6
3267 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3268 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3269 # Check whether --enable-shared or --disable-shared was given.
3270 if test "${enable_shared+set}" = set; then
3271 enableval
="$enable_shared"
3275 if test -z "$enable_shared"
3277 case $ac_sys_system in
3279 enable_shared
="yes";;
3281 enable_shared
="no";;
3284 echo "$as_me:$LINENO: result: $enable_shared" >&5
3285 echo "${ECHO_T}$enable_shared" >&6
3287 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3288 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3289 # Check whether --enable-profiling or --disable-profiling was given.
3290 if test "${enable_profiling+set}" = set; then
3291 enableval
="$enable_profiling"
3294 if test "$cross_compiling" = yes; then
3295 ac_enable_profiling
="no"
3297 cat >conftest.
$ac_ext <<_ACEOF
3300 cat confdefs.h
>>conftest.
$ac_ext
3301 cat >>conftest.
$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303 int main() { return 0; }
3305 rm -f conftest
$ac_exeext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3307 (eval $ac_link) 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 ac_enable_profiling
="yes"
3318 echo "$as_me: program exited with status $ac_status" >&5
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.
$ac_ext >&5
3323 ac_enable_profiling
="no"
3325 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3329 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3330 echo "${ECHO_T}$ac_enable_profiling" >&6
3332 case "$ac_enable_profiling" in
3334 BASECFLAGS
="-pg $BASECFLAGS"
3335 LDFLAGS
="-pg $LDFLAGS"
3339 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3340 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3342 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3343 # library that we build, but we do not want to link against it (we
3344 # will find it with a -framework option). For this reason there is an
3345 # extra variable BLDLIBRARY against which Python and the extension
3346 # modules are linked, BLDLIBRARY. This is normally the same as
3347 # LDLIBRARY, but empty for MacOSX framework builds.
3348 if test "$enable_framework"
3350 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3351 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3354 BLDLIBRARY
='$(LDLIBRARY)'
3357 # Other platforms follow
3358 if test $enable_shared = "yes"; then
3360 cat >>confdefs.h
<<\_ACEOF
3361 #define Py_ENABLE_SHARED 1
3364 case $ac_sys_system in
3366 LDLIBRARY
='libpython$(VERSION).so'
3369 LDLIBRARY
='libpython$(VERSION).dll.a'
3370 DLLLIBRARY
='libpython$(VERSION).dll'
3373 LDLIBRARY
='libpython$(VERSION).so'
3374 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3375 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3376 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3378 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3379 LDLIBRARY
='libpython$(VERSION).so'
3380 BLDLIBRARY
='-L. -lpython$(VERSION)'
3381 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3382 case $ac_sys_system in
3384 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3387 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3392 LDLIBRARY
='libpython$(VERSION).so'
3395 LDLIBRARY
='libpython$(VERSION).sl'
3398 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3399 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3402 LDLIBRARY
='libpython$(VERSION).so'
3403 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3404 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3407 LDLIBRARY
='libpython$(VERSION).so'
3408 BLDLIBRARY
='-L. -lpython$(VERSION)'
3409 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3412 else # shared is disabled
3413 case $ac_sys_system in
3415 BLDLIBRARY
='$(LIBRARY)'
3416 LDLIBRARY
='libpython$(VERSION).dll.a'
3421 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3422 echo "${ECHO_T}$LDLIBRARY" >&6
3424 if test -n "$ac_tool_prefix"; then
3425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3426 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_RANLIB+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 if test -n "$RANLIB"; then
3433 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir
=.
3440 for ac_exec_ext
in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 RANLIB
=$ac_cv_prog_RANLIB
3452 if test -n "$RANLIB"; then
3453 echo "$as_me:$LINENO: result: $RANLIB" >&5
3454 echo "${ECHO_T}$RANLIB" >&6
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3461 if test -z "$ac_cv_prog_RANLIB"; then
3462 ac_ct_RANLIB
=$RANLIB
3463 # Extract the first word of "ranlib", so it can be a program name with args.
3464 set dummy ranlib
; ac_word
=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 if test -n "$ac_ct_RANLIB"; then
3471 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir
=.
3478 for ac_exec_ext
in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3490 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3491 if test -n "$ac_ct_RANLIB"; then
3492 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3493 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3495 echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3499 RANLIB
=$ac_ct_RANLIB
3501 RANLIB
="$ac_cv_prog_RANLIB"
3505 for ac_prog
in ar aal
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy
$ac_prog; ac_word
=$2
3509 echo "$as_me:$LINENO: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_prog_AR+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 if test -n "$AR"; then
3515 ac_cv_prog_AR
="$AR" # Let the user override the test.
3517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir
=.
3522 for ac_exec_ext
in '' $ac_executable_extensions; do
3523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_AR
="$ac_prog"
3525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 if test -n "$AR"; then
3535 echo "$as_me:$LINENO: result: $AR" >&5
3536 echo "${ECHO_T}$AR" >&6
3538 echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3542 test -n "$AR" && break
3544 test -n "$AR" || AR
="ar"
3548 # Extract the first word of "svnversion", so it can be a program name with args.
3549 set dummy svnversion
; ac_word
=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 if test -n "$SVNVERSION"; then
3556 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir
=.
3563 for ac_exec_ext
in '' $ac_executable_extensions; do
3564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_SVNVERSION
="found"
3566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3575 SVNVERSION
=$ac_cv_prog_SVNVERSION
3576 if test -n "$SVNVERSION"; then
3577 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3578 echo "${ECHO_T}$SVNVERSION" >&6
3580 echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3584 if test $SVNVERSION = found
3586 SVNVERSION
="svnversion \$(srcdir)"
3588 SVNVERSION
="echo exported"
3593 # install -d does not work on BSDI or HP-UX
3594 if test -z "$INSTALL"
3596 INSTALL
="${srcdir}/install-sh -c"
3600 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3601 if test -f $ac_dir/install-sh
; then
3603 ac_install_sh
="$ac_aux_dir/install-sh -c"
3605 elif test -f $ac_dir/install.sh
; then
3607 ac_install_sh
="$ac_aux_dir/install.sh -c"
3609 elif test -f $ac_dir/shtool
; then
3611 ac_install_sh
="$ac_aux_dir/shtool install -c"
3615 if test -z "$ac_aux_dir"; then
3616 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3617 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3618 { (exit 1); exit 1; }; }
3620 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3621 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3622 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3624 # Find a good install program. We prefer a C program (faster),
3625 # so one script is as good as another. But avoid the broken or
3626 # incompatible versions:
3627 # SysV /etc/install, /usr/sbin/install
3628 # SunOS /usr/etc/install
3629 # IRIX /sbin/install
3631 # AmigaOS /C/install, which installs bootblocks on floppy discs
3632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3635 # OS/2's system install, which has a completely different semantic
3636 # ./install, which can be erroneously created by make from ./install.sh.
3637 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3638 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3639 if test -z "$INSTALL"; then
3640 if test "${ac_cv_path_install+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir
=.
3648 # Account for people who put trailing slashes in PATH elements.
3650 .
/ | .
// |
/cC
/* | \
3651 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3652 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3655 # OSF1 and SCO ODT 3.0 have their own names for install.
3656 # Don't use installbsd from OSF since it installs stuff as root
3658 for ac_prog
in ginstall scoinst
install; do
3659 for ac_exec_ext
in '' $ac_executable_extensions; do
3660 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3661 if test $ac_prog = install &&
3662 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3663 # AIX install. It has an incompatible calling convention.
3665 elif test $ac_prog = install &&
3666 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3667 # program-specific install script used by HP pwplus--don't use.
3670 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3682 if test "${ac_cv_path_install+set}" = set; then
3683 INSTALL
=$ac_cv_path_install
3685 # As a last resort, use the slow shell script. We don't cache a
3686 # path for INSTALL within a source directory, because that will
3687 # break other packages using the cache if that directory is
3688 # removed, or if the path is relative.
3689 INSTALL
=$ac_install_sh
3692 echo "$as_me:$LINENO: result: $INSTALL" >&5
3693 echo "${ECHO_T}$INSTALL" >&6
3695 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3696 # It thinks the first close brace ends the variable substitution.
3697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3699 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3701 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3704 # Not every filesystem supports hard links
3706 if test -z "$LN" ; then
3707 case $ac_sys_system in
3709 CYGWIN
*) LN
="ln -s";;
3710 atheos
*) LN
="ln -s";;
3715 # Check for --with-pydebug
3716 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3717 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3719 # Check whether --with-pydebug or --without-pydebug was given.
3720 if test "${with_pydebug+set}" = set; then
3721 withval
="$with_pydebug"
3723 if test "$withval" != no
3726 cat >>confdefs.h
<<\_ACEOF
3730 echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6;
3733 else echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3737 echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6
3741 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3742 # merged with this chunk of code?
3744 # Optimizer/debugger flags
3745 # ------------------------
3746 # (The following bit of code is complicated enough - please keep things
3747 # indented properly. Just pretend you're editing Python code. ;-)
3749 # There are two parallel sets of case statements below, one that checks to
3750 # see if OPT was set and one that does BASECFLAGS setting based upon
3751 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3754 # tweak OPT based on compiler and platform, only if the user didn't set
3755 # it on the command line
3761 if test "$CC" != 'g++' ; then
3762 STRICT_PROTO
="-Wstrict-prototypes"
3764 case $ac_cv_prog_cc_g in
3766 if test "$Py_DEBUG" = 'true' ; then
3767 # Optimization messes up debuggers, so turn it off for
3769 OPT
="-g -Wall $STRICT_PROTO"
3771 OPT
="-g -O3 -Wall $STRICT_PROTO"
3775 OPT
="-O3 -Wall $STRICT_PROTO"
3778 case $ac_sys_system in
3779 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3789 # The current (beta) Monterey compiler dies with optimizations
3790 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3791 case $ac_sys_system in
3800 # tweak BASECFLAGS based on compiler and platform
3803 # Python violates C99 rules, by casting between incompatible
3804 # pointer types. GCC may generate bad code as a result of that,
3805 # so use -fno-strict-aliasing if supported.
3806 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3807 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3809 CC
="$CC -fno-strict-aliasing"
3810 if test "$cross_compiling" = yes; then
3811 ac_cv_no_strict_aliasing_ok
=no
3813 cat >conftest.
$ac_ext <<_ACEOF
3816 cat confdefs.h
>>conftest.
$ac_ext
3817 cat >>conftest.
$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 int main() { return 0; }
3821 rm -f conftest
$ac_exeext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3823 (eval $ac_link) 2>&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 ac_cv_no_strict_aliasing_ok
=yes
3834 echo "$as_me: program exited with status $ac_status" >&5
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.
$ac_ext >&5
3839 ac_cv_no_strict_aliasing_ok
=no
3841 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3845 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3846 if test $ac_cv_no_strict_aliasing_ok = yes
3848 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3850 case $ac_sys_system in
3852 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3854 # is there any other compiler on Darwin besides gcc?
3856 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3857 if test "${enable_universalsdk}"; then
3858 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3863 BASECFLAGS
="$BASECFLAGS -mieee"
3869 case $ac_sys_system in
3870 OpenUNIX
*|UnixWare
*)
3871 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3874 BASECFLAGS
="$BASECFLAGS -ieee -std"
3877 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3883 if test "$Py_DEBUG" = 'true'; then
3889 if test "$ac_arch_flags"
3891 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3894 # disable check for icc since it seems to pass, but generates a warning
3897 ac_cv_opt_olimit_ok
=no
3900 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3901 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3902 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 CC
="$CC -OPT:Olimit=0"
3907 if test "$cross_compiling" = yes; then
3908 ac_cv_opt_olimit_ok
=no
3910 cat >conftest.
$ac_ext <<_ACEOF
3913 cat confdefs.h
>>conftest.
$ac_ext
3914 cat >>conftest.
$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 int main() { return 0; }
3918 rm -f conftest
$ac_exeext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920 (eval $ac_link) 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 ac_cv_opt_olimit_ok
=yes
3931 echo "$as_me: program exited with status $ac_status" >&5
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.
$ac_ext >&5
3936 ac_cv_opt_olimit_ok
=no
3938 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3944 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3945 if test $ac_cv_opt_olimit_ok = yes; then
3946 case $ac_sys_system in
3947 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3948 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3953 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3957 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3958 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3959 if test "${ac_cv_olimit_ok+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 CC
="$CC -Olimit 1500"
3964 if test "$cross_compiling" = yes; then
3967 cat >conftest.
$ac_ext <<_ACEOF
3970 cat confdefs.h
>>conftest.
$ac_ext
3971 cat >>conftest.
$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 int main() { return 0; }
3975 rm -f conftest
$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3988 echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.
$ac_ext >&5
3995 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4000 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4001 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4002 if test $ac_cv_olimit_ok = yes; then
4003 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4007 # On some compilers, pthreads are available without further options
4008 # (e.g. MacOS X). On some of these systems, the compiler will not
4009 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4010 # So we have to see first whether pthreads are available without
4011 # options before we can check whether -Kpthread improves anything.
4012 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4013 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4014 if test "${ac_cv_pthread_is_default+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 if test "$cross_compiling" = yes; then
4018 ac_cv_pthread_is_default
=no
4020 cat >conftest.
$ac_ext <<_ACEOF
4023 cat confdefs.h
>>conftest.
$ac_ext
4024 cat >>conftest.
$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4027 #include <pthread.h>
4029 void* routine(void* p){return NULL;}
4033 if(pthread_create(&p,NULL,routine,NULL)!=0)
4035 (void)pthread_detach(p);
4040 rm -f conftest
$ac_exeext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042 (eval $ac_link) 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4052 ac_cv_pthread_is_default
=yes
4057 echo "$as_me: program exited with status $ac_status" >&5
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.
$ac_ext >&5
4062 ac_cv_pthread_is_default
=no
4064 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4069 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4070 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4073 if test $ac_cv_pthread_is_default = yes
4077 # -Kpthread, if available, provides the right #defines
4078 # and linker options to make pthread_create available
4079 # Some compilers won't report that they do not support -Kpthread,
4080 # so we need to run a program to see whether it really made the
4081 # function available.
4082 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4083 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4084 if test "${ac_cv_kpthread+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test "$cross_compiling" = yes; then
4092 cat >conftest.
$ac_ext <<_ACEOF
4095 cat confdefs.h
>>conftest.
$ac_ext
4096 cat >>conftest.
$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4099 #include <pthread.h>
4101 void* routine(void* p){return NULL;}
4105 if(pthread_create(&p,NULL,routine,NULL)!=0)
4107 (void)pthread_detach(p);
4112 rm -f conftest
$ac_exeext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114 (eval $ac_link) 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4125 echo "$as_me: program exited with status $ac_status" >&5
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.
$ac_ext >&5
4132 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4137 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4138 echo "${ECHO_T}$ac_cv_kpthread" >&6
4141 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4143 # -Kthread, if available, provides the right #defines
4144 # and linker options to make pthread_create available
4145 # Some compilers won't report that they do not support -Kthread,
4146 # so we need to run a program to see whether it really made the
4147 # function available.
4148 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4149 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4150 if test "${ac_cv_kthread+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test "$cross_compiling" = yes; then
4158 cat >conftest.
$ac_ext <<_ACEOF
4161 cat confdefs.h
>>conftest.
$ac_ext
4162 cat >>conftest.
$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4165 #include <pthread.h>
4167 void* routine(void* p){return NULL;}
4171 if(pthread_create(&p,NULL,routine,NULL)!=0)
4173 (void)pthread_detach(p);
4178 rm -f conftest
$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4191 echo "$as_me: program exited with status $ac_status" >&5
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.
$ac_ext >&5
4198 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4203 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4204 echo "${ECHO_T}$ac_cv_kthread" >&6
4207 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4209 # -pthread, if available, provides the right #defines
4210 # and linker options to make pthread_create available
4211 # Some compilers won't report that they do not support -pthread,
4212 # so we need to run a program to see whether it really made the
4213 # function available.
4214 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4215 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4216 if test "${ac_cv_thread+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test "$cross_compiling" = yes; then
4224 cat >conftest.
$ac_ext <<_ACEOF
4227 cat confdefs.h
>>conftest.
$ac_ext
4228 cat >>conftest.
$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4231 #include <pthread.h>
4233 void* routine(void* p){return NULL;}
4237 if(pthread_create(&p,NULL,routine,NULL)!=0)
4239 (void)pthread_detach(p);
4244 rm -f conftest
$ac_exeext
4245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4246 (eval $ac_link) 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4257 echo "$as_me: program exited with status $ac_status" >&5
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.
$ac_ext >&5
4264 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4269 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4270 echo "${ECHO_T}$ac_cv_pthread" >&6
4273 # If we have set a CC compiler flag for thread support then
4274 # check if it works for CXX, too.
4278 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4279 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4282 if test "$ac_cv_kpthread" = "yes"
4284 CXX
="$CXX -Kpthread"
4285 ac_cv_cxx_thread
=yes
4286 elif test "$ac_cv_kthread" = "yes"
4289 ac_cv_cxx_thread
=yes
4290 elif test "$ac_cv_pthread" = "yes"
4293 ac_cv_cxx_thread
=yes
4296 if test $ac_cv_cxx_thread = yes
4298 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4299 $CXX -c conftest.
$ac_ext 2>&5
4300 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4301 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4303 ac_cv_cxx_thread
=yes
4309 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4310 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4315 # checks for header files
4316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4318 if test "${ac_cv_header_stdc+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 cat >conftest.
$ac_ext <<_ACEOF
4324 cat confdefs.h
>>conftest.
$ac_ext
4325 cat >>conftest.
$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4340 rm -f conftest.
$ac_objext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>conftest.er1
4344 grep -v '^ *+' conftest.er1
>conftest.err
4346 cat conftest.err
>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try
='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try
='test -s conftest.$ac_objext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_header_stdc
=yes
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.
$ac_ext >&5
4367 ac_cv_header_stdc
=no
4369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4371 if test $ac_cv_header_stdc = yes; then
4372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4373 cat >conftest.
$ac_ext <<_ACEOF
4376 cat confdefs.h
>>conftest.
$ac_ext
4377 cat >>conftest.
$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4383 $EGREP "memchr" >/dev
/null
2>&1; then
4386 ac_cv_header_stdc
=no
4392 if test $ac_cv_header_stdc = yes; then
4393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4394 cat >conftest.
$ac_ext <<_ACEOF
4397 cat confdefs.h
>>conftest.
$ac_ext
4398 cat >>conftest.
$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404 $EGREP "free" >/dev
/null
2>&1; then
4407 ac_cv_header_stdc
=no
4413 if test $ac_cv_header_stdc = yes; then
4414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4415 if test "$cross_compiling" = yes; then
4418 cat >conftest.
$ac_ext <<_ACEOF
4421 cat confdefs.h
>>conftest.
$ac_ext
4422 cat >>conftest.
$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4425 #if ((' ' & 0x0FF) == 0x020)
4426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4429 # define ISLOWER(c) \
4430 (('a' <= (c) && (c) <= 'i') \
4431 || ('j' <= (c) && (c) <= 'r') \
4432 || ('s' <= (c) && (c) <= 'z'))
4433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441 for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i))
4443 || toupper (i) != TOUPPER (i))
4448 rm -f conftest
$ac_exeext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450 (eval $ac_link) 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4461 echo "$as_me: program exited with status $ac_status" >&5
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.
$ac_ext >&5
4466 ac_cv_header_stdc
=no
4468 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4472 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4473 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4474 if test $ac_cv_header_stdc = yes; then
4476 cat >>confdefs.h
<<\_ACEOF
4477 #define STDC_HEADERS 1
4482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4492 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4493 inttypes.h stdint.h unistd.h
4495 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4496 echo "$as_me:$LINENO: checking for $ac_header" >&5
4497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 cat >conftest.
$ac_ext <<_ACEOF
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 $ac_includes_default
4509 #include <$ac_header>
4511 rm -f conftest.
$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>conftest.er1
4515 grep -v '^ *+' conftest.er1
>conftest.err
4517 cat conftest.err
>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try
='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try
='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 eval "$as_ac_Header=yes"
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.
$ac_ext >&5
4538 eval "$as_ac_Header=no"
4540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4545 cat >>confdefs.h
<<_ACEOF
4546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4594 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4595 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4596 stropts.h termios.h thread.h \
4598 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4600 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h \
4601 sys
/times.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4602 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4603 bluetooth
/bluetooth.h
4605 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4607 echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4615 # Is the header compilable?
4616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4618 cat >conftest.
$ac_ext <<_ACEOF
4621 cat confdefs.h
>>conftest.
$ac_ext
4622 cat >>conftest.
$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 $ac_includes_default
4625 #include <$ac_header>
4627 rm -f conftest.
$ac_objext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>conftest.er1
4631 grep -v '^ *+' conftest.er1
>conftest.err
4633 cat conftest.err
>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try
='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try
='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_header_compiler
=yes
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.
$ac_ext >&5
4654 ac_header_compiler
=no
4656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4658 echo "${ECHO_T}$ac_header_compiler" >&6
4660 # Is the header present?
4661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4663 cat >conftest.
$ac_ext <<_ACEOF
4666 cat confdefs.h
>>conftest.
$ac_ext
4667 cat >>conftest.
$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #include <$ac_header>
4671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4674 grep -v '^ *+' conftest.er1
>conftest.err
4676 cat conftest.err
>&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } >/dev
/null
; then
4679 if test -s conftest.err
; then
4680 ac_cpp_err
=$ac_c_preproc_warn_flag
4681 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4688 if test -z "$ac_cpp_err"; then
4689 ac_header_preproc
=yes
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.
$ac_ext >&5
4694 ac_header_preproc
=no
4696 rm -f conftest.err conftest.
$ac_ext
4697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4698 echo "${ECHO_T}$ac_header_preproc" >&6
4700 # So? What about this header?
4701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4707 ac_header_preproc
=yes
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4724 ## ------------------------------------------------ ##
4725 ## Report this to http://www.python.org/python-bugs ##
4726 ## ------------------------------------------------ ##
4729 sed "s/^/$as_me: WARNING: /" >&2
4732 echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 eval "$as_ac_Header=\$ac_header_preproc"
4739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4744 cat >>confdefs.h
<<_ACEOF
4745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4759 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4760 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4761 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.
$ac_ext <<_ACEOF
4768 cat confdefs.h
>>conftest.
$ac_ext
4769 cat >>conftest.
$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 #include <sys/types.h>
4783 rm -f conftest.
$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>conftest.er1
4787 grep -v '^ *+' conftest.er1
>conftest.err
4789 cat conftest.err
>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try
='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try
='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 eval "$as_ac_Header=yes"
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.
$ac_ext >&5
4810 eval "$as_ac_Header=no"
4812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4817 cat >>confdefs.h
<<_ACEOF
4818 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4821 ac_header_dirent
=$ac_hdr; break
4825 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4826 if test $ac_header_dirent = dirent.h
; then
4827 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4828 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4829 if test "${ac_cv_search_opendir+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 ac_func_search_save_LIBS
=$LIBS
4833 ac_cv_search_opendir
=no
4834 cat >conftest.
$ac_ext <<_ACEOF
4837 cat confdefs.h
>>conftest.
$ac_ext
4838 cat >>conftest.
$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4841 /* Override any gcc2 internal prototype to avoid an error. */
4845 /* We use char because int might match the return type of a gcc2
4846 builtin and then its argument prototype would still apply. */
4856 rm -f conftest.
$ac_objext conftest
$ac_exeext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4858 (eval $ac_link) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1
>conftest.err
4862 cat conftest.err
>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try
='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try
='test -s conftest$ac_exeext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_cv_search_opendir
="none required"
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.
$ac_ext >&5
4884 rm -f conftest.err conftest.
$ac_objext \
4885 conftest
$ac_exeext conftest.
$ac_ext
4886 if test "$ac_cv_search_opendir" = no
; then
4887 for ac_lib
in dir
; do
4888 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4889 cat >conftest.
$ac_ext <<_ACEOF
4892 cat confdefs.h
>>conftest.
$ac_ext
4893 cat >>conftest.
$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4896 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4911 rm -f conftest.
$ac_objext conftest
$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>conftest.er1
4915 grep -v '^ *+' conftest.er1
>conftest.err
4917 cat conftest.err
>&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try
='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try
='test -s conftest$ac_exeext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_cv_search_opendir
="-l$ac_lib"
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.
$ac_ext >&5
4940 rm -f conftest.err conftest.
$ac_objext \
4941 conftest
$ac_exeext conftest.
$ac_ext
4944 LIBS
=$ac_func_search_save_LIBS
4946 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4947 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4948 if test "$ac_cv_search_opendir" != no
; then
4949 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4954 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4955 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4956 if test "${ac_cv_search_opendir+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 ac_func_search_save_LIBS
=$LIBS
4960 ac_cv_search_opendir
=no
4961 cat >conftest.
$ac_ext <<_ACEOF
4964 cat confdefs.h
>>conftest.
$ac_ext
4965 cat >>conftest.
$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4968 /* Override any gcc2 internal prototype to avoid an error. */
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4983 rm -f conftest.
$ac_objext conftest
$ac_exeext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4985 (eval $ac_link) 2>conftest.er1
4987 grep -v '^ *+' conftest.er1
>conftest.err
4989 cat conftest.err
>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try
='test -z "$ac_c_werror_flag"
4993 || test ! -s conftest.err'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; } &&
4999 { ac_try
='test -s conftest$ac_exeext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_search_opendir
="none required"
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.
$ac_ext >&5
5011 rm -f conftest.err conftest.
$ac_objext \
5012 conftest
$ac_exeext conftest.
$ac_ext
5013 if test "$ac_cv_search_opendir" = no
; then
5015 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5016 cat >conftest.
$ac_ext <<_ACEOF
5019 cat confdefs.h
>>conftest.
$ac_ext
5020 cat >>conftest.
$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5023 /* Override any gcc2 internal prototype to avoid an error. */
5027 /* We use char because int might match the return type of a gcc2
5028 builtin and then its argument prototype would still apply. */
5038 rm -f conftest.
$ac_objext conftest
$ac_exeext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5040 (eval $ac_link) 2>conftest.er1
5042 grep -v '^ *+' conftest.er1
>conftest.err
5044 cat conftest.err
>&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try
='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try
='test -s conftest$ac_exeext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_search_opendir
="-l$ac_lib"
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.
$ac_ext >&5
5067 rm -f conftest.err conftest.
$ac_objext \
5068 conftest
$ac_exeext conftest.
$ac_ext
5071 LIBS
=$ac_func_search_save_LIBS
5073 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5074 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5075 if test "$ac_cv_search_opendir" != no
; then
5076 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5082 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5083 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5084 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 cat >conftest.
$ac_ext <<_ACEOF
5090 cat confdefs.h
>>conftest.
$ac_ext
5091 cat >>conftest.
$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <sys/types.h>
5097 return makedev(0, 0);
5102 rm -f conftest.
$ac_objext conftest
$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1
>conftest.err
5108 cat conftest.err
>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try
='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try
='test -s conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_header_sys_types_h_makedev
=yes
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5129 ac_cv_header_sys_types_h_makedev
=no
5131 rm -f conftest.err conftest.
$ac_objext \
5132 conftest
$ac_exeext conftest.
$ac_ext
5135 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5136 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5138 if test $ac_cv_header_sys_types_h_makedev = no
; then
5139 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5140 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5141 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5142 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5146 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5148 # Is the header compilable?
5149 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5150 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5151 cat >conftest.
$ac_ext <<_ACEOF
5154 cat confdefs.h
>>conftest.
$ac_ext
5155 cat >>conftest.
$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5157 $ac_includes_default
5158 #include <sys/mkdev.h>
5160 rm -f conftest.
$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>conftest.er1
5164 grep -v '^ *+' conftest.er1
>conftest.err
5166 cat conftest.err
>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try
='test -z "$ac_c_werror_flag"
5170 || test ! -s conftest.err'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try
='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_header_compiler
=yes
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.
$ac_ext >&5
5187 ac_header_compiler
=no
5189 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5191 echo "${ECHO_T}$ac_header_compiler" >&6
5193 # Is the header present?
5194 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5195 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5196 cat >conftest.
$ac_ext <<_ACEOF
5199 cat confdefs.h
>>conftest.
$ac_ext
5200 cat >>conftest.
$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <sys/mkdev.h>
5204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5207 grep -v '^ *+' conftest.er1
>conftest.err
5209 cat conftest.err
>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } >/dev
/null
; then
5212 if test -s conftest.err
; then
5213 ac_cpp_err
=$ac_c_preproc_warn_flag
5214 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5221 if test -z "$ac_cpp_err"; then
5222 ac_header_preproc
=yes
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.
$ac_ext >&5
5227 ac_header_preproc
=no
5229 rm -f conftest.err conftest.
$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5231 echo "${ECHO_T}$ac_header_preproc" >&6
5233 # So? What about this header?
5234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5236 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5237 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5239 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5240 ac_header_preproc
=yes
5243 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5244 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5245 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5246 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5247 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5248 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5249 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5250 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5252 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5254 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5257 ## ------------------------------------------------ ##
5258 ## Report this to http://www.python.org/python-bugs ##
5259 ## ------------------------------------------------ ##
5262 sed "s/^/$as_me: WARNING: /" >&2
5265 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5266 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5267 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5272 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5273 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5276 if test $ac_cv_header_sys_mkdev_h = yes; then
5278 cat >>confdefs.h
<<\_ACEOF
5279 #define MAJOR_IN_MKDEV 1
5286 if test $ac_cv_header_sys_mkdev_h = no
; then
5287 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5288 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5289 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5290 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5294 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5296 # Is the header compilable?
5297 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5298 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5299 cat >conftest.
$ac_ext <<_ACEOF
5302 cat confdefs.h
>>conftest.
$ac_ext
5303 cat >>conftest.
$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5306 #include <sys/sysmacros.h>
5308 rm -f conftest.
$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1
>conftest.err
5314 cat conftest.err
>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try
='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try
='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_header_compiler
=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.
$ac_ext >&5
5335 ac_header_compiler
=no
5337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5339 echo "${ECHO_T}$ac_header_compiler" >&6
5341 # Is the header present?
5342 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5343 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5344 cat >conftest.
$ac_ext <<_ACEOF
5347 cat confdefs.h
>>conftest.
$ac_ext
5348 cat >>conftest.
$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 #include <sys/sysmacros.h>
5352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5353 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5355 grep -v '^ *+' conftest.er1
>conftest.err
5357 cat conftest.err
>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev
/null
; then
5360 if test -s conftest.err
; then
5361 ac_cpp_err
=$ac_c_preproc_warn_flag
5362 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5369 if test -z "$ac_cpp_err"; then
5370 ac_header_preproc
=yes
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.
$ac_ext >&5
5375 ac_header_preproc
=no
5377 rm -f conftest.err conftest.
$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5379 echo "${ECHO_T}$ac_header_preproc" >&6
5381 # So? What about this header?
5382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5384 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5385 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5387 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5388 ac_header_preproc
=yes
5391 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5392 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5394 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5396 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5398 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5400 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5402 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5405 ## ------------------------------------------------ ##
5406 ## Report this to http://www.python.org/python-bugs ##
5407 ## ------------------------------------------------ ##
5410 sed "s/^/$as_me: WARNING: /" >&2
5413 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5414 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5415 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5420 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5421 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5424 if test $ac_cv_header_sys_sysmacros_h = yes; then
5426 cat >>confdefs.h
<<\_ACEOF
5427 #define MAJOR_IN_SYSMACROS 1
5437 # On Solaris, term.h requires curses.h
5439 for ac_header
in term.h
5441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442 echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 cat >conftest.
$ac_ext <<_ACEOF
5450 cat confdefs.h
>>conftest.
$ac_ext
5451 cat >>conftest.
$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5454 #ifdef HAVE_CURSES_H
5459 #include <$ac_header>
5461 rm -f conftest.
$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>conftest.er1
5465 grep -v '^ *+' conftest.er1
>conftest.err
5467 cat conftest.err
>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try
='test -z "$ac_c_werror_flag"
5471 || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try
='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 eval "$as_ac_Header=yes"
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.
$ac_ext >&5
5488 eval "$as_ac_Header=no"
5490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495 cat >>confdefs.h
<<_ACEOF
5496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5504 # On Linux, netlink.h requires asm/types.h
5506 for ac_header
in linux
/netlink.h
5508 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 cat >conftest.
$ac_ext <<_ACEOF
5517 cat confdefs.h
>>conftest.
$ac_ext
5518 cat >>conftest.
$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 #ifdef HAVE_ASM_TYPES_H
5522 #include <asm/types.h>
5524 #ifdef HAVE_SYS_SOCKET_H
5525 #include <sys/socket.h>
5529 #include <$ac_header>
5531 rm -f conftest.
$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>conftest.er1
5535 grep -v '^ *+' conftest.er1
>conftest.err
5537 cat conftest.err
>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try
='test -z "$ac_c_werror_flag"
5541 || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try
='test -s conftest.$ac_objext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 eval "$as_ac_Header=yes"
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.
$ac_ext >&5
5558 eval "$as_ac_Header=no"
5560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5565 cat >>confdefs.h
<<_ACEOF
5566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574 # checks for typedefs
5576 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5577 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5578 cat >conftest.
$ac_ext <<_ACEOF
5581 cat confdefs.h
>>conftest.
$ac_ext
5582 cat >>conftest.
$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5588 $EGREP "clock_t" >/dev
/null
2>&1; then
5593 cat >>confdefs.h
<<\_ACEOF
5594 #define clock_t long
5601 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5602 echo "${ECHO_T}$was_it_defined" >&6
5604 # Check whether using makedev requires defining _OSF_SOURCE
5605 echo "$as_me:$LINENO: checking for makedev" >&5
5606 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5607 cat >conftest.
$ac_ext <<_ACEOF
5610 cat confdefs.h
>>conftest.
$ac_ext
5611 cat >>conftest.
$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <sys/types.h>
5622 rm -f conftest.
$ac_objext conftest
$ac_exeext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5624 (eval $ac_link) 2>conftest.er1
5626 grep -v '^ *+' conftest.er1
>conftest.err
5628 cat conftest.err
>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try
='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try
='test -s conftest$ac_exeext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_has_makedev
=yes
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.
$ac_ext >&5
5649 ac_cv_has_makedev
=no
5651 rm -f conftest.err conftest.
$ac_objext \
5652 conftest
$ac_exeext conftest.
$ac_ext
5653 if test "$ac_cv_has_makedev" = "no"; then
5654 # we didn't link, try if _OSF_SOURCE will allow us to link
5655 cat >conftest.
$ac_ext <<_ACEOF
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5662 #define _OSF_SOURCE 1
5663 #include <sys/types.h>
5673 rm -f conftest.
$ac_objext conftest
$ac_exeext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675 (eval $ac_link) 2>conftest.er1
5677 grep -v '^ *+' conftest.er1
>conftest.err
5679 cat conftest.err
>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try
='test -z "$ac_c_werror_flag"
5683 || test ! -s conftest.err'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try
='test -s conftest$ac_exeext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_has_makedev
=yes
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.
$ac_ext >&5
5700 ac_cv_has_makedev
=no
5702 rm -f conftest.err conftest.
$ac_objext \
5703 conftest
$ac_exeext conftest.
$ac_ext
5704 if test "$ac_cv_has_makedev" = "yes"; then
5706 cat >>confdefs.h
<<\_ACEOF
5707 #define _OSF_SOURCE 1
5712 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5713 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5714 if test "$ac_cv_has_makedev" = "yes"; then
5716 cat >>confdefs.h
<<\_ACEOF
5717 #define HAVE_MAKEDEV 1
5722 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5723 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5724 # defined, but the compiler does not support pragma redefine_extname,
5725 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5726 # structures (such as rlimit64) without declaring them. As a
5727 # work-around, disable LFS on such configurations
5730 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5731 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5732 cat >conftest.
$ac_ext <<_ACEOF
5735 cat confdefs.h
>>conftest.
$ac_ext
5736 cat >>conftest.
$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5739 #define _LARGEFILE_SOURCE 1
5740 #define _FILE_OFFSET_BITS 64
5741 #include <sys/resource.h>
5751 rm -f conftest.
$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5755 grep -v '^ *+' conftest.er1
>conftest.err
5757 cat conftest.err
>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try
='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try
='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.
$ac_ext >&5
5780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5782 echo "${ECHO_T}$sol_lfs_bug" >&6
5783 if test "$sol_lfs_bug" = "yes"; then
5787 if test "$use_lfs" = "yes"; then
5788 # Two defines needed to enable largefile support on various platforms
5789 # These may affect some typedefs
5791 cat >>confdefs.h
<<\_ACEOF
5792 #define _LARGEFILE_SOURCE 1
5796 cat >>confdefs.h
<<\_ACEOF
5797 #define _FILE_OFFSET_BITS 64
5802 # Add some code to confdefs.h so that the test for off_t works on SCO
5803 cat >> confdefs.h
<<\EOF
5809 # Type availability checks
5810 echo "$as_me:$LINENO: checking for mode_t" >&5
5811 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5812 if test "${ac_cv_type_mode_t+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 cat >conftest.
$ac_ext <<_ACEOF
5818 cat confdefs.h
>>conftest.
$ac_ext
5819 cat >>conftest.
$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5827 if (sizeof (mode_t))
5833 rm -f conftest.
$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>conftest.er1
5837 grep -v '^ *+' conftest.er1
>conftest.err
5839 cat conftest.err
>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try
='test -z "$ac_c_werror_flag"
5843 || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try
='test -s conftest.$ac_objext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5855 ac_cv_type_mode_t
=yes
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.
$ac_ext >&5
5860 ac_cv_type_mode_t
=no
5862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5864 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5865 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5866 if test $ac_cv_type_mode_t = yes; then
5870 cat >>confdefs.h
<<_ACEOF
5876 echo "$as_me:$LINENO: checking for off_t" >&5
5877 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5878 if test "${ac_cv_type_off_t+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 cat >conftest.
$ac_ext <<_ACEOF
5884 cat confdefs.h
>>conftest.
$ac_ext
5885 cat >>conftest.
$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5899 rm -f conftest.
$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1
>conftest.err
5905 cat conftest.err
>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try
='test -z "$ac_c_werror_flag"
5909 || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try
='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_type_off_t
=yes
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.
$ac_ext >&5
5928 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5930 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5931 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5932 if test $ac_cv_type_off_t = yes; then
5936 cat >>confdefs.h
<<_ACEOF
5942 echo "$as_me:$LINENO: checking for pid_t" >&5
5943 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5944 if test "${ac_cv_type_pid_t+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 cat >conftest.
$ac_ext <<_ACEOF
5950 cat confdefs.h
>>conftest.
$ac_ext
5951 cat >>conftest.
$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5965 rm -f conftest.
$ac_objext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967 (eval $ac_compile) 2>conftest.er1
5969 grep -v '^ *+' conftest.er1
>conftest.err
5971 cat conftest.err
>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try
='test -z "$ac_c_werror_flag"
5975 || test ! -s conftest.err'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; } &&
5981 { ac_try
='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_type_pid_t
=yes
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.
$ac_ext >&5
5994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5997 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5998 if test $ac_cv_type_pid_t = yes; then
6002 cat >>confdefs.h
<<_ACEOF
6008 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6009 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6010 if test "${ac_cv_type_signal+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 cat >conftest.
$ac_ext <<_ACEOF
6016 cat confdefs.h
>>conftest.
$ac_ext
6017 cat >>conftest.
$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <sys/types.h>
6025 extern "C" void (*signal (int, void (*)(int)))(int);
6027 void (*signal ()) ();
6038 rm -f conftest.
$ac_objext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>conftest.er1
6042 grep -v '^ *+' conftest.er1
>conftest.err
6044 cat conftest.err
>&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try
='test -z "$ac_c_werror_flag"
6048 || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try
='test -s conftest.$ac_objext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 ac_cv_type_signal
=void
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.
$ac_ext >&5
6065 ac_cv_type_signal
=int
6067 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6069 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6070 echo "${ECHO_T}$ac_cv_type_signal" >&6
6072 cat >>confdefs.h
<<_ACEOF
6073 #define RETSIGTYPE $ac_cv_type_signal
6077 echo "$as_me:$LINENO: checking for size_t" >&5
6078 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6079 if test "${ac_cv_type_size_t+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 cat >conftest.
$ac_ext <<_ACEOF
6085 cat confdefs.h
>>conftest.
$ac_ext
6086 cat >>conftest.
$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 $ac_includes_default
6094 if (sizeof (size_t))
6100 rm -f conftest.
$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>conftest.er1
6104 grep -v '^ *+' conftest.er1
>conftest.err
6106 cat conftest.err
>&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } &&
6109 { ac_try
='test -z "$ac_c_werror_flag"
6110 || test ! -s conftest.err'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; } &&
6116 { ac_try
='test -s conftest.$ac_objext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_type_size_t
=yes
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.
$ac_ext >&5
6127 ac_cv_type_size_t
=no
6129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6131 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6132 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6133 if test $ac_cv_type_size_t = yes; then
6137 cat >>confdefs.h
<<_ACEOF
6138 #define size_t unsigned
6143 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6144 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6145 if test "${ac_cv_type_uid_t+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 cat >conftest.
$ac_ext <<_ACEOF
6151 cat confdefs.h
>>conftest.
$ac_ext
6152 cat >>conftest.
$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <sys/types.h>
6157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6158 $EGREP "uid_t" >/dev
/null
2>&1; then
6159 ac_cv_type_uid_t
=yes
6166 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6167 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6168 if test $ac_cv_type_uid_t = no
; then
6170 cat >>confdefs.h
<<\_ACEOF
6175 cat >>confdefs.h
<<\_ACEOF
6181 echo "$as_me:$LINENO: checking for ssize_t" >&5
6182 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6183 if test "${ac_cv_type_ssize_t+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 cat >conftest.
$ac_ext <<_ACEOF
6189 cat confdefs.h
>>conftest.
$ac_ext
6190 cat >>conftest.
$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6198 if (sizeof (ssize_t))
6204 rm -f conftest.
$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6208 grep -v '^ *+' conftest.er1
>conftest.err
6210 cat conftest.err
>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try
='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try
='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_type_ssize_t
=yes
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.
$ac_ext >&5
6231 ac_cv_type_ssize_t
=no
6233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6235 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6236 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6237 if test $ac_cv_type_ssize_t = yes; then
6239 cat >>confdefs.h
<<\_ACEOF
6240 #define HAVE_SSIZE_T 1
6246 # Sizes of various common basic types
6247 # ANSI C requires sizeof(char) == 1, so no need to check it
6248 echo "$as_me:$LINENO: checking for int" >&5
6249 echo $ECHO_N "checking for int... $ECHO_C" >&6
6250 if test "${ac_cv_type_int+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 cat >conftest.
$ac_ext <<_ACEOF
6256 cat confdefs.h
>>conftest.
$ac_ext
6257 cat >>conftest.
$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 $ac_includes_default
6271 rm -f conftest.
$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6275 grep -v '^ *+' conftest.er1
>conftest.err
6277 cat conftest.err
>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try
='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try
='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.
$ac_ext >&5
6300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6303 echo "${ECHO_T}$ac_cv_type_int" >&6
6305 echo "$as_me:$LINENO: checking size of int" >&5
6306 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6307 if test "${ac_cv_sizeof_int+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 if test "$ac_cv_type_int" = yes; then
6311 # The cast to unsigned long works around a bug in the HP C Compiler
6312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6314 # This bug is HP SR number 8606223364.
6315 if test "$cross_compiling" = yes; then
6316 # Depending upon the size, compute the lo and hi bounds.
6317 cat >conftest.
$ac_ext <<_ACEOF
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6327 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6334 rm -f conftest.
$ac_objext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>conftest.er1
6338 grep -v '^ *+' conftest.er1
>conftest.err
6340 cat conftest.err
>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try
='test -z "$ac_c_werror_flag"
6344 || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try
='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6358 cat >conftest.
$ac_ext <<_ACEOF
6361 cat confdefs.h
>>conftest.
$ac_ext
6362 cat >>conftest.
$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 $ac_includes_default
6368 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6375 rm -f conftest.
$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6379 grep -v '^ *+' conftest.er1
>conftest.err
6381 cat conftest.err
>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try
='test -z "$ac_c_werror_flag"
6385 || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try
='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_hi
=$ac_mid; break
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.
$ac_ext >&5
6402 ac_lo
=`expr $ac_mid + 1`
6403 if test $ac_lo -le $ac_mid; then
6407 ac_mid
=`expr 2 '*' $ac_mid + 1`
6409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.
$ac_ext >&5
6415 cat >conftest.
$ac_ext <<_ACEOF
6418 cat confdefs.h
>>conftest.
$ac_ext
6419 cat >>conftest.
$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6425 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6432 rm -f conftest.
$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6436 grep -v '^ *+' conftest.er1
>conftest.err
6438 cat conftest.err
>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try
='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try
='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6456 cat >conftest.
$ac_ext <<_ACEOF
6459 cat confdefs.h
>>conftest.
$ac_ext
6460 cat >>conftest.
$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6466 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6473 rm -f conftest.
$ac_objext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475 (eval $ac_compile) 2>conftest.er1
6477 grep -v '^ *+' conftest.er1
>conftest.err
6479 cat conftest.err
>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try
='test -z "$ac_c_werror_flag"
6483 || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try
='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_lo
=$ac_mid; break
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.
$ac_ext >&5
6500 ac_hi
=`expr '(' $ac_mid ')' - 1`
6501 if test $ac_mid -le $ac_hi; then
6505 ac_mid
=`expr 2 '*' $ac_mid`
6507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.
$ac_ext >&5
6515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 # Binary search between lo and hi bounds.
6519 while test "x$ac_lo" != "x$ac_hi"; do
6520 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6521 cat >conftest.
$ac_ext <<_ACEOF
6524 cat confdefs.h
>>conftest.
$ac_ext
6525 cat >>conftest.
$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6531 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6538 rm -f conftest.
$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>conftest.er1
6542 grep -v '^ *+' conftest.er1
>conftest.err
6544 cat conftest.err
>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try
='test -z "$ac_c_werror_flag"
6548 || test ! -s conftest.err'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; } &&
6554 { ac_try
='test -s conftest.$ac_objext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 ac_lo
=`expr '(' $ac_mid ')' + 1`
6567 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6570 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6571 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6572 See \`config.log' for more details." >&5
6573 echo "$as_me: error: cannot compute sizeof (int), 77
6574 See \`config.log' for more details." >&2;}
6575 { (exit 1); exit 1; }; } ;;
6578 if test "$cross_compiling" = yes; then
6579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6580 See \`config.log' for more details." >&5
6581 echo "$as_me: error: cannot run test program while cross compiling
6582 See \`config.log' for more details." >&2;}
6583 { (exit 1); exit 1; }; }
6585 cat >conftest.
$ac_ext <<_ACEOF
6588 cat confdefs.h
>>conftest.
$ac_ext
6589 cat >>conftest.
$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 $ac_includes_default
6592 long longval () { return (long) (sizeof (int)); }
6593 unsigned long ulongval () { return (long) (sizeof (int)); }
6600 FILE *f = fopen ("conftest.val", "w");
6603 if (((long) (sizeof (int))) < 0)
6605 long i = longval ();
6606 if (i != ((long) (sizeof (int))))
6608 fprintf (f, "%ld\n", i);
6612 unsigned long i = ulongval ();
6613 if (i != ((long) (sizeof (int))))
6615 fprintf (f, "%lu\n", i);
6617 exit (ferror (f) || fclose (f) != 0);
6623 rm -f conftest
$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_sizeof_int
=`cat conftest.val`
6636 echo "$as_me: program exited with status $ac_status" >&5
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.
$ac_ext >&5
6641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6642 See \`config.log' for more details." >&5
6643 echo "$as_me: error: cannot compute sizeof (int), 77
6644 See \`config.log' for more details." >&2;}
6645 { (exit 1); exit 1; }; }
6647 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6656 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6657 cat >>confdefs.h
<<_ACEOF
6658 #define SIZEOF_INT $ac_cv_sizeof_int
6662 echo "$as_me:$LINENO: checking for long" >&5
6663 echo $ECHO_N "checking for long... $ECHO_C" >&6
6664 if test "${ac_cv_type_long+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 cat >conftest.
$ac_ext <<_ACEOF
6670 cat confdefs.h
>>conftest.
$ac_ext
6671 cat >>conftest.
$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 $ac_includes_default
6685 rm -f conftest.
$ac_objext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6687 (eval $ac_compile) 2>conftest.er1
6689 grep -v '^ *+' conftest.er1
>conftest.err
6691 cat conftest.err
>&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try
='test -z "$ac_c_werror_flag"
6695 || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try
='test -s conftest.$ac_objext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.
$ac_ext >&5
6714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6716 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6717 echo "${ECHO_T}$ac_cv_type_long" >&6
6719 echo "$as_me:$LINENO: checking size of long" >&5
6720 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6721 if test "${ac_cv_sizeof_long+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 if test "$ac_cv_type_long" = yes; then
6725 # The cast to unsigned long works around a bug in the HP C Compiler
6726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6728 # This bug is HP SR number 8606223364.
6729 if test "$cross_compiling" = yes; then
6730 # Depending upon the size, compute the lo and hi bounds.
6731 cat >conftest.
$ac_ext <<_ACEOF
6734 cat confdefs.h
>>conftest.
$ac_ext
6735 cat >>conftest.
$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6741 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6748 rm -f conftest.
$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6752 grep -v '^ *+' conftest.er1
>conftest.err
6754 cat conftest.err
>&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try
='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try
='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6772 cat >conftest.
$ac_ext <<_ACEOF
6775 cat confdefs.h
>>conftest.
$ac_ext
6776 cat >>conftest.
$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 $ac_includes_default
6782 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6789 rm -f conftest.
$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6793 grep -v '^ *+' conftest.er1
>conftest.err
6795 cat conftest.err
>&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try
='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try
='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_hi
=$ac_mid; break
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.
$ac_ext >&5
6816 ac_lo
=`expr $ac_mid + 1`
6817 if test $ac_lo -le $ac_mid; then
6821 ac_mid
=`expr 2 '*' $ac_mid + 1`
6823 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.
$ac_ext >&5
6829 cat >conftest.
$ac_ext <<_ACEOF
6832 cat confdefs.h
>>conftest.
$ac_ext
6833 cat >>conftest.
$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6839 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6846 rm -f conftest.
$ac_objext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>conftest.er1
6850 grep -v '^ *+' conftest.er1
>conftest.err
6852 cat conftest.err
>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try
='test -z "$ac_c_werror_flag"
6856 || test ! -s conftest.err'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; } &&
6862 { ac_try
='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6870 cat >conftest.
$ac_ext <<_ACEOF
6873 cat confdefs.h
>>conftest.
$ac_ext
6874 cat >>conftest.
$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 $ac_includes_default
6880 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6887 rm -f conftest.
$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
6891 grep -v '^ *+' conftest.er1
>conftest.err
6893 cat conftest.err
>&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try
='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try
='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_lo
=$ac_mid; break
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.
$ac_ext >&5
6914 ac_hi
=`expr '(' $ac_mid ')' - 1`
6915 if test $ac_mid -le $ac_hi; then
6919 ac_mid
=`expr 2 '*' $ac_mid`
6921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 # Binary search between lo and hi bounds.
6933 while test "x$ac_lo" != "x$ac_hi"; do
6934 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6935 cat >conftest.
$ac_ext <<_ACEOF
6938 cat confdefs.h
>>conftest.
$ac_ext
6939 cat >>conftest.
$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 $ac_includes_default
6945 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6952 rm -f conftest.
$ac_objext
6953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954 (eval $ac_compile) 2>conftest.er1
6956 grep -v '^ *+' conftest.er1
>conftest.err
6958 cat conftest.err
>&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try
='test -z "$ac_c_werror_flag"
6962 || test ! -s conftest.err'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; } &&
6968 { ac_try
='test -s conftest.$ac_objext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.
$ac_ext >&5
6979 ac_lo
=`expr '(' $ac_mid ')' + 1`
6981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6984 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6985 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6986 See \`config.log' for more details." >&5
6987 echo "$as_me: error: cannot compute sizeof (long), 77
6988 See \`config.log' for more details." >&2;}
6989 { (exit 1); exit 1; }; } ;;
6992 if test "$cross_compiling" = yes; then
6993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6994 See \`config.log' for more details." >&5
6995 echo "$as_me: error: cannot run test program while cross compiling
6996 See \`config.log' for more details." >&2;}
6997 { (exit 1); exit 1; }; }
6999 cat >conftest.
$ac_ext <<_ACEOF
7002 cat confdefs.h
>>conftest.
$ac_ext
7003 cat >>conftest.
$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 $ac_includes_default
7006 long longval () { return (long) (sizeof (long)); }
7007 unsigned long ulongval () { return (long) (sizeof (long)); }
7014 FILE *f = fopen ("conftest.val", "w");
7017 if (((long) (sizeof (long))) < 0)
7019 long i = longval ();
7020 if (i != ((long) (sizeof (long))))
7022 fprintf (f, "%ld\n", i);
7026 unsigned long i = ulongval ();
7027 if (i != ((long) (sizeof (long))))
7029 fprintf (f, "%lu\n", i);
7031 exit (ferror (f) || fclose (f) != 0);
7037 rm -f conftest
$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_cv_sizeof_long
=`cat conftest.val`
7050 echo "$as_me: program exited with status $ac_status" >&5
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.
$ac_ext >&5
7055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7056 See \`config.log' for more details." >&5
7057 echo "$as_me: error: cannot compute sizeof (long), 77
7058 See \`config.log' for more details." >&2;}
7059 { (exit 1); exit 1; }; }
7061 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7069 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7070 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7071 cat >>confdefs.h
<<_ACEOF
7072 #define SIZEOF_LONG $ac_cv_sizeof_long
7076 echo "$as_me:$LINENO: checking for void *" >&5
7077 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7078 if test "${ac_cv_type_void_p+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 cat >conftest.
$ac_ext <<_ACEOF
7084 cat confdefs.h
>>conftest.
$ac_ext
7085 cat >>conftest.
$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7093 if (sizeof (void *))
7099 rm -f conftest.
$ac_objext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>conftest.er1
7103 grep -v '^ *+' conftest.er1
>conftest.err
7105 cat conftest.err
>&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try
='test -z "$ac_c_werror_flag"
7109 || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try
='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_type_void_p
=yes
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.
$ac_ext >&5
7126 ac_cv_type_void_p
=no
7128 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7130 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7131 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7133 echo "$as_me:$LINENO: checking size of void *" >&5
7134 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7135 if test "${ac_cv_sizeof_void_p+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 if test "$ac_cv_type_void_p" = yes; then
7139 # The cast to unsigned long works around a bug in the HP C Compiler
7140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7142 # This bug is HP SR number 8606223364.
7143 if test "$cross_compiling" = yes; then
7144 # Depending upon the size, compute the lo and hi bounds.
7145 cat >conftest.
$ac_ext <<_ACEOF
7148 cat confdefs.h
>>conftest.
$ac_ext
7149 cat >>conftest.
$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 $ac_includes_default
7155 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7162 rm -f conftest.
$ac_objext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>conftest.er1
7166 grep -v '^ *+' conftest.er1
>conftest.err
7168 cat conftest.err
>&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try
='test -z "$ac_c_werror_flag"
7172 || test ! -s conftest.err'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; } &&
7178 { ac_try
='test -s conftest.$ac_objext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7186 cat >conftest.
$ac_ext <<_ACEOF
7189 cat confdefs.h
>>conftest.
$ac_ext
7190 cat >>conftest.
$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7196 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7203 rm -f conftest.
$ac_objext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>conftest.er1
7207 grep -v '^ *+' conftest.er1
>conftest.err
7209 cat conftest.err
>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try
='test -z "$ac_c_werror_flag"
7213 || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try
='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 ac_hi
=$ac_mid; break
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.
$ac_ext >&5
7230 ac_lo
=`expr $ac_mid + 1`
7231 if test $ac_lo -le $ac_mid; then
7235 ac_mid
=`expr 2 '*' $ac_mid + 1`
7237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.
$ac_ext >&5
7243 cat >conftest.
$ac_ext <<_ACEOF
7246 cat confdefs.h
>>conftest.
$ac_ext
7247 cat >>conftest.
$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7253 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7260 rm -f conftest.
$ac_objext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262 (eval $ac_compile) 2>conftest.er1
7264 grep -v '^ *+' conftest.er1
>conftest.err
7266 cat conftest.err
>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try
='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try
='test -s conftest.$ac_objext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7284 cat >conftest.
$ac_ext <<_ACEOF
7287 cat confdefs.h
>>conftest.
$ac_ext
7288 cat >>conftest.
$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 $ac_includes_default
7294 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7301 rm -f conftest.
$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>conftest.er1
7305 grep -v '^ *+' conftest.er1
>conftest.err
7307 cat conftest.err
>&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try
='test -z "$ac_c_werror_flag"
7311 || test ! -s conftest.err'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; } &&
7317 { ac_try
='test -s conftest.$ac_objext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323 ac_lo
=$ac_mid; break
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.
$ac_ext >&5
7328 ac_hi
=`expr '(' $ac_mid ')' - 1`
7329 if test $ac_mid -le $ac_hi; then
7333 ac_mid
=`expr 2 '*' $ac_mid`
7335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.
$ac_ext >&5
7343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7346 # Binary search between lo and hi bounds.
7347 while test "x$ac_lo" != "x$ac_hi"; do
7348 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7349 cat >conftest.
$ac_ext <<_ACEOF
7352 cat confdefs.h
>>conftest.
$ac_ext
7353 cat >>conftest.
$ac_ext <<_ACEOF
7354 /* end confdefs.h. */
7355 $ac_includes_default
7359 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7366 rm -f conftest.
$ac_objext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7368 (eval $ac_compile) 2>conftest.er1
7370 grep -v '^ *+' conftest.er1
>conftest.err
7372 cat conftest.err
>&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try
='test -z "$ac_c_werror_flag"
7376 || test ! -s conftest.err'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try
='test -s conftest.$ac_objext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.
$ac_ext >&5
7393 ac_lo
=`expr '(' $ac_mid ')' + 1`
7395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7398 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7399 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7400 See \`config.log' for more details." >&5
7401 echo "$as_me: error: cannot compute sizeof (void *), 77
7402 See \`config.log' for more details." >&2;}
7403 { (exit 1); exit 1; }; } ;;
7406 if test "$cross_compiling" = yes; then
7407 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7408 See \`config.log' for more details." >&5
7409 echo "$as_me: error: cannot run test program while cross compiling
7410 See \`config.log' for more details." >&2;}
7411 { (exit 1); exit 1; }; }
7413 cat >conftest.
$ac_ext <<_ACEOF
7416 cat confdefs.h
>>conftest.
$ac_ext
7417 cat >>conftest.
$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7420 long longval () { return (long) (sizeof (void *)); }
7421 unsigned long ulongval () { return (long) (sizeof (void *)); }
7428 FILE *f = fopen ("conftest.val", "w");
7431 if (((long) (sizeof (void *))) < 0)
7433 long i = longval ();
7434 if (i != ((long) (sizeof (void *))))
7436 fprintf (f, "%ld\n", i);
7440 unsigned long i = ulongval ();
7441 if (i != ((long) (sizeof (void *))))
7443 fprintf (f, "%lu\n", i);
7445 exit (ferror (f) || fclose (f) != 0);
7451 rm -f conftest
$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453 (eval $ac_link) 2>&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_sizeof_void_p
=`cat conftest.val`
7464 echo "$as_me: program exited with status $ac_status" >&5
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.
$ac_ext >&5
7469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7470 See \`config.log' for more details." >&5
7471 echo "$as_me: error: cannot compute sizeof (void *), 77
7472 See \`config.log' for more details." >&2;}
7473 { (exit 1); exit 1; }; }
7475 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7480 ac_cv_sizeof_void_p
=0
7483 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7484 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7485 cat >>confdefs.h
<<_ACEOF
7486 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7490 echo "$as_me:$LINENO: checking for short" >&5
7491 echo $ECHO_N "checking for short... $ECHO_C" >&6
7492 if test "${ac_cv_type_short+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 cat >conftest.
$ac_ext <<_ACEOF
7498 cat confdefs.h
>>conftest.
$ac_ext
7499 cat >>conftest.
$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7513 rm -f conftest.
$ac_objext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>conftest.er1
7517 grep -v '^ *+' conftest.er1
>conftest.err
7519 cat conftest.err
>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try
='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try
='test -s conftest.$ac_objext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_type_short
=yes
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.
$ac_ext >&5
7542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7545 echo "${ECHO_T}$ac_cv_type_short" >&6
7547 echo "$as_me:$LINENO: checking size of short" >&5
7548 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7549 if test "${ac_cv_sizeof_short+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 if test "$ac_cv_type_short" = yes; then
7553 # The cast to unsigned long works around a bug in the HP C Compiler
7554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7556 # This bug is HP SR number 8606223364.
7557 if test "$cross_compiling" = yes; then
7558 # Depending upon the size, compute the lo and hi bounds.
7559 cat >conftest.
$ac_ext <<_ACEOF
7562 cat confdefs.h
>>conftest.
$ac_ext
7563 cat >>conftest.
$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 $ac_includes_default
7569 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7576 rm -f conftest.
$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7580 grep -v '^ *+' conftest.er1
>conftest.err
7582 cat conftest.err
>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try
='test -z "$ac_c_werror_flag"
7586 || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try
='test -s conftest.$ac_objext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7600 cat >conftest.
$ac_ext <<_ACEOF
7603 cat confdefs.h
>>conftest.
$ac_ext
7604 cat >>conftest.
$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7610 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7617 rm -f conftest.
$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>conftest.er1
7621 grep -v '^ *+' conftest.er1
>conftest.err
7623 cat conftest.err
>&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try
='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try
='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_hi
=$ac_mid; break
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 ac_lo
=`expr $ac_mid + 1`
7645 if test $ac_lo -le $ac_mid; then
7649 ac_mid
=`expr 2 '*' $ac_mid + 1`
7651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.
$ac_ext >&5
7657 cat >conftest.
$ac_ext <<_ACEOF
7660 cat confdefs.h
>>conftest.
$ac_ext
7661 cat >>conftest.
$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 $ac_includes_default
7667 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7674 rm -f conftest.
$ac_objext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7676 (eval $ac_compile) 2>conftest.er1
7678 grep -v '^ *+' conftest.er1
>conftest.err
7680 cat conftest.err
>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try
='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try
='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7698 cat >conftest.
$ac_ext <<_ACEOF
7701 cat confdefs.h
>>conftest.
$ac_ext
7702 cat >>conftest.
$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7708 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7715 rm -f conftest.
$ac_objext
7716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7717 (eval $ac_compile) 2>conftest.er1
7719 grep -v '^ *+' conftest.er1
>conftest.err
7721 cat conftest.err
>&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try
='test -z "$ac_c_werror_flag"
7725 || test ! -s conftest.err'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; } &&
7731 { ac_try
='test -s conftest.$ac_objext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 ac_lo
=$ac_mid; break
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.
$ac_ext >&5
7742 ac_hi
=`expr '(' $ac_mid ')' - 1`
7743 if test $ac_mid -le $ac_hi; then
7747 ac_mid
=`expr 2 '*' $ac_mid`
7749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.
$ac_ext >&5
7757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7760 # Binary search between lo and hi bounds.
7761 while test "x$ac_lo" != "x$ac_hi"; do
7762 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7763 cat >conftest.
$ac_ext <<_ACEOF
7766 cat confdefs.h
>>conftest.
$ac_ext
7767 cat >>conftest.
$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 $ac_includes_default
7773 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7780 rm -f conftest.
$ac_objext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>conftest.er1
7784 grep -v '^ *+' conftest.er1
>conftest.err
7786 cat conftest.err
>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try
='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try
='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.
$ac_ext >&5
7807 ac_lo
=`expr '(' $ac_mid ')' + 1`
7809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7812 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7813 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7814 See \`config.log' for more details." >&5
7815 echo "$as_me: error: cannot compute sizeof (short), 77
7816 See \`config.log' for more details." >&2;}
7817 { (exit 1); exit 1; }; } ;;
7820 if test "$cross_compiling" = yes; then
7821 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7822 See \`config.log' for more details." >&5
7823 echo "$as_me: error: cannot run test program while cross compiling
7824 See \`config.log' for more details." >&2;}
7825 { (exit 1); exit 1; }; }
7827 cat >conftest.
$ac_ext <<_ACEOF
7830 cat confdefs.h
>>conftest.
$ac_ext
7831 cat >>conftest.
$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 $ac_includes_default
7834 long longval () { return (long) (sizeof (short)); }
7835 unsigned long ulongval () { return (long) (sizeof (short)); }
7842 FILE *f = fopen ("conftest.val", "w");
7845 if (((long) (sizeof (short))) < 0)
7847 long i = longval ();
7848 if (i != ((long) (sizeof (short))))
7850 fprintf (f, "%ld\n", i);
7854 unsigned long i = ulongval ();
7855 if (i != ((long) (sizeof (short))))
7857 fprintf (f, "%lu\n", i);
7859 exit (ferror (f) || fclose (f) != 0);
7865 rm -f conftest
$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_cv_sizeof_short
=`cat conftest.val`
7878 echo "$as_me: program exited with status $ac_status" >&5
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.
$ac_ext >&5
7883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7884 See \`config.log' for more details." >&5
7885 echo "$as_me: error: cannot compute sizeof (short), 77
7886 See \`config.log' for more details." >&2;}
7887 { (exit 1); exit 1; }; }
7889 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7894 ac_cv_sizeof_short
=0
7897 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7898 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7899 cat >>confdefs.h
<<_ACEOF
7900 #define SIZEOF_SHORT $ac_cv_sizeof_short
7904 echo "$as_me:$LINENO: checking for float" >&5
7905 echo $ECHO_N "checking for float... $ECHO_C" >&6
7906 if test "${ac_cv_type_float+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.
$ac_ext <<_ACEOF
7912 cat confdefs.h
>>conftest.
$ac_ext
7913 cat >>conftest.
$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7927 rm -f conftest.
$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1
>conftest.err
7933 cat conftest.err
>&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try
='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try
='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_cv_type_float
=yes
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.
$ac_ext >&5
7956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7959 echo "${ECHO_T}$ac_cv_type_float" >&6
7961 echo "$as_me:$LINENO: checking size of float" >&5
7962 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7963 if test "${ac_cv_sizeof_float+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 if test "$ac_cv_type_float" = yes; then
7967 # The cast to unsigned long works around a bug in the HP C Compiler
7968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7970 # This bug is HP SR number 8606223364.
7971 if test "$cross_compiling" = yes; then
7972 # Depending upon the size, compute the lo and hi bounds.
7973 cat >conftest.
$ac_ext <<_ACEOF
7976 cat confdefs.h
>>conftest.
$ac_ext
7977 cat >>conftest.
$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 $ac_includes_default
7983 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7990 rm -f conftest.
$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>conftest.er1
7994 grep -v '^ *+' conftest.er1
>conftest.err
7996 cat conftest.err
>&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try
='test -z "$ac_c_werror_flag"
8000 || test ! -s conftest.err'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try
='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8014 cat >conftest.
$ac_ext <<_ACEOF
8017 cat confdefs.h
>>conftest.
$ac_ext
8018 cat >>conftest.
$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 $ac_includes_default
8024 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8031 rm -f conftest.
$ac_objext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>conftest.er1
8035 grep -v '^ *+' conftest.er1
>conftest.err
8037 cat conftest.err
>&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try
='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try
='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_hi
=$ac_mid; break
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.
$ac_ext >&5
8058 ac_lo
=`expr $ac_mid + 1`
8059 if test $ac_lo -le $ac_mid; then
8063 ac_mid
=`expr 2 '*' $ac_mid + 1`
8065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.
$ac_ext >&5
8071 cat >conftest.
$ac_ext <<_ACEOF
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 $ac_includes_default
8081 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8088 rm -f conftest.
$ac_objext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8090 (eval $ac_compile) 2>conftest.er1
8092 grep -v '^ *+' conftest.er1
>conftest.err
8094 cat conftest.err
>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try
='test -z "$ac_c_werror_flag"
8098 || test ! -s conftest.err'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; } &&
8104 { ac_try
='test -s conftest.$ac_objext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8112 cat >conftest.
$ac_ext <<_ACEOF
8115 cat confdefs.h
>>conftest.
$ac_ext
8116 cat >>conftest.
$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 $ac_includes_default
8122 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8129 rm -f conftest.
$ac_objext
8130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8131 (eval $ac_compile) 2>conftest.er1
8133 grep -v '^ *+' conftest.er1
>conftest.err
8135 cat conftest.err
>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try
='test -z "$ac_c_werror_flag"
8139 || test ! -s conftest.err'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; } &&
8145 { ac_try
='test -s conftest.$ac_objext'
8146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 ac_lo
=$ac_mid; break
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.
$ac_ext >&5
8156 ac_hi
=`expr '(' $ac_mid ')' - 1`
8157 if test $ac_mid -le $ac_hi; then
8161 ac_mid
=`expr 2 '*' $ac_mid`
8163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.
$ac_ext >&5
8171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8174 # Binary search between lo and hi bounds.
8175 while test "x$ac_lo" != "x$ac_hi"; do
8176 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8177 cat >conftest.
$ac_ext <<_ACEOF
8180 cat confdefs.h
>>conftest.
$ac_ext
8181 cat >>conftest.
$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 $ac_includes_default
8187 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8194 rm -f conftest.
$ac_objext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8196 (eval $ac_compile) 2>conftest.er1
8198 grep -v '^ *+' conftest.er1
>conftest.err
8200 cat conftest.err
>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try
='test -z "$ac_c_werror_flag"
8204 || test ! -s conftest.err'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; } &&
8210 { ac_try
='test -s conftest.$ac_objext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.
$ac_ext >&5
8221 ac_lo
=`expr '(' $ac_mid ')' + 1`
8223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8226 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8227 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8228 See \`config.log' for more details." >&5
8229 echo "$as_me: error: cannot compute sizeof (float), 77
8230 See \`config.log' for more details." >&2;}
8231 { (exit 1); exit 1; }; } ;;
8234 if test "$cross_compiling" = yes; then
8235 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8236 See \`config.log' for more details." >&5
8237 echo "$as_me: error: cannot run test program while cross compiling
8238 See \`config.log' for more details." >&2;}
8239 { (exit 1); exit 1; }; }
8241 cat >conftest.
$ac_ext <<_ACEOF
8244 cat confdefs.h
>>conftest.
$ac_ext
8245 cat >>conftest.
$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8247 $ac_includes_default
8248 long longval () { return (long) (sizeof (float)); }
8249 unsigned long ulongval () { return (long) (sizeof (float)); }
8256 FILE *f = fopen ("conftest.val", "w");
8259 if (((long) (sizeof (float))) < 0)
8261 long i = longval ();
8262 if (i != ((long) (sizeof (float))))
8264 fprintf (f, "%ld\n", i);
8268 unsigned long i = ulongval ();
8269 if (i != ((long) (sizeof (float))))
8271 fprintf (f, "%lu\n", i);
8273 exit (ferror (f) || fclose (f) != 0);
8279 rm -f conftest
$ac_exeext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281 (eval $ac_link) 2>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_sizeof_float
=`cat conftest.val`
8292 echo "$as_me: program exited with status $ac_status" >&5
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8297 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8298 See \`config.log' for more details." >&5
8299 echo "$as_me: error: cannot compute sizeof (float), 77
8300 See \`config.log' for more details." >&2;}
8301 { (exit 1); exit 1; }; }
8303 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8308 ac_cv_sizeof_float
=0
8311 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8312 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8313 cat >>confdefs.h
<<_ACEOF
8314 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8318 echo "$as_me:$LINENO: checking for double" >&5
8319 echo $ECHO_N "checking for double... $ECHO_C" >&6
8320 if test "${ac_cv_type_double+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.
$ac_ext <<_ACEOF
8326 cat confdefs.h
>>conftest.
$ac_ext
8327 cat >>conftest.
$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8335 if (sizeof (double))
8341 rm -f conftest.
$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>conftest.er1
8345 grep -v '^ *+' conftest.er1
>conftest.err
8347 cat conftest.err
>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try
='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try
='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_type_double
=yes
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.
$ac_ext >&5
8368 ac_cv_type_double
=no
8370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8373 echo "${ECHO_T}$ac_cv_type_double" >&6
8375 echo "$as_me:$LINENO: checking size of double" >&5
8376 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8377 if test "${ac_cv_sizeof_double+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 if test "$ac_cv_type_double" = yes; then
8381 # The cast to unsigned long works around a bug in the HP C Compiler
8382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8384 # This bug is HP SR number 8606223364.
8385 if test "$cross_compiling" = yes; then
8386 # Depending upon the size, compute the lo and hi bounds.
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8397 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8404 rm -f conftest.
$ac_objext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>conftest.er1
8408 grep -v '^ *+' conftest.er1
>conftest.err
8410 cat conftest.err
>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try
='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try
='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8428 cat >conftest.
$ac_ext <<_ACEOF
8431 cat confdefs.h
>>conftest.
$ac_ext
8432 cat >>conftest.
$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8438 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8445 rm -f conftest.
$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>conftest.er1
8449 grep -v '^ *+' conftest.er1
>conftest.err
8451 cat conftest.err
>&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try
='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try
='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_hi
=$ac_mid; break
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.
$ac_ext >&5
8472 ac_lo
=`expr $ac_mid + 1`
8473 if test $ac_lo -le $ac_mid; then
8477 ac_mid
=`expr 2 '*' $ac_mid + 1`
8479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.
$ac_ext >&5
8485 cat >conftest.
$ac_ext <<_ACEOF
8488 cat confdefs.h
>>conftest.
$ac_ext
8489 cat >>conftest.
$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 $ac_includes_default
8495 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8502 rm -f conftest.
$ac_objext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>conftest.er1
8506 grep -v '^ *+' conftest.er1
>conftest.err
8508 cat conftest.err
>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try
='test -z "$ac_c_werror_flag"
8512 || test ! -s conftest.err'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; } &&
8518 { ac_try
='test -s conftest.$ac_objext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8526 cat >conftest.
$ac_ext <<_ACEOF
8529 cat confdefs.h
>>conftest.
$ac_ext
8530 cat >>conftest.
$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 $ac_includes_default
8536 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8543 rm -f conftest.
$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>conftest.er1
8547 grep -v '^ *+' conftest.er1
>conftest.err
8549 cat conftest.err
>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try
='test -z "$ac_c_werror_flag"
8553 || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try
='test -s conftest.$ac_objext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_lo
=$ac_mid; break
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.
$ac_ext >&5
8570 ac_hi
=`expr '(' $ac_mid ')' - 1`
8571 if test $ac_mid -le $ac_hi; then
8575 ac_mid
=`expr 2 '*' $ac_mid`
8577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.
$ac_ext >&5
8585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 # Binary search between lo and hi bounds.
8589 while test "x$ac_lo" != "x$ac_hi"; do
8590 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8591 cat >conftest.
$ac_ext <<_ACEOF
8594 cat confdefs.h
>>conftest.
$ac_ext
8595 cat >>conftest.
$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8601 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8608 rm -f conftest.
$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610 (eval $ac_compile) 2>conftest.er1
8612 grep -v '^ *+' conftest.er1
>conftest.err
8614 cat conftest.err
>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try
='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try
='test -s conftest.$ac_objext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.
$ac_ext >&5
8635 ac_lo
=`expr '(' $ac_mid ')' + 1`
8637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8640 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8641 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8642 See \`config.log' for more details." >&5
8643 echo "$as_me: error: cannot compute sizeof (double), 77
8644 See \`config.log' for more details." >&2;}
8645 { (exit 1); exit 1; }; } ;;
8648 if test "$cross_compiling" = yes; then
8649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8650 See \`config.log' for more details." >&5
8651 echo "$as_me: error: cannot run test program while cross compiling
8652 See \`config.log' for more details." >&2;}
8653 { (exit 1); exit 1; }; }
8655 cat >conftest.
$ac_ext <<_ACEOF
8658 cat confdefs.h
>>conftest.
$ac_ext
8659 cat >>conftest.
$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8662 long longval () { return (long) (sizeof (double)); }
8663 unsigned long ulongval () { return (long) (sizeof (double)); }
8670 FILE *f = fopen ("conftest.val", "w");
8673 if (((long) (sizeof (double))) < 0)
8675 long i = longval ();
8676 if (i != ((long) (sizeof (double))))
8678 fprintf (f, "%ld\n", i);
8682 unsigned long i = ulongval ();
8683 if (i != ((long) (sizeof (double))))
8685 fprintf (f, "%lu\n", i);
8687 exit (ferror (f) || fclose (f) != 0);
8693 rm -f conftest
$ac_exeext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695 (eval $ac_link) 2>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_cv_sizeof_double
=`cat conftest.val`
8706 echo "$as_me: program exited with status $ac_status" >&5
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.
$ac_ext >&5
8711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8712 See \`config.log' for more details." >&5
8713 echo "$as_me: error: cannot compute sizeof (double), 77
8714 See \`config.log' for more details." >&2;}
8715 { (exit 1); exit 1; }; }
8717 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8722 ac_cv_sizeof_double
=0
8725 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8726 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8727 cat >>confdefs.h
<<_ACEOF
8728 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8732 echo "$as_me:$LINENO: checking for fpos_t" >&5
8733 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8734 if test "${ac_cv_type_fpos_t+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 cat >conftest.
$ac_ext <<_ACEOF
8740 cat confdefs.h
>>conftest.
$ac_ext
8741 cat >>conftest.
$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8749 if (sizeof (fpos_t))
8755 rm -f conftest.
$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>conftest.er1
8759 grep -v '^ *+' conftest.er1
>conftest.err
8761 cat conftest.err
>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try
='test -z "$ac_c_werror_flag"
8765 || test ! -s conftest.err'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try
='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_cv_type_fpos_t
=yes
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.
$ac_ext >&5
8782 ac_cv_type_fpos_t
=no
8784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8787 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8789 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8790 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8791 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 if test "$ac_cv_type_fpos_t" = yes; then
8795 # The cast to unsigned long works around a bug in the HP C Compiler
8796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8798 # This bug is HP SR number 8606223364.
8799 if test "$cross_compiling" = yes; then
8800 # Depending upon the size, compute the lo and hi bounds.
8801 cat >conftest.
$ac_ext <<_ACEOF
8804 cat confdefs.h
>>conftest.
$ac_ext
8805 cat >>conftest.
$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8811 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8818 rm -f conftest.
$ac_objext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820 (eval $ac_compile) 2>conftest.er1
8822 grep -v '^ *+' conftest.er1
>conftest.err
8824 cat conftest.err
>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try
='test -z "$ac_c_werror_flag"
8828 || test ! -s conftest.err'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try
='test -s conftest.$ac_objext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8842 cat >conftest.
$ac_ext <<_ACEOF
8845 cat confdefs.h
>>conftest.
$ac_ext
8846 cat >>conftest.
$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 $ac_includes_default
8852 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8859 rm -f conftest.
$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861 (eval $ac_compile) 2>conftest.er1
8863 grep -v '^ *+' conftest.er1
>conftest.err
8865 cat conftest.err
>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try
='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try
='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_hi
=$ac_mid; break
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.
$ac_ext >&5
8886 ac_lo
=`expr $ac_mid + 1`
8887 if test $ac_lo -le $ac_mid; then
8891 ac_mid
=`expr 2 '*' $ac_mid + 1`
8893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.
$ac_ext >&5
8899 cat >conftest.
$ac_ext <<_ACEOF
8902 cat confdefs.h
>>conftest.
$ac_ext
8903 cat >>conftest.
$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 $ac_includes_default
8909 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8916 rm -f conftest.
$ac_objext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918 (eval $ac_compile) 2>conftest.er1
8920 grep -v '^ *+' conftest.er1
>conftest.err
8922 cat conftest.err
>&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try
='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try
='test -s conftest.$ac_objext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8940 cat >conftest.
$ac_ext <<_ACEOF
8943 cat confdefs.h
>>conftest.
$ac_ext
8944 cat >>conftest.
$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 $ac_includes_default
8950 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8957 rm -f conftest.
$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>conftest.er1
8961 grep -v '^ *+' conftest.er1
>conftest.err
8963 cat conftest.err
>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try
='test -z "$ac_c_werror_flag"
8967 || test ! -s conftest.err'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; } &&
8973 { ac_try
='test -s conftest.$ac_objext'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8979 ac_lo
=$ac_mid; break
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.
$ac_ext >&5
8984 ac_hi
=`expr '(' $ac_mid ')' - 1`
8985 if test $ac_mid -le $ac_hi; then
8989 ac_mid
=`expr 2 '*' $ac_mid`
8991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.
$ac_ext >&5
8999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9002 # Binary search between lo and hi bounds.
9003 while test "x$ac_lo" != "x$ac_hi"; do
9004 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9005 cat >conftest.
$ac_ext <<_ACEOF
9008 cat confdefs.h
>>conftest.
$ac_ext
9009 cat >>conftest.
$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 $ac_includes_default
9015 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9022 rm -f conftest.
$ac_objext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9024 (eval $ac_compile) 2>conftest.er1
9026 grep -v '^ *+' conftest.er1
>conftest.err
9028 cat conftest.err
>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try
='test -z "$ac_c_werror_flag"
9032 || test ! -s conftest.err'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; } &&
9038 { ac_try
='test -s conftest.$ac_objext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.
$ac_ext >&5
9049 ac_lo
=`expr '(' $ac_mid ')' + 1`
9051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9054 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9055 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9056 See \`config.log' for more details." >&5
9057 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9058 See \`config.log' for more details." >&2;}
9059 { (exit 1); exit 1; }; } ;;
9062 if test "$cross_compiling" = yes; then
9063 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9064 See \`config.log' for more details." >&5
9065 echo "$as_me: error: cannot run test program while cross compiling
9066 See \`config.log' for more details." >&2;}
9067 { (exit 1); exit 1; }; }
9069 cat >conftest.
$ac_ext <<_ACEOF
9072 cat confdefs.h
>>conftest.
$ac_ext
9073 cat >>conftest.
$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 $ac_includes_default
9076 long longval () { return (long) (sizeof (fpos_t)); }
9077 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9084 FILE *f = fopen ("conftest.val", "w");
9087 if (((long) (sizeof (fpos_t))) < 0)
9089 long i = longval ();
9090 if (i != ((long) (sizeof (fpos_t))))
9092 fprintf (f, "%ld\n", i);
9096 unsigned long i = ulongval ();
9097 if (i != ((long) (sizeof (fpos_t))))
9099 fprintf (f, "%lu\n", i);
9101 exit (ferror (f) || fclose (f) != 0);
9107 rm -f conftest
$ac_exeext
9108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9120 echo "$as_me: program exited with status $ac_status" >&5
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.
$ac_ext >&5
9125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9126 See \`config.log' for more details." >&5
9127 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9128 See \`config.log' for more details." >&2;}
9129 { (exit 1); exit 1; }; }
9131 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9136 ac_cv_sizeof_fpos_t
=0
9139 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9140 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9141 cat >>confdefs.h
<<_ACEOF
9142 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9146 echo "$as_me:$LINENO: checking for size_t" >&5
9147 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9148 if test "${ac_cv_type_size_t+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 cat >conftest.
$ac_ext <<_ACEOF
9154 cat confdefs.h
>>conftest.
$ac_ext
9155 cat >>conftest.
$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 $ac_includes_default
9163 if (sizeof (size_t))
9169 rm -f conftest.
$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171 (eval $ac_compile) 2>conftest.er1
9173 grep -v '^ *+' conftest.er1
>conftest.err
9175 cat conftest.err
>&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try
='test -z "$ac_c_werror_flag"
9179 || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try
='test -s conftest.$ac_objext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_type_size_t
=yes
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.
$ac_ext >&5
9196 ac_cv_type_size_t
=no
9198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9200 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9201 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9203 echo "$as_me:$LINENO: checking size of size_t" >&5
9204 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9205 if test "${ac_cv_sizeof_size_t+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 if test "$ac_cv_type_size_t" = yes; then
9209 # The cast to unsigned long works around a bug in the HP C Compiler
9210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9212 # This bug is HP SR number 8606223364.
9213 if test "$cross_compiling" = yes; then
9214 # Depending upon the size, compute the lo and hi bounds.
9215 cat >conftest.
$ac_ext <<_ACEOF
9218 cat confdefs.h
>>conftest.
$ac_ext
9219 cat >>conftest.
$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 $ac_includes_default
9225 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9232 rm -f conftest.
$ac_objext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9234 (eval $ac_compile) 2>conftest.er1
9236 grep -v '^ *+' conftest.er1
>conftest.err
9238 cat conftest.err
>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try
='test -z "$ac_c_werror_flag"
9242 || test ! -s conftest.err'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try
='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9256 cat >conftest.
$ac_ext <<_ACEOF
9259 cat confdefs.h
>>conftest.
$ac_ext
9260 cat >>conftest.
$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 $ac_includes_default
9266 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9273 rm -f conftest.
$ac_objext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9275 (eval $ac_compile) 2>conftest.er1
9277 grep -v '^ *+' conftest.er1
>conftest.err
9279 cat conftest.err
>&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try
='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try
='test -s conftest.$ac_objext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_hi
=$ac_mid; break
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.
$ac_ext >&5
9300 ac_lo
=`expr $ac_mid + 1`
9301 if test $ac_lo -le $ac_mid; then
9305 ac_mid
=`expr 2 '*' $ac_mid + 1`
9307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.
$ac_ext >&5
9313 cat >conftest.
$ac_ext <<_ACEOF
9316 cat confdefs.h
>>conftest.
$ac_ext
9317 cat >>conftest.
$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 $ac_includes_default
9323 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9330 rm -f conftest.
$ac_objext
9331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9332 (eval $ac_compile) 2>conftest.er1
9334 grep -v '^ *+' conftest.er1
>conftest.err
9336 cat conftest.err
>&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } &&
9339 { ac_try
='test -z "$ac_c_werror_flag"
9340 || test ! -s conftest.err'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; } &&
9346 { ac_try
='test -s conftest.$ac_objext'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
9354 cat >conftest.
$ac_ext <<_ACEOF
9357 cat confdefs.h
>>conftest.
$ac_ext
9358 cat >>conftest.
$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $ac_includes_default
9364 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9371 rm -f conftest.
$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>conftest.er1
9375 grep -v '^ *+' conftest.er1
>conftest.err
9377 cat conftest.err
>&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try
='test -z "$ac_c_werror_flag"
9381 || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try
='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 ac_lo
=$ac_mid; break
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.
$ac_ext >&5
9398 ac_hi
=`expr '(' $ac_mid ')' - 1`
9399 if test $ac_mid -le $ac_hi; then
9403 ac_mid
=`expr 2 '*' $ac_mid`
9405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.
$ac_ext >&5
9413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9416 # Binary search between lo and hi bounds.
9417 while test "x$ac_lo" != "x$ac_hi"; do
9418 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9419 cat >conftest.
$ac_ext <<_ACEOF
9422 cat confdefs.h
>>conftest.
$ac_ext
9423 cat >>conftest.
$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 $ac_includes_default
9429 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9436 rm -f conftest.
$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>conftest.er1
9440 grep -v '^ *+' conftest.er1
>conftest.err
9442 cat conftest.err
>&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try
='test -z "$ac_c_werror_flag"
9446 || test ! -s conftest.err'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; } &&
9452 { ac_try
='test -s conftest.$ac_objext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.
$ac_ext >&5
9463 ac_lo
=`expr '(' $ac_mid ')' + 1`
9465 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9468 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9469 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9470 See \`config.log' for more details." >&5
9471 echo "$as_me: error: cannot compute sizeof (size_t), 77
9472 See \`config.log' for more details." >&2;}
9473 { (exit 1); exit 1; }; } ;;
9476 if test "$cross_compiling" = yes; then
9477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9478 See \`config.log' for more details." >&5
9479 echo "$as_me: error: cannot run test program while cross compiling
9480 See \`config.log' for more details." >&2;}
9481 { (exit 1); exit 1; }; }
9483 cat >conftest.
$ac_ext <<_ACEOF
9486 cat confdefs.h
>>conftest.
$ac_ext
9487 cat >>conftest.
$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 $ac_includes_default
9490 long longval () { return (long) (sizeof (size_t)); }
9491 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9498 FILE *f = fopen ("conftest.val", "w");
9501 if (((long) (sizeof (size_t))) < 0)
9503 long i = longval ();
9504 if (i != ((long) (sizeof (size_t))))
9506 fprintf (f, "%ld\n", i);
9510 unsigned long i = ulongval ();
9511 if (i != ((long) (sizeof (size_t))))
9513 fprintf (f, "%lu\n", i);
9515 exit (ferror (f) || fclose (f) != 0);
9521 rm -f conftest
$ac_exeext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9523 (eval $ac_link) 2>&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_sizeof_size_t
=`cat conftest.val`
9534 echo "$as_me: program exited with status $ac_status" >&5
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.
$ac_ext >&5
9539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9540 See \`config.log' for more details." >&5
9541 echo "$as_me: error: cannot compute sizeof (size_t), 77
9542 See \`config.log' for more details." >&2;}
9543 { (exit 1); exit 1; }; }
9545 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9550 ac_cv_sizeof_size_t
=0
9553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9554 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9555 cat >>confdefs.h
<<_ACEOF
9556 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9561 echo "$as_me:$LINENO: checking for long long support" >&5
9562 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9564 cat >conftest.
$ac_ext <<_ACEOF
9567 cat confdefs.h
>>conftest.
$ac_ext
9568 cat >>conftest.
$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9574 long long x; x = (long long)0;
9579 rm -f conftest.
$ac_objext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581 (eval $ac_compile) 2>conftest.er1
9583 grep -v '^ *+' conftest.er1
>conftest.err
9585 cat conftest.err
>&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try
='test -z "$ac_c_werror_flag"
9589 || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try
='test -s conftest.$ac_objext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9603 cat >>confdefs.h
<<\_ACEOF
9604 #define HAVE_LONG_LONG 1
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.
$ac_ext >&5
9614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9615 echo "$as_me:$LINENO: result: $have_long_long" >&5
9616 echo "${ECHO_T}$have_long_long" >&6
9617 if test "$have_long_long" = yes ; then
9618 echo "$as_me:$LINENO: checking for long long" >&5
9619 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9620 if test "${ac_cv_type_long_long+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 cat >conftest.
$ac_ext <<_ACEOF
9626 cat confdefs.h
>>conftest.
$ac_ext
9627 cat >>conftest.
$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 $ac_includes_default
9633 if ((long long *) 0)
9635 if (sizeof (long long))
9641 rm -f conftest.
$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>conftest.er1
9645 grep -v '^ *+' conftest.er1
>conftest.err
9647 cat conftest.err
>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try
='test -z "$ac_c_werror_flag"
9651 || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try
='test -s conftest.$ac_objext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_type_long_long
=yes
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.
$ac_ext >&5
9668 ac_cv_type_long_long
=no
9670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9672 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9673 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9675 echo "$as_me:$LINENO: checking size of long long" >&5
9676 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9677 if test "${ac_cv_sizeof_long_long+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 if test "$ac_cv_type_long_long" = yes; then
9681 # The cast to unsigned long works around a bug in the HP C Compiler
9682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9684 # This bug is HP SR number 8606223364.
9685 if test "$cross_compiling" = yes; then
9686 # Depending upon the size, compute the lo and hi bounds.
9687 cat >conftest.
$ac_ext <<_ACEOF
9690 cat confdefs.h
>>conftest.
$ac_ext
9691 cat >>conftest.
$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 $ac_includes_default
9697 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9704 rm -f conftest.
$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 (eval $ac_compile) 2>conftest.er1
9708 grep -v '^ *+' conftest.er1
>conftest.err
9710 cat conftest.err
>&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try
='test -z "$ac_c_werror_flag"
9714 || test ! -s conftest.err'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try
='test -s conftest.$ac_objext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9728 cat >conftest.
$ac_ext <<_ACEOF
9731 cat confdefs.h
>>conftest.
$ac_ext
9732 cat >>conftest.
$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 $ac_includes_default
9738 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9745 rm -f conftest.
$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>conftest.er1
9749 grep -v '^ *+' conftest.er1
>conftest.err
9751 cat conftest.err
>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try
='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try
='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_hi
=$ac_mid; break
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.
$ac_ext >&5
9772 ac_lo
=`expr $ac_mid + 1`
9773 if test $ac_lo -le $ac_mid; then
9777 ac_mid
=`expr 2 '*' $ac_mid + 1`
9779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.
$ac_ext >&5
9785 cat >conftest.
$ac_ext <<_ACEOF
9788 cat confdefs.h
>>conftest.
$ac_ext
9789 cat >>conftest.
$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 $ac_includes_default
9795 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9802 rm -f conftest.
$ac_objext
9803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9804 (eval $ac_compile) 2>conftest.er1
9806 grep -v '^ *+' conftest.er1
>conftest.err
9808 cat conftest.err
>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try
='test -z "$ac_c_werror_flag"
9812 || test ! -s conftest.err'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try
='test -s conftest.$ac_objext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9826 cat >conftest.
$ac_ext <<_ACEOF
9829 cat confdefs.h
>>conftest.
$ac_ext
9830 cat >>conftest.
$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9836 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9843 rm -f conftest.
$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845 (eval $ac_compile) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1
>conftest.err
9849 cat conftest.err
>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try
='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try
='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_lo
=$ac_mid; break
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.
$ac_ext >&5
9870 ac_hi
=`expr '(' $ac_mid ')' - 1`
9871 if test $ac_mid -le $ac_hi; then
9875 ac_mid
=`expr 2 '*' $ac_mid`
9877 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.
$ac_ext >&5
9885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9888 # Binary search between lo and hi bounds.
9889 while test "x$ac_lo" != "x$ac_hi"; do
9890 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 $ac_includes_default
9901 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9908 rm -f conftest.
$ac_objext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910 (eval $ac_compile) 2>conftest.er1
9912 grep -v '^ *+' conftest.er1
>conftest.err
9914 cat conftest.err
>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try
='test -z "$ac_c_werror_flag"
9918 || test ! -s conftest.err'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try
='test -s conftest.$ac_objext'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.
$ac_ext >&5
9935 ac_lo
=`expr '(' $ac_mid ')' + 1`
9937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9940 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9941 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9942 See \`config.log' for more details." >&5
9943 echo "$as_me: error: cannot compute sizeof (long long), 77
9944 See \`config.log' for more details." >&2;}
9945 { (exit 1); exit 1; }; } ;;
9948 if test "$cross_compiling" = yes; then
9949 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9950 See \`config.log' for more details." >&5
9951 echo "$as_me: error: cannot run test program while cross compiling
9952 See \`config.log' for more details." >&2;}
9953 { (exit 1); exit 1; }; }
9955 cat >conftest.
$ac_ext <<_ACEOF
9958 cat confdefs.h
>>conftest.
$ac_ext
9959 cat >>conftest.
$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 long longval () { return (long) (sizeof (long long)); }
9963 unsigned long ulongval () { return (long) (sizeof (long long)); }
9970 FILE *f = fopen ("conftest.val", "w");
9973 if (((long) (sizeof (long long))) < 0)
9975 long i = longval ();
9976 if (i != ((long) (sizeof (long long))))
9978 fprintf (f, "%ld\n", i);
9982 unsigned long i = ulongval ();
9983 if (i != ((long) (sizeof (long long))))
9985 fprintf (f, "%lu\n", i);
9987 exit (ferror (f) || fclose (f) != 0);
9993 rm -f conftest
$ac_exeext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995 (eval $ac_link) 2>&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_cv_sizeof_long_long
=`cat conftest.val`
10006 echo "$as_me: program exited with status $ac_status" >&5
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.
$ac_ext >&5
10010 ( exit $ac_status )
10011 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10012 See \`config.log' for more details." >&5
10013 echo "$as_me: error: cannot compute sizeof (long long), 77
10014 See \`config.log' for more details." >&2;}
10015 { (exit 1); exit 1; }; }
10017 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10022 ac_cv_sizeof_long_long
=0
10025 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10026 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10027 cat >>confdefs.h
<<_ACEOF
10028 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10034 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10035 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10037 cat >conftest.
$ac_ext <<_ACEOF
10040 cat confdefs.h
>>conftest.
$ac_ext
10041 cat >>conftest.
$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10047 uintptr_t x; x = (uintptr_t)0;
10052 rm -f conftest.
$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>conftest.er1
10056 grep -v '^ *+' conftest.er1
>conftest.err
10058 cat conftest.err
>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try
='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try
='test -s conftest.$ac_objext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10076 cat >>confdefs.h
<<\_ACEOF
10077 #define HAVE_UINTPTR_T 1
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.
$ac_ext >&5
10087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10088 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10089 echo "${ECHO_T}$have_uintptr_t" >&6
10090 if test "$have_uintptr_t" = yes ; then
10091 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10092 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10093 if test "${ac_cv_type_uintptr_t+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 cat >conftest.
$ac_ext <<_ACEOF
10099 cat confdefs.h
>>conftest.
$ac_ext
10100 cat >>conftest.
$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 $ac_includes_default
10106 if ((uintptr_t *) 0)
10108 if (sizeof (uintptr_t))
10114 rm -f conftest.
$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116 (eval $ac_compile) 2>conftest.er1
10118 grep -v '^ *+' conftest.er1
>conftest.err
10120 cat conftest.err
>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try
='test -z "$ac_c_werror_flag"
10124 || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try
='test -s conftest.$ac_objext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_type_uintptr_t
=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.
$ac_ext >&5
10141 ac_cv_type_uintptr_t
=no
10143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10145 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10146 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10148 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10149 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10150 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 if test "$ac_cv_type_uintptr_t" = yes; then
10154 # The cast to unsigned long works around a bug in the HP C Compiler
10155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10157 # This bug is HP SR number 8606223364.
10158 if test "$cross_compiling" = yes; then
10159 # Depending upon the size, compute the lo and hi bounds.
10160 cat >conftest.
$ac_ext <<_ACEOF
10163 cat confdefs.h
>>conftest.
$ac_ext
10164 cat >>conftest.
$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10170 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10177 rm -f conftest.
$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>conftest.er1
10181 grep -v '^ *+' conftest.er1
>conftest.err
10183 cat conftest.err
>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try
='test -z "$ac_c_werror_flag"
10187 || test ! -s conftest.err'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; } &&
10193 { ac_try
='test -s conftest.$ac_objext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10201 cat >conftest.
$ac_ext <<_ACEOF
10204 cat confdefs.h
>>conftest.
$ac_ext
10205 cat >>conftest.
$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 $ac_includes_default
10211 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10218 rm -f conftest.
$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>conftest.er1
10222 grep -v '^ *+' conftest.er1
>conftest.err
10224 cat conftest.err
>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try
='test -z "$ac_c_werror_flag"
10228 || test ! -s conftest.err'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try
='test -s conftest.$ac_objext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_hi
=$ac_mid; break
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.
$ac_ext >&5
10245 ac_lo
=`expr $ac_mid + 1`
10246 if test $ac_lo -le $ac_mid; then
10250 ac_mid
=`expr 2 '*' $ac_mid + 1`
10252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.
$ac_ext >&5
10258 cat >conftest.
$ac_ext <<_ACEOF
10261 cat confdefs.h
>>conftest.
$ac_ext
10262 cat >>conftest.
$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 $ac_includes_default
10268 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10275 rm -f conftest.
$ac_objext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277 (eval $ac_compile) 2>conftest.er1
10279 grep -v '^ *+' conftest.er1
>conftest.err
10281 cat conftest.err
>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try
='test -z "$ac_c_werror_flag"
10285 || test ! -s conftest.err'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try
='test -s conftest.$ac_objext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10299 cat >conftest.
$ac_ext <<_ACEOF
10302 cat confdefs.h
>>conftest.
$ac_ext
10303 cat >>conftest.
$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 $ac_includes_default
10309 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10316 rm -f conftest.
$ac_objext
10317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10318 (eval $ac_compile) 2>conftest.er1
10320 grep -v '^ *+' conftest.er1
>conftest.err
10322 cat conftest.err
>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try
='test -z "$ac_c_werror_flag"
10326 || test ! -s conftest.err'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; } &&
10332 { ac_try
='test -s conftest.$ac_objext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_lo
=$ac_mid; break
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.
$ac_ext >&5
10343 ac_hi
=`expr '(' $ac_mid ')' - 1`
10344 if test $ac_mid -le $ac_hi; then
10348 ac_mid
=`expr 2 '*' $ac_mid`
10350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.
$ac_ext >&5
10358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10361 # Binary search between lo and hi bounds.
10362 while test "x$ac_lo" != "x$ac_hi"; do
10363 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10364 cat >conftest.
$ac_ext <<_ACEOF
10367 cat confdefs.h
>>conftest.
$ac_ext
10368 cat >>conftest.
$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10374 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10381 rm -f conftest.
$ac_objext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10383 (eval $ac_compile) 2>conftest.er1
10385 grep -v '^ *+' conftest.er1
>conftest.err
10387 cat conftest.err
>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try
='test -z "$ac_c_werror_flag"
10391 || test ! -s conftest.err'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try
='test -s conftest.$ac_objext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.
$ac_ext >&5
10408 ac_lo
=`expr '(' $ac_mid ')' + 1`
10410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10413 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10414 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10415 See \`config.log' for more details." >&5
10416 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10417 See \`config.log' for more details." >&2;}
10418 { (exit 1); exit 1; }; } ;;
10421 if test "$cross_compiling" = yes; then
10422 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10423 See \`config.log' for more details." >&5
10424 echo "$as_me: error: cannot run test program while cross compiling
10425 See \`config.log' for more details." >&2;}
10426 { (exit 1); exit 1; }; }
10428 cat >conftest.
$ac_ext <<_ACEOF
10431 cat confdefs.h
>>conftest.
$ac_ext
10432 cat >>conftest.
$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 long longval () { return (long) (sizeof (uintptr_t)); }
10436 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10438 #include <stdlib.h>
10443 FILE *f = fopen ("conftest.val", "w");
10446 if (((long) (sizeof (uintptr_t))) < 0)
10448 long i = longval ();
10449 if (i != ((long) (sizeof (uintptr_t))))
10451 fprintf (f, "%ld\n", i);
10455 unsigned long i = ulongval ();
10456 if (i != ((long) (sizeof (uintptr_t))))
10458 fprintf (f, "%lu\n", i);
10460 exit (ferror (f) || fclose (f) != 0);
10466 rm -f conftest
$ac_exeext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468 (eval $ac_link) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10479 echo "$as_me: program exited with status $ac_status" >&5
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.
$ac_ext >&5
10483 ( exit $ac_status )
10484 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10485 See \`config.log' for more details." >&5
10486 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10487 See \`config.log' for more details." >&2;}
10488 { (exit 1); exit 1; }; }
10490 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10495 ac_cv_sizeof_uintptr_t
=0
10498 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10499 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10500 cat >>confdefs.h
<<_ACEOF
10501 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10507 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10508 echo "$as_me:$LINENO: checking size of off_t" >&5
10509 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10510 if test "${ac_cv_sizeof_off_t+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 if test "$cross_compiling" = yes; then
10514 ac_cv_sizeof_off_t
=4
10516 cat >conftest.
$ac_ext <<_ACEOF
10519 cat confdefs.h
>>conftest.
$ac_ext
10520 cat >>conftest.
$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10523 #include <sys/types.h>
10526 FILE *f=fopen("conftestval", "w");
10528 fprintf(f, "%d\n", sizeof(off_t));
10532 rm -f conftest
$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_sizeof_off_t
=`cat conftestval`
10545 echo "$as_me: program exited with status $ac_status" >&5
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.
$ac_ext >&5
10549 ( exit $ac_status )
10550 ac_cv_sizeof_off_t
=0
10552 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10558 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10560 cat >>confdefs.h
<<_ACEOF
10561 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10565 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10566 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10567 if test "$have_long_long" = yes -a \
10568 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10569 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10571 cat >>confdefs.h
<<\_ACEOF
10572 #define HAVE_LARGEFILE_SUPPORT 1
10575 echo "$as_me:$LINENO: result: yes" >&5
10576 echo "${ECHO_T}yes" >&6
10578 echo "$as_me:$LINENO: result: no" >&5
10579 echo "${ECHO_T}no" >&6
10582 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10583 echo "$as_me:$LINENO: checking size of time_t" >&5
10584 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10585 if test "${ac_cv_sizeof_time_t+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 if test "$cross_compiling" = yes; then
10589 ac_cv_sizeof_time_t
=4
10591 cat >conftest.
$ac_ext <<_ACEOF
10594 cat confdefs.h
>>conftest.
$ac_ext
10595 cat >>conftest.
$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10601 FILE *f=fopen("conftestval", "w");
10603 fprintf(f, "%d\n", sizeof(time_t));
10607 rm -f conftest
$ac_exeext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609 (eval $ac_link) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_cv_sizeof_time_t
=`cat conftestval`
10620 echo "$as_me: program exited with status $ac_status" >&5
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.
$ac_ext >&5
10624 ( exit $ac_status )
10625 ac_cv_sizeof_time_t
=0
10627 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10633 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10635 cat >>confdefs.h
<<_ACEOF
10636 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10641 # if have pthread_t then define SIZEOF_PTHREAD_T
10643 if test "$ac_cv_kpthread" = "yes"
10644 then CC
="$CC -Kpthread"
10645 elif test "$ac_cv_kthread" = "yes"
10646 then CC
="$CC -Kthread"
10647 elif test "$ac_cv_pthread" = "yes"
10648 then CC
="$CC -pthread"
10650 echo "$as_me:$LINENO: checking for pthread_t" >&5
10651 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10653 cat >conftest.
$ac_ext <<_ACEOF
10656 cat confdefs.h
>>conftest.
$ac_ext
10657 cat >>conftest.
$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <pthread.h>
10663 pthread_t x; x = *(pthread_t*)0;
10668 rm -f conftest.
$ac_objext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10670 (eval $ac_compile) 2>conftest.er1
10672 grep -v '^ *+' conftest.er1
>conftest.err
10674 cat conftest.err
>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try
='test -z "$ac_c_werror_flag"
10678 || test ! -s conftest.err'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; } &&
10684 { ac_try
='test -s conftest.$ac_objext'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.
$ac_ext >&5
10696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10697 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10698 echo "${ECHO_T}$have_pthread_t" >&6
10699 if test "$have_pthread_t" = yes ; then
10700 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10701 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10702 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10703 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 if test "$cross_compiling" = yes; then
10707 ac_cv_sizeof_pthread_t
=4
10709 cat >conftest.
$ac_ext <<_ACEOF
10712 cat confdefs.h
>>conftest.
$ac_ext
10713 cat >>conftest.
$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10716 #include <pthread.h>
10719 FILE *f=fopen("conftestval", "w");
10721 fprintf(f, "%d\n", sizeof(pthread_t));
10725 rm -f conftest
$ac_exeext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_sizeof_pthread_t
=`cat conftestval`
10738 echo "$as_me: program exited with status $ac_status" >&5
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.
$ac_ext >&5
10742 ( exit $ac_status )
10743 ac_cv_sizeof_pthread_t
=0
10745 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10751 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10753 cat >>confdefs.h
<<_ACEOF
10754 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10760 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10761 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10762 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10763 if test "${enable_toolbox_glue+set}" = set; then
10764 enableval
="$enable_toolbox_glue"
10768 if test -z "$enable_toolbox_glue"
10770 case $ac_sys_system/$ac_sys_release in
10772 enable_toolbox_glue
="yes";;
10774 enable_toolbox_glue
="no";;
10777 case "$enable_toolbox_glue" in
10779 extra_machdep_objs
="Python/mactoolboxglue.o"
10780 extra_undefs
="-u _PyMac_Error"
10782 cat >>confdefs.h
<<\_ACEOF
10783 #define USE_TOOLBOX_OBJECT_GLUE 1
10788 extra_machdep_objs
=""
10792 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10793 echo "${ECHO_T}$enable_toolbox_glue" >&6
10796 case $ac_sys_system/$ac_sys_release in
10797 Darwin
/[01567]\..
*)
10798 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10801 OTHER_LIBTOOL_OPT
=""
10806 case $ac_sys_system/$ac_sys_release in
10807 Darwin
/[01567]\..
*)
10808 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
10809 if test "${enable_universalsdk}"; then
10812 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
10814 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10815 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10817 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10818 if test ${gcc_version} '<' 4.0
10820 LIBTOOL_CRUFT
="-lcc_dynamic"
10824 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10825 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10826 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10829 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10830 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10831 if test "$enable_framework"
10833 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10834 # -F. is needed to allow linking to the framework while
10835 # in the build location.
10837 cat >>confdefs.h
<<\_ACEOF
10838 #define WITH_NEXT_FRAMEWORK 1
10841 echo "$as_me:$LINENO: result: yes" >&5
10842 echo "${ECHO_T}yes" >&6
10844 echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6
10848 echo "$as_me:$LINENO: checking for dyld" >&5
10849 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10850 case $ac_sys_system/$ac_sys_release in
10853 cat >>confdefs.h
<<\_ACEOF
10854 #define WITH_DYLD 1
10857 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10858 echo "${ECHO_T}always on for Darwin" >&6
10861 echo "$as_me:$LINENO: result: no" >&5
10862 echo "${ECHO_T}no" >&6
10866 # Set info about shared libraries.
10872 # SO is the extension of shared libraries `(including the dot!)
10873 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10874 echo "$as_me:$LINENO: checking SO" >&5
10875 echo $ECHO_N "checking SO... $ECHO_C" >&6
10878 case $ac_sys_system in
10889 # this might also be a termcap variable, see #610332
10891 echo '====================================================================='
10893 echo '+ WARNING: You have set SO in your environment. +'
10894 echo '+ Do you really mean to change the extension for shared libraries? +'
10895 echo '+ Continuing in 10 seconds to let you to ponder. +'
10897 echo '====================================================================='
10900 echo "$as_me:$LINENO: result: $SO" >&5
10901 echo "${ECHO_T}$SO" >&6
10903 cat >>confdefs.h
<<_ACEOF
10904 #define SHLIB_EXT "$SO"
10907 # LDSHARED is the ld *command* used to create shared library
10908 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10909 # (Shared libraries in this instance are shared modules to be loaded into
10910 # Python, as opposed to building Python itself as a shared library.)
10911 echo "$as_me:$LINENO: checking LDSHARED" >&5
10912 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10913 if test -z "$LDSHARED"
10915 case $ac_sys_system/$ac_sys_release in
10917 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10918 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10921 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10922 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10924 IRIX
/5*) LDSHARED
="ld -shared";;
10925 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10927 if test "$GCC" = "yes"
10928 then LDSHARED
='$(CC) -shared'
10929 else LDSHARED
='$(CC) -G';
10931 hp
*|HP
*) LDSHARED
="ld -b";;
10932 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10934 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10935 if test "$enable_framework" ; then
10936 # Link against the framework. All externals should be defined.
10937 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10938 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10940 # No framework. Ignore undefined symbols, assuming they come from Python
10941 LDSHARED
="$LDSHARED -undefined suppress"
10943 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10944 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10945 if test "$enable_framework" ; then
10946 # Link against the framework. All externals should be defined.
10947 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10948 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10950 # No framework, use the Python app as bundle-loader
10951 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10952 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10955 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10956 # This allows an extension to be used in any Python
10957 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10958 if test ${cur_target} '>' 10.2; then
10961 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10962 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
10963 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10965 if test "${enable_universalsdk}"; then
10966 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10968 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10969 BLDSHARED
="$LDSHARED"
10971 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10972 if test "$enable_framework" ; then
10973 # Link against the framework. All externals should be defined.
10974 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10975 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10977 # No framework, use the Python app as bundle-loader
10978 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10979 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10983 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10984 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10986 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10988 LDSHARED
="$CC -shared ${LDFLAGS}"
10990 LDSHARED
="ld -Bshareable ${LDFLAGS}"
10992 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
10993 OpenUNIX
*|UnixWare
*)
10994 if test "$GCC" = "yes"
10995 then LDSHARED
='$(CC) -shared'
10996 else LDSHARED
='$(CC) -G'
10998 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
10999 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11000 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11001 atheos
*) LDSHARED
="gcc -shared";;
11005 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11006 echo "${ECHO_T}$LDSHARED" >&6
11007 BLDSHARED
=${BLDSHARED-$LDSHARED}
11008 # CCSHARED are the C *flags* used to create objects to go into a shared
11009 # library (module) -- this is only needed for a few systems
11010 echo "$as_me:$LINENO: checking CCSHARED" >&5
11011 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11012 if test -z "$CCSHARED"
11014 case $ac_sys_system/$ac_sys_release in
11015 SunOS
*) if test "$GCC" = yes;
11016 then CCSHARED
="-fPIC";
11017 else CCSHARED
="-xcode=pic32";
11019 hp
*|HP
*) if test "$GCC" = yes;
11020 then CCSHARED
="-fPIC";
11021 else CCSHARED
="+z";
11023 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11024 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11025 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11026 OpenUNIX
*|UnixWare
*)
11027 if test "$GCC" = "yes"
11028 then CCSHARED
="-fPIC"
11029 else CCSHARED
="-KPIC"
11032 if test "$GCC" = "yes"
11033 then CCSHARED
="-fPIC"
11034 else CCSHARED
="-Kpic -belf"
11036 Monterey
*) CCSHARED
="-G";;
11037 IRIX
*/6*) case $CC in
11038 *gcc
*) CCSHARED
="-shared";;
11041 atheos
*) CCSHARED
="-fPIC";;
11044 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11045 echo "${ECHO_T}$CCSHARED" >&6
11046 # LINKFORSHARED are the flags passed to the $(CC) command that links
11047 # the python executable -- this is only needed for a few systems
11048 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11049 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11050 if test -z "$LINKFORSHARED"
11052 case $ac_sys_system/$ac_sys_release in
11053 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11055 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11056 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11057 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11058 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11059 # -u libsys_s pulls in all symbols in libsys
11061 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11063 # not used by the core itself but which needs to be in the core so
11064 # that dynamically loaded extension modules have access to it.
11065 # -prebind is no longer used, because it actually seems to give a
11066 # slowdown in stead of a speedup, maybe due to the large number of
11067 # dynamic loads Python does.
11069 LINKFORSHARED
="$extra_undefs"
11070 if test "$enable_framework"
11072 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11074 LINKFORSHARED
="$LINKFORSHARED";;
11075 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11076 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11077 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11078 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11079 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11081 LINKFORSHARED
="-Wl,--export-dynamic"
11083 SunOS
/5*) case $CC in
11085 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11087 LINKFORSHARED
="-Xlinker --export-dynamic"
11091 if test $enable_shared = "no"
11093 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11097 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11098 echo "${ECHO_T}$LINKFORSHARED" >&6
11101 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11102 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11103 if test ! "$LIBRARY" = "$LDLIBRARY"
11105 case $ac_sys_system in
11107 # Cygwin needs CCSHARED when building extension DLLs
11108 # but not when building the interpreter DLL.
11109 CFLAGSFORSHARED
='';;
11111 CFLAGSFORSHARED
='$(CCSHARED)'
11114 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11115 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11117 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11118 # library (with --enable-shared).
11119 # For platforms on which shared libraries are not allowed to have unresolved
11120 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11121 # if it is not required, since it creates a dependency of the shared library
11122 # to LIBS. This, in turn, means that applications linking the shared libpython
11123 # don't need to link LIBS explicitly. The default should be only changed
11124 # on systems where this approach causes problems.
11126 echo "$as_me:$LINENO: checking SHLIBS" >&5
11127 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11128 case "$ac_sys_system" in
11132 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11133 echo "${ECHO_T}$SHLIBS" >&6
11136 # checks for libraries
11138 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 ac_check_lib_save_LIBS
=$LIBS
11145 cat >conftest.
$ac_ext <<_ACEOF
11148 cat confdefs.h
>>conftest.
$ac_ext
11149 cat >>conftest.
$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11152 /* Override any gcc2 internal prototype to avoid an error. */
11156 /* We use char because int might match the return type of a gcc2
11157 builtin and then its argument prototype would still apply. */
11167 rm -f conftest.
$ac_objext conftest
$ac_exeext
11168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11169 (eval $ac_link) 2>conftest.er1
11171 grep -v '^ *+' conftest.er1
>conftest.err
11173 cat conftest.err
>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try
='test -z "$ac_c_werror_flag"
11177 || test ! -s conftest.err'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; } &&
11183 { ac_try
='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_lib_dl_dlopen
=yes
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.
$ac_ext >&5
11194 ac_cv_lib_dl_dlopen
=no
11196 rm -f conftest.err conftest.
$ac_objext \
11197 conftest
$ac_exeext conftest.
$ac_ext
11198 LIBS
=$ac_check_lib_save_LIBS
11200 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11202 if test $ac_cv_lib_dl_dlopen = yes; then
11203 cat >>confdefs.h
<<_ACEOF
11204 #define HAVE_LIBDL 1
11210 # Dynamic linking for SunOS/Solaris and SYSV
11212 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11213 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11214 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 ac_check_lib_save_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_dld_shl_load
=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.
$ac_ext >&5
11268 ac_cv_lib_dld_shl_load
=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_dld_shl_load" >&5
11275 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11276 if test $ac_cv_lib_dld_shl_load = yes; then
11277 cat >>confdefs.h
<<_ACEOF
11278 #define HAVE_LIBDLD 1
11284 # Dynamic linking for HP-UX
11286 # only check for sem_ini if thread support is requested
11287 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11288 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11289 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11290 if test "${ac_cv_search_sem_init+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 ac_func_search_save_LIBS
=$LIBS
11294 ac_cv_search_sem_init
=no
11295 cat >conftest.
$ac_ext <<_ACEOF
11298 cat confdefs.h
>>conftest.
$ac_ext
11299 cat >>conftest.
$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11302 /* Override any gcc2 internal prototype to avoid an error. */
11306 /* We use char because int might match the return type of a gcc2
11307 builtin and then its argument prototype would still apply. */
11317 rm -f conftest.
$ac_objext conftest
$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319 (eval $ac_link) 2>conftest.er1
11321 grep -v '^ *+' conftest.er1
>conftest.err
11323 cat conftest.err
>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try
='test -z "$ac_c_werror_flag"
11327 || test ! -s conftest.err'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try
='test -s conftest$ac_exeext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_search_sem_init
="none required"
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.
$ac_ext >&5
11345 rm -f conftest.err conftest.
$ac_objext \
11346 conftest
$ac_exeext conftest.
$ac_ext
11347 if test "$ac_cv_search_sem_init" = no
; then
11348 for ac_lib
in pthread rt posix4
; do
11349 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11350 cat >conftest.
$ac_ext <<_ACEOF
11353 cat confdefs.h
>>conftest.
$ac_ext
11354 cat >>conftest.
$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11357 /* Override any gcc2 internal prototype to avoid an error. */
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11372 rm -f conftest.
$ac_objext conftest
$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>conftest.er1
11376 grep -v '^ *+' conftest.er1
>conftest.err
11378 cat conftest.err
>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try
='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try
='test -s conftest$ac_exeext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_cv_search_sem_init
="-l$ac_lib"
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.
$ac_ext >&5
11401 rm -f conftest.err conftest.
$ac_objext \
11402 conftest
$ac_exeext conftest.
$ac_ext
11405 LIBS
=$ac_func_search_save_LIBS
11407 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11408 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11409 if test "$ac_cv_search_sem_init" != no
; then
11410 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11413 # 'Real Time' functions on Solaris
11414 # posix4 on Solaris 2.6
11415 # pthread (first!) on Linux
11418 # check if we need libintl for locale functions
11419 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11420 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11421 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 ac_check_lib_save_LIBS
=$LIBS
11425 LIBS
="-lintl $LIBS"
11426 cat >conftest.
$ac_ext <<_ACEOF
11429 cat confdefs.h
>>conftest.
$ac_ext
11430 cat >>conftest.
$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11433 /* Override any gcc2 internal prototype to avoid an error. */
11437 /* We use char because int might match the return type of a gcc2
11438 builtin and then its argument prototype would still apply. */
11439 char textdomain ();
11448 rm -f conftest.
$ac_objext conftest
$ac_exeext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11450 (eval $ac_link) 2>conftest.er1
11452 grep -v '^ *+' conftest.er1
>conftest.err
11454 cat conftest.err
>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try
='test -z "$ac_c_werror_flag"
11458 || test ! -s conftest.err'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try
='test -s conftest$ac_exeext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_cv_lib_intl_textdomain
=yes
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.
$ac_ext >&5
11475 ac_cv_lib_intl_textdomain
=no
11477 rm -f conftest.err conftest.
$ac_objext \
11478 conftest
$ac_exeext conftest.
$ac_ext
11479 LIBS
=$ac_check_lib_save_LIBS
11481 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11482 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11483 if test $ac_cv_lib_intl_textdomain = yes; then
11485 cat >>confdefs.h
<<\_ACEOF
11486 #define WITH_LIBINTL 1
11492 # checks for system dependent C++ extensions support
11493 case "$ac_sys_system" in
11494 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11495 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11496 cat >conftest.
$ac_ext <<_ACEOF
11499 cat confdefs.h
>>conftest.
$ac_ext
11500 cat >>conftest.
$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 #include "/usr/lpp/xlC/include/load.h"
11506 loadAndInit("", 0, "")
11511 rm -f conftest.
$ac_objext conftest
$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>conftest.er1
11515 grep -v '^ *+' conftest.er1
>conftest.err
11517 cat conftest.err
>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try
='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try
='test -s conftest$ac_exeext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11534 cat >>confdefs.h
<<\_ACEOF
11535 #define AIX_GENUINE_CPLUSPLUS 1
11538 echo "$as_me:$LINENO: result: yes" >&5
11539 echo "${ECHO_T}yes" >&6
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.
$ac_ext >&5
11544 echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6
11547 rm -f conftest.err conftest.
$ac_objext \
11548 conftest
$ac_exeext conftest.
$ac_ext;;
11552 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11553 # BeOS' sockets are stashed in libnet.
11554 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11555 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11556 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 ac_check_lib_save_LIBS
=$LIBS
11561 cat >conftest.
$ac_ext <<_ACEOF
11564 cat confdefs.h
>>conftest.
$ac_ext
11565 cat >>conftest.
$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11568 /* Override any gcc2 internal prototype to avoid an error. */
11572 /* We use char because int might match the return type of a gcc2
11573 builtin and then its argument prototype would still apply. */
11583 rm -f conftest.
$ac_objext conftest
$ac_exeext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>conftest.er1
11587 grep -v '^ *+' conftest.er1
>conftest.err
11589 cat conftest.err
>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try
='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try
='test -s conftest$ac_exeext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 ac_cv_lib_nsl_t_open
=yes
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.
$ac_ext >&5
11610 ac_cv_lib_nsl_t_open
=no
11612 rm -f conftest.err conftest.
$ac_objext \
11613 conftest
$ac_exeext conftest.
$ac_ext
11614 LIBS
=$ac_check_lib_save_LIBS
11616 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11617 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11618 if test $ac_cv_lib_nsl_t_open = yes; then
11622 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11623 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11624 if test "${ac_cv_lib_socket_socket+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 ac_check_lib_save_LIBS
=$LIBS
11628 LIBS
="-lsocket $LIBS $LIBS"
11629 cat >conftest.
$ac_ext <<_ACEOF
11632 cat confdefs.h
>>conftest.
$ac_ext
11633 cat >>conftest.
$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11636 /* Override any gcc2 internal prototype to avoid an error. */
11640 /* We use char because int might match the return type of a gcc2
11641 builtin and then its argument prototype would still apply. */
11651 rm -f conftest.
$ac_objext conftest
$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>conftest.er1
11655 grep -v '^ *+' conftest.er1
>conftest.err
11657 cat conftest.err
>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try
='test -z "$ac_c_werror_flag"
11661 || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try
='test -s conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_lib_socket_socket
=yes
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.
$ac_ext >&5
11678 ac_cv_lib_socket_socket
=no
11680 rm -f conftest.err conftest.
$ac_objext \
11681 conftest
$ac_exeext conftest.
$ac_ext
11682 LIBS
=$ac_check_lib_save_LIBS
11684 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11685 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11686 if test $ac_cv_lib_socket_socket = yes; then
11687 LIBS
="-lsocket $LIBS"
11691 case "$ac_sys_system" in
11693 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11694 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11695 if test "${ac_cv_lib_net_socket+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 ac_check_lib_save_LIBS
=$LIBS
11699 LIBS
="-lnet $LIBS $LIBS"
11700 cat >conftest.
$ac_ext <<_ACEOF
11703 cat confdefs.h
>>conftest.
$ac_ext
11704 cat >>conftest.
$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11707 /* Override any gcc2 internal prototype to avoid an error. */
11711 /* We use char because int might match the return type of a gcc2
11712 builtin and then its argument prototype would still apply. */
11722 rm -f conftest.
$ac_objext conftest
$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>conftest.er1
11726 grep -v '^ *+' conftest.er1
>conftest.err
11728 cat conftest.err
>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try
='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try
='test -s conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_cv_lib_net_socket
=yes
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.
$ac_ext >&5
11749 ac_cv_lib_net_socket
=no
11751 rm -f conftest.err conftest.
$ac_objext \
11752 conftest
$ac_exeext conftest.
$ac_ext
11753 LIBS
=$ac_check_lib_save_LIBS
11755 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11756 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11757 if test $ac_cv_lib_net_socket = yes; then
11764 echo "$as_me:$LINENO: checking for --with-libs" >&5
11765 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11767 # Check whether --with-libs or --without-libs was given.
11768 if test "${with_libs+set}" = set; then
11769 withval
="$with_libs"
11771 echo "$as_me:$LINENO: result: $withval" >&5
11772 echo "${ECHO_T}$withval" >&6
11773 LIBS
="$withval $LIBS"
11776 echo "$as_me:$LINENO: result: no" >&5
11777 echo "${ECHO_T}no" >&6
11780 # Check for use of the system libffi library
11781 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11782 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11784 # Check whether --with-system_ffi or --without-system_ffi was given.
11785 if test "${with_system_ffi+set}" = set; then
11786 withval
="$with_system_ffi"
11790 if test -z "$with_system_ffi"
11791 then with_system_ffi
="no"
11793 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11794 echo "${ECHO_T}$with_system_ffi" >&6
11796 # Determine if signalmodule should be used.
11799 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11800 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11802 # Check whether --with-signal-module or --without-signal-module was given.
11803 if test "${with_signal_module+set}" = set; then
11804 withval
="$with_signal_module"
11808 if test -z "$with_signal_module"
11809 then with_signal_module
="yes"
11811 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11812 echo "${ECHO_T}$with_signal_module" >&6
11814 if test "${with_signal_module}" = "yes"; then
11815 USE_SIGNAL_MODULE
=""
11818 USE_SIGNAL_MODULE
="#"
11819 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11822 # This is used to generate Setup.config
11824 USE_THREAD_MODULE
=""
11826 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11827 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11830 # Check whether --with-dec-threads or --without-dec-threads was given.
11831 if test "${with_dec_threads+set}" = set; then
11832 withval
="$with_dec_threads"
11834 echo "$as_me:$LINENO: result: $withval" >&5
11835 echo "${ECHO_T}$withval" >&6
11837 if test "${with_thread+set}" != set; then
11838 with_thread
="$withval";
11841 echo "$as_me:$LINENO: result: no" >&5
11842 echo "${ECHO_T}no" >&6
11845 # Templates for things AC_DEFINEd more than once.
11846 # For a single AC_DEFINE, no template is needed.
11854 echo "$as_me:$LINENO: checking for --with-threads" >&5
11855 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11857 # Check whether --with-threads or --without-threads was given.
11858 if test "${with_threads+set}" = set; then
11859 withval
="$with_threads"
11863 # --with-thread is deprecated, but check for it anyway
11865 # Check whether --with-thread or --without-thread was given.
11866 if test "${with_thread+set}" = set; then
11867 withval
="$with_thread"
11868 with_threads
=$with_thread
11871 if test -z "$with_threads"
11872 then with_threads
="yes"
11874 echo "$as_me:$LINENO: result: $with_threads" >&5
11875 echo "${ECHO_T}$with_threads" >&6
11878 if test "$with_threads" = "no"
11880 USE_THREAD_MODULE
="#"
11881 elif test "$ac_cv_pthread_is_default" = yes
11883 cat >>confdefs.h
<<\_ACEOF
11884 #define WITH_THREAD 1
11887 # Defining _REENTRANT on system with POSIX threads should not hurt.
11888 cat >>confdefs.h
<<\_ACEOF
11889 #define _REENTRANT 1
11893 THREADOBJ
="Python/thread.o"
11894 elif test "$ac_cv_kpthread" = "yes"
11897 if test "$ac_cv_cxx_thread" = "yes"; then
11898 CXX
="$CXX -Kpthread"
11900 cat >>confdefs.h
<<\_ACEOF
11901 #define WITH_THREAD 1
11905 THREADOBJ
="Python/thread.o"
11906 elif test "$ac_cv_kthread" = "yes"
11909 if test "$ac_cv_cxx_thread" = "yes"; then
11910 CXX
="$CXX -Kthread"
11912 cat >>confdefs.h
<<\_ACEOF
11913 #define WITH_THREAD 1
11917 THREADOBJ
="Python/thread.o"
11918 elif test "$ac_cv_pthread" = "yes"
11921 if test "$ac_cv_cxx_thread" = "yes"; then
11922 CXX
="$CXX -pthread"
11924 cat >>confdefs.h
<<\_ACEOF
11925 #define WITH_THREAD 1
11929 THREADOBJ
="Python/thread.o"
11931 if test ! -z "$with_threads" -a -d "$with_threads"
11932 then LDFLAGS
="$LDFLAGS -L$with_threads"
11934 if test ! -z "$withval" -a -d "$withval"
11935 then LDFLAGS
="$LDFLAGS -L$withval"
11938 # According to the POSIX spec, a pthreads implementation must
11939 # define _POSIX_THREADS in unistd.h. Some apparently don't
11940 # (e.g. gnu pth with pthread emulation)
11941 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11942 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11943 cat >conftest.
$ac_ext <<_ACEOF
11946 cat confdefs.h
>>conftest.
$ac_ext
11947 cat >>conftest.
$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 #include <unistd.h>
11951 #ifdef _POSIX_THREADS
11956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11957 $EGREP "yes" >/dev
/null
2>&1; then
11958 unistd_defines_pthreads
=yes
11960 unistd_defines_pthreads
=no
11964 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11965 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11967 cat >>confdefs.h
<<\_ACEOF
11968 #define _REENTRANT 1
11971 if test "${ac_cv_header_cthreads_h+set}" = set; then
11972 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11973 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11974 if test "${ac_cv_header_cthreads_h+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11978 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11980 # Is the header compilable?
11981 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11982 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11983 cat >conftest.
$ac_ext <<_ACEOF
11986 cat confdefs.h
>>conftest.
$ac_ext
11987 cat >>conftest.
$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 $ac_includes_default
11990 #include <cthreads.h>
11992 rm -f conftest.
$ac_objext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>conftest.er1
11996 grep -v '^ *+' conftest.er1
>conftest.err
11998 cat conftest.err
>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try
='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try
='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_header_compiler
=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.
$ac_ext >&5
12019 ac_header_compiler
=no
12021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12023 echo "${ECHO_T}$ac_header_compiler" >&6
12025 # Is the header present?
12026 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12027 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12028 cat >conftest.
$ac_ext <<_ACEOF
12031 cat confdefs.h
>>conftest.
$ac_ext
12032 cat >>conftest.
$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 #include <cthreads.h>
12036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12037 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12039 grep -v '^ *+' conftest.er1
>conftest.err
12041 cat conftest.err
>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } >/dev
/null
; then
12044 if test -s conftest.err
; then
12045 ac_cpp_err
=$ac_c_preproc_warn_flag
12046 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12053 if test -z "$ac_cpp_err"; then
12054 ac_header_preproc
=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.
$ac_ext >&5
12059 ac_header_preproc
=no
12061 rm -f conftest.err conftest.
$ac_ext
12062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12063 echo "${ECHO_T}$ac_header_preproc" >&6
12065 # So? What about this header?
12066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12068 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12069 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12071 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12072 ac_header_preproc
=yes
12075 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12076 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12078 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12080 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12082 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12084 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12086 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12089 ## ------------------------------------------------ ##
12090 ## Report this to http://www.python.org/python-bugs ##
12091 ## ------------------------------------------------ ##
12094 sed "s/^/$as_me: WARNING: /" >&2
12097 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12098 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12099 if test "${ac_cv_header_cthreads_h+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 ac_cv_header_cthreads_h
=$ac_header_preproc
12104 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12105 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12108 if test $ac_cv_header_cthreads_h = yes; then
12109 cat >>confdefs.h
<<\_ACEOF
12110 #define WITH_THREAD 1
12113 cat >>confdefs.h
<<\_ACEOF
12114 #define C_THREADS 1
12118 cat >>confdefs.h
<<\_ACEOF
12119 #define HURD_C_THREADS 1
12122 LIBS
="$LIBS -lthreads"
12123 THREADOBJ
="Python/thread.o"
12126 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12127 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12128 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12129 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12133 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12135 # Is the header compilable?
12136 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12137 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12138 cat >conftest.
$ac_ext <<_ACEOF
12141 cat confdefs.h
>>conftest.
$ac_ext
12142 cat >>conftest.
$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 $ac_includes_default
12145 #include <mach/cthreads.h>
12147 rm -f conftest.
$ac_objext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12149 (eval $ac_compile) 2>conftest.er1
12151 grep -v '^ *+' conftest.er1
>conftest.err
12153 cat conftest.err
>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try
='test -z "$ac_c_werror_flag"
12157 || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try
='test -s conftest.$ac_objext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_header_compiler
=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.
$ac_ext >&5
12174 ac_header_compiler
=no
12176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12178 echo "${ECHO_T}$ac_header_compiler" >&6
12180 # Is the header present?
12181 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12182 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12183 cat >conftest.
$ac_ext <<_ACEOF
12186 cat confdefs.h
>>conftest.
$ac_ext
12187 cat >>conftest.
$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <mach/cthreads.h>
12191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12192 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12194 grep -v '^ *+' conftest.er1
>conftest.err
12196 cat conftest.err
>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } >/dev
/null
; then
12199 if test -s conftest.err
; then
12200 ac_cpp_err
=$ac_c_preproc_warn_flag
12201 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12208 if test -z "$ac_cpp_err"; then
12209 ac_header_preproc
=yes
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.
$ac_ext >&5
12214 ac_header_preproc
=no
12216 rm -f conftest.err conftest.
$ac_ext
12217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12218 echo "${ECHO_T}$ac_header_preproc" >&6
12220 # So? What about this header?
12221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12223 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12224 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12226 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12227 ac_header_preproc
=yes
12230 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12231 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12233 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12235 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12237 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12239 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12241 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12244 ## ------------------------------------------------ ##
12245 ## Report this to http://www.python.org/python-bugs ##
12246 ## ------------------------------------------------ ##
12249 sed "s/^/$as_me: WARNING: /" >&2
12252 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12253 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12254 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12259 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12260 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12263 if test $ac_cv_header_mach_cthreads_h = yes; then
12264 cat >>confdefs.h
<<\_ACEOF
12265 #define WITH_THREAD 1
12268 cat >>confdefs.h
<<\_ACEOF
12269 #define C_THREADS 1
12273 cat >>confdefs.h
<<\_ACEOF
12274 #define MACH_C_THREADS 1
12277 THREADOBJ
="Python/thread.o"
12280 echo "$as_me:$LINENO: checking for --with-pth" >&5
12281 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12283 # Check whether --with-pth or --without-pth was given.
12284 if test "${with_pth+set}" = set; then
12285 withval
="$with_pth"
12286 echo "$as_me:$LINENO: result: $withval" >&5
12287 echo "${ECHO_T}$withval" >&6
12288 cat >>confdefs.h
<<\_ACEOF
12289 #define WITH_THREAD 1
12293 cat >>confdefs.h
<<\_ACEOF
12298 THREADOBJ
="Python/thread.o"
12300 echo "$as_me:$LINENO: result: no" >&5
12301 echo "${ECHO_T}no" >&6
12303 # Just looking for pthread_create in libpthread is not enough:
12304 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12305 # So we really have to include pthread.h, and then link.
12307 LIBS
="$LIBS -lpthread"
12308 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12309 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12310 cat >conftest.
$ac_ext <<_ACEOF
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <pthread.h>
12318 void * start_routine (void *arg) { exit (0); }
12323 pthread_create (NULL, NULL, start_routine, NULL)
12328 rm -f conftest.
$ac_objext conftest
$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>conftest.er1
12332 grep -v '^ *+' conftest.er1
>conftest.err
12334 cat conftest.err
>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try
='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try
='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12351 echo "$as_me:$LINENO: result: yes" >&5
12352 echo "${ECHO_T}yes" >&6
12353 cat >>confdefs.h
<<\_ACEOF
12354 #define WITH_THREAD 1
12358 THREADOBJ
="Python/thread.o"
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.
$ac_ext >&5
12365 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12366 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12367 if test "${ac_cv_func_pthread_detach+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 cat >conftest.
$ac_ext <<_ACEOF
12373 cat confdefs.h
>>conftest.
$ac_ext
12374 cat >>conftest.
$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12378 #define pthread_detach innocuous_pthread_detach
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char pthread_detach (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12386 # include <limits.h>
12388 # include <assert.h>
12391 #undef pthread_detach
12393 /* Override any gcc2 internal prototype to avoid an error. */
12398 /* We use char because int might match the return type of a gcc2
12399 builtin and then its argument prototype would still apply. */
12400 char pthread_detach ();
12401 /* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12407 char (*f) () = pthread_detach;
12416 return f != pthread_detach;
12421 rm -f conftest.
$ac_objext conftest
$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423 (eval $ac_link) 2>conftest.er1
12425 grep -v '^ *+' conftest.er1
>conftest.err
12427 cat conftest.err
>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try
='test -z "$ac_c_werror_flag"
12431 || test ! -s conftest.err'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } &&
12437 { ac_try
='test -s conftest$ac_exeext'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 ac_cv_func_pthread_detach
=yes
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.
$ac_ext >&5
12448 ac_cv_func_pthread_detach
=no
12450 rm -f conftest.err conftest.
$ac_objext \
12451 conftest
$ac_exeext conftest.
$ac_ext
12453 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12454 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12455 if test $ac_cv_func_pthread_detach = yes; then
12456 cat >>confdefs.h
<<\_ACEOF
12457 #define WITH_THREAD 1
12461 THREADOBJ
="Python/thread.o"
12464 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12465 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12466 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12467 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12471 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12473 # Is the header compilable?
12474 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12475 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12476 cat >conftest.
$ac_ext <<_ACEOF
12479 cat confdefs.h
>>conftest.
$ac_ext
12480 cat >>conftest.
$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12483 #include <atheos/threads.h>
12485 rm -f conftest.
$ac_objext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12487 (eval $ac_compile) 2>conftest.er1
12489 grep -v '^ *+' conftest.er1
>conftest.err
12491 cat conftest.err
>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try
='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try
='test -s conftest.$ac_objext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_header_compiler
=yes
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.
$ac_ext >&5
12512 ac_header_compiler
=no
12514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12516 echo "${ECHO_T}$ac_header_compiler" >&6
12518 # Is the header present?
12519 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12520 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12521 cat >conftest.
$ac_ext <<_ACEOF
12524 cat confdefs.h
>>conftest.
$ac_ext
12525 cat >>conftest.
$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <atheos/threads.h>
12529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12532 grep -v '^ *+' conftest.er1
>conftest.err
12534 cat conftest.err
>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } >/dev
/null
; then
12537 if test -s conftest.err
; then
12538 ac_cpp_err
=$ac_c_preproc_warn_flag
12539 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12546 if test -z "$ac_cpp_err"; then
12547 ac_header_preproc
=yes
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.
$ac_ext >&5
12552 ac_header_preproc
=no
12554 rm -f conftest.err conftest.
$ac_ext
12555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12556 echo "${ECHO_T}$ac_header_preproc" >&6
12558 # So? What about this header?
12559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12561 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12562 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12564 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12565 ac_header_preproc
=yes
12568 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12569 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12571 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12573 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12575 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12577 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12579 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12582 ## ------------------------------------------------ ##
12583 ## Report this to http://www.python.org/python-bugs ##
12584 ## ------------------------------------------------ ##
12587 sed "s/^/$as_me: WARNING: /" >&2
12590 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12591 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12592 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12597 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12598 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12601 if test $ac_cv_header_atheos_threads_h = yes; then
12602 cat >>confdefs.h
<<\_ACEOF
12603 #define WITH_THREAD 1
12607 cat >>confdefs.h
<<\_ACEOF
12608 #define ATHEOS_THREADS 1
12611 THREADOBJ
="Python/thread.o"
12614 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12615 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12616 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12617 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12621 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12623 # Is the header compilable?
12624 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12625 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12626 cat >conftest.
$ac_ext <<_ACEOF
12629 cat confdefs.h
>>conftest.
$ac_ext
12630 cat >>conftest.
$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 #include <kernel/OS.h>
12635 rm -f conftest.
$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12639 grep -v '^ *+' conftest.er1
>conftest.err
12641 cat conftest.err
>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try
='test -z "$ac_c_werror_flag"
12645 || test ! -s conftest.err'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try
='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_header_compiler
=yes
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.
$ac_ext >&5
12662 ac_header_compiler
=no
12664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12666 echo "${ECHO_T}$ac_header_compiler" >&6
12668 # Is the header present?
12669 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12670 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12671 cat >conftest.
$ac_ext <<_ACEOF
12674 cat confdefs.h
>>conftest.
$ac_ext
12675 cat >>conftest.
$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 #include <kernel/OS.h>
12679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12682 grep -v '^ *+' conftest.er1
>conftest.err
12684 cat conftest.err
>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } >/dev
/null
; then
12687 if test -s conftest.err
; then
12688 ac_cpp_err
=$ac_c_preproc_warn_flag
12689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12696 if test -z "$ac_cpp_err"; then
12697 ac_header_preproc
=yes
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.
$ac_ext >&5
12702 ac_header_preproc
=no
12704 rm -f conftest.err conftest.
$ac_ext
12705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12706 echo "${ECHO_T}$ac_header_preproc" >&6
12708 # So? What about this header?
12709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12711 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12712 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12714 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12715 ac_header_preproc
=yes
12718 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12719 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12721 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12723 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12725 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12727 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12729 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12732 ## ------------------------------------------------ ##
12733 ## Report this to http://www.python.org/python-bugs ##
12734 ## ------------------------------------------------ ##
12737 sed "s/^/$as_me: WARNING: /" >&2
12740 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12741 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12742 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12747 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12748 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12751 if test $ac_cv_header_kernel_OS_h = yes; then
12752 cat >>confdefs.h
<<\_ACEOF
12753 #define WITH_THREAD 1
12757 cat >>confdefs.h
<<\_ACEOF
12758 #define BEOS_THREADS 1
12761 THREADOBJ
="Python/thread.o"
12764 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12765 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12766 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 ac_check_lib_save_LIBS
=$LIBS
12770 LIBS
="-lpthreads $LIBS"
12771 cat >conftest.
$ac_ext <<_ACEOF
12774 cat confdefs.h
>>conftest.
$ac_ext
12775 cat >>conftest.
$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12778 /* Override any gcc2 internal prototype to avoid an error. */
12782 /* We use char because int might match the return type of a gcc2
12783 builtin and then its argument prototype would still apply. */
12784 char pthread_create ();
12793 rm -f conftest.
$ac_objext conftest
$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795 (eval $ac_link) 2>conftest.er1
12797 grep -v '^ *+' conftest.er1
>conftest.err
12799 cat conftest.err
>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try
='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try
='test -s conftest$ac_exeext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_cv_lib_pthreads_pthread_create
=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.
$ac_ext >&5
12820 ac_cv_lib_pthreads_pthread_create
=no
12822 rm -f conftest.err conftest.
$ac_objext \
12823 conftest
$ac_exeext conftest.
$ac_ext
12824 LIBS
=$ac_check_lib_save_LIBS
12826 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12827 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12828 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12829 cat >>confdefs.h
<<\_ACEOF
12830 #define WITH_THREAD 1
12834 LIBS
="$LIBS -lpthreads"
12835 THREADOBJ
="Python/thread.o"
12838 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12839 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12840 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 ac_check_lib_save_LIBS
=$LIBS
12845 cat >conftest.
$ac_ext <<_ACEOF
12848 cat confdefs.h
>>conftest.
$ac_ext
12849 cat >>conftest.
$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12852 /* Override any gcc2 internal prototype to avoid an error. */
12856 /* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858 char pthread_create ();
12867 rm -f conftest.
$ac_objext conftest
$ac_exeext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869 (eval $ac_link) 2>conftest.er1
12871 grep -v '^ *+' conftest.er1
>conftest.err
12873 cat conftest.err
>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
12876 { ac_try
='test -z "$ac_c_werror_flag"
12877 || test ! -s conftest.err'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try
='test -s conftest$ac_exeext'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 ac_cv_lib_c_r_pthread_create
=yes
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.
$ac_ext >&5
12894 ac_cv_lib_c_r_pthread_create
=no
12896 rm -f conftest.err conftest.
$ac_objext \
12897 conftest
$ac_exeext conftest.
$ac_ext
12898 LIBS
=$ac_check_lib_save_LIBS
12900 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12901 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12902 if test $ac_cv_lib_c_r_pthread_create = yes; then
12903 cat >>confdefs.h
<<\_ACEOF
12904 #define WITH_THREAD 1
12909 THREADOBJ
="Python/thread.o"
12912 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12913 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12914 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 ac_check_lib_save_LIBS
=$LIBS
12918 LIBS
="-lpthread $LIBS"
12919 cat >conftest.
$ac_ext <<_ACEOF
12922 cat confdefs.h
>>conftest.
$ac_ext
12923 cat >>conftest.
$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char __pthread_create_system ();
12936 __pthread_create_system ();
12941 rm -f conftest.
$ac_objext conftest
$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12945 grep -v '^ *+' conftest.er1
>conftest.err
12947 cat conftest.err
>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try
='test -z "$ac_c_werror_flag"
12951 || test ! -s conftest.err'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try
='test -s conftest$ac_exeext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_lib_pthread___pthread_create_system
=yes
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.
$ac_ext >&5
12968 ac_cv_lib_pthread___pthread_create_system
=no
12970 rm -f conftest.err conftest.
$ac_objext \
12971 conftest
$ac_exeext conftest.
$ac_ext
12972 LIBS
=$ac_check_lib_save_LIBS
12974 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12975 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12976 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12977 cat >>confdefs.h
<<\_ACEOF
12978 #define WITH_THREAD 1
12982 LIBS
="$LIBS -lpthread"
12983 THREADOBJ
="Python/thread.o"
12986 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12987 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12988 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 ac_check_lib_save_LIBS
=$LIBS
12993 cat >conftest.
$ac_ext <<_ACEOF
12996 cat confdefs.h
>>conftest.
$ac_ext
12997 cat >>conftest.
$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
13000 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char pthread_create ();
13015 rm -f conftest.
$ac_objext conftest
$ac_exeext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>conftest.er1
13019 grep -v '^ *+' conftest.er1
>conftest.err
13021 cat conftest.err
>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try
='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try
='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_lib_cma_pthread_create
=yes
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.
$ac_ext >&5
13042 ac_cv_lib_cma_pthread_create
=no
13044 rm -f conftest.err conftest.
$ac_objext \
13045 conftest
$ac_exeext conftest.
$ac_ext
13046 LIBS
=$ac_check_lib_save_LIBS
13048 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13049 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13050 if test $ac_cv_lib_cma_pthread_create = yes; then
13051 cat >>confdefs.h
<<\_ACEOF
13052 #define WITH_THREAD 1
13057 THREADOBJ
="Python/thread.o"
13060 USE_THREAD_MODULE
="#"
13079 rm -f conftest.err conftest.
$ac_objext \
13080 conftest
$ac_exeext conftest.
$ac_ext
13089 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13090 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13091 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 ac_check_lib_save_LIBS
=$LIBS
13096 cat >conftest.
$ac_ext <<_ACEOF
13099 cat confdefs.h
>>conftest.
$ac_ext
13100 cat >>conftest.
$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13103 /* Override any gcc2 internal prototype to avoid an error. */
13107 /* We use char because int might match the return type of a gcc2
13108 builtin and then its argument prototype would still apply. */
13118 rm -f conftest.
$ac_objext conftest
$ac_exeext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120 (eval $ac_link) 2>conftest.er1
13122 grep -v '^ *+' conftest.er1
>conftest.err
13124 cat conftest.err
>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try
='test -z "$ac_c_werror_flag"
13128 || test ! -s conftest.err'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; } &&
13134 { ac_try
='test -s conftest$ac_exeext'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 ac_cv_lib_mpc_usconfig
=yes
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.
$ac_ext >&5
13145 ac_cv_lib_mpc_usconfig
=no
13147 rm -f conftest.err conftest.
$ac_objext \
13148 conftest
$ac_exeext conftest.
$ac_ext
13149 LIBS
=$ac_check_lib_save_LIBS
13151 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13152 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13153 if test $ac_cv_lib_mpc_usconfig = yes; then
13154 cat >>confdefs.h
<<\_ACEOF
13155 #define WITH_THREAD 1
13159 THREADOBJ
="Python/thread.o"
13160 USE_THREAD_MODULE
=""
13164 if test "$posix_threads" != "yes"; then
13165 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13166 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13167 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 ac_check_lib_save_LIBS
=$LIBS
13171 LIBS
="-lthread $LIBS"
13172 cat >conftest.
$ac_ext <<_ACEOF
13175 cat confdefs.h
>>conftest.
$ac_ext
13176 cat >>conftest.
$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13179 /* Override any gcc2 internal prototype to avoid an error. */
13183 /* We use char because int might match the return type of a gcc2
13184 builtin and then its argument prototype would still apply. */
13185 char thr_create ();
13194 rm -f conftest.
$ac_objext conftest
$ac_exeext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13196 (eval $ac_link) 2>conftest.er1
13198 grep -v '^ *+' conftest.er1
>conftest.err
13200 cat conftest.err
>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try
='test -z "$ac_c_werror_flag"
13204 || test ! -s conftest.err'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } &&
13210 { ac_try
='test -s conftest$ac_exeext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_lib_thread_thr_create
=yes
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.
$ac_ext >&5
13221 ac_cv_lib_thread_thr_create
=no
13223 rm -f conftest.err conftest.
$ac_objext \
13224 conftest
$ac_exeext conftest.
$ac_ext
13225 LIBS
=$ac_check_lib_save_LIBS
13227 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13228 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13229 if test $ac_cv_lib_thread_thr_create = yes; then
13230 cat >>confdefs.h
<<\_ACEOF
13231 #define WITH_THREAD 1
13234 LIBS
="$LIBS -lthread"
13235 THREADOBJ
="Python/thread.o"
13236 USE_THREAD_MODULE
=""
13241 if test "$USE_THREAD_MODULE" != "#"
13243 # If the above checks didn't disable threads, (at least) OSF1
13244 # needs this '-threads' argument during linking.
13245 case $ac_sys_system in
13246 OSF1
) LDLAST
=-threads;;
13251 if test "$posix_threads" = "yes"; then
13252 if test "$unistd_defines_pthreads" = "no"; then
13254 cat >>confdefs.h
<<\_ACEOF
13255 #define _POSIX_THREADS 1
13260 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13261 case $ac_sys_system/$ac_sys_release in
13263 cat >>confdefs.h
<<\_ACEOF
13264 #define HAVE_PTHREAD_DESTRUCTOR 1
13269 cat >>confdefs.h
<<\_ACEOF
13270 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13276 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13277 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13278 if test "${ac_cv_pthread_system_supported+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 if test "$cross_compiling" = yes; then
13282 ac_cv_pthread_system_supported
=no
13284 cat >conftest.
$ac_ext <<_ACEOF
13287 cat confdefs.h
>>conftest.
$ac_ext
13288 cat >>conftest.
$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 #include <pthread.h>
13291 void *foo(void *parm) {
13295 pthread_attr_t attr;
13297 if (pthread_attr_init(&attr)) exit(-1);
13298 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13299 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13303 rm -f conftest
$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_pthread_system_supported
=yes
13316 echo "$as_me: program exited with status $ac_status" >&5
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.
$ac_ext >&5
13320 ( exit $ac_status )
13321 ac_cv_pthread_system_supported
=no
13323 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13328 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13329 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13330 if test "$ac_cv_pthread_system_supported" = "yes"; then
13332 cat >>confdefs.h
<<\_ACEOF
13333 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13338 for ac_func
in pthread_sigmask
13340 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13341 echo "$as_me:$LINENO: checking for $ac_func" >&5
13342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13343 if eval "test \"\${$as_ac_var+set}\" = set"; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 cat >conftest.
$ac_ext <<_ACEOF
13349 cat confdefs.h
>>conftest.
$ac_ext
13350 cat >>conftest.
$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13354 #define $ac_func innocuous_$ac_func
13356 /* System header to define __stub macros and hopefully few prototypes,
13357 which can conflict with char $ac_func (); below.
13358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13359 <limits.h> exists even on freestanding compilers. */
13362 # include <limits.h>
13364 # include <assert.h>
13369 /* Override any gcc2 internal prototype to avoid an error. */
13374 /* We use char because int might match the return type of a gcc2
13375 builtin and then its argument prototype would still apply. */
13377 /* The GNU C library defines this for functions which it implements
13378 to always fail with ENOSYS. Some functions are actually named
13379 something starting with __ and the normal name is an alias. */
13380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13383 char (*f) () = $ac_func;
13392 return f != $ac_func;
13397 rm -f conftest.
$ac_objext conftest
$ac_exeext
13398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13399 (eval $ac_link) 2>conftest.er1
13401 grep -v '^ *+' conftest.er1
>conftest.err
13403 cat conftest.err
>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try
='test -z "$ac_c_werror_flag"
13407 || test ! -s conftest.err'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try
='test -s conftest$ac_exeext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 eval "$as_ac_var=yes"
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.
$ac_ext >&5
13424 eval "$as_ac_var=no"
13426 rm -f conftest.err conftest.
$ac_objext \
13427 conftest
$ac_exeext conftest.
$ac_ext
13429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13431 if test `eval echo '${'$as_ac_var'}'` = yes; then
13432 cat >>confdefs.h
<<_ACEOF
13433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13435 case $ac_sys_system in
13438 cat >>confdefs.h
<<\_ACEOF
13439 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13450 # Check for enable-ipv6
13453 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13454 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13455 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13456 if test "${enable_ipv6+set}" = set; then
13457 enableval
="$enable_ipv6"
13458 case "$enableval" in
13460 echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6
13464 *) echo "$as_me:$LINENO: result: yes" >&5
13465 echo "${ECHO_T}yes" >&6
13466 cat >>confdefs.h
<<\_ACEOF
13467 #define ENABLE_IPV6 1
13475 if test "$cross_compiling" = yes; then
13476 echo "$as_me:$LINENO: result: no" >&5
13477 echo "${ECHO_T}no" >&6
13481 cat >conftest.
$ac_ext <<_ACEOF
13484 cat confdefs.h
>>conftest.
$ac_ext
13485 cat >>conftest.
$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 /* AF_INET6 available check */
13488 #include <sys/types.h>
13489 #include <sys/socket.h>
13492 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13499 rm -f conftest
$ac_exeext
13500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501 (eval $ac_link) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 echo "$as_me:$LINENO: result: yes" >&5
13511 echo "${ECHO_T}yes" >&6
13514 echo "$as_me: program exited with status $ac_status" >&5
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.
$ac_ext >&5
13518 ( exit $ac_status )
13519 echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6
13523 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13526 if test "$ipv6" = "yes"; then
13527 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13528 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13529 cat >conftest.
$ac_ext <<_ACEOF
13532 cat confdefs.h
>>conftest.
$ac_ext
13533 cat >>conftest.
$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535 #include <sys/types.h>
13536 #include <netinet/in.h>
13540 struct sockaddr_in6 x;
13546 rm -f conftest.
$ac_objext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13548 (eval $ac_compile) 2>conftest.er1
13550 grep -v '^ *+' conftest.er1
>conftest.err
13552 cat conftest.err
>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try
='test -z "$ac_c_werror_flag"
13556 || test ! -s conftest.err'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try
='test -s conftest.$ac_objext'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 echo "$as_me:$LINENO: result: yes" >&5
13569 echo "${ECHO_T}yes" >&6
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.
$ac_ext >&5
13575 echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13582 if test "$ipv6" = "yes"; then
13583 cat >>confdefs.h
<<\_ACEOF
13584 #define ENABLE_IPV6 1
13595 if test "$ipv6" = "yes"; then
13596 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13597 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13598 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13602 cat >conftest.
$ac_ext <<_ACEOF
13605 cat confdefs.h
>>conftest.
$ac_ext
13606 cat >>conftest.
$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13609 #include <netinet/in.h>
13610 #ifdef IPV6_INRIA_VERSION
13614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13615 $EGREP "yes" >/dev
/null
2>&1; then
13622 cat >conftest.
$ac_ext <<_ACEOF
13625 cat confdefs.h
>>conftest.
$ac_ext
13626 cat >>conftest.
$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13629 #include <netinet/in.h>
13634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13635 $EGREP "yes" >/dev
/null
2>&1; then
13638 ipv6libdir
=/usr
/local
/v
6/lib
13645 cat >conftest.
$ac_ext <<_ACEOF
13648 cat confdefs.h
>>conftest.
$ac_ext
13649 cat >>conftest.
$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13652 #include <features.h>
13653 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13658 $EGREP "yes" >/dev
/null
2>&1; then
13666 if test -d /usr
/inet6
; then
13669 ipv6libdir
=/usr
/inet
6/lib
13670 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13674 if test -f /etc
/netconfig
; then
13675 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13682 cat >conftest.
$ac_ext <<_ACEOF
13685 cat confdefs.h
>>conftest.
$ac_ext
13686 cat >>conftest.
$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13689 #include <sys/param.h>
13690 #ifdef _TOSHIBA_INET6
13694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695 $EGREP "yes" >/dev
/null
2>&1; then
13698 ipv6libdir
=/usr
/local
/v
6/lib
13704 cat >conftest.
$ac_ext <<_ACEOF
13707 cat confdefs.h
>>conftest.
$ac_ext
13708 cat >>conftest.
$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 #include </usr/local/v6/include/sys/v6config.h>
13716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13717 $EGREP "yes" >/dev
/null
2>&1; then
13720 ipv6libdir
=/usr
/local
/v
6/lib
;
13721 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13727 cat >conftest.
$ac_ext <<_ACEOF
13730 cat confdefs.h
>>conftest.
$ac_ext
13731 cat >>conftest.
$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13734 #include <sys/param.h>
13735 #ifdef _ZETA_MINAMI_INET6
13739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13740 $EGREP "yes" >/dev
/null
2>&1; then
13743 ipv6libdir
=/usr
/local
/v
6/lib
13749 if test "$ipv6type" != "unknown"; then
13753 echo "$as_me:$LINENO: result: $ipv6type" >&5
13754 echo "${ECHO_T}$ipv6type" >&6
13757 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13758 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13759 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13760 echo "using lib$ipv6lib"
13762 if test $ipv6trylibc = "yes"; then
13765 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13766 echo "You need to fetch lib$ipv6lib.a from appropriate"
13767 echo 'ipv6 kit and compile beforehand.'
13773 # Check for --with-doc-strings
13774 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13775 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13777 # Check whether --with-doc-strings or --without-doc-strings was given.
13778 if test "${with_doc_strings+set}" = set; then
13779 withval
="$with_doc_strings"
13783 if test -z "$with_doc_strings"
13784 then with_doc_strings
="yes"
13786 if test "$with_doc_strings" != "no"
13789 cat >>confdefs.h
<<\_ACEOF
13790 #define WITH_DOC_STRINGS 1
13794 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13795 echo "${ECHO_T}$with_doc_strings" >&6
13797 # Check for Python-specific malloc support
13798 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13799 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13801 # Check whether --with-tsc or --without-tsc was given.
13802 if test "${with_tsc+set}" = set; then
13803 withval
="$with_tsc"
13805 if test "$withval" != no
13808 cat >>confdefs.h
<<\_ACEOF
13812 echo "$as_me:$LINENO: result: yes" >&5
13813 echo "${ECHO_T}yes" >&6
13814 else echo "$as_me:$LINENO: result: no" >&5
13815 echo "${ECHO_T}no" >&6
13818 echo "$as_me:$LINENO: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13822 # Check for Python-specific malloc support
13823 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13824 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13826 # Check whether --with-pymalloc or --without-pymalloc was given.
13827 if test "${with_pymalloc+set}" = set; then
13828 withval
="$with_pymalloc"
13832 if test -z "$with_pymalloc"
13833 then with_pymalloc
="yes"
13835 if test "$with_pymalloc" != "no"
13838 cat >>confdefs.h
<<\_ACEOF
13839 #define WITH_PYMALLOC 1
13843 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13844 echo "${ECHO_T}$with_pymalloc" >&6
13846 # Check for --with-wctype-functions
13847 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13848 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13850 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13851 if test "${with_wctype_functions+set}" = set; then
13852 withval
="$with_wctype_functions"
13854 if test "$withval" != no
13857 cat >>confdefs.h
<<\_ACEOF
13858 #define WANT_WCTYPE_FUNCTIONS 1
13861 echo "$as_me:$LINENO: result: yes" >&5
13862 echo "${ECHO_T}yes" >&6
13863 else echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6
13867 echo "$as_me:$LINENO: result: no" >&5
13868 echo "${ECHO_T}no" >&6
13871 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13875 # the dlopen() function means we might want to use dynload_shlib.o. some
13876 # platforms, such as AIX, have dlopen(), but don't want to use it.
13878 for ac_func
in dlopen
13880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13881 echo "$as_me:$LINENO: checking for $ac_func" >&5
13882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13883 if eval "test \"\${$as_ac_var+set}\" = set"; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 cat >conftest.
$ac_ext <<_ACEOF
13889 cat confdefs.h
>>conftest.
$ac_ext
13890 cat >>conftest.
$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13894 #define $ac_func innocuous_$ac_func
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char $ac_func (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
13902 # include <limits.h>
13904 # include <assert.h>
13909 /* Override any gcc2 internal prototype to avoid an error. */
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13917 /* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13923 char (*f) () = $ac_func;
13932 return f != $ac_func;
13937 rm -f conftest.
$ac_objext conftest
$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>conftest.er1
13941 grep -v '^ *+' conftest.er1
>conftest.err
13943 cat conftest.err
>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try
='test -z "$ac_c_werror_flag"
13947 || test ! -s conftest.err'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try
='test -s conftest$ac_exeext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 eval "$as_ac_var=yes"
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.
$ac_ext >&5
13964 eval "$as_ac_var=no"
13966 rm -f conftest.err conftest.
$ac_objext \
13967 conftest
$ac_exeext conftest.
$ac_ext
13969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13971 if test `eval echo '${'$as_ac_var'}'` = yes; then
13972 cat >>confdefs.h
<<_ACEOF
13973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13980 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13981 # loading of modules.
13983 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13984 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13985 if test -z "$DYNLOADFILE"
13987 case $ac_sys_system/$ac_sys_release in
13988 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13989 if test "$ac_cv_func_dlopen" = yes
13990 then DYNLOADFILE
="dynload_shlib.o"
13991 else DYNLOADFILE
="dynload_aix.o"
13994 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
13995 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
13996 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
13997 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
13998 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14000 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14001 # out any dynamic loading
14002 if test "$ac_cv_func_dlopen" = yes
14003 then DYNLOADFILE
="dynload_shlib.o"
14004 else DYNLOADFILE
="dynload_stub.o"
14009 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14010 echo "${ECHO_T}$DYNLOADFILE" >&6
14011 if test "$DYNLOADFILE" != "dynload_stub.o"
14014 cat >>confdefs.h
<<\_ACEOF
14015 #define HAVE_DYNAMIC_LOADING 1
14020 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14023 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14024 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14025 if test -z "$MACHDEP_OBJS"
14027 MACHDEP_OBJS
=$extra_machdep_objs
14029 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14031 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14032 echo "${ECHO_T}MACHDEP_OBJS" >&6
14034 # checks for library functions
14111 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14112 execv fork fpathconf ftime ftruncate \
14113 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14114 getpriority getpwent getspnam getspent getsid getwd \
14115 kill killpg lchown lstat
mkfifo mknod mktime \
14116 mremap nice pathconf pause plock poll pthread_init \
14117 putenv readlink realpath \
14118 select setegid seteuid setgid \
14119 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14120 sigaction siginterrupt sigrelse strftime \
14121 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14122 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14124 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14125 echo "$as_me:$LINENO: checking for $ac_func" >&5
14126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14127 if eval "test \"\${$as_ac_var+set}\" = set"; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 cat >conftest.
$ac_ext <<_ACEOF
14133 cat confdefs.h
>>conftest.
$ac_ext
14134 cat >>conftest.
$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14138 #define $ac_func innocuous_$ac_func
14140 /* System header to define __stub macros and hopefully few prototypes,
14141 which can conflict with char $ac_func (); below.
14142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14143 <limits.h> exists even on freestanding compilers. */
14146 # include <limits.h>
14148 # include <assert.h>
14153 /* Override any gcc2 internal prototype to avoid an error. */
14158 /* We use char because int might match the return type of a gcc2
14159 builtin and then its argument prototype would still apply. */
14161 /* The GNU C library defines this for functions which it implements
14162 to always fail with ENOSYS. Some functions are actually named
14163 something starting with __ and the normal name is an alias. */
14164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14167 char (*f) () = $ac_func;
14176 return f != $ac_func;
14181 rm -f conftest.
$ac_objext conftest
$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>conftest.er1
14185 grep -v '^ *+' conftest.er1
>conftest.err
14187 cat conftest.err
>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try
='test -z "$ac_c_werror_flag"
14191 || test ! -s conftest.err'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try
='test -s conftest$ac_exeext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 eval "$as_ac_var=yes"
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.
$ac_ext >&5
14208 eval "$as_ac_var=no"
14210 rm -f conftest.err conftest.
$ac_objext \
14211 conftest
$ac_exeext conftest.
$ac_ext
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14215 if test `eval echo '${'$as_ac_var'}'` = yes; then
14216 cat >>confdefs.h
<<_ACEOF
14217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14224 # For some functions, having a definition is not sufficient, since
14225 # we want to take their address.
14226 echo "$as_me:$LINENO: checking for chroot" >&5
14227 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14228 cat >conftest.
$ac_ext <<_ACEOF
14231 cat confdefs.h
>>conftest.
$ac_ext
14232 cat >>conftest.
$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 #include <unistd.h>
14243 rm -f conftest.
$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>conftest.er1
14247 grep -v '^ *+' conftest.er1
>conftest.err
14249 cat conftest.err
>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
14252 { ac_try
='test -z "$ac_c_werror_flag"
14253 || test ! -s conftest.err'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try
='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14266 cat >>confdefs.h
<<\_ACEOF
14267 #define HAVE_CHROOT 1
14270 echo "$as_me:$LINENO: result: yes" >&5
14271 echo "${ECHO_T}yes" >&6
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.
$ac_ext >&5
14276 echo "$as_me:$LINENO: result: no" >&5
14277 echo "${ECHO_T}no" >&6
14280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14281 echo "$as_me:$LINENO: checking for link" >&5
14282 echo $ECHO_N "checking for link... $ECHO_C" >&6
14283 cat >conftest.
$ac_ext <<_ACEOF
14286 cat confdefs.h
>>conftest.
$ac_ext
14287 cat >>conftest.
$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 #include <unistd.h>
14298 rm -f conftest.
$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>conftest.er1
14302 grep -v '^ *+' conftest.er1
>conftest.err
14304 cat conftest.err
>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try
='test -z "$ac_c_werror_flag"
14308 || test ! -s conftest.err'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; } &&
14314 { ac_try
='test -s conftest.$ac_objext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14321 cat >>confdefs.h
<<\_ACEOF
14322 #define HAVE_LINK 1
14325 echo "$as_me:$LINENO: result: yes" >&5
14326 echo "${ECHO_T}yes" >&6
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.
$ac_ext >&5
14331 echo "$as_me:$LINENO: result: no" >&5
14332 echo "${ECHO_T}no" >&6
14335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14336 echo "$as_me:$LINENO: checking for symlink" >&5
14337 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14338 cat >conftest.
$ac_ext <<_ACEOF
14341 cat confdefs.h
>>conftest.
$ac_ext
14342 cat >>conftest.
$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <unistd.h>
14353 rm -f conftest.
$ac_objext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355 (eval $ac_compile) 2>conftest.er1
14357 grep -v '^ *+' conftest.er1
>conftest.err
14359 cat conftest.err
>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try
='test -z "$ac_c_werror_flag"
14363 || test ! -s conftest.err'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; } &&
14369 { ac_try
='test -s conftest.$ac_objext'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14376 cat >>confdefs.h
<<\_ACEOF
14377 #define HAVE_SYMLINK 1
14380 echo "$as_me:$LINENO: result: yes" >&5
14381 echo "${ECHO_T}yes" >&6
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.
$ac_ext >&5
14386 echo "$as_me:$LINENO: result: no" >&5
14387 echo "${ECHO_T}no" >&6
14390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14391 echo "$as_me:$LINENO: checking for fchdir" >&5
14392 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14393 cat >conftest.
$ac_ext <<_ACEOF
14396 cat confdefs.h
>>conftest.
$ac_ext
14397 cat >>conftest.
$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 #include <unistd.h>
14408 rm -f conftest.
$ac_objext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14410 (eval $ac_compile) 2>conftest.er1
14412 grep -v '^ *+' conftest.er1
>conftest.err
14414 cat conftest.err
>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try
='test -z "$ac_c_werror_flag"
14418 || test ! -s conftest.err'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try
='test -s conftest.$ac_objext'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14431 cat >>confdefs.h
<<\_ACEOF
14432 #define HAVE_FCHDIR 1
14435 echo "$as_me:$LINENO: result: yes" >&5
14436 echo "${ECHO_T}yes" >&6
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.
$ac_ext >&5
14441 echo "$as_me:$LINENO: result: no" >&5
14442 echo "${ECHO_T}no" >&6
14445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14446 echo "$as_me:$LINENO: checking for fsync" >&5
14447 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14448 cat >conftest.
$ac_ext <<_ACEOF
14451 cat confdefs.h
>>conftest.
$ac_ext
14452 cat >>conftest.
$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 #include <unistd.h>
14463 rm -f conftest.
$ac_objext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465 (eval $ac_compile) 2>conftest.er1
14467 grep -v '^ *+' conftest.er1
>conftest.err
14469 cat conftest.err
>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try
='test -z "$ac_c_werror_flag"
14473 || test ! -s conftest.err'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try
='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14486 cat >>confdefs.h
<<\_ACEOF
14487 #define HAVE_FSYNC 1
14490 echo "$as_me:$LINENO: result: yes" >&5
14491 echo "${ECHO_T}yes" >&6
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.
$ac_ext >&5
14496 echo "$as_me:$LINENO: result: no" >&5
14497 echo "${ECHO_T}no" >&6
14500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14501 echo "$as_me:$LINENO: checking for fdatasync" >&5
14502 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14503 cat >conftest.
$ac_ext <<_ACEOF
14506 cat confdefs.h
>>conftest.
$ac_ext
14507 cat >>conftest.
$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 #include <unistd.h>
14518 rm -f conftest.
$ac_objext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520 (eval $ac_compile) 2>conftest.er1
14522 grep -v '^ *+' conftest.er1
>conftest.err
14524 cat conftest.err
>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try
='test -z "$ac_c_werror_flag"
14528 || test ! -s conftest.err'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try
='test -s conftest.$ac_objext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14541 cat >>confdefs.h
<<\_ACEOF
14542 #define HAVE_FDATASYNC 1
14545 echo "$as_me:$LINENO: result: yes" >&5
14546 echo "${ECHO_T}yes" >&6
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.
$ac_ext >&5
14551 echo "$as_me:$LINENO: result: no" >&5
14552 echo "${ECHO_T}no" >&6
14555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14557 # On some systems (eg. FreeBSD 5), we would find a definition of the
14558 # functions ctermid_r, setgroups in the library, but no prototype
14559 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14560 # address to avoid compiler warnings and potential miscompilations
14561 # because of the missing prototypes.
14563 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14564 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14565 cat >conftest.
$ac_ext <<_ACEOF
14568 cat confdefs.h
>>conftest.
$ac_ext
14569 cat >>conftest.
$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14572 #include "confdefs.h"
14578 void* p = ctermid_r
14583 rm -f conftest.
$ac_objext
14584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14585 (eval $ac_compile) 2>conftest.er1
14587 grep -v '^ *+' conftest.er1
>conftest.err
14589 cat conftest.err
>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try
='test -z "$ac_c_werror_flag"
14593 || test ! -s conftest.err'
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; } &&
14599 { ac_try
='test -s conftest.$ac_objext'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14606 cat >>confdefs.h
<<\_ACEOF
14607 #define HAVE_CTERMID_R 1
14610 echo "$as_me:$LINENO: result: yes" >&5
14611 echo "${ECHO_T}yes" >&6
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.
$ac_ext >&5
14616 echo "$as_me:$LINENO: result: no" >&5
14617 echo "${ECHO_T}no" >&6
14620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14622 echo "$as_me:$LINENO: checking for flock" >&5
14623 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14624 cat >conftest.
$ac_ext <<_ACEOF
14627 cat confdefs.h
>>conftest.
$ac_ext
14628 cat >>conftest.
$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14631 #include "confdefs.h"
14632 #include <sys/file.h>
14642 rm -f conftest.
$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>conftest.er1
14646 grep -v '^ *+' conftest.er1
>conftest.err
14648 cat conftest.err
>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try
='test -z "$ac_c_werror_flag"
14652 || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try
='test -s conftest.$ac_objext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14665 cat >>confdefs.h
<<\_ACEOF
14666 #define HAVE_FLOCK 1
14669 echo "$as_me:$LINENO: result: yes" >&5
14670 echo "${ECHO_T}yes" >&6
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.
$ac_ext >&5
14675 echo "$as_me:$LINENO: result: no" >&5
14676 echo "${ECHO_T}no" >&6
14679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14681 echo "$as_me:$LINENO: checking for getpagesize" >&5
14682 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14683 cat >conftest.
$ac_ext <<_ACEOF
14686 cat confdefs.h
>>conftest.
$ac_ext
14687 cat >>conftest.
$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14690 #include "confdefs.h"
14691 #include <unistd.h>
14696 void* p = getpagesize
14701 rm -f conftest.
$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>conftest.er1
14705 grep -v '^ *+' conftest.er1
>conftest.err
14707 cat conftest.err
>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try
='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try
='test -s conftest.$ac_objext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14724 cat >>confdefs.h
<<\_ACEOF
14725 #define HAVE_GETPAGESIZE 1
14728 echo "$as_me:$LINENO: result: yes" >&5
14729 echo "${ECHO_T}yes" >&6
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.
$ac_ext >&5
14734 echo "$as_me:$LINENO: result: no" >&5
14735 echo "${ECHO_T}no" >&6
14738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14740 for ac_prog
in true
14742 # Extract the first word of "$ac_prog", so it can be a program name with args.
14743 set dummy
$ac_prog; ac_word
=$2
14744 echo "$as_me:$LINENO: checking for $ac_word" >&5
14745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14746 if test "${ac_cv_prog_TRUE+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 if test -n "$TRUE"; then
14750 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14753 for as_dir
in $PATH
14756 test -z "$as_dir" && as_dir
=.
14757 for ac_exec_ext
in '' $ac_executable_extensions; do
14758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14759 ac_cv_prog_TRUE
="$ac_prog"
14760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14768 TRUE
=$ac_cv_prog_TRUE
14769 if test -n "$TRUE"; then
14770 echo "$as_me:$LINENO: result: $TRUE" >&5
14771 echo "${ECHO_T}$TRUE" >&6
14773 echo "$as_me:$LINENO: result: no" >&5
14774 echo "${ECHO_T}no" >&6
14777 test -n "$TRUE" && break
14779 test -n "$TRUE" || TRUE
="/bin/true"
14782 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14783 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14784 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 ac_check_lib_save_LIBS
=$LIBS
14789 cat >conftest.
$ac_ext <<_ACEOF
14792 cat confdefs.h
>>conftest.
$ac_ext
14793 cat >>conftest.
$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14796 /* Override any gcc2 internal prototype to avoid an error. */
14800 /* We use char because int might match the return type of a gcc2
14801 builtin and then its argument prototype would still apply. */
14811 rm -f conftest.
$ac_objext conftest
$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>conftest.er1
14815 grep -v '^ *+' conftest.er1
>conftest.err
14817 cat conftest.err
>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try
='test -z "$ac_c_werror_flag"
14821 || test ! -s conftest.err'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; } &&
14827 { ac_try
='test -s conftest$ac_exeext'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_cv_lib_c_inet_aton
=yes
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.
$ac_ext >&5
14838 ac_cv_lib_c_inet_aton
=no
14840 rm -f conftest.err conftest.
$ac_objext \
14841 conftest
$ac_exeext conftest.
$ac_ext
14842 LIBS
=$ac_check_lib_save_LIBS
14844 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14845 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14846 if test $ac_cv_lib_c_inet_aton = yes; then
14850 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14851 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14852 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 ac_check_lib_save_LIBS
=$LIBS
14856 LIBS
="-lresolv $LIBS"
14857 cat >conftest.
$ac_ext <<_ACEOF
14860 cat confdefs.h
>>conftest.
$ac_ext
14861 cat >>conftest.
$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14864 /* Override any gcc2 internal prototype to avoid an error. */
14868 /* We use char because int might match the return type of a gcc2
14869 builtin and then its argument prototype would still apply. */
14879 rm -f conftest.
$ac_objext conftest
$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>conftest.er1
14883 grep -v '^ *+' conftest.er1
>conftest.err
14885 cat conftest.err
>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try
='test -z "$ac_c_werror_flag"
14889 || test ! -s conftest.err'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; } &&
14895 { ac_try
='test -s conftest$ac_exeext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_lib_resolv_inet_aton
=yes
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.
$ac_ext >&5
14906 ac_cv_lib_resolv_inet_aton
=no
14908 rm -f conftest.err conftest.
$ac_objext \
14909 conftest
$ac_exeext conftest.
$ac_ext
14910 LIBS
=$ac_check_lib_save_LIBS
14912 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14913 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14914 if test $ac_cv_lib_resolv_inet_aton = yes; then
14915 cat >>confdefs.h
<<_ACEOF
14916 #define HAVE_LIBRESOLV 1
14919 LIBS
="-lresolv $LIBS"
14927 echo "$as_me:$LINENO: checking for hstrerror" >&5
14928 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14929 cat >conftest.
$ac_ext <<_ACEOF
14932 cat confdefs.h
>>conftest.
$ac_ext
14933 cat >>conftest.
$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14936 #include "confdefs.h"
14942 void* p = hstrerror; hstrerror(0)
14947 rm -f conftest.
$ac_objext conftest
$ac_exeext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14949 (eval $ac_link) 2>conftest.er1
14951 grep -v '^ *+' conftest.er1
>conftest.err
14953 cat conftest.err
>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try
='test -z "$ac_c_werror_flag"
14957 || test ! -s conftest.err'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; } &&
14963 { ac_try
='test -s conftest$ac_exeext'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14970 cat >>confdefs.h
<<\_ACEOF
14971 #define HAVE_HSTRERROR 1
14974 echo "$as_me:$LINENO: result: yes" >&5
14975 echo "${ECHO_T}yes" >&6
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.
$ac_ext >&5
14980 echo "$as_me:$LINENO: result: no" >&5
14981 echo "${ECHO_T}no" >&6
14984 rm -f conftest.err conftest.
$ac_objext \
14985 conftest
$ac_exeext conftest.
$ac_ext
14987 echo "$as_me:$LINENO: checking for inet_aton" >&5
14988 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14989 cat >conftest.
$ac_ext <<_ACEOF
14992 cat confdefs.h
>>conftest.
$ac_ext
14993 cat >>conftest.
$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14996 #include "confdefs.h"
14997 #include <sys/types.h>
14998 #include <sys/socket.h>
14999 #include <netinet/in.h>
15000 #include <arpa/inet.h>
15005 void* p = inet_aton;inet_aton(0,0)
15010 rm -f conftest.
$ac_objext conftest
$ac_exeext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012 (eval $ac_link) 2>conftest.er1
15014 grep -v '^ *+' conftest.er1
>conftest.err
15016 cat conftest.err
>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try
='test -z "$ac_c_werror_flag"
15020 || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try
='test -s conftest$ac_exeext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15033 cat >>confdefs.h
<<\_ACEOF
15034 #define HAVE_INET_ATON 1
15037 echo "$as_me:$LINENO: result: yes" >&5
15038 echo "${ECHO_T}yes" >&6
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.
$ac_ext >&5
15043 echo "$as_me:$LINENO: result: no" >&5
15044 echo "${ECHO_T}no" >&6
15047 rm -f conftest.err conftest.
$ac_objext \
15048 conftest
$ac_exeext conftest.
$ac_ext
15050 echo "$as_me:$LINENO: checking for inet_pton" >&5
15051 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15052 cat >conftest.
$ac_ext <<_ACEOF
15055 cat confdefs.h
>>conftest.
$ac_ext
15056 cat >>conftest.
$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15059 #include "confdefs.h"
15060 #include <sys/types.h>
15061 #include <sys/socket.h>
15062 #include <netinet/in.h>
15063 #include <arpa/inet.h>
15068 void* p = inet_pton
15073 rm -f conftest.
$ac_objext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075 (eval $ac_compile) 2>conftest.er1
15077 grep -v '^ *+' conftest.er1
>conftest.err
15079 cat conftest.err
>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try
='test -z "$ac_c_werror_flag"
15083 || test ! -s conftest.err'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try
='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15096 cat >>confdefs.h
<<\_ACEOF
15097 #define HAVE_INET_PTON 1
15100 echo "$as_me:$LINENO: result: yes" >&5
15101 echo "${ECHO_T}yes" >&6
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.
$ac_ext >&5
15106 echo "$as_me:$LINENO: result: no" >&5
15107 echo "${ECHO_T}no" >&6
15110 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15112 # On some systems, setgroups is in unistd.h, on others, in grp.h
15113 echo "$as_me:$LINENO: checking for setgroups" >&5
15114 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15115 cat >conftest.
$ac_ext <<_ACEOF
15118 cat confdefs.h
>>conftest.
$ac_ext
15119 cat >>conftest.
$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15122 #include "confdefs.h"
15123 #include <unistd.h>
15131 void* p = setgroups
15136 rm -f conftest.
$ac_objext
15137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15138 (eval $ac_compile) 2>conftest.er1
15140 grep -v '^ *+' conftest.er1
>conftest.err
15142 cat conftest.err
>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try
='test -z "$ac_c_werror_flag"
15146 || test ! -s conftest.err'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try
='test -s conftest.$ac_objext'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15159 cat >>confdefs.h
<<\_ACEOF
15160 #define HAVE_SETGROUPS 1
15163 echo "$as_me:$LINENO: result: yes" >&5
15164 echo "${ECHO_T}yes" >&6
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.
$ac_ext >&5
15169 echo "$as_me:$LINENO: result: no" >&5
15170 echo "${ECHO_T}no" >&6
15173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15175 # check for openpty and forkpty
15178 for ac_func
in openpty
15180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15181 echo "$as_me:$LINENO: checking for $ac_func" >&5
15182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15183 if eval "test \"\${$as_ac_var+set}\" = set"; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 cat >conftest.
$ac_ext <<_ACEOF
15189 cat confdefs.h
>>conftest.
$ac_ext
15190 cat >>conftest.
$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15194 #define $ac_func innocuous_$ac_func
15196 /* System header to define __stub macros and hopefully few prototypes,
15197 which can conflict with char $ac_func (); below.
15198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15199 <limits.h> exists even on freestanding compilers. */
15202 # include <limits.h>
15204 # include <assert.h>
15209 /* Override any gcc2 internal prototype to avoid an error. */
15214 /* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15217 /* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15223 char (*f) () = $ac_func;
15232 return f != $ac_func;
15237 rm -f conftest.
$ac_objext conftest
$ac_exeext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15239 (eval $ac_link) 2>conftest.er1
15241 grep -v '^ *+' conftest.er1
>conftest.err
15243 cat conftest.err
>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try
='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try
='test -s conftest$ac_exeext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 eval "$as_ac_var=yes"
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.
$ac_ext >&5
15264 eval "$as_ac_var=no"
15266 rm -f conftest.err conftest.
$ac_objext \
15267 conftest
$ac_exeext conftest.
$ac_ext
15269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15271 if test `eval echo '${'$as_ac_var'}'` = yes; then
15272 cat >>confdefs.h
<<_ACEOF
15273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15277 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15278 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15279 if test "${ac_cv_lib_util_openpty+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 ac_check_lib_save_LIBS
=$LIBS
15283 LIBS
="-lutil $LIBS"
15284 cat >conftest.
$ac_ext <<_ACEOF
15287 cat confdefs.h
>>conftest.
$ac_ext
15288 cat >>conftest.
$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15291 /* Override any gcc2 internal prototype to avoid an error. */
15295 /* We use char because int might match the return type of a gcc2
15296 builtin and then its argument prototype would still apply. */
15306 rm -f conftest.
$ac_objext conftest
$ac_exeext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15308 (eval $ac_link) 2>conftest.er1
15310 grep -v '^ *+' conftest.er1
>conftest.err
15312 cat conftest.err
>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } &&
15315 { ac_try
='test -z "$ac_c_werror_flag"
15316 || test ! -s conftest.err'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try
='test -s conftest$ac_exeext'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_cv_lib_util_openpty
=yes
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.
$ac_ext >&5
15333 ac_cv_lib_util_openpty
=no
15335 rm -f conftest.err conftest.
$ac_objext \
15336 conftest
$ac_exeext conftest.
$ac_ext
15337 LIBS
=$ac_check_lib_save_LIBS
15339 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15340 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15341 if test $ac_cv_lib_util_openpty = yes; then
15342 cat >>confdefs.h
<<\_ACEOF
15343 #define HAVE_OPENPTY 1
15345 LIBS
="$LIBS -lutil"
15347 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15348 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15349 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 ac_check_lib_save_LIBS
=$LIBS
15354 cat >conftest.
$ac_ext <<_ACEOF
15357 cat confdefs.h
>>conftest.
$ac_ext
15358 cat >>conftest.
$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15361 /* Override any gcc2 internal prototype to avoid an error. */
15365 /* We use char because int might match the return type of a gcc2
15366 builtin and then its argument prototype would still apply. */
15376 rm -f conftest.
$ac_objext conftest
$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378 (eval $ac_link) 2>conftest.er1
15380 grep -v '^ *+' conftest.er1
>conftest.err
15382 cat conftest.err
>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try
='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try
='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_lib_bsd_openpty
=yes
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.
$ac_ext >&5
15403 ac_cv_lib_bsd_openpty
=no
15405 rm -f conftest.err conftest.
$ac_objext \
15406 conftest
$ac_exeext conftest.
$ac_ext
15407 LIBS
=$ac_check_lib_save_LIBS
15409 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15410 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15411 if test $ac_cv_lib_bsd_openpty = yes; then
15412 cat >>confdefs.h
<<\_ACEOF
15413 #define HAVE_OPENPTY 1
15426 for ac_func
in forkpty
15428 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15429 echo "$as_me:$LINENO: checking for $ac_func" >&5
15430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15431 if eval "test \"\${$as_ac_var+set}\" = set"; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 cat >conftest.
$ac_ext <<_ACEOF
15437 cat confdefs.h
>>conftest.
$ac_ext
15438 cat >>conftest.
$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15442 #define $ac_func innocuous_$ac_func
15444 /* System header to define __stub macros and hopefully few prototypes,
15445 which can conflict with char $ac_func (); below.
15446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15447 <limits.h> exists even on freestanding compilers. */
15450 # include <limits.h>
15452 # include <assert.h>
15457 /* Override any gcc2 internal prototype to avoid an error. */
15462 /* We use char because int might match the return type of a gcc2
15463 builtin and then its argument prototype would still apply. */
15465 /* The GNU C library defines this for functions which it implements
15466 to always fail with ENOSYS. Some functions are actually named
15467 something starting with __ and the normal name is an alias. */
15468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15471 char (*f) () = $ac_func;
15480 return f != $ac_func;
15485 rm -f conftest.
$ac_objext conftest
$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>conftest.er1
15489 grep -v '^ *+' conftest.er1
>conftest.err
15491 cat conftest.err
>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try
='test -z "$ac_c_werror_flag"
15495 || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try
='test -s conftest$ac_exeext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 eval "$as_ac_var=yes"
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.
$ac_ext >&5
15512 eval "$as_ac_var=no"
15514 rm -f conftest.err conftest.
$ac_objext \
15515 conftest
$ac_exeext conftest.
$ac_ext
15517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15519 if test `eval echo '${'$as_ac_var'}'` = yes; then
15520 cat >>confdefs.h
<<_ACEOF
15521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15525 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15526 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15527 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 ac_check_lib_save_LIBS
=$LIBS
15531 LIBS
="-lutil $LIBS"
15532 cat >conftest.
$ac_ext <<_ACEOF
15535 cat confdefs.h
>>conftest.
$ac_ext
15536 cat >>conftest.
$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15539 /* Override any gcc2 internal prototype to avoid an error. */
15543 /* We use char because int might match the return type of a gcc2
15544 builtin and then its argument prototype would still apply. */
15554 rm -f conftest.
$ac_objext conftest
$ac_exeext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>conftest.er1
15558 grep -v '^ *+' conftest.er1
>conftest.err
15560 cat conftest.err
>&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } &&
15563 { ac_try
='test -z "$ac_c_werror_flag"
15564 || test ! -s conftest.err'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try
='test -s conftest$ac_exeext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_cv_lib_util_forkpty
=yes
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.
$ac_ext >&5
15581 ac_cv_lib_util_forkpty
=no
15583 rm -f conftest.err conftest.
$ac_objext \
15584 conftest
$ac_exeext conftest.
$ac_ext
15585 LIBS
=$ac_check_lib_save_LIBS
15587 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15588 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15589 if test $ac_cv_lib_util_forkpty = yes; then
15590 cat >>confdefs.h
<<\_ACEOF
15591 #define HAVE_FORKPTY 1
15593 LIBS
="$LIBS -lutil"
15595 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15596 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15597 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 ac_check_lib_save_LIBS
=$LIBS
15602 cat >conftest.
$ac_ext <<_ACEOF
15605 cat confdefs.h
>>conftest.
$ac_ext
15606 cat >>conftest.
$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15609 /* Override any gcc2 internal prototype to avoid an error. */
15613 /* We use char because int might match the return type of a gcc2
15614 builtin and then its argument prototype would still apply. */
15624 rm -f conftest.
$ac_objext conftest
$ac_exeext
15625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15626 (eval $ac_link) 2>conftest.er1
15628 grep -v '^ *+' conftest.er1
>conftest.err
15630 cat conftest.err
>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try
='test -z "$ac_c_werror_flag"
15634 || test ! -s conftest.err'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try
='test -s conftest$ac_exeext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_cv_lib_bsd_forkpty
=yes
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.
$ac_ext >&5
15651 ac_cv_lib_bsd_forkpty
=no
15653 rm -f conftest.err conftest.
$ac_objext \
15654 conftest
$ac_exeext conftest.
$ac_ext
15655 LIBS
=$ac_check_lib_save_LIBS
15657 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15658 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15659 if test $ac_cv_lib_bsd_forkpty = yes; then
15660 cat >>confdefs.h
<<\_ACEOF
15661 #define HAVE_FORKPTY 1
15674 # check for long file support functions
15681 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15683 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15684 echo "$as_me:$LINENO: checking for $ac_func" >&5
15685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15686 if eval "test \"\${$as_ac_var+set}\" = set"; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 cat >conftest.
$ac_ext <<_ACEOF
15692 cat confdefs.h
>>conftest.
$ac_ext
15693 cat >>conftest.
$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15697 #define $ac_func innocuous_$ac_func
15699 /* System header to define __stub macros and hopefully few prototypes,
15700 which can conflict with char $ac_func (); below.
15701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15702 <limits.h> exists even on freestanding compilers. */
15705 # include <limits.h>
15707 # include <assert.h>
15712 /* Override any gcc2 internal prototype to avoid an error. */
15717 /* We use char because int might match the return type of a gcc2
15718 builtin and then its argument prototype would still apply. */
15720 /* The GNU C library defines this for functions which it implements
15721 to always fail with ENOSYS. Some functions are actually named
15722 something starting with __ and the normal name is an alias. */
15723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15726 char (*f) () = $ac_func;
15735 return f != $ac_func;
15740 rm -f conftest.
$ac_objext conftest
$ac_exeext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15742 (eval $ac_link) 2>conftest.er1
15744 grep -v '^ *+' conftest.er1
>conftest.err
15746 cat conftest.err
>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try
='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try
='test -s conftest$ac_exeext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 eval "$as_ac_var=yes"
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.
$ac_ext >&5
15767 eval "$as_ac_var=no"
15769 rm -f conftest.err conftest.
$ac_objext \
15770 conftest
$ac_exeext conftest.
$ac_ext
15772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15774 if test `eval echo '${'$as_ac_var'}'` = yes; then
15775 cat >>confdefs.h
<<_ACEOF
15776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15788 for ac_func
in dup2 getcwd strdup strerror memmove
15790 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15791 echo "$as_me:$LINENO: checking for $ac_func" >&5
15792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15793 if eval "test \"\${$as_ac_var+set}\" = set"; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 cat >conftest.
$ac_ext <<_ACEOF
15799 cat confdefs.h
>>conftest.
$ac_ext
15800 cat >>conftest.
$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15804 #define $ac_func innocuous_$ac_func
15806 /* System header to define __stub macros and hopefully few prototypes,
15807 which can conflict with char $ac_func (); below.
15808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15809 <limits.h> exists even on freestanding compilers. */
15812 # include <limits.h>
15814 # include <assert.h>
15819 /* Override any gcc2 internal prototype to avoid an error. */
15824 /* We use char because int might match the return type of a gcc2
15825 builtin and then its argument prototype would still apply. */
15827 /* The GNU C library defines this for functions which it implements
15828 to always fail with ENOSYS. Some functions are actually named
15829 something starting with __ and the normal name is an alias. */
15830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15833 char (*f) () = $ac_func;
15842 return f != $ac_func;
15847 rm -f conftest.
$ac_objext conftest
$ac_exeext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15849 (eval $ac_link) 2>conftest.er1
15851 grep -v '^ *+' conftest.er1
>conftest.err
15853 cat conftest.err
>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try
='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try
='test -s conftest$ac_exeext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 eval "$as_ac_var=yes"
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.
$ac_ext >&5
15874 eval "$as_ac_var=no"
15876 rm -f conftest.err conftest.
$ac_objext \
15877 conftest
$ac_exeext conftest.
$ac_ext
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15881 if test `eval echo '${'$as_ac_var'}'` = yes; then
15882 cat >>confdefs.h
<<_ACEOF
15883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15888 "$ac_func.$ac_objext" | \
15889 *" $ac_func.$ac_objext" | \
15890 "$ac_func.$ac_objext "* | \
15891 *" $ac_func.$ac_objext "* ) ;;
15892 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15900 for ac_func
in getpgrp
15902 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15903 echo "$as_me:$LINENO: checking for $ac_func" >&5
15904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15905 if eval "test \"\${$as_ac_var+set}\" = set"; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 cat >conftest.
$ac_ext <<_ACEOF
15911 cat confdefs.h
>>conftest.
$ac_ext
15912 cat >>conftest.
$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15916 #define $ac_func innocuous_$ac_func
15918 /* System header to define __stub macros and hopefully few prototypes,
15919 which can conflict with char $ac_func (); below.
15920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15921 <limits.h> exists even on freestanding compilers. */
15924 # include <limits.h>
15926 # include <assert.h>
15931 /* Override any gcc2 internal prototype to avoid an error. */
15936 /* We use char because int might match the return type of a gcc2
15937 builtin and then its argument prototype would still apply. */
15939 /* The GNU C library defines this for functions which it implements
15940 to always fail with ENOSYS. Some functions are actually named
15941 something starting with __ and the normal name is an alias. */
15942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15945 char (*f) () = $ac_func;
15954 return f != $ac_func;
15959 rm -f conftest.
$ac_objext conftest
$ac_exeext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15961 (eval $ac_link) 2>conftest.er1
15963 grep -v '^ *+' conftest.er1
>conftest.err
15965 cat conftest.err
>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try
='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try
='test -s conftest$ac_exeext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 eval "$as_ac_var=yes"
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.
$ac_ext >&5
15986 eval "$as_ac_var=no"
15988 rm -f conftest.err conftest.
$ac_objext \
15989 conftest
$ac_exeext conftest.
$ac_ext
15991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15993 if test `eval echo '${'$as_ac_var'}'` = yes; then
15994 cat >>confdefs.h
<<_ACEOF
15995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15997 cat >conftest.
$ac_ext <<_ACEOF
16000 cat confdefs.h
>>conftest.
$ac_ext
16001 cat >>conftest.
$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 #include <unistd.h>
16012 rm -f conftest.
$ac_objext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16014 (eval $ac_compile) 2>conftest.er1
16016 grep -v '^ *+' conftest.er1
>conftest.err
16018 cat conftest.err
>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try
='test -z "$ac_c_werror_flag"
16022 || test ! -s conftest.err'
16023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try
='test -s conftest.$ac_objext'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16035 cat >>confdefs.h
<<\_ACEOF
16036 #define GETPGRP_HAVE_ARG 1
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.
$ac_ext >&5
16045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16051 for ac_func
in setpgrp
16053 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16054 echo "$as_me:$LINENO: checking for $ac_func" >&5
16055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16056 if eval "test \"\${$as_ac_var+set}\" = set"; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 cat >conftest.
$ac_ext <<_ACEOF
16062 cat confdefs.h
>>conftest.
$ac_ext
16063 cat >>conftest.
$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16067 #define $ac_func innocuous_$ac_func
16069 /* System header to define __stub macros and hopefully few prototypes,
16070 which can conflict with char $ac_func (); below.
16071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16072 <limits.h> exists even on freestanding compilers. */
16075 # include <limits.h>
16077 # include <assert.h>
16082 /* Override any gcc2 internal prototype to avoid an error. */
16087 /* We use char because int might match the return type of a gcc2
16088 builtin and then its argument prototype would still apply. */
16090 /* The GNU C library defines this for functions which it implements
16091 to always fail with ENOSYS. Some functions are actually named
16092 something starting with __ and the normal name is an alias. */
16093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16096 char (*f) () = $ac_func;
16105 return f != $ac_func;
16110 rm -f conftest.
$ac_objext conftest
$ac_exeext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112 (eval $ac_link) 2>conftest.er1
16114 grep -v '^ *+' conftest.er1
>conftest.err
16116 cat conftest.err
>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try
='test -z "$ac_c_werror_flag"
16120 || test ! -s conftest.err'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try
='test -s conftest$ac_exeext'
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 eval "$as_ac_var=yes"
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.
$ac_ext >&5
16137 eval "$as_ac_var=no"
16139 rm -f conftest.err conftest.
$ac_objext \
16140 conftest
$ac_exeext conftest.
$ac_ext
16142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16144 if test `eval echo '${'$as_ac_var'}'` = yes; then
16145 cat >>confdefs.h
<<_ACEOF
16146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16148 cat >conftest.
$ac_ext <<_ACEOF
16151 cat confdefs.h
>>conftest.
$ac_ext
16152 cat >>conftest.
$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 #include <unistd.h>
16163 rm -f conftest.
$ac_objext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165 (eval $ac_compile) 2>conftest.er1
16167 grep -v '^ *+' conftest.er1
>conftest.err
16169 cat conftest.err
>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try
='test -z "$ac_c_werror_flag"
16173 || test ! -s conftest.err'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try
='test -s conftest.$ac_objext'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16186 cat >>confdefs.h
<<\_ACEOF
16187 #define SETPGRP_HAVE_ARG 1
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.
$ac_ext >&5
16196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16202 for ac_func
in gettimeofday
16204 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16205 echo "$as_me:$LINENO: checking for $ac_func" >&5
16206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16207 if eval "test \"\${$as_ac_var+set}\" = set"; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 cat >conftest.
$ac_ext <<_ACEOF
16213 cat confdefs.h
>>conftest.
$ac_ext
16214 cat >>conftest.
$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16218 #define $ac_func innocuous_$ac_func
16220 /* System header to define __stub macros and hopefully few prototypes,
16221 which can conflict with char $ac_func (); below.
16222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16223 <limits.h> exists even on freestanding compilers. */
16226 # include <limits.h>
16228 # include <assert.h>
16233 /* Override any gcc2 internal prototype to avoid an error. */
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16241 /* The GNU C library defines this for functions which it implements
16242 to always fail with ENOSYS. Some functions are actually named
16243 something starting with __ and the normal name is an alias. */
16244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16247 char (*f) () = $ac_func;
16256 return f != $ac_func;
16261 rm -f conftest.
$ac_objext conftest
$ac_exeext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263 (eval $ac_link) 2>conftest.er1
16265 grep -v '^ *+' conftest.er1
>conftest.err
16267 cat conftest.err
>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try
='test -z "$ac_c_werror_flag"
16271 || test ! -s conftest.err'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try
='test -s conftest$ac_exeext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 eval "$as_ac_var=yes"
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.
$ac_ext >&5
16288 eval "$as_ac_var=no"
16290 rm -f conftest.err conftest.
$ac_objext \
16291 conftest
$ac_exeext conftest.
$ac_ext
16293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16295 if test `eval echo '${'$as_ac_var'}'` = yes; then
16296 cat >>confdefs.h
<<_ACEOF
16297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16299 cat >conftest.
$ac_ext <<_ACEOF
16302 cat confdefs.h
>>conftest.
$ac_ext
16303 cat >>conftest.
$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 #include <sys/time.h>
16309 gettimeofday((struct timeval*)0,(struct timezone*)0);
16314 rm -f conftest.
$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>conftest.er1
16318 grep -v '^ *+' conftest.er1
>conftest.err
16320 cat conftest.err
>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try
='test -z "$ac_c_werror_flag"
16324 || test ! -s conftest.err'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; } &&
16330 { ac_try
='test -s conftest.$ac_objext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.
$ac_ext >&5
16342 cat >>confdefs.h
<<\_ACEOF
16343 #define GETTIMEOFDAY_NO_TZ 1
16348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16354 echo "$as_me:$LINENO: checking for major" >&5
16355 echo $ECHO_N "checking for major... $ECHO_C" >&6
16356 cat >conftest.
$ac_ext <<_ACEOF
16359 cat confdefs.h
>>conftest.
$ac_ext
16360 cat >>conftest.
$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16363 #if defined(MAJOR_IN_MKDEV)
16364 #include <sys/mkdev.h>
16365 #elif defined(MAJOR_IN_SYSMACROS)
16366 #include <sys/sysmacros.h>
16368 #include <sys/types.h>
16375 makedev(major(0),minor(0));
16381 rm -f conftest.
$ac_objext conftest
$ac_exeext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16383 (eval $ac_link) 2>conftest.er1
16385 grep -v '^ *+' conftest.er1
>conftest.err
16387 cat conftest.err
>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try
='test -z "$ac_c_werror_flag"
16391 || test ! -s conftest.err'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; } &&
16397 { ac_try
='test -s conftest$ac_exeext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16405 cat >>confdefs.h
<<\_ACEOF
16406 #define HAVE_DEVICE_MACROS 1
16409 echo "$as_me:$LINENO: result: yes" >&5
16410 echo "${ECHO_T}yes" >&6
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.
$ac_ext >&5
16417 echo "$as_me:$LINENO: result: no" >&5
16418 echo "${ECHO_T}no" >&6
16421 rm -f conftest.err conftest.
$ac_objext \
16422 conftest
$ac_exeext conftest.
$ac_ext
16424 # On OSF/1 V5.1, getaddrinfo is available, but a define
16425 # for [no]getaddrinfo in netdb.h.
16426 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16427 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16428 cat >conftest.
$ac_ext <<_ACEOF
16431 cat confdefs.h
>>conftest.
$ac_ext
16432 cat >>conftest.
$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16435 #include <sys/types.h>
16436 #include <sys/socket.h>
16444 getaddrinfo(NULL, NULL, NULL, NULL);
16450 rm -f conftest.
$ac_objext conftest
$ac_exeext
16451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16452 (eval $ac_link) 2>conftest.er1
16454 grep -v '^ *+' conftest.er1
>conftest.err
16456 cat conftest.err
>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } &&
16459 { ac_try
='test -z "$ac_c_werror_flag"
16460 || test ! -s conftest.err'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; } &&
16466 { ac_try
='test -s conftest$ac_exeext'
16467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468 (eval $ac_try) 2>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; }; then
16473 echo "$as_me:$LINENO: result: yes" >&5
16474 echo "${ECHO_T}yes" >&6
16475 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16476 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16477 if test "$cross_compiling" = yes; then
16478 echo "$as_me:$LINENO: result: buggy" >&5
16479 echo "${ECHO_T}buggy" >&6
16480 buggygetaddrinfo
=yes
16482 cat >conftest.
$ac_ext <<_ACEOF
16485 cat confdefs.h
>>conftest.
$ac_ext
16486 cat >>conftest.
$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16489 #include <sys/types.h>
16491 #include <string.h>
16492 #include <sys/socket.h>
16493 #include <netinet/in.h>
16497 int passive, gaierr, inet4 = 0, inet6 = 0;
16498 struct addrinfo hints, *ai, *aitop;
16499 char straddr[INET6_ADDRSTRLEN], strport[16];
16501 for (passive = 0; passive <= 1; passive++) {
16502 memset(&hints, 0, sizeof(hints));
16503 hints.ai_family = AF_UNSPEC;
16504 hints.ai_flags = passive ? AI_PASSIVE : 0;
16505 hints.ai_socktype = SOCK_STREAM;
16506 hints.ai_protocol = IPPROTO_TCP;
16507 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16508 (void)gai_strerror(gaierr);
16511 for (ai = aitop; ai; ai = ai->ai_next) {
16512 if (ai->ai_addr == NULL ||
16513 ai->ai_addrlen == 0 ||
16514 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16515 straddr, sizeof(straddr), strport, sizeof(strport),
16516 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16519 switch (ai->ai_family) {
16521 if (strcmp(strport, "54321") != 0) {
16525 if (strcmp(straddr, "0.0.0.0") != 0) {
16529 if (strcmp(straddr, "127.0.0.1") != 0) {
16536 if (strcmp(strport, "54321") != 0) {
16540 if (strcmp(straddr, "::") != 0) {
16544 if (strcmp(straddr, "::1") != 0) {
16554 /* another family support? */
16560 if (!(inet4 == 0 || inet4 == 2))
16562 if (!(inet6 == 0 || inet6 == 2))
16566 freeaddrinfo(aitop);
16571 freeaddrinfo(aitop);
16576 rm -f conftest
$ac_exeext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16578 (eval $ac_link) 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 echo "$as_me:$LINENO: result: good" >&5
16588 echo "${ECHO_T}good" >&6
16589 buggygetaddrinfo
=no
16591 echo "$as_me: program exited with status $ac_status" >&5
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.
$ac_ext >&5
16595 ( exit $ac_status )
16596 echo "$as_me:$LINENO: result: buggy" >&5
16597 echo "${ECHO_T}buggy" >&6
16598 buggygetaddrinfo
=yes
16600 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.
$ac_ext >&5
16607 echo "$as_me:$LINENO: result: no" >&5
16608 echo "${ECHO_T}no" >&6
16609 buggygetaddrinfo
=yes
16612 rm -f conftest.err conftest.
$ac_objext \
16613 conftest
$ac_exeext conftest.
$ac_ext
16615 if test "$buggygetaddrinfo" = "yes"; then
16616 if test "$ipv6" = "yes"; then
16617 echo 'Fatal: You must get working getaddrinfo() function.'
16618 echo ' or you can specify "--disable-ipv6"'.
16623 cat >>confdefs.h
<<\_ACEOF
16624 #define HAVE_GETADDRINFO 1
16629 for ac_func
in getnameinfo
16631 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16632 echo "$as_me:$LINENO: checking for $ac_func" >&5
16633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16634 if eval "test \"\${$as_ac_var+set}\" = set"; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 cat >conftest.
$ac_ext <<_ACEOF
16640 cat confdefs.h
>>conftest.
$ac_ext
16641 cat >>conftest.
$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16645 #define $ac_func innocuous_$ac_func
16647 /* System header to define __stub macros and hopefully few prototypes,
16648 which can conflict with char $ac_func (); below.
16649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16650 <limits.h> exists even on freestanding compilers. */
16653 # include <limits.h>
16655 # include <assert.h>
16660 /* Override any gcc2 internal prototype to avoid an error. */
16665 /* We use char because int might match the return type of a gcc2
16666 builtin and then its argument prototype would still apply. */
16668 /* The GNU C library defines this for functions which it implements
16669 to always fail with ENOSYS. Some functions are actually named
16670 something starting with __ and the normal name is an alias. */
16671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16674 char (*f) () = $ac_func;
16683 return f != $ac_func;
16688 rm -f conftest.
$ac_objext conftest
$ac_exeext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>conftest.er1
16692 grep -v '^ *+' conftest.er1
>conftest.err
16694 cat conftest.err
>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try
='test -z "$ac_c_werror_flag"
16698 || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try
='test -s conftest$ac_exeext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 eval "$as_ac_var=yes"
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.
$ac_ext >&5
16715 eval "$as_ac_var=no"
16717 rm -f conftest.err conftest.
$ac_objext \
16718 conftest
$ac_exeext conftest.
$ac_ext
16720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16722 if test `eval echo '${'$as_ac_var'}'` = yes; then
16723 cat >>confdefs.h
<<_ACEOF
16724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16731 # checks for structures
16732 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16733 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16734 if test "${ac_cv_header_time+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 cat >conftest.
$ac_ext <<_ACEOF
16740 cat confdefs.h
>>conftest.
$ac_ext
16741 cat >>conftest.
$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16743 #include <sys/types.h>
16744 #include <sys/time.h>
16750 if ((struct tm *) 0)
16756 rm -f conftest.
$ac_objext
16757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16758 (eval $ac_compile) 2>conftest.er1
16760 grep -v '^ *+' conftest.er1
>conftest.err
16762 cat conftest.err
>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } &&
16765 { ac_try
='test -z "$ac_c_werror_flag"
16766 || test ! -s conftest.err'
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; } &&
16772 { ac_try
='test -s conftest.$ac_objext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 ac_cv_header_time
=yes
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.
$ac_ext >&5
16783 ac_cv_header_time
=no
16785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16787 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16788 echo "${ECHO_T}$ac_cv_header_time" >&6
16789 if test $ac_cv_header_time = yes; then
16791 cat >>confdefs.h
<<\_ACEOF
16792 #define TIME_WITH_SYS_TIME 1
16797 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16798 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16799 if test "${ac_cv_struct_tm+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 cat >conftest.
$ac_ext <<_ACEOF
16805 cat confdefs.h
>>conftest.
$ac_ext
16806 cat >>conftest.
$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <sys/types.h>
16814 struct tm *tp; tp->tm_sec;
16819 rm -f conftest.
$ac_objext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>conftest.er1
16823 grep -v '^ *+' conftest.er1
>conftest.err
16825 cat conftest.err
>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try
='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try
='test -s conftest.$ac_objext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_struct_tm
=time.h
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.
$ac_ext >&5
16846 ac_cv_struct_tm
=sys
/time.h
16848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16850 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16851 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16852 if test $ac_cv_struct_tm = sys
/time.h
; then
16854 cat >>confdefs.h
<<\_ACEOF
16855 #define TM_IN_SYS_TIME 1
16860 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16861 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16862 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 cat >conftest.
$ac_ext <<_ACEOF
16868 cat confdefs.h
>>conftest.
$ac_ext
16869 cat >>conftest.
$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16871 #include <sys/types.h>
16872 #include <$ac_cv_struct_tm>
16878 static struct tm ac_aggr;
16879 if (ac_aggr.tm_zone)
16885 rm -f conftest.
$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>conftest.er1
16889 grep -v '^ *+' conftest.er1
>conftest.err
16891 cat conftest.err
>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try
='test -z "$ac_c_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try
='test -s conftest.$ac_objext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_member_struct_tm_tm_zone
=yes
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.
$ac_ext >&5
16912 cat >conftest.
$ac_ext <<_ACEOF
16915 cat confdefs.h
>>conftest.
$ac_ext
16916 cat >>conftest.
$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 #include <sys/types.h>
16919 #include <$ac_cv_struct_tm>
16925 static struct tm ac_aggr;
16926 if (sizeof ac_aggr.tm_zone)
16932 rm -f conftest.
$ac_objext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16934 (eval $ac_compile) 2>conftest.er1
16936 grep -v '^ *+' conftest.er1
>conftest.err
16938 cat conftest.err
>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try
='test -z "$ac_c_werror_flag"
16942 || test ! -s conftest.err'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try
='test -s conftest.$ac_objext'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_cv_member_struct_tm_tm_zone
=yes
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.
$ac_ext >&5
16959 ac_cv_member_struct_tm_tm_zone
=no
16961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16965 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16966 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16967 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16969 cat >>confdefs.h
<<_ACEOF
16970 #define HAVE_STRUCT_TM_TM_ZONE 1
16976 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16978 cat >>confdefs.h
<<\_ACEOF
16979 #define HAVE_TM_ZONE 1
16983 echo "$as_me:$LINENO: checking for tzname" >&5
16984 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16985 if test "${ac_cv_var_tzname+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 cat >conftest.
$ac_ext <<_ACEOF
16991 cat confdefs.h
>>conftest.
$ac_ext
16992 cat >>conftest.
$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16995 #ifndef tzname /* For SGI. */
16996 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17007 rm -f conftest.
$ac_objext conftest
$ac_exeext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17009 (eval $ac_link) 2>conftest.er1
17011 grep -v '^ *+' conftest.er1
>conftest.err
17013 cat conftest.err
>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try
='test -z "$ac_c_werror_flag"
17017 || test ! -s conftest.err'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try
='test -s conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_var_tzname
=yes
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.
$ac_ext >&5
17034 ac_cv_var_tzname
=no
17036 rm -f conftest.err conftest.
$ac_objext \
17037 conftest
$ac_exeext conftest.
$ac_ext
17039 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17040 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17041 if test $ac_cv_var_tzname = yes; then
17043 cat >>confdefs.h
<<\_ACEOF
17044 #define HAVE_TZNAME 1
17050 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17051 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17052 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 cat >conftest.
$ac_ext <<_ACEOF
17058 cat confdefs.h
>>conftest.
$ac_ext
17059 cat >>conftest.
$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 $ac_includes_default
17065 static struct stat ac_aggr;
17066 if (ac_aggr.st_rdev)
17072 rm -f conftest.
$ac_objext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17074 (eval $ac_compile) 2>conftest.er1
17076 grep -v '^ *+' conftest.er1
>conftest.err
17078 cat conftest.err
>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try
='test -z "$ac_c_werror_flag"
17082 || test ! -s conftest.err'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try
='test -s conftest.$ac_objext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_cv_member_struct_stat_st_rdev
=yes
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.
$ac_ext >&5
17099 cat >conftest.
$ac_ext <<_ACEOF
17102 cat confdefs.h
>>conftest.
$ac_ext
17103 cat >>conftest.
$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 $ac_includes_default
17109 static struct stat ac_aggr;
17110 if (sizeof ac_aggr.st_rdev)
17116 rm -f conftest.
$ac_objext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118 (eval $ac_compile) 2>conftest.er1
17120 grep -v '^ *+' conftest.er1
>conftest.err
17122 cat conftest.err
>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try
='test -z "$ac_c_werror_flag"
17126 || test ! -s conftest.err'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try
='test -s conftest.$ac_objext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_member_struct_stat_st_rdev
=yes
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.
$ac_ext >&5
17143 ac_cv_member_struct_stat_st_rdev
=no
17145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17149 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17150 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17151 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17153 cat >>confdefs.h
<<_ACEOF
17154 #define HAVE_STRUCT_STAT_ST_RDEV 1
17160 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17161 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17162 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 cat >conftest.
$ac_ext <<_ACEOF
17168 cat confdefs.h
>>conftest.
$ac_ext
17169 cat >>conftest.
$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 $ac_includes_default
17175 static struct stat ac_aggr;
17176 if (ac_aggr.st_blksize)
17182 rm -f conftest.
$ac_objext
17183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17184 (eval $ac_compile) 2>conftest.er1
17186 grep -v '^ *+' conftest.er1
>conftest.err
17188 cat conftest.err
>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try
='test -z "$ac_c_werror_flag"
17192 || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try
='test -s conftest.$ac_objext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 ac_cv_member_struct_stat_st_blksize
=yes
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.
$ac_ext >&5
17209 cat >conftest.
$ac_ext <<_ACEOF
17212 cat confdefs.h
>>conftest.
$ac_ext
17213 cat >>conftest.
$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215 $ac_includes_default
17219 static struct stat ac_aggr;
17220 if (sizeof ac_aggr.st_blksize)
17226 rm -f conftest.
$ac_objext
17227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17228 (eval $ac_compile) 2>conftest.er1
17230 grep -v '^ *+' conftest.er1
>conftest.err
17232 cat conftest.err
>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try
='test -z "$ac_c_werror_flag"
17236 || test ! -s conftest.err'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try
='test -s conftest.$ac_objext'
17243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244 (eval $ac_try) 2>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; }; then
17248 ac_cv_member_struct_stat_st_blksize
=yes
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.
$ac_ext >&5
17253 ac_cv_member_struct_stat_st_blksize
=no
17255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17259 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17260 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17261 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17263 cat >>confdefs.h
<<_ACEOF
17264 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17270 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17271 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17272 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17275 cat >conftest.
$ac_ext <<_ACEOF
17278 cat confdefs.h
>>conftest.
$ac_ext
17279 cat >>conftest.
$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 $ac_includes_default
17285 static struct stat ac_aggr;
17286 if (ac_aggr.st_flags)
17292 rm -f conftest.
$ac_objext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17294 (eval $ac_compile) 2>conftest.er1
17296 grep -v '^ *+' conftest.er1
>conftest.err
17298 cat conftest.err
>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try
='test -z "$ac_c_werror_flag"
17302 || test ! -s conftest.err'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try
='test -s conftest.$ac_objext'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_cv_member_struct_stat_st_flags
=yes
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.
$ac_ext >&5
17319 cat >conftest.
$ac_ext <<_ACEOF
17322 cat confdefs.h
>>conftest.
$ac_ext
17323 cat >>conftest.
$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 $ac_includes_default
17329 static struct stat ac_aggr;
17330 if (sizeof ac_aggr.st_flags)
17336 rm -f conftest.
$ac_objext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17338 (eval $ac_compile) 2>conftest.er1
17340 grep -v '^ *+' conftest.er1
>conftest.err
17342 cat conftest.err
>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try
='test -z "$ac_c_werror_flag"
17346 || test ! -s conftest.err'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try
='test -s conftest.$ac_objext'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 ac_cv_member_struct_stat_st_flags
=yes
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.
$ac_ext >&5
17363 ac_cv_member_struct_stat_st_flags
=no
17365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17369 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17370 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17371 if test $ac_cv_member_struct_stat_st_flags = yes; then
17373 cat >>confdefs.h
<<_ACEOF
17374 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17380 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17381 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17382 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 cat >conftest.
$ac_ext <<_ACEOF
17388 cat confdefs.h
>>conftest.
$ac_ext
17389 cat >>conftest.
$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 $ac_includes_default
17395 static struct stat ac_aggr;
17396 if (ac_aggr.st_gen)
17402 rm -f conftest.
$ac_objext
17403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17404 (eval $ac_compile) 2>conftest.er1
17406 grep -v '^ *+' conftest.er1
>conftest.err
17408 cat conftest.err
>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try
='test -z "$ac_c_werror_flag"
17412 || test ! -s conftest.err'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } &&
17418 { ac_try
='test -s conftest.$ac_objext'
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 ac_cv_member_struct_stat_st_gen
=yes
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.
$ac_ext >&5
17429 cat >conftest.
$ac_ext <<_ACEOF
17432 cat confdefs.h
>>conftest.
$ac_ext
17433 cat >>conftest.
$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 $ac_includes_default
17439 static struct stat ac_aggr;
17440 if (sizeof ac_aggr.st_gen)
17446 rm -f conftest.
$ac_objext
17447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17448 (eval $ac_compile) 2>conftest.er1
17450 grep -v '^ *+' conftest.er1
>conftest.err
17452 cat conftest.err
>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try
='test -z "$ac_c_werror_flag"
17456 || test ! -s conftest.err'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try
='test -s conftest.$ac_objext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_cv_member_struct_stat_st_gen
=yes
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.
$ac_ext >&5
17473 ac_cv_member_struct_stat_st_gen
=no
17475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17477 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17479 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17480 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17481 if test $ac_cv_member_struct_stat_st_gen = yes; then
17483 cat >>confdefs.h
<<_ACEOF
17484 #define HAVE_STRUCT_STAT_ST_GEN 1
17490 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17491 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17492 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 cat >conftest.
$ac_ext <<_ACEOF
17498 cat confdefs.h
>>conftest.
$ac_ext
17499 cat >>conftest.
$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 $ac_includes_default
17505 static struct stat ac_aggr;
17506 if (ac_aggr.st_birthtime)
17512 rm -f conftest.
$ac_objext
17513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17514 (eval $ac_compile) 2>conftest.er1
17516 grep -v '^ *+' conftest.er1
>conftest.err
17518 cat conftest.err
>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
17521 { ac_try
='test -z "$ac_c_werror_flag"
17522 || test ! -s conftest.err'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try
='test -s conftest.$ac_objext'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_cv_member_struct_stat_st_birthtime
=yes
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.
$ac_ext >&5
17539 cat >conftest.
$ac_ext <<_ACEOF
17542 cat confdefs.h
>>conftest.
$ac_ext
17543 cat >>conftest.
$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 $ac_includes_default
17549 static struct stat ac_aggr;
17550 if (sizeof ac_aggr.st_birthtime)
17556 rm -f conftest.
$ac_objext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17558 (eval $ac_compile) 2>conftest.er1
17560 grep -v '^ *+' conftest.er1
>conftest.err
17562 cat conftest.err
>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try
='test -z "$ac_c_werror_flag"
17566 || test ! -s conftest.err'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try
='test -s conftest.$ac_objext'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_cv_member_struct_stat_st_birthtime
=yes
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.
$ac_ext >&5
17583 ac_cv_member_struct_stat_st_birthtime
=no
17585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17589 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17590 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17591 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17593 cat >>confdefs.h
<<_ACEOF
17594 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17600 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17601 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17602 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 cat >conftest.
$ac_ext <<_ACEOF
17608 cat confdefs.h
>>conftest.
$ac_ext
17609 cat >>conftest.
$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17611 $ac_includes_default
17615 static struct stat ac_aggr;
17616 if (ac_aggr.st_blocks)
17622 rm -f conftest.
$ac_objext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624 (eval $ac_compile) 2>conftest.er1
17626 grep -v '^ *+' conftest.er1
>conftest.err
17628 cat conftest.err
>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try
='test -z "$ac_c_werror_flag"
17632 || test ! -s conftest.err'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try
='test -s conftest.$ac_objext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_cv_member_struct_stat_st_blocks
=yes
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.
$ac_ext >&5
17649 cat >conftest.
$ac_ext <<_ACEOF
17652 cat confdefs.h
>>conftest.
$ac_ext
17653 cat >>conftest.
$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 $ac_includes_default
17659 static struct stat ac_aggr;
17660 if (sizeof ac_aggr.st_blocks)
17666 rm -f conftest.
$ac_objext
17667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17668 (eval $ac_compile) 2>conftest.er1
17670 grep -v '^ *+' conftest.er1
>conftest.err
17672 cat conftest.err
>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
17675 { ac_try
='test -z "$ac_c_werror_flag"
17676 || test ! -s conftest.err'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try
='test -s conftest.$ac_objext'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 ac_cv_member_struct_stat_st_blocks
=yes
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.
$ac_ext >&5
17693 ac_cv_member_struct_stat_st_blocks
=no
17695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17699 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17700 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17701 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17703 cat >>confdefs.h
<<_ACEOF
17704 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17708 cat >>confdefs.h
<<\_ACEOF
17709 #define HAVE_ST_BLOCKS 1
17714 "fileblocks.$ac_objext" | \
17715 *" fileblocks.$ac_objext" | \
17716 "fileblocks.$ac_objext "* | \
17717 *" fileblocks.$ac_objext "* ) ;;
17718 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17725 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17726 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17727 if test "${ac_cv_header_time_altzone+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 cat >conftest.
$ac_ext <<_ACEOF
17733 cat confdefs.h
>>conftest.
$ac_ext
17734 cat >>conftest.
$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17745 rm -f conftest.
$ac_objext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17747 (eval $ac_compile) 2>conftest.er1
17749 grep -v '^ *+' conftest.er1
>conftest.err
17751 cat conftest.err
>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
17754 { ac_try
='test -z "$ac_c_werror_flag"
17755 || test ! -s conftest.err'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try
='test -s conftest.$ac_objext'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 ac_cv_header_time_altzone
=yes
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.
$ac_ext >&5
17772 ac_cv_header_time_altzone
=no
17774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17777 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17778 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17779 if test $ac_cv_header_time_altzone = yes; then
17781 cat >>confdefs.h
<<\_ACEOF
17782 #define HAVE_ALTZONE 1
17788 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17789 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17790 cat >conftest.
$ac_ext <<_ACEOF
17793 cat confdefs.h
>>conftest.
$ac_ext
17794 cat >>conftest.
$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17797 #include <sys/types.h>
17798 #include <sys/select.h>
17799 #include <sys/time.h>
17809 rm -f conftest.
$ac_objext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811 (eval $ac_compile) 2>conftest.er1
17813 grep -v '^ *+' conftest.er1
>conftest.err
17815 cat conftest.err
>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try
='test -z "$ac_c_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try
='test -s conftest.$ac_objext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17833 cat >>confdefs.h
<<\_ACEOF
17834 #define SYS_SELECT_WITH_SYS_TIME 1
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.
$ac_ext >&5
17844 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17845 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17846 echo "${ECHO_T}$was_it_defined" >&6
17848 echo "$as_me:$LINENO: checking for addrinfo" >&5
17849 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17850 if test "${ac_cv_struct_addrinfo+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 cat >conftest.
$ac_ext <<_ACEOF
17856 cat confdefs.h
>>conftest.
$ac_ext
17857 cat >>conftest.
$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17860 # include <netdb.h>
17869 rm -f conftest.
$ac_objext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17871 (eval $ac_compile) 2>conftest.er1
17873 grep -v '^ *+' conftest.er1
>conftest.err
17875 cat conftest.err
>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
17878 { ac_try
='test -z "$ac_c_werror_flag"
17879 || test ! -s conftest.err'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try
='test -s conftest.$ac_objext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 ac_cv_struct_addrinfo
=yes
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.
$ac_ext >&5
17896 ac_cv_struct_addrinfo
=no
17898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17901 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17902 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17903 if test $ac_cv_struct_addrinfo = yes; then
17905 cat >>confdefs.h
<<\_ACEOF
17906 #define HAVE_ADDRINFO 1
17911 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17912 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17913 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 cat >conftest.
$ac_ext <<_ACEOF
17919 cat confdefs.h
>>conftest.
$ac_ext
17920 cat >>conftest.
$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17923 # include <sys/types.h>
17924 # include <sys/socket.h>
17928 struct sockaddr_storage s
17933 rm -f conftest.
$ac_objext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>conftest.er1
17937 grep -v '^ *+' conftest.er1
>conftest.err
17939 cat conftest.err
>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try
='test -z "$ac_c_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try
='test -s conftest.$ac_objext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_struct_sockaddr_storage
=yes
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.
$ac_ext >&5
17960 ac_cv_struct_sockaddr_storage
=no
17962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17965 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17966 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17967 if test $ac_cv_struct_sockaddr_storage = yes; then
17969 cat >>confdefs.h
<<\_ACEOF
17970 #define HAVE_SOCKADDR_STORAGE 1
17975 # checks for compiler characteristics
17978 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17979 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17980 if test "${ac_cv_c_char_unsigned+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 cat >conftest.
$ac_ext <<_ACEOF
17986 cat confdefs.h
>>conftest.
$ac_ext
17987 cat >>conftest.
$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 $ac_includes_default
17993 static int test_array [1 - 2 * !(((char) -1) < 0)];
18000 rm -f conftest.
$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18004 grep -v '^ *+' conftest.er1
>conftest.err
18006 cat conftest.err
>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try
='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try
='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_c_char_unsigned
=no
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.
$ac_ext >&5
18027 ac_cv_c_char_unsigned
=yes
18029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18031 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18032 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18033 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18034 cat >>confdefs.h
<<\_ACEOF
18035 #define __CHAR_UNSIGNED__ 1
18040 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18041 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18042 if test "${ac_cv_c_const+set}" = set; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 cat >conftest.
$ac_ext <<_ACEOF
18048 cat confdefs.h
>>conftest.
$ac_ext
18049 cat >>conftest.
$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18055 /* FIXME: Include the comments suggested by Paul. */
18056 #ifndef __cplusplus
18057 /* Ultrix mips cc rejects this. */
18058 typedef int charset[2];
18060 /* SunOS 4.1.1 cc rejects this. */
18061 char const *const *ccp;
18063 /* NEC SVR4.0.2 mips cc rejects this. */
18064 struct point {int x, y;};
18065 static struct point const zero = {0,0};
18066 /* AIX XL C 1.02.0.0 rejects this.
18067 It does not let you subtract one const X* pointer from another in
18068 an arm of an if-expression whose if-part is not a constant
18070 const char *g = "string";
18071 ccp = &g + (g ? g-g : 0);
18072 /* HPUX 7.0 cc rejects these. */
18075 ccp = (char const *const *) p;
18076 { /* SCO 3.2v4 cc rejects this. */
18078 char const *s = 0 ? (char *) 0 : (char const *) 0;
18082 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18083 int x[] = {25, 17};
18084 const int *foo = &x[0];
18087 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18088 typedef const int *iptr;
18092 { /* AIX XL C 1.02.0.0 rejects this saying
18093 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18094 struct s { int j; const int *ap[3]; };
18095 struct s *b; b->j = 5;
18097 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18098 const int foo = 10;
18106 rm -f conftest.
$ac_objext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18108 (eval $ac_compile) 2>conftest.er1
18110 grep -v '^ *+' conftest.er1
>conftest.err
18112 cat conftest.err
>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try
='test -z "$ac_c_werror_flag"
18116 || test ! -s conftest.err'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try
='test -s conftest.$ac_objext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.
$ac_ext >&5
18135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18137 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18138 echo "${ECHO_T}$ac_cv_c_const" >&6
18139 if test $ac_cv_c_const = no
; then
18141 cat >>confdefs.h
<<\_ACEOF
18149 echo "$as_me:$LINENO: checking for working volatile" >&5
18150 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18151 cat >conftest.
$ac_ext <<_ACEOF
18154 cat confdefs.h
>>conftest.
$ac_ext
18155 cat >>conftest.
$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18161 volatile int x; x = 0;
18166 rm -f conftest.
$ac_objext
18167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18168 (eval $ac_compile) 2>conftest.er1
18170 grep -v '^ *+' conftest.er1
>conftest.err
18172 cat conftest.err
>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try
='test -z "$ac_c_werror_flag"
18176 || test ! -s conftest.err'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try
='test -s conftest.$ac_objext'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.
$ac_ext >&5
18194 cat >>confdefs.h
<<\_ACEOF
18200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18201 echo "$as_me:$LINENO: result: $works" >&5
18202 echo "${ECHO_T}$works" >&6
18205 echo "$as_me:$LINENO: checking for working signed char" >&5
18206 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18207 cat >conftest.
$ac_ext <<_ACEOF
18210 cat confdefs.h
>>conftest.
$ac_ext
18211 cat >>conftest.
$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18222 rm -f conftest.
$ac_objext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18224 (eval $ac_compile) 2>conftest.er1
18226 grep -v '^ *+' conftest.er1
>conftest.err
18228 cat conftest.err
>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try
='test -z "$ac_c_werror_flag"
18232 || test ! -s conftest.err'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try
='test -s conftest.$ac_objext'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.
$ac_ext >&5
18250 cat >>confdefs.h
<<\_ACEOF
18256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18257 echo "$as_me:$LINENO: result: $works" >&5
18258 echo "${ECHO_T}$works" >&6
18261 echo "$as_me:$LINENO: checking for prototypes" >&5
18262 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18263 cat >conftest.
$ac_ext <<_ACEOF
18266 cat confdefs.h
>>conftest.
$ac_ext
18267 cat >>conftest.
$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 int foo(int x) { return 0; }
18278 rm -f conftest.
$ac_objext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18280 (eval $ac_compile) 2>conftest.er1
18282 grep -v '^ *+' conftest.er1
>conftest.err
18284 cat conftest.err
>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try
='test -z "$ac_c_werror_flag"
18288 || test ! -s conftest.err'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try
='test -s conftest.$ac_objext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18302 cat >>confdefs.h
<<\_ACEOF
18303 #define HAVE_PROTOTYPES 1
18306 have_prototypes
=yes
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.
$ac_ext >&5
18313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18314 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18315 echo "${ECHO_T}$have_prototypes" >&6
18318 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18319 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18320 cat >conftest.
$ac_ext <<_ACEOF
18323 cat confdefs.h
>>conftest.
$ac_ext
18324 cat >>conftest.
$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18327 #include <stdarg.h>
18328 int foo(int x, ...) {
18332 va_arg(va, char *);
18333 va_arg(va, double);
18340 return foo(10, "", 3.14);
18345 rm -f conftest.
$ac_objext
18346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18347 (eval $ac_compile) 2>conftest.er1
18349 grep -v '^ *+' conftest.er1
>conftest.err
18351 cat conftest.err
>&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } &&
18354 { ac_try
='test -z "$ac_c_werror_flag"
18355 || test ! -s conftest.err'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; } &&
18361 { ac_try
='test -s conftest.$ac_objext'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18369 cat >>confdefs.h
<<\_ACEOF
18370 #define HAVE_STDARG_PROTOTYPES 1
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.
$ac_ext >&5
18380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18381 echo "$as_me:$LINENO: result: $works" >&5
18382 echo "${ECHO_T}$works" >&6
18384 # check for socketpair
18385 echo "$as_me:$LINENO: checking for socketpair" >&5
18386 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18387 cat >conftest.
$ac_ext <<_ACEOF
18390 cat confdefs.h
>>conftest.
$ac_ext
18391 cat >>conftest.
$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18394 #include <sys/types.h>
18395 #include <sys/socket.h>
18405 rm -f conftest.
$ac_objext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18407 (eval $ac_compile) 2>conftest.er1
18409 grep -v '^ *+' conftest.er1
>conftest.err
18411 cat conftest.err
>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } &&
18414 { ac_try
='test -z "$ac_c_werror_flag"
18415 || test ! -s conftest.err'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try
='test -s conftest.$ac_objext'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18428 cat >>confdefs.h
<<\_ACEOF
18429 #define HAVE_SOCKETPAIR 1
18432 echo "$as_me:$LINENO: result: yes" >&5
18433 echo "${ECHO_T}yes" >&6
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.
$ac_ext >&5
18438 echo "$as_me:$LINENO: result: no" >&5
18439 echo "${ECHO_T}no" >&6
18442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18444 # check if sockaddr has sa_len member
18445 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18446 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18447 cat >conftest.
$ac_ext <<_ACEOF
18450 cat confdefs.h
>>conftest.
$ac_ext
18451 cat >>conftest.
$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 #include <sys/types.h>
18454 #include <sys/socket.h>
18464 rm -f conftest.
$ac_objext
18465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18466 (eval $ac_compile) 2>conftest.er1
18468 grep -v '^ *+' conftest.er1
>conftest.err
18470 cat conftest.err
>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
18473 { ac_try
='test -z "$ac_c_werror_flag"
18474 || test ! -s conftest.err'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try
='test -s conftest.$ac_objext'
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 echo "$as_me:$LINENO: result: yes" >&5
18487 echo "${ECHO_T}yes" >&6
18489 cat >>confdefs.h
<<\_ACEOF
18490 #define HAVE_SOCKADDR_SA_LEN 1
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.
$ac_ext >&5
18497 echo "$as_me:$LINENO: result: no" >&5
18498 echo "${ECHO_T}no" >&6
18500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18502 va_list_is_array
=no
18503 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18504 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18505 cat >conftest.
$ac_ext <<_ACEOF
18508 cat confdefs.h
>>conftest.
$ac_ext
18509 cat >>conftest.
$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18512 #ifdef HAVE_STDARG_PROTOTYPES
18513 #include <stdarg.h>
18515 #include <varargs.h>
18521 va_list list1, list2; list1 = list2;
18526 rm -f conftest.
$ac_objext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18528 (eval $ac_compile) 2>conftest.er1
18530 grep -v '^ *+' conftest.er1
>conftest.err
18532 cat conftest.err
>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try
='test -z "$ac_c_werror_flag"
18536 || test ! -s conftest.err'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try
='test -s conftest.$ac_objext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.
$ac_ext >&5
18555 cat >>confdefs.h
<<\_ACEOF
18556 #define VA_LIST_IS_ARRAY 1
18559 va_list_is_array
=yes
18562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18563 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18564 echo "${ECHO_T}$va_list_is_array" >&6
18566 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18570 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18571 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18572 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 cat >conftest.
$ac_ext <<_ACEOF
18578 cat confdefs.h
>>conftest.
$ac_ext
18579 cat >>conftest.
$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18583 #define gethostbyname_r innocuous_gethostbyname_r
18585 /* System header to define __stub macros and hopefully few prototypes,
18586 which can conflict with char gethostbyname_r (); below.
18587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18588 <limits.h> exists even on freestanding compilers. */
18591 # include <limits.h>
18593 # include <assert.h>
18596 #undef gethostbyname_r
18598 /* Override any gcc2 internal prototype to avoid an error. */
18603 /* We use char because int might match the return type of a gcc2
18604 builtin and then its argument prototype would still apply. */
18605 char gethostbyname_r ();
18606 /* The GNU C library defines this for functions which it implements
18607 to always fail with ENOSYS. Some functions are actually named
18608 something starting with __ and the normal name is an alias. */
18609 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18612 char (*f) () = gethostbyname_r;
18621 return f != gethostbyname_r;
18626 rm -f conftest.
$ac_objext conftest
$ac_exeext
18627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18628 (eval $ac_link) 2>conftest.er1
18630 grep -v '^ *+' conftest.er1
>conftest.err
18632 cat conftest.err
>&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } &&
18635 { ac_try
='test -z "$ac_c_werror_flag"
18636 || test ! -s conftest.err'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try
='test -s conftest$ac_exeext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_func_gethostbyname_r
=yes
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.
$ac_ext >&5
18653 ac_cv_func_gethostbyname_r
=no
18655 rm -f conftest.err conftest.
$ac_objext \
18656 conftest
$ac_exeext conftest.
$ac_ext
18658 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18659 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18660 if test $ac_cv_func_gethostbyname_r = yes; then
18662 cat >>confdefs.h
<<\_ACEOF
18663 #define HAVE_GETHOSTBYNAME_R 1
18666 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18667 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18669 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18670 cat >conftest.
$ac_ext <<_ACEOF
18673 cat confdefs.h
>>conftest.
$ac_ext
18674 cat >>conftest.
$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18677 # include <netdb.h>
18684 struct hostent *he, *res;
18689 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18695 rm -f conftest.
$ac_objext
18696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18697 (eval $ac_compile) 2>conftest.er1
18699 grep -v '^ *+' conftest.er1
>conftest.err
18701 cat conftest.err
>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try
='test -z "$ac_c_werror_flag"
18705 || test ! -s conftest.err'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; } &&
18711 { ac_try
='test -s conftest.$ac_objext'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18718 cat >>confdefs.h
<<\_ACEOF
18719 #define HAVE_GETHOSTBYNAME_R 1
18723 cat >>confdefs.h
<<\_ACEOF
18724 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18727 echo "$as_me:$LINENO: result: yes" >&5
18728 echo "${ECHO_T}yes" >&6
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.
$ac_ext >&5
18735 echo "$as_me:$LINENO: result: no" >&5
18736 echo "${ECHO_T}no" >&6
18737 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18738 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18739 cat >conftest.
$ac_ext <<_ACEOF
18742 cat confdefs.h
>>conftest.
$ac_ext
18743 cat >>conftest.
$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 # include <netdb.h>
18753 struct hostent *he;
18758 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18764 rm -f conftest.
$ac_objext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18766 (eval $ac_compile) 2>conftest.er1
18768 grep -v '^ *+' conftest.er1
>conftest.err
18770 cat conftest.err
>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try
='test -z "$ac_c_werror_flag"
18774 || test ! -s conftest.err'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; } &&
18780 { ac_try
='test -s conftest.$ac_objext'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18787 cat >>confdefs.h
<<\_ACEOF
18788 #define HAVE_GETHOSTBYNAME_R 1
18792 cat >>confdefs.h
<<\_ACEOF
18793 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18796 echo "$as_me:$LINENO: result: yes" >&5
18797 echo "${ECHO_T}yes" >&6
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.
$ac_ext >&5
18804 echo "$as_me:$LINENO: result: no" >&5
18805 echo "${ECHO_T}no" >&6
18806 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18807 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18808 cat >conftest.
$ac_ext <<_ACEOF
18811 cat confdefs.h
>>conftest.
$ac_ext
18812 cat >>conftest.
$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18815 # include <netdb.h>
18822 struct hostent *he;
18823 struct hostent_data data;
18825 (void) gethostbyname_r(name, he, &data);
18831 rm -f conftest.
$ac_objext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833 (eval $ac_compile) 2>conftest.er1
18835 grep -v '^ *+' conftest.er1
>conftest.err
18837 cat conftest.err
>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try
='test -z "$ac_c_werror_flag"
18841 || test ! -s conftest.err'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try
='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18854 cat >>confdefs.h
<<\_ACEOF
18855 #define HAVE_GETHOSTBYNAME_R 1
18859 cat >>confdefs.h
<<\_ACEOF
18860 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18863 echo "$as_me:$LINENO: result: yes" >&5
18864 echo "${ECHO_T}yes" >&6
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.
$ac_ext >&5
18871 echo "$as_me:$LINENO: result: no" >&5
18872 echo "${ECHO_T}no" >&6
18875 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18878 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18887 for ac_func
in gethostbyname
18889 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18890 echo "$as_me:$LINENO: checking for $ac_func" >&5
18891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18892 if eval "test \"\${$as_ac_var+set}\" = set"; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18895 cat >conftest.
$ac_ext <<_ACEOF
18898 cat confdefs.h
>>conftest.
$ac_ext
18899 cat >>conftest.
$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18903 #define $ac_func innocuous_$ac_func
18905 /* System header to define __stub macros and hopefully few prototypes,
18906 which can conflict with char $ac_func (); below.
18907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18908 <limits.h> exists even on freestanding compilers. */
18911 # include <limits.h>
18913 # include <assert.h>
18918 /* Override any gcc2 internal prototype to avoid an error. */
18923 /* We use char because int might match the return type of a gcc2
18924 builtin and then its argument prototype would still apply. */
18926 /* The GNU C library defines this for functions which it implements
18927 to always fail with ENOSYS. Some functions are actually named
18928 something starting with __ and the normal name is an alias. */
18929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18932 char (*f) () = $ac_func;
18941 return f != $ac_func;
18946 rm -f conftest.
$ac_objext conftest
$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>conftest.er1
18950 grep -v '^ *+' conftest.er1
>conftest.err
18952 cat conftest.err
>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try
='test -z "$ac_c_werror_flag"
18956 || test ! -s conftest.err'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try
='test -s conftest$ac_exeext'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 eval "$as_ac_var=yes"
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.
$ac_ext >&5
18973 eval "$as_ac_var=no"
18975 rm -f conftest.err conftest.
$ac_objext \
18976 conftest
$ac_exeext conftest.
$ac_ext
18978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18980 if test `eval echo '${'$as_ac_var'}'` = yes; then
18981 cat >>confdefs.h
<<_ACEOF
18982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18997 # checks for system services
19000 # Linux requires this for correct f.p. operations
19001 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19002 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19003 if test "${ac_cv_func___fpu_control+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 cat >conftest.
$ac_ext <<_ACEOF
19009 cat confdefs.h
>>conftest.
$ac_ext
19010 cat >>conftest.
$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19014 #define __fpu_control innocuous___fpu_control
19016 /* System header to define __stub macros and hopefully few prototypes,
19017 which can conflict with char __fpu_control (); below.
19018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19019 <limits.h> exists even on freestanding compilers. */
19022 # include <limits.h>
19024 # include <assert.h>
19027 #undef __fpu_control
19029 /* Override any gcc2 internal prototype to avoid an error. */
19034 /* We use char because int might match the return type of a gcc2
19035 builtin and then its argument prototype would still apply. */
19036 char __fpu_control ();
19037 /* The GNU C library defines this for functions which it implements
19038 to always fail with ENOSYS. Some functions are actually named
19039 something starting with __ and the normal name is an alias. */
19040 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19043 char (*f) () = __fpu_control;
19052 return f != __fpu_control;
19057 rm -f conftest.
$ac_objext conftest
$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059 (eval $ac_link) 2>conftest.er1
19061 grep -v '^ *+' conftest.er1
>conftest.err
19063 cat conftest.err
>&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try
='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try
='test -s conftest$ac_exeext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_func___fpu_control
=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.
$ac_ext >&5
19084 ac_cv_func___fpu_control
=no
19086 rm -f conftest.err conftest.
$ac_objext \
19087 conftest
$ac_exeext conftest.
$ac_ext
19089 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19090 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19091 if test $ac_cv_func___fpu_control = yes; then
19095 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19096 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19097 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 ac_check_lib_save_LIBS
=$LIBS
19101 LIBS
="-lieee $LIBS"
19102 cat >conftest.
$ac_ext <<_ACEOF
19105 cat confdefs.h
>>conftest.
$ac_ext
19106 cat >>conftest.
$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19109 /* Override any gcc2 internal prototype to avoid an error. */
19113 /* We use char because int might match the return type of a gcc2
19114 builtin and then its argument prototype would still apply. */
19115 char __fpu_control ();
19124 rm -f conftest.
$ac_objext conftest
$ac_exeext
19125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126 (eval $ac_link) 2>conftest.er1
19128 grep -v '^ *+' conftest.er1
>conftest.err
19130 cat conftest.err
>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try
='test -z "$ac_c_werror_flag"
19134 || test ! -s conftest.err'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try
='test -s conftest$ac_exeext'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_cv_lib_ieee___fpu_control
=yes
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.
$ac_ext >&5
19151 ac_cv_lib_ieee___fpu_control
=no
19153 rm -f conftest.err conftest.
$ac_objext \
19154 conftest
$ac_exeext conftest.
$ac_ext
19155 LIBS
=$ac_check_lib_save_LIBS
19157 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19158 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19159 if test $ac_cv_lib_ieee___fpu_control = yes; then
19160 cat >>confdefs.h
<<_ACEOF
19161 #define HAVE_LIBIEEE 1
19164 LIBS
="-lieee $LIBS"
19172 # Check for --with-fpectl
19173 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19174 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19176 # Check whether --with-fpectl or --without-fpectl was given.
19177 if test "${with_fpectl+set}" = set; then
19178 withval
="$with_fpectl"
19180 if test "$withval" != no
19183 cat >>confdefs.h
<<\_ACEOF
19184 #define WANT_SIGFPE_HANDLER 1
19187 echo "$as_me:$LINENO: result: yes" >&5
19188 echo "${ECHO_T}yes" >&6
19189 else echo "$as_me:$LINENO: result: no" >&5
19190 echo "${ECHO_T}no" >&6
19193 echo "$as_me:$LINENO: result: no" >&5
19194 echo "${ECHO_T}no" >&6
19197 # check for --with-libm=...
19199 case $ac_sys_system in
19204 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19205 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19207 # Check whether --with-libm or --without-libm was given.
19208 if test "${with_libm+set}" = set; then
19209 withval
="$with_libm"
19211 if test "$withval" = no
19213 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19214 echo "${ECHO_T}force LIBM empty" >&6
19215 elif test "$withval" != yes
19217 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19218 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19219 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19220 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19221 { (exit 1); exit 1; }; }
19224 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19225 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19228 # check for --with-libc=...
19230 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19231 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19233 # Check whether --with-libc or --without-libc was given.
19234 if test "${with_libc+set}" = set; then
19235 withval
="$with_libc"
19237 if test "$withval" = no
19239 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19240 echo "${ECHO_T}force LIBC empty" >&6
19241 elif test "$withval" != yes
19243 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19244 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19245 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19246 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19247 { (exit 1); exit 1; }; }
19250 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19251 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19254 # check for hypot() in math library
19258 for ac_func
in hypot
19260 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19261 echo "$as_me:$LINENO: checking for $ac_func" >&5
19262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19263 if eval "test \"\${$as_ac_var+set}\" = set"; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 cat >conftest.
$ac_ext <<_ACEOF
19269 cat confdefs.h
>>conftest.
$ac_ext
19270 cat >>conftest.
$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19274 #define $ac_func innocuous_$ac_func
19276 /* System header to define __stub macros and hopefully few prototypes,
19277 which can conflict with char $ac_func (); below.
19278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19279 <limits.h> exists even on freestanding compilers. */
19282 # include <limits.h>
19284 # include <assert.h>
19289 /* Override any gcc2 internal prototype to avoid an error. */
19294 /* We use char because int might match the return type of a gcc2
19295 builtin and then its argument prototype would still apply. */
19297 /* The GNU C library defines this for functions which it implements
19298 to always fail with ENOSYS. Some functions are actually named
19299 something starting with __ and the normal name is an alias. */
19300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19303 char (*f) () = $ac_func;
19312 return f != $ac_func;
19317 rm -f conftest.
$ac_objext conftest
$ac_exeext
19318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19319 (eval $ac_link) 2>conftest.er1
19321 grep -v '^ *+' conftest.er1
>conftest.err
19323 cat conftest.err
>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
19326 { ac_try
='test -z "$ac_c_werror_flag"
19327 || test ! -s conftest.err'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } &&
19333 { ac_try
='test -s conftest$ac_exeext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 eval "$as_ac_var=yes"
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.
$ac_ext >&5
19344 eval "$as_ac_var=no"
19346 rm -f conftest.err conftest.
$ac_objext \
19347 conftest
$ac_exeext conftest.
$ac_ext
19349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19351 if test `eval echo '${'$as_ac_var'}'` = yes; then
19352 cat >>confdefs.h
<<_ACEOF
19353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19358 "$ac_func.$ac_objext" | \
19359 *" $ac_func.$ac_objext" | \
19360 "$ac_func.$ac_objext "* | \
19361 *" $ac_func.$ac_objext "* ) ;;
19362 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19371 # check for wchar.h
19372 if test "${ac_cv_header_wchar_h+set}" = set; then
19373 echo "$as_me:$LINENO: checking for wchar.h" >&5
19374 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19375 if test "${ac_cv_header_wchar_h+set}" = set; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19379 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19381 # Is the header compilable?
19382 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19383 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19384 cat >conftest.
$ac_ext <<_ACEOF
19387 cat confdefs.h
>>conftest.
$ac_ext
19388 cat >>conftest.
$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 $ac_includes_default
19393 rm -f conftest.
$ac_objext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395 (eval $ac_compile) 2>conftest.er1
19397 grep -v '^ *+' conftest.er1
>conftest.err
19399 cat conftest.err
>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } &&
19402 { ac_try
='test -z "$ac_c_werror_flag"
19403 || test ! -s conftest.err'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try
='test -s conftest.$ac_objext'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415 ac_header_compiler
=yes
19417 echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.
$ac_ext >&5
19420 ac_header_compiler
=no
19422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19424 echo "${ECHO_T}$ac_header_compiler" >&6
19426 # Is the header present?
19427 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19428 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19429 cat >conftest.
$ac_ext <<_ACEOF
19432 cat confdefs.h
>>conftest.
$ac_ext
19433 cat >>conftest.
$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19438 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19440 grep -v '^ *+' conftest.er1
>conftest.err
19442 cat conftest.err
>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } >/dev
/null
; then
19445 if test -s conftest.err
; then
19446 ac_cpp_err
=$ac_c_preproc_warn_flag
19447 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19454 if test -z "$ac_cpp_err"; then
19455 ac_header_preproc
=yes
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.
$ac_ext >&5
19460 ac_header_preproc
=no
19462 rm -f conftest.err conftest.
$ac_ext
19463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19464 echo "${ECHO_T}$ac_header_preproc" >&6
19466 # So? What about this header?
19467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19469 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19470 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19472 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19473 ac_header_preproc
=yes
19476 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19477 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19478 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19479 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19481 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19482 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19483 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19484 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19485 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19487 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19490 ## ------------------------------------------------ ##
19491 ## Report this to http://www.python.org/python-bugs ##
19492 ## ------------------------------------------------ ##
19495 sed "s/^/$as_me: WARNING: /" >&2
19498 echo "$as_me:$LINENO: checking for wchar.h" >&5
19499 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19500 if test "${ac_cv_header_wchar_h+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 ac_cv_header_wchar_h
=$ac_header_preproc
19505 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19506 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19509 if test $ac_cv_header_wchar_h = yes; then
19512 cat >>confdefs.h
<<\_ACEOF
19513 #define HAVE_WCHAR_H 1
19525 # determine wchar_t size
19526 if test "$wchar_h" = yes
19528 echo "$as_me:$LINENO: checking for wchar_t" >&5
19529 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19530 if test "${ac_cv_type_wchar_t+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 cat >conftest.
$ac_ext <<_ACEOF
19536 cat confdefs.h
>>conftest.
$ac_ext
19537 cat >>conftest.
$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19546 if (sizeof (wchar_t))
19552 rm -f conftest.
$ac_objext
19553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19554 (eval $ac_compile) 2>conftest.er1
19556 grep -v '^ *+' conftest.er1
>conftest.err
19558 cat conftest.err
>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } &&
19561 { ac_try
='test -z "$ac_c_werror_flag"
19562 || test ! -s conftest.err'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; } &&
19568 { ac_try
='test -s conftest.$ac_objext'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; }; then
19574 ac_cv_type_wchar_t
=yes
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.
$ac_ext >&5
19579 ac_cv_type_wchar_t
=no
19581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19583 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19584 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19586 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19587 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19588 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 if test "$ac_cv_type_wchar_t" = yes; then
19592 # The cast to unsigned long works around a bug in the HP C Compiler
19593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19595 # This bug is HP SR number 8606223364.
19596 if test "$cross_compiling" = yes; then
19597 # Depending upon the size, compute the lo and hi bounds.
19598 cat >conftest.
$ac_ext <<_ACEOF
19601 cat confdefs.h
>>conftest.
$ac_ext
19602 cat >>conftest.
$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19609 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19616 rm -f conftest.
$ac_objext
19617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19618 (eval $ac_compile) 2>conftest.er1
19620 grep -v '^ *+' conftest.er1
>conftest.err
19622 cat conftest.err
>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); } &&
19625 { ac_try
='test -z "$ac_c_werror_flag"
19626 || test ! -s conftest.err'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try
='test -s conftest.$ac_objext'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19640 cat >conftest.
$ac_ext <<_ACEOF
19643 cat confdefs.h
>>conftest.
$ac_ext
19644 cat >>conftest.
$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19651 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19658 rm -f conftest.
$ac_objext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19660 (eval $ac_compile) 2>conftest.er1
19662 grep -v '^ *+' conftest.er1
>conftest.err
19664 cat conftest.err
>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try
='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try
='test -s conftest.$ac_objext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_hi
=$ac_mid; break
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.
$ac_ext >&5
19685 ac_lo
=`expr $ac_mid + 1`
19686 if test $ac_lo -le $ac_mid; then
19690 ac_mid
=`expr 2 '*' $ac_mid + 1`
19692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.
$ac_ext >&5
19698 cat >conftest.
$ac_ext <<_ACEOF
19701 cat confdefs.h
>>conftest.
$ac_ext
19702 cat >>conftest.
$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19709 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19716 rm -f conftest.
$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19720 grep -v '^ *+' conftest.er1
>conftest.err
19722 cat conftest.err
>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try
='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try
='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19740 cat >conftest.
$ac_ext <<_ACEOF
19743 cat confdefs.h
>>conftest.
$ac_ext
19744 cat >>conftest.
$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19751 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19758 rm -f conftest.
$ac_objext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19760 (eval $ac_compile) 2>conftest.er1
19762 grep -v '^ *+' conftest.er1
>conftest.err
19764 cat conftest.err
>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try
='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try
='test -s conftest.$ac_objext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_lo
=$ac_mid; break
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.
$ac_ext >&5
19785 ac_hi
=`expr '(' $ac_mid ')' - 1`
19786 if test $ac_mid -le $ac_hi; then
19790 ac_mid
=`expr 2 '*' $ac_mid`
19792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.
$ac_ext >&5
19800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19802 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19803 # Binary search between lo and hi bounds.
19804 while test "x$ac_lo" != "x$ac_hi"; do
19805 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19806 cat >conftest.
$ac_ext <<_ACEOF
19809 cat confdefs.h
>>conftest.
$ac_ext
19810 cat >>conftest.
$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19817 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19824 rm -f conftest.
$ac_objext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826 (eval $ac_compile) 2>conftest.er1
19828 grep -v '^ *+' conftest.er1
>conftest.err
19830 cat conftest.err
>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
19833 { ac_try
='test -z "$ac_c_werror_flag"
19834 || test ! -s conftest.err'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; } &&
19840 { ac_try
='test -s conftest.$ac_objext'
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.
$ac_ext >&5
19851 ac_lo
=`expr '(' $ac_mid ')' + 1`
19853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19856 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19857 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19858 See \`config.log' for more details." >&5
19859 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19860 See \`config.log' for more details." >&2;}
19861 { (exit 1); exit 1; }; } ;;
19864 if test "$cross_compiling" = yes; then
19865 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19866 See \`config.log' for more details." >&5
19867 echo "$as_me: error: cannot run test program while cross compiling
19868 See \`config.log' for more details." >&2;}
19869 { (exit 1); exit 1; }; }
19871 cat >conftest.
$ac_ext <<_ACEOF
19874 cat confdefs.h
>>conftest.
$ac_ext
19875 cat >>conftest.
$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19879 long longval () { return (long) (sizeof (wchar_t)); }
19880 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19882 #include <stdlib.h>
19887 FILE *f = fopen ("conftest.val", "w");
19890 if (((long) (sizeof (wchar_t))) < 0)
19892 long i = longval ();
19893 if (i != ((long) (sizeof (wchar_t))))
19895 fprintf (f, "%ld\n", i);
19899 unsigned long i = ulongval ();
19900 if (i != ((long) (sizeof (wchar_t))))
19902 fprintf (f, "%lu\n", i);
19904 exit (ferror (f) || fclose (f) != 0);
19910 rm -f conftest
$ac_exeext
19911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19912 (eval $ac_link) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19923 echo "$as_me: program exited with status $ac_status" >&5
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.
$ac_ext >&5
19927 ( exit $ac_status )
19928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19929 See \`config.log' for more details." >&5
19930 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19931 See \`config.log' for more details." >&2;}
19932 { (exit 1); exit 1; }; }
19934 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19939 ac_cv_sizeof_wchar_t
=0
19942 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19943 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19944 cat >>confdefs.h
<<_ACEOF
19945 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19951 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19952 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19954 cat >conftest.
$ac_ext <<_ACEOF
19957 cat confdefs.h
>>conftest.
$ac_ext
19958 cat >>conftest.
$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19962 #if TCL_UTF_MAX != 6
19963 # error "NOT UCS4_TCL"
19973 rm -f conftest.
$ac_objext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975 (eval $ac_compile) 2>conftest.er1
19977 grep -v '^ *+' conftest.er1
>conftest.err
19979 cat conftest.err
>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try
='test -z "$ac_c_werror_flag"
19983 || test ! -s conftest.err'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try
='test -s conftest.$ac_objext'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19997 cat >>confdefs.h
<<\_ACEOF
19998 #define HAVE_UCS4_TCL 1
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.
$ac_ext >&5
20008 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20009 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20010 echo "${ECHO_T}$have_ucs4_tcl" >&6
20012 # check whether wchar_t is signed or not
20013 if test "$wchar_h" = yes
20015 # check whether wchar_t is signed or not
20016 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20017 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20018 if test "${ac_cv_wchar_t_signed+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 if test "$cross_compiling" = yes; then
20023 ac_cv_wchar_t_signed
=yes
20025 cat >conftest.
$ac_ext <<_ACEOF
20028 cat confdefs.h
>>conftest.
$ac_ext
20029 cat >>conftest.
$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20035 /* Success: exit code 0 */
20036 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20040 rm -f conftest
$ac_exeext
20041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20042 (eval $ac_link) 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && { ac_try
='./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_wchar_t_signed
=yes
20053 echo "$as_me: program exited with status $ac_status" >&5
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.
$ac_ext >&5
20057 ( exit $ac_status )
20058 ac_cv_wchar_t_signed
=no
20060 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20064 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20065 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20068 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20069 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20070 # Check whether --enable-unicode or --disable-unicode was given.
20071 if test "${enable_unicode+set}" = set; then
20072 enableval
="$enable_unicode"
20078 if test $enable_unicode = yes
20080 # Without any arguments, Py_UNICODE defaults to two-byte mode
20081 case "$have_ucs4_tcl" in
20082 yes) enable_unicode
="ucs4"
20084 *) enable_unicode
="ucs2"
20091 case "$enable_unicode" in
20092 ucs2
) unicode_size
="2"
20093 cat >>confdefs.h
<<\_ACEOF
20094 #define Py_UNICODE_SIZE 2
20098 ucs4
) unicode_size
="4"
20099 cat >>confdefs.h
<<\_ACEOF
20100 #define Py_UNICODE_SIZE 4
20110 if test "$enable_unicode" = "no"
20113 echo "$as_me:$LINENO: result: not used" >&5
20114 echo "${ECHO_T}not used" >&6
20116 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20118 cat >>confdefs.h
<<\_ACEOF
20119 #define Py_USING_UNICODE 1
20123 # wchar_t is only usable if it maps to an unsigned type
20124 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20125 -a "$ac_cv_wchar_t_signed" = "no"
20127 PY_UNICODE_TYPE
="wchar_t"
20129 cat >>confdefs.h
<<\_ACEOF
20130 #define HAVE_USABLE_WCHAR_T 1
20133 cat >>confdefs.h
<<\_ACEOF
20134 #define PY_UNICODE_TYPE wchar_t
20137 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20139 PY_UNICODE_TYPE
="unsigned short"
20140 cat >>confdefs.h
<<\_ACEOF
20141 #define PY_UNICODE_TYPE unsigned short
20144 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20146 PY_UNICODE_TYPE
="unsigned long"
20147 cat >>confdefs.h
<<\_ACEOF
20148 #define PY_UNICODE_TYPE unsigned long
20152 PY_UNICODE_TYPE
="no type found"
20154 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20155 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20158 # check for endianness
20159 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20160 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20161 if test "${ac_cv_c_bigendian+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 # See if sys/param.h defines the BYTE_ORDER macro.
20165 cat >conftest.
$ac_ext <<_ACEOF
20168 cat confdefs.h
>>conftest.
$ac_ext
20169 cat >>conftest.
$ac_ext <<_ACEOF
20170 /* end confdefs.h. */
20171 #include <sys/types.h>
20172 #include <sys/param.h>
20177 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20178 bogus endian macros
20185 rm -f conftest.
$ac_objext
20186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20187 (eval $ac_compile) 2>conftest.er1
20189 grep -v '^ *+' conftest.er1
>conftest.err
20191 cat conftest.err
>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } &&
20194 { ac_try
='test -z "$ac_c_werror_flag"
20195 || test ! -s conftest.err'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try
='test -s conftest.$ac_objext'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 # It does; now see whether it defined to BIG_ENDIAN or not.
20208 cat >conftest.
$ac_ext <<_ACEOF
20211 cat confdefs.h
>>conftest.
$ac_ext
20212 cat >>conftest.
$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 #include <sys/types.h>
20215 #include <sys/param.h>
20220 #if BYTE_ORDER != BIG_ENDIAN
20228 rm -f conftest.
$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230 (eval $ac_compile) 2>conftest.er1
20232 grep -v '^ *+' conftest.er1
>conftest.err
20234 cat conftest.err
>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try
='test -z "$ac_c_werror_flag"
20238 || test ! -s conftest.err'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try
='test -s conftest.$ac_objext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_cv_c_bigendian
=yes
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.
$ac_ext >&5
20255 ac_cv_c_bigendian
=no
20257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.
$ac_ext >&5
20262 # It does not; compile a test program.
20263 if test "$cross_compiling" = yes; then
20264 # try to guess the endianness by grepping values into an object file
20265 ac_cv_c_bigendian
=unknown
20266 cat >conftest.
$ac_ext <<_ACEOF
20269 cat confdefs.h
>>conftest.
$ac_ext
20270 cat >>conftest.
$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20272 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20273 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20274 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20275 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20276 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20277 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20281 _ascii (); _ebcdic ();
20286 rm -f conftest.
$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288 (eval $ac_compile) 2>conftest.er1
20290 grep -v '^ *+' conftest.er1
>conftest.err
20292 cat conftest.err
>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try
='test -z "$ac_c_werror_flag"
20296 || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try
='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20309 ac_cv_c_bigendian
=yes
20311 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20312 if test "$ac_cv_c_bigendian" = unknown
; then
20313 ac_cv_c_bigendian
=no
20315 # finding both strings is unlikely to happen, but who knows?
20316 ac_cv_c_bigendian
=unknown
20320 echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.
$ac_ext >&5
20324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20326 cat >conftest.
$ac_ext <<_ACEOF
20329 cat confdefs.h
>>conftest.
$ac_ext
20330 cat >>conftest.
$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20335 /* Are we little or big endian? From Harbison&Steele. */
20339 char c[sizeof (long)];
20342 exit (u.c[sizeof (long) - 1] == 1);
20345 rm -f conftest
$ac_exeext
20346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20347 (eval $ac_link) 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 ac_cv_c_bigendian
=no
20358 echo "$as_me: program exited with status $ac_status" >&5
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.
$ac_ext >&5
20362 ( exit $ac_status )
20363 ac_cv_c_bigendian
=yes
20365 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20370 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20371 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20372 case $ac_cv_c_bigendian in
20375 cat >>confdefs.h
<<\_ACEOF
20376 #define WORDS_BIGENDIAN 1
20382 { { echo "$as_me:$LINENO: error: unknown endianness
20383 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20384 echo "$as_me: error: unknown endianness
20385 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20386 { (exit 1); exit 1; }; } ;;
20392 # Check whether right shifting a negative integer extends the sign bit
20393 # or fills with zeros (like the Cray J90, according to Tim Peters).
20394 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20395 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20396 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20400 if test "$cross_compiling" = yes; then
20401 ac_cv_rshift_extends_sign
=yes
20403 cat >conftest.
$ac_ext <<_ACEOF
20406 cat confdefs.h
>>conftest.
$ac_ext
20407 cat >>conftest.
$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20412 exit(((-1)>>3 == -1) ? 0 : 1);
20416 rm -f conftest
$ac_exeext
20417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20418 (eval $ac_link) 2>&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_cv_rshift_extends_sign
=yes
20429 echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.
$ac_ext >&5
20433 ( exit $ac_status )
20434 ac_cv_rshift_extends_sign
=no
20436 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20440 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20441 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20442 if test "$ac_cv_rshift_extends_sign" = no
20445 cat >>confdefs.h
<<\_ACEOF
20446 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20451 # check for getc_unlocked and related locking functions
20452 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20453 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20454 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 cat >conftest.
$ac_ext <<_ACEOF
20461 cat confdefs.h
>>conftest.
$ac_ext
20462 cat >>conftest.
$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20469 FILE *f = fopen("/dev/null", "r");
20478 rm -f conftest.
$ac_objext conftest
$ac_exeext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20480 (eval $ac_link) 2>conftest.er1
20482 grep -v '^ *+' conftest.er1
>conftest.err
20484 cat conftest.err
>&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try
='test -z "$ac_c_werror_flag"
20488 || test ! -s conftest.err'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try
='test -s conftest$ac_exeext'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 ac_cv_have_getc_unlocked
=yes
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.
$ac_ext >&5
20505 ac_cv_have_getc_unlocked
=no
20507 rm -f conftest.err conftest.
$ac_objext \
20508 conftest
$ac_exeext conftest.
$ac_ext
20511 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20512 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20513 if test "$ac_cv_have_getc_unlocked" = yes
20516 cat >>confdefs.h
<<\_ACEOF
20517 #define HAVE_GETC_UNLOCKED 1
20522 # check where readline lives
20523 # save the value of LIBS so we don't actually link Python with readline
20524 LIBS_no_readline
=$LIBS
20526 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20527 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20528 if test "${ac_cv_lib_readline_readline+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 ac_check_lib_save_LIBS
=$LIBS
20532 LIBS
="-lreadline $LIBS"
20533 cat >conftest.
$ac_ext <<_ACEOF
20536 cat confdefs.h
>>conftest.
$ac_ext
20537 cat >>conftest.
$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20540 /* Override any gcc2 internal prototype to avoid an error. */
20544 /* We use char because int might match the return type of a gcc2
20545 builtin and then its argument prototype would still apply. */
20555 rm -f conftest.
$ac_objext conftest
$ac_exeext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20557 (eval $ac_link) 2>conftest.er1
20559 grep -v '^ *+' conftest.er1
>conftest.err
20561 cat conftest.err
>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
20564 { ac_try
='test -z "$ac_c_werror_flag"
20565 || test ! -s conftest.err'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; } &&
20571 { ac_try
='test -s conftest$ac_exeext'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 ac_cv_lib_readline_readline
=yes
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.
$ac_ext >&5
20582 ac_cv_lib_readline_readline
=no
20584 rm -f conftest.err conftest.
$ac_objext \
20585 conftest
$ac_exeext conftest.
$ac_ext
20586 LIBS
=$ac_check_lib_save_LIBS
20588 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20589 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20590 if test $ac_cv_lib_readline_readline = yes; then
20591 cat >>confdefs.h
<<_ACEOF
20592 #define HAVE_LIBREADLINE 1
20595 LIBS
="-lreadline $LIBS"
20599 if test "$ac_cv_have_readline_readline" = no
20602 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20603 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20604 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 ac_check_lib_save_LIBS
=$LIBS
20608 LIBS
="-ltermcap $LIBS"
20609 cat >conftest.
$ac_ext <<_ACEOF
20612 cat confdefs.h
>>conftest.
$ac_ext
20613 cat >>conftest.
$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any gcc2 internal prototype to avoid an error. */
20620 /* We use char because int might match the return type of a gcc2
20621 builtin and then its argument prototype would still apply. */
20631 rm -f conftest.
$ac_objext conftest
$ac_exeext
20632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633 (eval $ac_link) 2>conftest.er1
20635 grep -v '^ *+' conftest.er1
>conftest.err
20637 cat conftest.err
>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } &&
20640 { ac_try
='test -z "$ac_c_werror_flag"
20641 || test ! -s conftest.err'
20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; } &&
20647 { ac_try
='test -s conftest$ac_exeext'
20648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649 (eval $ac_try) 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 ac_cv_lib_termcap_readline
=yes
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.
$ac_ext >&5
20658 ac_cv_lib_termcap_readline
=no
20660 rm -f conftest.err conftest.
$ac_objext \
20661 conftest
$ac_exeext conftest.
$ac_ext
20662 LIBS
=$ac_check_lib_save_LIBS
20664 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20665 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20666 if test $ac_cv_lib_termcap_readline = yes; then
20667 cat >>confdefs.h
<<_ACEOF
20668 #define HAVE_LIBTERMCAP 1
20671 LIBS
="-ltermcap $LIBS"
20677 # check for readline 2.1
20678 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20679 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20680 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 ac_check_lib_save_LIBS
=$LIBS
20684 LIBS
="-lreadline $LIBS"
20685 cat >conftest.
$ac_ext <<_ACEOF
20688 cat confdefs.h
>>conftest.
$ac_ext
20689 cat >>conftest.
$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20692 /* Override any gcc2 internal prototype to avoid an error. */
20696 /* We use char because int might match the return type of a gcc2
20697 builtin and then its argument prototype would still apply. */
20698 char rl_callback_handler_install ();
20702 rl_callback_handler_install ();
20707 rm -f conftest.
$ac_objext conftest
$ac_exeext
20708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20709 (eval $ac_link) 2>conftest.er1
20711 grep -v '^ *+' conftest.er1
>conftest.err
20713 cat conftest.err
>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } &&
20716 { ac_try
='test -z "$ac_c_werror_flag"
20717 || test ! -s conftest.err'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; } &&
20723 { ac_try
='test -s conftest$ac_exeext'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 ac_cv_lib_readline_rl_callback_handler_install
=yes
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.
$ac_ext >&5
20734 ac_cv_lib_readline_rl_callback_handler_install
=no
20736 rm -f conftest.err conftest.
$ac_objext \
20737 conftest
$ac_exeext conftest.
$ac_ext
20738 LIBS
=$ac_check_lib_save_LIBS
20740 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20741 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20742 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20744 cat >>confdefs.h
<<\_ACEOF
20745 #define HAVE_RL_CALLBACK 1
20751 # check for readline 2.2
20752 cat >conftest.
$ac_ext <<_ACEOF
20755 cat confdefs.h
>>conftest.
$ac_ext
20756 cat >>conftest.
$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 #include <readline/readline.h>
20760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20761 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20763 grep -v '^ *+' conftest.er1
>conftest.err
20765 cat conftest.err
>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } >/dev
/null
; then
20768 if test -s conftest.err
; then
20769 ac_cpp_err
=$ac_c_preproc_warn_flag
20770 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20777 if test -z "$ac_cpp_err"; then
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.
$ac_ext >&5
20785 rm -f conftest.err conftest.
$ac_ext
20786 if test $have_readline = yes
20788 cat >conftest.
$ac_ext <<_ACEOF
20791 cat confdefs.h
>>conftest.
$ac_ext
20792 cat >>conftest.
$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20794 #include <readline/readline.h>
20797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20800 cat >>confdefs.h
<<\_ACEOF
20801 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20809 # check for readline 4.0
20810 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20811 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20812 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 ac_check_lib_save_LIBS
=$LIBS
20816 LIBS
="-lreadline $LIBS"
20817 cat >conftest.
$ac_ext <<_ACEOF
20820 cat confdefs.h
>>conftest.
$ac_ext
20821 cat >>conftest.
$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20824 /* Override any gcc2 internal prototype to avoid an error. */
20828 /* We use char because int might match the return type of a gcc2
20829 builtin and then its argument prototype would still apply. */
20830 char rl_pre_input_hook ();
20834 rl_pre_input_hook ();
20839 rm -f conftest.
$ac_objext conftest
$ac_exeext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841 (eval $ac_link) 2>conftest.er1
20843 grep -v '^ *+' conftest.er1
>conftest.err
20845 cat conftest.err
>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } &&
20848 { ac_try
='test -z "$ac_c_werror_flag"
20849 || test ! -s conftest.err'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; } &&
20855 { ac_try
='test -s conftest$ac_exeext'
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; }; then
20861 ac_cv_lib_readline_rl_pre_input_hook
=yes
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.
$ac_ext >&5
20866 ac_cv_lib_readline_rl_pre_input_hook
=no
20868 rm -f conftest.err conftest.
$ac_objext \
20869 conftest
$ac_exeext conftest.
$ac_ext
20870 LIBS
=$ac_check_lib_save_LIBS
20872 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20873 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20874 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20876 cat >>confdefs.h
<<\_ACEOF
20877 #define HAVE_RL_PRE_INPUT_HOOK 1
20883 # check for readline 4.2
20884 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20885 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20886 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 ac_check_lib_save_LIBS
=$LIBS
20890 LIBS
="-lreadline $LIBS"
20891 cat >conftest.
$ac_ext <<_ACEOF
20894 cat confdefs.h
>>conftest.
$ac_ext
20895 cat >>conftest.
$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20898 /* Override any gcc2 internal prototype to avoid an error. */
20902 /* We use char because int might match the return type of a gcc2
20903 builtin and then its argument prototype would still apply. */
20904 char rl_completion_matches ();
20908 rl_completion_matches ();
20913 rm -f conftest.
$ac_objext conftest
$ac_exeext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915 (eval $ac_link) 2>conftest.er1
20917 grep -v '^ *+' conftest.er1
>conftest.err
20919 cat conftest.err
>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
20922 { ac_try
='test -z "$ac_c_werror_flag"
20923 || test ! -s conftest.err'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try
='test -s conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 ac_cv_lib_readline_rl_completion_matches
=yes
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.
$ac_ext >&5
20940 ac_cv_lib_readline_rl_completion_matches
=no
20942 rm -f conftest.err conftest.
$ac_objext \
20943 conftest
$ac_exeext conftest.
$ac_ext
20944 LIBS
=$ac_check_lib_save_LIBS
20946 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20947 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20948 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20950 cat >>confdefs.h
<<\_ACEOF
20951 #define HAVE_RL_COMPLETION_MATCHES 1
20957 # also in readline 4.2
20958 cat >conftest.
$ac_ext <<_ACEOF
20961 cat confdefs.h
>>conftest.
$ac_ext
20962 cat >>conftest.
$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 #include <readline/readline.h>
20966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20967 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20969 grep -v '^ *+' conftest.er1
>conftest.err
20971 cat conftest.err
>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } >/dev
/null
; then
20974 if test -s conftest.err
; then
20975 ac_cpp_err
=$ac_c_preproc_warn_flag
20976 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20983 if test -z "$ac_cpp_err"; then
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.
$ac_ext >&5
20991 rm -f conftest.err conftest.
$ac_ext
20992 if test $have_readline = yes
20994 cat >conftest.
$ac_ext <<_ACEOF
20997 cat confdefs.h
>>conftest.
$ac_ext
20998 cat >>conftest.
$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 #include <readline/readline.h>
21003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21004 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21006 cat >>confdefs.h
<<\_ACEOF
21007 #define HAVE_RL_CATCH_SIGNAL 1
21015 # End of readline checks: restore LIBS
21016 LIBS
=$LIBS_no_readline
21018 echo "$as_me:$LINENO: checking for broken nice()" >&5
21019 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21020 if test "${ac_cv_broken_nice+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 if test "$cross_compiling" = yes; then
21025 ac_cv_broken_nice
=no
21027 cat >conftest.
$ac_ext <<_ACEOF
21030 cat confdefs.h
>>conftest.
$ac_ext
21031 cat >>conftest.
$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21036 int val1 = nice(1);
21037 if (val1 != -1 && val1 == nice(2))
21043 rm -f conftest
$ac_exeext
21044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21045 (eval $ac_link) 2>&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
21054 ac_cv_broken_nice
=yes
21056 echo "$as_me: program exited with status $ac_status" >&5
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.
$ac_ext >&5
21060 ( exit $ac_status )
21061 ac_cv_broken_nice
=no
21063 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21068 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21069 if test "$ac_cv_broken_nice" = yes
21072 cat >>confdefs.h
<<\_ACEOF
21073 #define HAVE_BROKEN_NICE 1
21078 echo "$as_me:$LINENO: checking for broken poll()" >&5
21079 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21080 if test "$cross_compiling" = yes; then
21081 ac_cv_broken_poll
=no
21083 cat >conftest.
$ac_ext <<_ACEOF
21086 cat confdefs.h
>>conftest.
$ac_ext
21087 cat >>conftest.
$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21094 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21098 int poll_test = poll (&poll_struct, 1, 0);
21104 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21115 rm -f conftest
$ac_exeext
21116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21117 (eval $ac_link) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 ac_cv_broken_poll
=yes
21128 echo "$as_me: program exited with status $ac_status" >&5
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.
$ac_ext >&5
21132 ( exit $ac_status )
21133 ac_cv_broken_poll
=no
21135 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21137 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21138 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21139 if test "$ac_cv_broken_poll" = yes
21142 cat >>confdefs.h
<<\_ACEOF
21143 #define HAVE_BROKEN_POLL 1
21148 # Before we can test tzset, we need to check if struct tm has a tm_zone
21149 # (which is not required by ISO C or UNIX spec) and/or if we support
21151 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21152 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21153 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 cat >conftest.
$ac_ext <<_ACEOF
21159 cat confdefs.h
>>conftest.
$ac_ext
21160 cat >>conftest.
$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <sys/types.h>
21163 #include <$ac_cv_struct_tm>
21169 static struct tm ac_aggr;
21170 if (ac_aggr.tm_zone)
21176 rm -f conftest.
$ac_objext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178 (eval $ac_compile) 2>conftest.er1
21180 grep -v '^ *+' conftest.er1
>conftest.err
21182 cat conftest.err
>&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } &&
21185 { ac_try
='test -z "$ac_c_werror_flag"
21186 || test ! -s conftest.err'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; } &&
21192 { ac_try
='test -s conftest.$ac_objext'
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; }; then
21198 ac_cv_member_struct_tm_tm_zone
=yes
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.
$ac_ext >&5
21203 cat >conftest.
$ac_ext <<_ACEOF
21206 cat confdefs.h
>>conftest.
$ac_ext
21207 cat >>conftest.
$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <sys/types.h>
21210 #include <$ac_cv_struct_tm>
21216 static struct tm ac_aggr;
21217 if (sizeof ac_aggr.tm_zone)
21223 rm -f conftest.
$ac_objext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21225 (eval $ac_compile) 2>conftest.er1
21227 grep -v '^ *+' conftest.er1
>conftest.err
21229 cat conftest.err
>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } &&
21232 { ac_try
='test -z "$ac_c_werror_flag"
21233 || test ! -s conftest.err'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; } &&
21239 { ac_try
='test -s conftest.$ac_objext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_member_struct_tm_tm_zone
=yes
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.
$ac_ext >&5
21250 ac_cv_member_struct_tm_tm_zone
=no
21252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21254 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21256 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21257 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21258 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21260 cat >>confdefs.h
<<_ACEOF
21261 #define HAVE_STRUCT_TM_TM_ZONE 1
21267 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21269 cat >>confdefs.h
<<\_ACEOF
21270 #define HAVE_TM_ZONE 1
21274 echo "$as_me:$LINENO: checking for tzname" >&5
21275 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21276 if test "${ac_cv_var_tzname+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 cat >conftest.
$ac_ext <<_ACEOF
21282 cat confdefs.h
>>conftest.
$ac_ext
21283 cat >>conftest.
$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21286 #ifndef tzname /* For SGI. */
21287 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21298 rm -f conftest.
$ac_objext conftest
$ac_exeext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300 (eval $ac_link) 2>conftest.er1
21302 grep -v '^ *+' conftest.er1
>conftest.err
21304 cat conftest.err
>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try
='test -z "$ac_c_werror_flag"
21308 || test ! -s conftest.err'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try
='test -s conftest$ac_exeext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 ac_cv_var_tzname
=yes
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.
$ac_ext >&5
21325 ac_cv_var_tzname
=no
21327 rm -f conftest.err conftest.
$ac_objext \
21328 conftest
$ac_exeext conftest.
$ac_ext
21330 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21331 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21332 if test $ac_cv_var_tzname = yes; then
21334 cat >>confdefs.h
<<\_ACEOF
21335 #define HAVE_TZNAME 1
21342 # check tzset(3) exists and works like we expect it to
21343 echo "$as_me:$LINENO: checking for working tzset()" >&5
21344 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21345 if test "${ac_cv_working_tzset+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21349 if test "$cross_compiling" = yes; then
21350 ac_cv_working_tzset
=no
21352 cat >conftest.
$ac_ext <<_ACEOF
21355 cat confdefs.h
>>conftest.
$ac_ext
21356 cat >>conftest.
$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21359 #include <stdlib.h>
21361 #include <string.h>
21364 extern char *tzname[];
21369 /* Note that we need to ensure that not only does tzset(3)
21370 do 'something' with localtime, but it works as documented
21371 in the library reference and as expected by the test suite.
21372 This includes making sure that tzname is set properly if
21373 tm->tm_zone does not exist since it is the alternative way
21374 of getting timezone info.
21376 Red Hat 6.2 doesn't understand the southern hemisphere
21377 after New Year's Day.
21380 time_t groundhogday = 1044144000; /* GMT-based */
21381 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21383 putenv("TZ=UTC+0");
21385 if (localtime(&groundhogday)->tm_hour != 0)
21388 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21389 if (strcmp(tzname[0], "UTC") ||
21390 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21394 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21396 if (localtime(&groundhogday)->tm_hour != 19)
21399 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21403 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21405 if (localtime(&groundhogday)->tm_hour != 11)
21408 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21412 #if HAVE_STRUCT_TM_TM_ZONE
21413 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21415 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21423 rm -f conftest
$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425 (eval $ac_link) 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
21434 ac_cv_working_tzset
=yes
21436 echo "$as_me: program exited with status $ac_status" >&5
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.
$ac_ext >&5
21440 ( exit $ac_status )
21441 ac_cv_working_tzset
=no
21443 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21447 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21448 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21449 if test "$ac_cv_working_tzset" = yes
21452 cat >>confdefs.h
<<\_ACEOF
21453 #define HAVE_WORKING_TZSET 1
21458 # Look for subsecond timestamps in struct stat
21459 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21460 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21461 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 cat >conftest.
$ac_ext <<_ACEOF
21467 cat confdefs.h
>>conftest.
$ac_ext
21468 cat >>conftest.
$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 #include <sys/stat.h>
21476 st.st_mtim.tv_nsec = 1;
21482 rm -f conftest.
$ac_objext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484 (eval $ac_compile) 2>conftest.er1
21486 grep -v '^ *+' conftest.er1
>conftest.err
21488 cat conftest.err
>&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
21491 { ac_try
='test -z "$ac_c_werror_flag"
21492 || test ! -s conftest.err'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try
='test -s conftest.$ac_objext'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 ac_cv_stat_tv_nsec
=yes
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.
$ac_ext >&5
21509 ac_cv_stat_tv_nsec
=no
21511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21514 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21515 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21516 if test "$ac_cv_stat_tv_nsec" = yes
21519 cat >>confdefs.h
<<\_ACEOF
21520 #define HAVE_STAT_TV_NSEC 1
21525 # Look for BSD style subsecond timestamps in struct stat
21526 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21527 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21528 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 cat >conftest.
$ac_ext <<_ACEOF
21534 cat confdefs.h
>>conftest.
$ac_ext
21535 cat >>conftest.
$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <sys/stat.h>
21543 st.st_mtimespec.tv_nsec = 1;
21549 rm -f conftest.
$ac_objext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551 (eval $ac_compile) 2>conftest.er1
21553 grep -v '^ *+' conftest.er1
>conftest.err
21555 cat conftest.err
>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try
='test -z "$ac_c_werror_flag"
21559 || test ! -s conftest.err'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try
='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_stat_tv_nsec2
=yes
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.
$ac_ext >&5
21576 ac_cv_stat_tv_nsec2
=no
21578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21581 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21582 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21583 if test "$ac_cv_stat_tv_nsec2" = yes
21586 cat >>confdefs.h
<<\_ACEOF
21587 #define HAVE_STAT_TV_NSEC2 1
21592 # On HP/UX 11.0, mvwdelch is a block with a return statement
21593 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21594 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21595 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21598 cat >conftest.
$ac_ext <<_ACEOF
21601 cat confdefs.h
>>conftest.
$ac_ext
21602 cat >>conftest.
$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 #include <curses.h>
21610 rtn = mvwdelch(0,0,0);
21616 rm -f conftest.
$ac_objext
21617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21618 (eval $ac_compile) 2>conftest.er1
21620 grep -v '^ *+' conftest.er1
>conftest.err
21622 cat conftest.err
>&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } &&
21625 { ac_try
='test -z "$ac_c_werror_flag"
21626 || test ! -s conftest.err'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; } &&
21632 { ac_try
='test -s conftest.$ac_objext'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 ac_cv_mvwdelch_is_expression
=yes
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.
$ac_ext >&5
21643 ac_cv_mvwdelch_is_expression
=no
21645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21648 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21649 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21651 if test "$ac_cv_mvwdelch_is_expression" = yes
21654 cat >>confdefs.h
<<\_ACEOF
21655 #define MVWDELCH_IS_EXPRESSION 1
21660 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21661 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21662 if test "${ac_cv_window_has_flags+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21665 cat >conftest.
$ac_ext <<_ACEOF
21668 cat confdefs.h
>>conftest.
$ac_ext
21669 cat >>conftest.
$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 #include <curses.h>
21683 rm -f conftest.
$ac_objext
21684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21685 (eval $ac_compile) 2>conftest.er1
21687 grep -v '^ *+' conftest.er1
>conftest.err
21689 cat conftest.err
>&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } &&
21692 { ac_try
='test -z "$ac_c_werror_flag"
21693 || test ! -s conftest.err'
21694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try
='test -s conftest.$ac_objext'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21705 ac_cv_window_has_flags
=yes
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.
$ac_ext >&5
21710 ac_cv_window_has_flags
=no
21712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21715 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21716 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21719 if test "$ac_cv_window_has_flags" = yes
21722 cat >>confdefs.h
<<\_ACEOF
21723 #define WINDOW_HAS_FLAGS 1
21728 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21729 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21731 if test -e /dev
/ptmx
21733 echo "$as_me:$LINENO: result: yes" >&5
21734 echo "${ECHO_T}yes" >&6
21736 cat >>confdefs.h
<<\_ACEOF
21737 #define HAVE_DEV_PTMX 1
21741 echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6
21745 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21746 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21748 if test -e /dev
/ptc
21750 echo "$as_me:$LINENO: result: yes" >&5
21751 echo "${ECHO_T}yes" >&6
21753 cat >>confdefs.h
<<\_ACEOF
21754 #define HAVE_DEV_PTC 1
21758 echo "$as_me:$LINENO: result: no" >&5
21759 echo "${ECHO_T}no" >&6
21762 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
21763 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
21764 if test "$cross_compiling" = yes; then
21765 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21766 See \`config.log' for more details." >&5
21767 echo "$as_me: error: cannot run test program while cross compiling
21768 See \`config.log' for more details." >&2;}
21769 { (exit 1); exit 1; }; }
21771 cat >conftest.
$ac_ext <<_ACEOF
21774 cat confdefs.h
>>conftest.
$ac_ext
21775 cat >>conftest.
$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21778 #include <stddef.h>
21779 #include <string.h>
21785 if(sprintf(buffer, "%zd", (size_t)123) < 0)
21788 if (strncmp(buffer, "123", 3))
21794 rm -f conftest
$ac_exeext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21796 (eval $ac_link) 2>&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 echo "$as_me:$LINENO: result: yes" >&5
21806 echo "${ECHO_T}yes" >&6
21808 cat >>confdefs.h
<<\_ACEOF
21809 #define PY_FORMAT_SIZE_T "z"
21813 echo "$as_me: program exited with status $ac_status" >&5
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.
$ac_ext >&5
21817 ( exit $ac_status )
21818 echo "$as_me:$LINENO: result: no" >&5
21819 echo "${ECHO_T}no" >&6
21821 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21824 echo "$as_me:$LINENO: checking for socklen_t" >&5
21825 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21826 if test "${ac_cv_type_socklen_t+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 cat >conftest.
$ac_ext <<_ACEOF
21832 cat confdefs.h
>>conftest.
$ac_ext
21833 cat >>conftest.
$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21836 #ifdef HAVE_SYS_TYPES_H
21837 #include <sys/types.h>
21839 #ifdef HAVE_SYS_SOCKET_H
21840 #include <sys/socket.h>
21847 if ((socklen_t *) 0)
21849 if (sizeof (socklen_t))
21855 rm -f conftest.
$ac_objext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21857 (eval $ac_compile) 2>conftest.er1
21859 grep -v '^ *+' conftest.er1
>conftest.err
21861 cat conftest.err
>&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } &&
21864 { ac_try
='test -z "$ac_c_werror_flag"
21865 || test ! -s conftest.err'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try
='test -s conftest.$ac_objext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 ac_cv_type_socklen_t
=yes
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.
$ac_ext >&5
21882 ac_cv_type_socklen_t
=no
21884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21886 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21887 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21888 if test $ac_cv_type_socklen_t = yes; then
21892 cat >>confdefs.h
<<\_ACEOF
21893 #define socklen_t int
21901 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21903 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21907 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21908 echo "$as_me:$LINENO: checking for build directories" >&5
21909 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21910 for dir
in $SRCDIRS; do
21911 if test ! -d $dir; then
21915 echo "$as_me:$LINENO: result: done" >&5
21916 echo "${ECHO_T}done" >&6
21918 # generate output files
21919 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21921 cat >confcache
<<\_ACEOF
21922 # This file is a shell script that caches the results of configure
21923 # tests run on this system so they can be shared between configure
21924 # scripts and configure runs, see configure's option --config-cache.
21925 # It is not useful on other systems. If it contains results you don't
21926 # want to keep, you may remove or edit it.
21928 # config.status only pays attention to the cache file if you give it
21929 # the --recheck option to rerun configure.
21931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21933 # following values.
21937 # The following way of writing the cache mishandles newlines in values,
21938 # but we know of no workaround that is simple, portable, and efficient.
21939 # So, don't put newlines in cache variables' values.
21940 # Ultrix sh set writes to stderr and can't be redirected directly,
21941 # and sets the high bit in the cache file unless we assign to the vars.
21944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21946 # `set' does not quote correctly, so add quotes (double-quote
21947 # substitution turns \\\\ into \\, and sed turns \\ into \).
21950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21953 # `set' quotes correctly as required by POSIX, so do not add quotes.
21955 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21964 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21966 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21967 if test -w $cache_file; then
21968 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21969 cat confcache
>$cache_file
21971 echo "not updating unwritable cache $cache_file"
21976 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21977 # Let make expand exec_prefix.
21978 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21980 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21981 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21982 # trailing colons and then remove the whole line if VPATH becomes empty
21983 # (actually we leave an empty line to preserve line numbers).
21984 if test "x$srcdir" = x.
; then
21985 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21986 s/:*\$(srcdir):*/:/;
21987 s/:*\${srcdir}:*/:/;
21989 s/^\([^=]*=[ ]*\):*/\1/;
21995 DEFS
=-DHAVE_CONFIG_H
21999 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22000 # 1. Remove the extension, and $U if already installed.
22001 ac_i
=`echo "$ac_i" |
22002 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22004 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22005 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22007 LIBOBJS
=$ac_libobjs
22009 LTLIBOBJS
=$ac_ltlibobjs
22013 : ${CONFIG_STATUS=./config.status}
22014 ac_clean_files_save
=$ac_clean_files
22015 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22016 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22017 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22018 cat >$CONFIG_STATUS <<_ACEOF
22020 # Generated by $as_me.
22021 # Run this file to recreate the current configuration.
22022 # Compiler output produced by configure, useful for debugging
22023 # configure, is in config.log if it exists.
22026 ac_cs_recheck=false
22028 SHELL=\${CONFIG_SHELL-$SHELL}
22031 cat >>$CONFIG_STATUS <<\_ACEOF
22032 ## --------------------- ##
22033 ## M4sh Initialization. ##
22034 ## --------------------- ##
22036 # Be Bourne compatible
22037 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22040 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22041 # is contrary to our usage. Disable this feature.
22042 alias -g '${1+"$@"}'='"$@"'
22043 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22046 DUALCASE
=1; export DUALCASE
# for MKS sh
22048 # Support unset when possible.
22049 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22056 # Work around bugs in pre-3.0 UWIN ksh.
22057 $as_unset ENV MAIL MAILPATH
22064 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22065 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22066 LC_TELEPHONE LC_TIME
22068 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22069 eval $as_var=C
; export $as_var
22075 # Required to use basename.
22076 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22082 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22083 as_basename
=basename
22089 # Name of the executable.
22090 as_me
=`$as_basename "$0" ||
22091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22092 X"$0" : 'X\(//\)$' \| \
22093 X"$0" : 'X\(/\)$' \| \
22094 . : '\(.\)' 2>/dev/null ||
22096 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22097 /^X\/\(\/\/\)$/{ s//\1/; q; }
22098 /^X\/\(\/\).*/{ s//\1/; q; }
22102 # PATH needs CR, and LINENO needs CR and PATH.
22103 # Avoid depending upon Character Ranges.
22104 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22105 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22106 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22107 as_cr_digits
='0123456789'
22108 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22110 # The user is always right.
22111 if test "${PATH_SEPARATOR+set}" != set; then
22112 echo "#! /bin/sh" >conf$$.sh
22113 echo "exit 0" >>conf$$.sh
22115 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22124 as_lineno_1
=$LINENO
22125 as_lineno_2
=$LINENO
22126 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22127 test "x$as_lineno_1" != "x$as_lineno_2" &&
22128 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22129 # Find who we are. Look in the path if we contain no path at all
22132 *[\\/]* ) as_myself
=$0 ;;
22133 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22134 for as_dir
in $PATH
22137 test -z "$as_dir" && as_dir
=.
22138 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22143 # We did not find ourselves, most probably we were run as `sh COMMAND'
22144 # in which case we are not to be found in the path.
22145 if test "x$as_myself" = x
; then
22148 if test ! -f "$as_myself"; then
22149 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22150 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22151 { (exit 1); exit 1; }; }
22153 case $CONFIG_SHELL in
22155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22156 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22159 test -z "$as_dir" && as_dir
=.
22160 for as_base
in sh bash ksh sh5
; do
22163 if ("$as_dir/$as_base" -c '
22164 as_lineno_1=$LINENO
22165 as_lineno_2=$LINENO
22166 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22167 test "x$as_lineno_1" != "x$as_lineno_2" &&
22168 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22169 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22170 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22171 CONFIG_SHELL
=$as_dir/$as_base
22172 export CONFIG_SHELL
22173 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22181 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22182 # uniformly replaced by the line number. The first 'sed' inserts a
22183 # line-number line before each line; the second 'sed' does the real
22184 # work. The second script uses 'N' to pair each line-number line
22185 # with the numbered line, and appends trailing '-' during
22186 # substitution so that $LINENO is not a special case at line end.
22187 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22188 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22189 sed '=' <$as_myself |
22194 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22197 s,^['$as_cr_digits']*\n,,
22198 ' >$as_me.lineno
&&
22199 chmod +x
$as_me.lineno ||
22200 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22201 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22202 { (exit 1); exit 1; }; }
22204 # Don't try to exec as it changes $[0], causing all sort of problems
22205 # (the dirname of $[0] is not the place where we might find the
22206 # original and so on. Autoconf is especially sensible to this).
22208 # Exit status is that of the last command.
22213 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22214 *c
*,-n*) ECHO_N
= ECHO_C
='
22216 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22217 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22220 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22226 rm -f conf$$ conf$$.exe conf$$.
file
22228 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22229 # We could just check for DJGPP; but this test a) works b) is more generic
22230 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22231 if test -f conf$$.exe
; then
22232 # Don't use ln at all; we don't have any links
22237 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22242 rm -f conf$$ conf$$.exe conf$$.
file
22244 if mkdir
-p .
2>/dev
/null
; then
22247 test -d .
/-p && rmdir .
/-p
22251 as_executable_p
="test -f"
22253 # Sed expression to map a string onto a valid CPP name.
22254 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22256 # Sed expression to map a string onto a valid variable name.
22257 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22261 # We need space, tab and new line, in precisely that order.
22271 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22272 # report actual input values of CONFIG_FILES etc. instead of their
22273 # values after options handling. Logging --version etc. is OK.
22277 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22278 ## Running $as_me. ##
22283 This file was extended by python $as_me 2.5, which was
22284 generated by GNU Autoconf 2.59. Invocation command line was
22286 CONFIG_FILES = $CONFIG_FILES
22287 CONFIG_HEADERS = $CONFIG_HEADERS
22288 CONFIG_LINKS = $CONFIG_LINKS
22289 CONFIG_COMMANDS = $CONFIG_COMMANDS
22293 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22297 # Files that config.status was made for.
22298 if test -n "$ac_config_files"; then
22299 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22302 if test -n "$ac_config_headers"; then
22303 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22306 if test -n "$ac_config_links"; then
22307 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22310 if test -n "$ac_config_commands"; then
22311 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22314 cat >>$CONFIG_STATUS <<\_ACEOF
22317 \`$as_me' instantiates files from templates according to the
22318 current configuration.
22320 Usage: $0 [OPTIONS] [FILE]...
22322 -h, --help print this help, then exit
22323 -V, --version print version number, then exit
22324 -q, --quiet do not print progress messages
22325 -d, --debug don't remove temporary files
22326 --recheck update $as_me by reconfiguring in the same conditions
22327 --file=FILE[:TEMPLATE]
22328 instantiate the configuration file FILE
22329 --header=FILE[:TEMPLATE]
22330 instantiate the configuration header FILE
22332 Configuration files:
22335 Configuration headers:
22338 Report bugs to <bug-autoconf@gnu.org>."
22341 cat >>$CONFIG_STATUS <<_ACEOF
22343 python config.status 2.5
22344 configured by $0, generated by GNU Autoconf 2.59,
22345 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22347 Copyright (C) 2003 Free Software Foundation, Inc.
22348 This config.status script is free software; the Free Software Foundation
22349 gives unlimited permission to copy, distribute and modify it."
22354 cat >>$CONFIG_STATUS <<\_ACEOF
22355 # If no file are specified by the user, then we need to provide default
22356 # value. By we need to know if files were specified by the user.
22362 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22363 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22371 *) # This is not an option, so the user has probably given explicit
22374 ac_need_defaults
=false
;;
22378 # Handling of the options.
22380 cat >>$CONFIG_STATUS <<\_ACEOF
22381 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22383 --version |
--vers* |
-V )
22384 echo "$ac_cs_version"; exit 0 ;;
22386 # Conflict between --help and --header
22387 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22388 Try \`$0 --help' for more information." >&5
22389 echo "$as_me: error: ambiguous option: $1
22390 Try \`$0 --help' for more information." >&2;}
22391 { (exit 1); exit 1; }; };;
22392 --help |
--hel |
-h )
22393 echo "$ac_cs_usage"; exit 0 ;;
22394 --debug |
--d* |
-d )
22396 --file |
--fil |
--fi |
--f )
22398 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22399 ac_need_defaults
=false
;;
22400 --header |
--heade |
--head |
--hea )
22402 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22403 ac_need_defaults
=false
;;
22404 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22405 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22408 # This is an error.
22409 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22410 Try \`$0 --help' for more information." >&5
22411 echo "$as_me: error: unrecognized option: $1
22412 Try \`$0 --help' for more information." >&2;}
22413 { (exit 1); exit 1; }; } ;;
22415 *) ac_config_targets
="$ac_config_targets $1" ;;
22421 ac_configure_extra_args
=
22423 if $ac_cs_silent; then
22425 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22429 cat >>$CONFIG_STATUS <<_ACEOF
22430 if \$ac_cs_recheck; then
22431 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22432 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22441 cat >>$CONFIG_STATUS <<\_ACEOF
22442 for ac_config_target
in $ac_config_targets
22444 case "$ac_config_target" in
22445 # Handling of arguments.
22446 "Mac/OSX/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/Makefile" ;;
22447 "Mac/OSX/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/PythonLauncher/Makefile" ;;
22448 "Mac/OSX/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/IDLE/Makefile" ;;
22449 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22450 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22451 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22452 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22453 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22454 { (exit 1); exit 1; }; };;
22458 # If the user did not use the arguments to specify the items to instantiate,
22459 # then the envvar interface is used. Set only those that are not.
22460 # We use the long form for the default assignment because of an extremely
22461 # bizarre bug on SunOS 4.1.3.
22462 if $ac_need_defaults; then
22463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22467 # Have a temporary directory for convenience. Make it in the build tree
22468 # simply because there is no reason to put it here, and in addition,
22469 # creating and moving files from /tmp can sometimes cause problems.
22470 # Create a temporary directory, and hook for its removal unless debugging.
22473 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22474 trap '{ (exit 1); exit 1; }' 1 2 13 15
22477 # Create a (secure) tmp directory for tmp files.
22480 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22481 test -n "$tmp" && test -d "$tmp"
22484 tmp
=.
/confstat$$
-$RANDOM
22485 (umask 077 && mkdir
$tmp)
22488 echo "$me: cannot create a temporary directory in ." >&2
22489 { (exit 1); exit 1; }
22494 cat >>$CONFIG_STATUS <<_ACEOF
22497 # CONFIG_FILES section.
22500 # No need to generate the scripts if there are no CONFIG_FILES.
22501 # This happens for instance when ./config.status config.h
22502 if test -n "\$CONFIG_FILES"; then
22503 # Protect against being on the right side of a sed subst in config.status.
22504 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22505 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22506 s,@SHELL@,$SHELL,;t t
22507 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22508 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22509 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22510 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22511 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22512 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22513 s,@exec_prefix@,$exec_prefix,;t t
22514 s,@prefix@,$prefix,;t t
22515 s,@program_transform_name@,$program_transform_name,;t t
22516 s,@bindir@,$bindir,;t t
22517 s,@sbindir@,$sbindir,;t t
22518 s,@libexecdir@,$libexecdir,;t t
22519 s,@datadir@,$datadir,;t t
22520 s,@sysconfdir@,$sysconfdir,;t t
22521 s,@sharedstatedir@,$sharedstatedir,;t t
22522 s,@localstatedir@,$localstatedir,;t t
22523 s,@libdir@,$libdir,;t t
22524 s,@includedir@,$includedir,;t t
22525 s,@oldincludedir@,$oldincludedir,;t t
22526 s,@infodir@,$infodir,;t t
22527 s,@mandir@,$mandir,;t t
22528 s,@build_alias@,$build_alias,;t t
22529 s,@host_alias@,$host_alias,;t t
22530 s,@target_alias@,$target_alias,;t t
22531 s,@DEFS@,$DEFS,;t t
22532 s,@ECHO_C@,$ECHO_C,;t t
22533 s,@ECHO_N@,$ECHO_N,;t t
22534 s,@ECHO_T@,$ECHO_T,;t t
22535 s,@LIBS@,$LIBS,;t t
22536 s,@VERSION@,$VERSION,;t t
22537 s,@SOVERSION@,$SOVERSION,;t t
22538 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22539 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22540 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22541 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22542 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22543 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22544 s,@MACHDEP@,$MACHDEP,;t t
22545 s,@SGI_ABI@,$SGI_ABI,;t t
22546 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22547 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22548 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22549 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22551 s,@CFLAGS@,$CFLAGS,;t t
22552 s,@LDFLAGS@,$LDFLAGS,;t t
22553 s,@CPPFLAGS@,$CPPFLAGS,;t t
22554 s,@ac_ct_CC@,$ac_ct_CC,;t t
22555 s,@EXEEXT@,$EXEEXT,;t t
22556 s,@OBJEXT@,$OBJEXT,;t t
22558 s,@MAINCC@,$MAINCC,;t t
22560 s,@EGREP@,$EGREP,;t t
22561 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22562 s,@LIBRARY@,$LIBRARY,;t t
22563 s,@LDLIBRARY@,$LDLIBRARY,;t t
22564 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22565 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22566 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22567 s,@INSTSONAME@,$INSTSONAME,;t t
22568 s,@RUNSHARED@,$RUNSHARED,;t t
22569 s,@LINKCC@,$LINKCC,;t t
22570 s,@RANLIB@,$RANLIB,;t t
22571 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22573 s,@SVNVERSION@,$SVNVERSION,;t t
22574 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22575 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22576 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22579 s,@BASECFLAGS@,$BASECFLAGS,;t t
22580 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22581 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22583 s,@LDSHARED@,$LDSHARED,;t t
22584 s,@BLDSHARED@,$BLDSHARED,;t t
22585 s,@CCSHARED@,$CCSHARED,;t t
22586 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22587 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22588 s,@SHLIBS@,$SHLIBS,;t t
22589 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22590 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22591 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22592 s,@LDLAST@,$LDLAST,;t t
22593 s,@THREADOBJ@,$THREADOBJ,;t t
22594 s,@DLINCLDIR@,$DLINCLDIR,;t t
22595 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22596 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22597 s,@TRUE@,$TRUE,;t t
22598 s,@LIBOBJS@,$LIBOBJS,;t t
22599 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22600 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22601 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22602 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22603 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22604 s,@LIBM@,$LIBM,;t t
22605 s,@LIBC@,$LIBC,;t t
22606 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22607 s,@THREADHEADERS@,$THREADHEADERS,;t t
22608 s,@SRCDIRS@,$SRCDIRS,;t t
22609 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22614 cat >>$CONFIG_STATUS <<\_ACEOF
22615 # Split the substitutions into bite-sized pieces for seds with
22616 # small command number limits, like on Digital OSF/1 and HP-UX.
22617 ac_max_sed_lines
=48
22618 ac_sed_frag
=1 # Number of current file.
22619 ac_beg
=1 # First line for current file.
22620 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22623 while $ac_more_lines; do
22624 if test $ac_beg -gt 1; then
22625 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22627 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22629 if test ! -s $tmp/subs.frag
; then
22630 ac_more_lines
=false
22632 # The purpose of the label and of the branching condition is to
22633 # speed up the sed processing (if there are no `@' at all, there
22634 # is no need to browse any of the substitutions).
22635 # These are the two extra sed commands mentioned above.
22637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22638 if test -z "$ac_sed_cmds"; then
22639 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22641 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22643 ac_sed_frag
=`expr $ac_sed_frag + 1`
22645 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22648 if test -z "$ac_sed_cmds"; then
22651 fi # test -n "$CONFIG_FILES"
22654 cat >>$CONFIG_STATUS <<\_ACEOF
22655 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22658 - |
*:- |
*:-:* ) # input from stdin
22660 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22661 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22662 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22663 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22664 * ) ac_file_in
=$ac_file.
in ;;
22667 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22668 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22670 X"$ac_file" : 'X\(//\)[^/]' \| \
22671 X"$ac_file" : 'X\(//\)$' \| \
22672 X"$ac_file" : 'X\(/\)' \| \
22673 . : '\(.\)' 2>/dev/null ||
22675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22677 /^X\(\/\/\)$/{ s//\1/; q; }
22678 /^X\(\/\).*/{ s//\1/; q; }
22680 { if $as_mkdir_p; then
22685 while test ! -d "$as_dir"; do
22686 as_dirs
="$as_dir $as_dirs"
22687 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22689 X"$as_dir" : 'X\(//\)[^/]' \| \
22690 X"$as_dir" : 'X\(//\)$' \| \
22691 X"$as_dir" : 'X\(/\)' \| \
22692 . : '\(.\)' 2>/dev/null ||
22694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22696 /^X\(\/\/\)$/{ s//\1/; q; }
22697 /^X\(\/\).*/{ s//\1/; q; }
22700 test ! -n "$as_dirs" || mkdir
$as_dirs
22701 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22703 { (exit 1); exit 1; }; }; }
22707 if test "$ac_dir" != .
; then
22708 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22709 # A "../" for each directory in $ac_dir_suffix.
22710 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22712 ac_dir_suffix
= ac_top_builddir
=
22716 .
) # No --srcdir option. We are building in place.
22718 if test -z "$ac_top_builddir"; then
22721 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22723 [\\/]* | ?
:[\\/]* ) # Absolute path.
22724 ac_srcdir
=$srcdir$ac_dir_suffix;
22725 ac_top_srcdir
=$srcdir ;;
22726 *) # Relative path.
22727 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22728 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22731 # Do not use `cd foo && pwd` to compute absolute paths, because
22732 # the directories may not exist.
22734 .
) ac_abs_builddir
="$ac_dir";;
22737 .
) ac_abs_builddir
=`pwd`;;
22738 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22739 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22742 case $ac_abs_builddir in
22743 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22745 case ${ac_top_builddir}.
in
22746 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22747 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22748 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22751 case $ac_abs_builddir in
22752 .
) ac_abs_srcdir
=$ac_srcdir;;
22755 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22756 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22757 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22760 case $ac_abs_builddir in
22761 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22763 case $ac_top_srcdir in
22764 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22765 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22766 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22772 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22773 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22776 if test x
"$ac_file" != x-
; then
22777 { echo "$as_me:$LINENO: creating $ac_file" >&5
22778 echo "$as_me: creating $ac_file" >&6;}
22781 # Let's still pretend it is `configure' which instantiates (i.e., don't
22782 # use $as_me), people would be surprised to read:
22783 # /* config.h. Generated by config.status. */
22784 if test x
"$ac_file" = x-
; then
22787 configure_input
="$ac_file. "
22789 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22790 sed 's,.*/,,'` by configure."
22792 # First look for the input files in the build tree, otherwise in the
22794 ac_file_inputs
=`IFS=:
22795 for f in $ac_file_in; do
22797 -) echo $tmp/stdin ;;
22799 # Absolute (can't be DOS-style, as IFS=:)
22800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22801 echo "$as_me: error: cannot find input file: $f" >&2;}
22802 { (exit 1); exit 1; }; }
22805 if test -f "$f"; then
22808 elif test -f "$srcdir/$f"; then
22813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22814 echo "$as_me: error: cannot find input file: $f" >&2;}
22815 { (exit 1); exit 1; }; }
22818 done` ||
{ (exit 1); exit 1; }
22820 cat >>$CONFIG_STATUS <<_ACEOF
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22826 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22827 s
,@configure_input@
,$configure_input,;t t
22828 s
,@srcdir@
,$ac_srcdir,;t t
22829 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22830 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22831 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22832 s
,@builddir@
,$ac_builddir,;t t
22833 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22834 s
,@top_builddir@
,$ac_top_builddir,;t t
22835 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22836 s
,@INSTALL@
,$ac_INSTALL,;t t
22837 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22839 if test x"$ac_file" != x-; then
22840 mv $tmp/out $ac_file
22848 cat >>$CONFIG_STATUS <<\_ACEOF
22851 # CONFIG_HEADER section.
22854 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22855 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22857 # ac_d sets the value in "#define NAME VALUE" lines.
22858 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22859 ac_dB
='[ ].*$,\1#\2'
22862 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22863 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22864 ac_uB
='$,\1#\2define\3'
22868 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22871 - |
*:- |
*:-:* ) # input from stdin
22873 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22874 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22875 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22876 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22877 * ) ac_file_in
=$ac_file.
in ;;
22880 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22881 echo "$as_me: creating $ac_file" >&6;}
22883 # First look for the input files in the build tree, otherwise in the
22885 ac_file_inputs
=`IFS=:
22886 for f in $ac_file_in; do
22888 -) echo $tmp/stdin ;;
22890 # Absolute (can't be DOS-style, as IFS=:)
22891 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22892 echo "$as_me: error: cannot find input file: $f" >&2;}
22893 { (exit 1); exit 1; }; }
22894 # Do quote $f, to prevent DOS paths from being IFS'd.
22897 if test -f "$f"; then
22900 elif test -f "$srcdir/$f"; then
22905 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22906 echo "$as_me: error: cannot find input file: $f" >&2;}
22907 { (exit 1); exit 1; }; }
22910 done` ||
{ (exit 1); exit 1; }
22911 # Remove the trailing spaces.
22912 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22916 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22917 # `conftest.undefs', that substitutes the proper values into
22918 # config.h.in to produce config.h. The first handles `#define'
22919 # templates, and the second `#undef' templates.
22920 # And first: Protect against being on the right side of a sed subst in
22921 # config.status. Protect against being in an unquoted here document
22922 # in config.status.
22923 rm -f conftest.defines conftest.undefs
22924 # Using a here document instead of a string reduces the quoting nightmare.
22925 # Putting comments in sed scripts is not portable.
22927 # `end' is used to avoid that the second main sed command (meant for
22928 # 0-ary CPP macros) applies to n-ary macro definitions.
22929 # See the Autoconf documentation for `clear'.
22930 cat >confdef2sed.
sed <<\_ACEOF
22935 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22937 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22940 # If some macros were called several times there might be several times
22941 # the same #defines, which is useless. Nevertheless, we may not want to
22942 # sort them, since we want the *last* AC-DEFINE to be honored.
22943 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22944 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22945 rm -f confdef2sed.sed
22947 # This sed command replaces #undef with comments. This is necessary, for
22948 # example, in the case of _POSIX_SOURCE, which is predefined and required
22949 # on some systems where configure will not decide to define it.
22950 cat >>conftest.undefs <<\_ACEOF
22951 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22954 # Break up conftest.defines because some shells have a limit on the size
22955 # of here documents, and old seds have small limits too (100 cmds).
22956 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22957 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22958 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22959 echo ' :' >>$CONFIG_STATUS
22960 rm -f conftest.tail
22961 while grep . conftest.defines >/dev/null
22963 # Write a limited-size here document to $tmp/defines.sed.
22964 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22965 # Speed up: don't consider the non `#define' lines.
22966 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22967 # Work around the forget-to-reset-the-flag bug.
22968 echo 't clr' >>$CONFIG_STATUS
22969 echo ': clr' >>$CONFIG_STATUS
22970 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22972 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22974 mv $tmp/out $tmp/in
22976 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22977 rm -f conftest.defines
22978 mv conftest.
tail conftest.defines
22980 rm -f conftest.defines
22981 echo ' fi # grep' >>$CONFIG_STATUS
22982 echo >>$CONFIG_STATUS
22984 # Break up conftest.undefs because some shells have a limit on the size
22985 # of here documents, and old seds have small limits too (100 cmds).
22986 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22987 rm -f conftest.
tail
22988 while grep . conftest.undefs
>/dev
/null
22990 # Write a limited-size here document to $tmp/undefs.sed.
22991 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22992 # Speed up: don't consider the non
`#undef'
22993 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22994 # Work around the forget-to-reset-the-flag bug.
22995 echo 't clr' >>$CONFIG_STATUS
22996 echo ': clr' >>$CONFIG_STATUS
22997 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22999 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23001 mv $tmp/out $tmp/in
23003 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23004 rm -f conftest.undefs
23005 mv conftest.tail conftest.undefs
23007 rm -f conftest.undefs
23009 cat >>$CONFIG_STATUS <<\_ACEOF
23010 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23011 # use $as_me), people would be surprised to read:
23012 # /* config.h. Generated by config.status. */
23013 if test x
"$ac_file" = x-
; then
23014 echo "/* Generated by configure. */" >$tmp/config.h
23016 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23018 cat $tmp/in >>$tmp/config.h
23020 if test x
"$ac_file" != x-
; then
23021 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23022 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23023 echo "$as_me: $ac_file is unchanged" >&6;}
23025 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23027 X"$ac_file" : 'X\(//\)[^/]' \| \
23028 X"$ac_file" : 'X\(//\)$' \| \
23029 X"$ac_file" : 'X\(/\)' \| \
23030 . : '\(.\)' 2>/dev/null ||
23032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23034 /^X\(\/\/\)$/{ s//\1/; q; }
23035 /^X\(\/\).*/{ s//\1/; q; }
23037 { if $as_mkdir_p; then
23042 while test ! -d "$as_dir"; do
23043 as_dirs
="$as_dir $as_dirs"
23044 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23046 X"$as_dir" : 'X\(//\)[^/]' \| \
23047 X"$as_dir" : 'X\(//\)$' \| \
23048 X"$as_dir" : 'X\(/\)' \| \
23049 . : '\(.\)' 2>/dev/null ||
23051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23053 /^X\(\/\/\)$/{ s//\1/; q; }
23054 /^X\(\/\).*/{ s//\1/; q; }
23057 test ! -n "$as_dirs" || mkdir
$as_dirs
23058 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23060 { (exit 1); exit 1; }; }; }
23063 mv $tmp/config.h
$ac_file
23067 rm -f $tmp/config.h
23072 cat >>$CONFIG_STATUS <<\_ACEOF
23074 { (exit 0); exit 0; }
23076 chmod +x
$CONFIG_STATUS
23077 ac_clean_files
=$ac_clean_files_save
23080 # configure is writing to config.log, and then calls config.status.
23081 # config.status does its own redirection, appending to config.log.
23082 # Unfortunately, on DOS this fails, as config.log is still kept open
23083 # by configure, so config.status won't be able to write to it; its
23084 # output is simply discarded. So we exec the FD to /dev/null,
23085 # effectively closing config.log, so it can be properly (re)opened and
23086 # appended to by config.status. When coming back to configure, we
23087 # need to make the FD available again.
23088 if test "$no_create" != yes; then
23090 ac_config_status_args
=
23091 test "$silent" = yes &&
23092 ac_config_status_args
="$ac_config_status_args --quiet"
23094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23097 # would make configure fail if this is the last instruction.
23098 $ac_cs_success ||
{ (exit 1); exit 1; }
23102 echo "creating Modules/Setup"
23103 if test ! -f Modules
/Setup
23105 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23108 echo "creating Modules/Setup.local"
23109 if test ! -f Modules
/Setup.
local
23111 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23114 echo "creating Makefile"
23115 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23116 -s Modules Modules
/Setup.config \
23117 Modules
/Setup.
local Modules
/Setup
23118 mv config.c Modules