2 # From configure.in Revision: 53826 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='python'
272 PACKAGE_TARNAME
='python'
273 PACKAGE_VERSION
='2.6'
274 PACKAGE_STRING
='python 2.6'
275 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
277 ac_unique_file
="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures python 2.6 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive
) echo "Configuration of python 2.6:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-universalsdk[SDKDIR
]
849 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
850 --enable-framework[=INSTALLDIR
]
851 Build
(MacOSX|Darwin
) framework
852 --enable-shared disable
/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
855 --enable-ipv6 Enable ipv6
(with ipv4
) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs
[24]]
858 Enable Unicode
strings (default is
yes)
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler
>
865 compile main
() and link python executable with C
++
867 --with-suffix=.exe
set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable
/enable signal module
872 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
873 --with(out
)-threads[=DIRECTORY
]
874 disable
/enable thread support
875 --with(out
)-thread[=DIRECTORY
]
876 deprecated
; use
--with(out
)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out
)-doc-strings disable
/enable documentation
strings
879 --with(out
)-tsc enable
/disable timestamp counter profile
880 --with(out
)-pymalloc disable
/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.6, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables
, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1357 mv confdefs.h.new confdefs.h
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h
<<\_ACEOF
1369 #define _GNU_SOURCE 1
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1386 cat >>confdefs.h
<<\_ACEOF
1387 #define __BSD_VISIBLE 1
1391 # 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
=
1446 FRAMEWORKINSTALLFIRST
=
1447 FRAMEWORKINSTALLLAST
=
1448 FRAMEWORKALTINSTALLFIRST
=
1449 FRAMEWORKALTINSTALLLAST
=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1453 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1458 PYTHONFRAMEWORK
=Python
1459 PYTHONFRAMEWORKDIR
=Python.framework
1460 PYTHONFRAMEWORKPREFIX
=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST
="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST
="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1469 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1471 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1475 ac_config_files
="$ac_config_files Mac/Makefile"
1477 ac_config_files
="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files
="$ac_config_files Mac/IDLE/Makefile"
1486 PYTHONFRAMEWORKDIR
=no-framework
1487 PYTHONFRAMEWORKPREFIX
=
1488 PYTHONFRAMEWORKINSTALLDIR
=
1489 FRAMEWORKINSTALLFIRST
=
1490 FRAMEWORKINSTALLLAST
=
1491 FRAMEWORKALTINSTALLFIRST
=
1492 FRAMEWORKALTINSTALLLAST
=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1496 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1521 ac_sys_system
=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release
=`uname -v`
1526 ac_sys_release
=`uname -r`
1528 ac_md_system
=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release
=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP
="$ac_md_system$ac_md_release"
1535 cygwin
*) MACHDEP
="cygwin";;
1536 darwin
*) MACHDEP
="darwin";;
1537 atheos
*) MACHDEP
="atheos";;
1538 irix646
) MACHDEP
="irix6";;
1539 '') MACHDEP
="unknown";;
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD
/2.
* | OpenBSD
/3.
[0123456789] | OpenBSD
/4.
[0])
1557 define_xopen_source
=no
;;
1558 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1559 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1561 NetBSD
/1.5 | NetBSD
/1.5.
* | NetBSD
/1.6 | NetBSD
/1.6.
* | NetBSD
/1.6A-S
)
1562 define_xopen_source
=no
;;
1563 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1564 # of union __?sigval. Reported by Stuart Bishop.
1566 define_xopen_source
=no
;;
1567 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1568 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1569 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1570 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1571 define_xopen_source
=no
;;
1572 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1573 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1575 define_xopen_source
=no
;;
1576 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1577 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1578 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1579 # This should hopefully be fixed in FreeBSD 4.9
1580 FreeBSD
/4.8* | Darwin
/6* )
1581 define_xopen_source
=no
;;
1582 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1583 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1584 # or has another value. By not (re)defining it, the defaults come in place.
1586 define_xopen_source
=no
;;
1588 if test `uname -r` -eq 1; then
1589 define_xopen_source
=no
1592 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1593 # disables platform specific features beyond repair.
1594 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1595 # has no effect, don't bother defining them
1597 define_xopen_source
=no
1602 if test $define_xopen_source = yes
1604 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1605 # defined precisely as g++ defines it
1606 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1608 case $ac_sys_system/$ac_sys_release in
1609 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1611 cat >>confdefs.h
<<\_ACEOF
1612 #define _XOPEN_SOURCE 500
1618 cat >>confdefs.h
<<\_ACEOF
1619 #define _XOPEN_SOURCE 600
1625 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1626 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1627 # several APIs are not declared. Since this is also needed in some
1628 # cases for HP-UX, we define it globally.
1629 # except for Solaris 10, where it must not be defined,
1630 # as it implies XPG4.2
1631 case $ac_sys_system/$ac_sys_release in
1636 cat >>confdefs.h
<<\_ACEOF
1637 #define _XOPEN_SOURCE_EXTENDED 1
1644 cat >>confdefs.h
<<\_ACEOF
1645 #define _POSIX_C_SOURCE 200112L
1652 # SGI compilers allow the specification of the both the ABI and the
1653 # ISA on the command line. Depending on the values of these switches,
1654 # different and often incompatable code will be generated.
1656 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1657 # thus supply support for various ABI/ISA combinations. The MACHDEP
1658 # variable is also adjusted.
1661 if test ! -z "$SGI_ABI"
1664 LDFLAGS
="$SGI_ABI $LDFLAGS"
1665 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1667 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1668 echo "${ECHO_T}$MACHDEP" >&6
1670 # And add extra plat-mac for darwin
1673 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1674 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1675 if test -z "$EXTRAPLATDIR"
1679 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1680 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1688 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1689 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1691 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1692 # it may influence the way we can build extensions, so distutils
1696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1697 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1699 # checks for alternative programs
1701 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1702 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1703 # just to get things to compile and link. Users are free to override OPT
1704 # when running configure or make. The build should not break if they do.
1705 # BASECFLAGS should generally not be messed with, however.
1707 # XXX shouldn't some/most/all of this code be merged with the stuff later
1708 # on that fiddles with OPT and BASECFLAGS?
1709 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1710 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1712 # Check whether --with-gcc or --without-gcc was given.
1713 if test "${with_gcc+set}" = set; then
1722 without_gcc
=$withval;;
1726 case $ac_sys_system in
1730 case $BE_HOST_CPU in
1734 BASECFLAGS
="$BASECFLAGS -export pragma"
1736 LDFLAGS
="$LDFLAGS -nodup"
1744 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1745 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1746 { (exit 1); exit 1; }; }
1749 AR
="\$(srcdir)/Modules/ar_beos"
1758 echo "$as_me:$LINENO: result: $without_gcc" >&5
1759 echo "${ECHO_T}$without_gcc" >&6
1761 # If the user switches compilers, we can't believe the cache
1762 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1764 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1765 (it is also a good idea to do 'make clean' before compiling)" >&5
1766 echo "$as_me: error: cached CC is different -- throw away $cache_file
1767 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1768 { (exit 1); exit 1; }; }
1772 ac_cpp
='$CPP $CPPFLAGS'
1773 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC
="$CC" # Let the user override the test.
1787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1791 test -z "$as_dir" && as_dir
=.
1792 for ac_exec_ext
in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc
; ac_word
=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir
=.
1830 for ac_exec_ext
in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC
="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC
="$CC" # Let the user override the test.
1867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir
=.
1872 for ac_exec_ext
in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc
; ac_word
=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir
=.
1910 for ac_exec_ext
in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC
="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc
; ac_word
=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir
=.
1953 for ac_exec_ext
in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected
=yes
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy
$ac_cv_prog_CC
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1975 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC
="$CC" # Let the user override the test.
2004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir
=.
2009 for ac_exec_ext
in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2032 if test -z "$CC"; then
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy
$ac_prog; ac_word
=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir
=.
2051 for ac_exec_ext
in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC
="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089 ac_compiler
=`set X $ac_compile; echo $2`
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2106 cat >conftest.
$ac_ext <<_ACEOF
2109 cat confdefs.h
>>conftest.
$ac_ext
2110 cat >>conftest.
$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2121 ac_clean_files_save
=$ac_clean_files
2122 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2141 # b.out is created by i960 compilers.
2142 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2144 test -f "$ac_file" ||
continue
2146 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2149 # This is the source file.
2152 # We found the default executable, but exeext='' is most
2156 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.
$ac_ext >&5
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2177 ac_exeext
=$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_file" >&5
2179 echo "${ECHO_T}$ac_file" >&6
2181 # Check the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try
='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2196 if test "$cross_compiling" = maybe
; then
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2213 ac_clean_files
=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2232 for ac_file
in conftest.exe conftest conftest.
*; do
2233 test -f "$ac_file" ||
continue
2235 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2236 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest
$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252 echo "${ECHO_T}$ac_cv_exeext" >&6
2254 rm -f conftest.
$ac_ext
2255 EXEEXT
=$ac_cv_exeext
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.
$ac_ext <<_ACEOF
2265 cat confdefs.h
>>conftest.
$ac_ext
2266 cat >>conftest.
$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2285 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2286 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT
=$ac_cv_objext
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.
$ac_ext <<_ACEOF
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2330 rm -f conftest.
$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2334 grep -v '^ *+' conftest.er1
>conftest.err
2336 cat conftest.err
>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try
='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try
='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.
$ac_ext >&5
2359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2360 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS
=${CFLAGS+set}
2367 ac_save_CFLAGS
=$CFLAGS
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2377 cat confdefs.h
>>conftest.
$ac_ext
2378 cat >>conftest.
$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.
$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2393 grep -v '^ *+' conftest.er1
>conftest.err
2395 cat conftest.err
>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try
='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try
='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.
$ac_ext >&5
2418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS
=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2431 if test "$GCC" = yes; then
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_cv_prog_cc_stdc
=no
2444 cat >conftest.
$ac_ext <<_ACEOF
2447 cat confdefs.h
>>conftest.
$ac_ext
2448 cat >>conftest.
$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2468 s = g (p, va_arg (v,int));
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC
="$ac_save_CC $ac_arg"
2506 rm -f conftest.
$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2510 grep -v '^ *+' conftest.er1
>conftest.err
2512 cat conftest.err
>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try
='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try
='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc
=$ac_arg
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.
$ac_ext >&5
2535 rm -f conftest.err conftest.
$ac_objext
2537 rm -f conftest.
$ac_ext conftest.
$ac_objext
2542 case "x$ac_cv_prog_cc_stdc" in
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.
$ac_ext <<_ACEOF
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try
='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try
='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration
in \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2591 cat >conftest.
$ac_ext <<_ACEOF
2594 cat confdefs.h
>>conftest.
$ac_ext
2595 cat >>conftest.
$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2607 rm -f conftest.
$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try
='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try
='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2637 cat >conftest.
$ac_ext <<_ACEOF
2640 cat confdefs.h
>>conftest.
$ac_ext
2641 cat >>conftest.
$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.
$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2656 grep -v '^ *+' conftest.er1
>conftest.err
2658 cat conftest.err
>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try
='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try
='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.
$ac_ext >&5
2680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2696 ac_cpp
='$CPP $CPPFLAGS'
2697 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2704 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2705 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2707 # Check whether --with-cxx_main or --without-cxx_main was given.
2708 if test "${with_cxx_main+set}" = set; then
2709 withval
="$with_cxx_main"
2713 no
) with_cxx_main
=no
2715 yes) with_cxx_main
=yes
2717 *) with_cxx_main
=yes
2730 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2731 echo "${ECHO_T}$with_cxx_main" >&6
2737 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2738 set dummy g
++; ac_word
=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_path_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2750 for as_dir
in notfound
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2769 if test -n "$CXX"; then
2770 echo "$as_me:$LINENO: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 cc
) # Extract the first word of "c++", so it can be a program name with args.
2778 set dummy c
++; ac_word
=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_path_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2790 for as_dir
in notfound
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2809 if test -n "$CXX"; then
2810 echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2818 if test "$CXX" = "notfound"
2825 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy
$ac_prog; ac_word
=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX
="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CXX"; then
2855 echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CXX" && break
2864 test -n "$CXX" || CXX
="notfound"
2866 if test "$CXX" = "notfound"
2871 if test "$preset_cxx" != "$CXX"
2873 { echo "$as_me:$LINENO: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2878 echo "$as_me: WARNING:
2880 By default, distutils will build C++ extension modules with \"$CXX\".
2881 If this is not intended, then set CXX on the configure command line.
2886 # checks for UNIX variants that set C preprocessor variables
2889 ac_cpp
='$CPP $CPPFLAGS'
2890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 # Double quotes because CPP needs to be expanded
2904 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2907 for ac_c_preproc_warn_flag
in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.
$ac_ext <<_ACEOF
2918 cat confdefs.h
>>conftest.
$ac_ext
2919 cat >>conftest.
$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2922 # include <limits.h>
2924 # include <assert.h>
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev
/null
; then
2936 if test -s conftest.err
; then
2937 ac_cpp_err
=$ac_c_preproc_warn_flag
2938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2945 if test -z "$ac_cpp_err"; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2951 # Broken: fails on valid input.
2954 rm -f conftest.err conftest.
$ac_ext
2956 # OK, works on sane cases. Now check whether non-existent headers
2957 # can be detected and how.
2958 cat >conftest.
$ac_ext <<_ACEOF
2961 cat confdefs.h
>>conftest.
$ac_ext
2962 cat >>conftest.
$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1
>conftest.err
2971 cat conftest.err
>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev
/null
; then
2974 if test -s conftest.err
; then
2975 ac_cpp_err
=$ac_c_preproc_warn_flag
2976 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.
$ac_ext >&5
2990 # Passes both tests.
2994 rm -f conftest.err conftest.
$ac_ext
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.
$ac_ext
2999 if $ac_preproc_ok; then
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3014 for ac_c_preproc_warn_flag
in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.
$ac_ext <<_ACEOF
3025 cat confdefs.h
>>conftest.
$ac_ext
3026 cat >>conftest.
$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3029 # include <limits.h>
3031 # include <assert.h>
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3038 grep -v '^ *+' conftest.er1
>conftest.err
3040 cat conftest.err
>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev
/null
; then
3043 if test -s conftest.err
; then
3044 ac_cpp_err
=$ac_c_preproc_warn_flag
3045 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3052 if test -z "$ac_cpp_err"; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.
$ac_ext >&5
3058 # Broken: fails on valid input.
3061 rm -f conftest.err conftest.
$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.
$ac_ext <<_ACEOF
3068 cat confdefs.h
>>conftest.
$ac_ext
3069 cat >>conftest.
$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1
>conftest.err
3078 cat conftest.err
>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev
/null
; then
3081 if test -s conftest.err
; then
3082 ac_cpp_err
=$ac_c_preproc_warn_flag
3083 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.
$ac_ext >&5
3097 # Passes both tests.
3101 rm -f conftest.err conftest.
$ac_ext
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.
$ac_ext
3106 if $ac_preproc_ok; then
3109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3117 ac_cpp
='$CPP $CPPFLAGS'
3118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3129 then ac_cv_prog_egrep
='grep -E'
3130 else ac_cv_prog_egrep
='egrep'
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP
=$ac_cv_prog_egrep
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.
$ac_ext <<_ACEOF
3144 cat confdefs.h
>>conftest.
$ac_ext
3145 cat >>conftest.
$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "yes" >/dev
/null
2>&1; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 cat >>confdefs.h
<<\_ACEOF
3157 #define _ALL_SOURCE 1
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3168 # Check for unsupported systems
3169 case $ac_sys_system/$ac_sys_release in
3171 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3172 echo See README
for details.
3177 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3178 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3180 # Check whether --with-suffix or --without-suffix was given.
3181 if test "${with_suffix+set}" = set; then
3182 withval
="$with_suffix"
3187 *) EXEEXT
=$withval;;
3190 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3191 echo "${ECHO_T}$EXEEXT" >&6
3193 # Test whether we're running on a non-case-sensitive system, in which
3194 # case we give a warning if no ext is given
3196 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3197 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3198 if test ! -d CaseSensitiveTestDir
; then
3199 mkdir CaseSensitiveTestDir
3202 if test -d casesensitivetestdir
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3212 rmdir CaseSensitiveTestDir
3217 gcc
) CC
="$CC -D_HAVE_BSDI";;
3221 case $ac_sys_system in
3224 cc|
*/cc
) CC
="$CC -Ae";;
3228 cc
) CC
="$CC -Wl,-Bexport";;
3231 # Some functions have a prototype only with that define, e.g. confstr
3233 cat >>confdefs.h
<<\_ACEOF
3234 #define __EXTENSIONS__ 1
3242 echo "$as_me:$LINENO: checking LIBRARY" >&5
3243 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3244 if test -z "$LIBRARY"
3246 LIBRARY
='libpython$(VERSION).a'
3248 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3249 echo "${ECHO_T}$LIBRARY" >&6
3251 # LDLIBRARY is the name of the library to link against (as opposed to the
3252 # name of the library into which to insert object files). BLDLIBRARY is also
3253 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3254 # is blank as the main program is not linked directly against LDLIBRARY.
3255 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3256 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3257 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3258 # DLLLIBRARY is the shared (i.e., DLL) library.
3260 # RUNSHARED is used to run shared python without installed libraries
3262 # INSTSONAME is the name of the shared library that will be use to install
3263 # on the system - some systems like version suffix, others don't
3270 LDLIBRARY
="$LIBRARY"
3271 BLDLIBRARY
='$(LDLIBRARY)'
3272 INSTSONAME
='$(LDLIBRARY)'
3277 # LINKCC is the command that links the python executable -- default is $(CC).
3278 # If CXX is set, and if it is needed to link a main function that was
3279 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3280 # python might then depend on the C++ runtime
3281 # This is altered for AIX in order to build the export list before
3284 echo "$as_me:$LINENO: checking LINKCC" >&5
3285 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3286 if test -z "$LINKCC"
3288 LINKCC
='$(PURIFY) $(MAINCC)'
3289 case $ac_sys_system in
3292 if test $ac_sys_release -ge 5 -o \
3293 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3296 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3298 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3301 echo "$as_me:$LINENO: result: $LINKCC" >&5
3302 echo "${ECHO_T}$LINKCC" >&6
3304 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3305 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3306 # Check whether --enable-shared or --disable-shared was given.
3307 if test "${enable_shared+set}" = set; then
3308 enableval
="$enable_shared"
3312 if test -z "$enable_shared"
3314 case $ac_sys_system in
3316 enable_shared
="yes";;
3318 enable_shared
="no";;
3321 echo "$as_me:$LINENO: result: $enable_shared" >&5
3322 echo "${ECHO_T}$enable_shared" >&6
3324 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3325 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3326 # Check whether --enable-profiling or --disable-profiling was given.
3327 if test "${enable_profiling+set}" = set; then
3328 enableval
="$enable_profiling"
3331 if test "$cross_compiling" = yes; then
3332 ac_enable_profiling
="no"
3334 cat >conftest.
$ac_ext <<_ACEOF
3337 cat confdefs.h
>>conftest.
$ac_ext
3338 cat >>conftest.
$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 int main() { return 0; }
3342 rm -f conftest
$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_enable_profiling
="yes"
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3360 ac_enable_profiling
="no"
3362 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3366 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3367 echo "${ECHO_T}$ac_enable_profiling" >&6
3369 case "$ac_enable_profiling" in
3371 BASECFLAGS
="-pg $BASECFLAGS"
3372 LDFLAGS
="-pg $LDFLAGS"
3376 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3377 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3379 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3380 # library that we build, but we do not want to link against it (we
3381 # will find it with a -framework option). For this reason there is an
3382 # extra variable BLDLIBRARY against which Python and the extension
3383 # modules are linked, BLDLIBRARY. This is normally the same as
3384 # LDLIBRARY, but empty for MacOSX framework builds.
3385 if test "$enable_framework"
3387 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3388 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3391 BLDLIBRARY
='$(LDLIBRARY)'
3394 # Other platforms follow
3395 if test $enable_shared = "yes"; then
3397 cat >>confdefs.h
<<\_ACEOF
3398 #define Py_ENABLE_SHARED 1
3401 case $ac_sys_system in
3403 LDLIBRARY
='libpython$(VERSION).so'
3406 LDLIBRARY
='libpython$(VERSION).dll.a'
3407 DLLLIBRARY
='libpython$(VERSION).dll'
3410 LDLIBRARY
='libpython$(VERSION).so'
3411 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3413 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3415 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3416 LDLIBRARY
='libpython$(VERSION).so'
3417 BLDLIBRARY
='-L. -lpython$(VERSION)'
3418 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3419 case $ac_sys_system in
3421 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3424 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3429 LDLIBRARY
='libpython$(VERSION).so'
3432 LDLIBRARY
='libpython$(VERSION).sl'
3435 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3439 LDLIBRARY
='libpython$(VERSION).so'
3440 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3441 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3444 LDLIBRARY
='libpython$(VERSION).so'
3445 BLDLIBRARY
='-L. -lpython$(VERSION)'
3446 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3449 else # shared is disabled
3450 case $ac_sys_system in
3452 BLDLIBRARY
='$(LIBRARY)'
3453 LDLIBRARY
='libpython$(VERSION).dll.a'
3458 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3459 echo "${ECHO_T}$LDLIBRARY" >&6
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_RANLIB+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test -n "$RANLIB"; then
3470 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir
=.
3477 for ac_exec_ext
in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 RANLIB
=$ac_cv_prog_RANLIB
3489 if test -n "$RANLIB"; then
3490 echo "$as_me:$LINENO: result: $RANLIB" >&5
3491 echo "${ECHO_T}$RANLIB" >&6
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_prog_RANLIB"; then
3499 ac_ct_RANLIB
=$RANLIB
3500 # Extract the first word of "ranlib", so it can be a program name with args.
3501 set dummy ranlib
; ac_word
=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 if test -n "$ac_ct_RANLIB"; then
3508 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_exec_ext
in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3527 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3528 if test -n "$ac_ct_RANLIB"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 RANLIB
=$ac_ct_RANLIB
3538 RANLIB
="$ac_cv_prog_RANLIB"
3542 for ac_prog
in ar aal
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy
$ac_prog; ac_word
=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 if test -n "$AR"; then
3552 ac_cv_prog_AR
="$AR" # Let the user override the test.
3554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir
=.
3559 for ac_exec_ext
in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AR
="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test -n "$AR"; then
3572 echo "$as_me:$LINENO: result: $AR" >&5
3573 echo "${ECHO_T}$AR" >&6
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AR" && break
3581 test -n "$AR" || AR
="ar"
3585 # Extract the first word of "svnversion", so it can be a program name with args.
3586 set dummy svnversion
; ac_word
=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test -n "$SVNVERSION"; then
3593 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SVNVERSION
="found"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3612 SVNVERSION
=$ac_cv_prog_SVNVERSION
3613 if test -n "$SVNVERSION"; then
3614 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3615 echo "${ECHO_T}$SVNVERSION" >&6
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3621 if test $SVNVERSION = found
3623 SVNVERSION
="svnversion \$(srcdir)"
3625 SVNVERSION
="echo exported"
3630 # install -d does not work on BSDI or HP-UX
3631 if test -z "$INSTALL"
3633 INSTALL
="${srcdir}/install-sh -c"
3637 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3638 if test -f $ac_dir/install-sh
; then
3640 ac_install_sh
="$ac_aux_dir/install-sh -c"
3642 elif test -f $ac_dir/install.sh
; then
3644 ac_install_sh
="$ac_aux_dir/install.sh -c"
3646 elif test -f $ac_dir/shtool
; then
3648 ac_install_sh
="$ac_aux_dir/shtool install -c"
3652 if test -z "$ac_aux_dir"; then
3653 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3654 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3655 { (exit 1); exit 1; }; }
3657 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3658 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3659 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir
=.
3685 # Account for people who put trailing slashes in PATH elements.
3687 .
/ | .
// |
/cC
/* | \
3688 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3689 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3695 for ac_prog
in ginstall scoinst
install; do
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3698 if test $ac_prog = install &&
3699 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3707 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL
=$ac_cv_path_install
3722 # As a last resort, use the slow shell script. We don't cache a
3723 # path for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the path is relative.
3726 INSTALL
=$ac_install_sh
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5
3730 echo "${ECHO_T}$INSTALL" >&6
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3741 # Not every filesystem supports hard links
3743 if test -z "$LN" ; then
3744 case $ac_sys_system in
3746 CYGWIN
*) LN
="ln -s";;
3747 atheos
*) LN
="ln -s";;
3752 # Check for --with-pydebug
3753 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3754 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3756 # Check whether --with-pydebug or --without-pydebug was given.
3757 if test "${with_pydebug+set}" = set; then
3758 withval
="$with_pydebug"
3760 if test "$withval" != no
3763 cat >>confdefs.h
<<\_ACEOF
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6;
3770 else echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3779 # merged with this chunk of code?
3781 # Optimizer/debugger flags
3782 # ------------------------
3783 # (The following bit of code is complicated enough - please keep things
3784 # indented properly. Just pretend you're editing Python code. ;-)
3786 # There are two parallel sets of case statements below, one that checks to
3787 # see if OPT was set and one that does BASECFLAGS setting based upon
3788 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3791 # tweak OPT based on compiler and platform, only if the user didn't set
3792 # it on the command line
3798 if test "$CC" != 'g++' ; then
3799 STRICT_PROTO
="-Wstrict-prototypes"
3801 case $ac_cv_prog_cc_g in
3803 if test "$Py_DEBUG" = 'true' ; then
3804 # Optimization messes up debuggers, so turn it off for
3806 OPT
="-g -Wall $STRICT_PROTO"
3808 OPT
="-g -O3 -Wall $STRICT_PROTO"
3812 OPT
="-O3 -Wall $STRICT_PROTO"
3815 case $ac_sys_system in
3816 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3826 # The current (beta) Monterey compiler dies with optimizations
3827 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3828 case $ac_sys_system in
3837 # tweak BASECFLAGS based on compiler and platform
3840 # Python violates C99 rules, by casting between incompatible
3841 # pointer types. GCC may generate bad code as a result of that,
3842 # so use -fno-strict-aliasing if supported.
3843 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3844 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3846 CC
="$CC -fno-strict-aliasing"
3847 if test "$cross_compiling" = yes; then
3848 ac_cv_no_strict_aliasing_ok
=no
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 int main() { return 0; }
3858 rm -f conftest
$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_no_strict_aliasing_ok
=yes
3871 echo "$as_me: program exited with status $ac_status" >&5
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3876 ac_cv_no_strict_aliasing_ok
=no
3878 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3881 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3882 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3883 if test $ac_cv_no_strict_aliasing_ok = yes
3885 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3887 case $ac_sys_system in
3889 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3891 # is there any other compiler on Darwin besides gcc?
3893 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3894 if test "${enable_universalsdk}"; then
3895 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3900 BASECFLAGS
="$BASECFLAGS -mieee"
3906 case $ac_sys_system in
3907 OpenUNIX
*|UnixWare
*)
3908 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3911 BASECFLAGS
="$BASECFLAGS -ieee -std"
3914 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3920 if test "$Py_DEBUG" = 'true'; then
3926 if test "$ac_arch_flags"
3928 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3931 # disable check for icc since it seems to pass, but generates a warning
3934 ac_cv_opt_olimit_ok
=no
3937 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3938 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3939 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 CC
="$CC -OPT:Olimit=0"
3944 if test "$cross_compiling" = yes; then
3945 ac_cv_opt_olimit_ok
=no
3947 cat >conftest.
$ac_ext <<_ACEOF
3950 cat confdefs.h
>>conftest.
$ac_ext
3951 cat >>conftest.
$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 int main() { return 0; }
3955 rm -f conftest
$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_opt_olimit_ok
=yes
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.
$ac_ext >&5
3973 ac_cv_opt_olimit_ok
=no
3975 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3980 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3981 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3982 if test $ac_cv_opt_olimit_ok = yes; then
3983 case $ac_sys_system in
3984 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3985 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3990 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3994 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3995 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3996 if test "${ac_cv_olimit_ok+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 CC
="$CC -Olimit 1500"
4001 if test "$cross_compiling" = yes; then
4004 cat >conftest.
$ac_ext <<_ACEOF
4007 cat confdefs.h
>>conftest.
$ac_ext
4008 cat >>conftest.
$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 int main() { return 0; }
4012 rm -f conftest
$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.
$ac_ext >&5
4032 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4038 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4039 if test $ac_cv_olimit_ok = yes; then
4040 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4044 # Check whether GCC supports PyArg_ParseTuple format
4045 if test "$GCC" = "yes"
4047 echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4048 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6
4050 CFLAGS
="$CFLAGS -Werror"
4051 cat >conftest.
$ac_ext <<_ACEOF
4054 cat confdefs.h
>>conftest.
$ac_ext
4055 cat >>conftest.
$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4058 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4068 rm -f conftest.
$ac_objext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>conftest.er1
4072 grep -v '^ *+' conftest.er1
>conftest.err
4074 cat conftest.err
>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try
='test -z "$ac_c_werror_flag"
4078 || test ! -s conftest.err'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try
='test -s conftest.$ac_objext'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; }; then
4091 cat >>confdefs.h
<<\_ACEOF
4092 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4095 echo "$as_me:$LINENO: result: yes" >&5
4096 echo "${ECHO_T}yes" >&6
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.
$ac_ext >&5
4101 echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4109 # On some compilers, pthreads are available without further options
4110 # (e.g. MacOS X). On some of these systems, the compiler will not
4111 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4112 # So we have to see first whether pthreads are available without
4113 # options before we can check whether -Kpthread improves anything.
4114 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4115 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4116 if test "${ac_cv_pthread_is_default+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test "$cross_compiling" = yes; then
4120 ac_cv_pthread_is_default
=no
4122 cat >conftest.
$ac_ext <<_ACEOF
4125 cat confdefs.h
>>conftest.
$ac_ext
4126 cat >>conftest.
$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4129 #include <pthread.h>
4131 void* routine(void* p){return NULL;}
4135 if(pthread_create(&p,NULL,routine,NULL)!=0)
4137 (void)pthread_detach(p);
4142 rm -f conftest
$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4154 ac_cv_pthread_is_default
=yes
4159 echo "$as_me: program exited with status $ac_status" >&5
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.
$ac_ext >&5
4164 ac_cv_pthread_is_default
=no
4166 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4171 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4172 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4175 if test $ac_cv_pthread_is_default = yes
4179 # -Kpthread, if available, provides the right #defines
4180 # and linker options to make pthread_create available
4181 # Some compilers won't report that they do not support -Kpthread,
4182 # so we need to run a program to see whether it really made the
4183 # function available.
4184 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4185 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4186 if test "${ac_cv_kpthread+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test "$cross_compiling" = yes; then
4194 cat >conftest.
$ac_ext <<_ACEOF
4197 cat confdefs.h
>>conftest.
$ac_ext
4198 cat >>conftest.
$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4201 #include <pthread.h>
4203 void* routine(void* p){return NULL;}
4207 if(pthread_create(&p,NULL,routine,NULL)!=0)
4209 (void)pthread_detach(p);
4214 rm -f conftest
$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4227 echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.
$ac_ext >&5
4234 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4239 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4240 echo "${ECHO_T}$ac_cv_kpthread" >&6
4243 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4245 # -Kthread, if available, provides the right #defines
4246 # and linker options to make pthread_create available
4247 # Some compilers won't report that they do not support -Kthread,
4248 # so we need to run a program to see whether it really made the
4249 # function available.
4250 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4251 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4252 if test "${ac_cv_kthread+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test "$cross_compiling" = yes; then
4260 cat >conftest.
$ac_ext <<_ACEOF
4263 cat confdefs.h
>>conftest.
$ac_ext
4264 cat >>conftest.
$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4267 #include <pthread.h>
4269 void* routine(void* p){return NULL;}
4273 if(pthread_create(&p,NULL,routine,NULL)!=0)
4275 (void)pthread_detach(p);
4280 rm -f conftest
$ac_exeext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4282 (eval $ac_link) 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4293 echo "$as_me: program exited with status $ac_status" >&5
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.
$ac_ext >&5
4300 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4305 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4306 echo "${ECHO_T}$ac_cv_kthread" >&6
4309 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4311 # -pthread, if available, provides the right #defines
4312 # and linker options to make pthread_create available
4313 # Some compilers won't report that they do not support -pthread,
4314 # so we need to run a program to see whether it really made the
4315 # function available.
4316 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4317 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4318 if test "${ac_cv_thread+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test "$cross_compiling" = yes; then
4326 cat >conftest.
$ac_ext <<_ACEOF
4329 cat confdefs.h
>>conftest.
$ac_ext
4330 cat >>conftest.
$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4333 #include <pthread.h>
4335 void* routine(void* p){return NULL;}
4339 if(pthread_create(&p,NULL,routine,NULL)!=0)
4341 (void)pthread_detach(p);
4346 rm -f conftest
$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4359 echo "$as_me: program exited with status $ac_status" >&5
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.
$ac_ext >&5
4366 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4372 echo "${ECHO_T}$ac_cv_pthread" >&6
4375 # If we have set a CC compiler flag for thread support then
4376 # check if it works for CXX, too.
4380 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4381 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4384 if test "$ac_cv_kpthread" = "yes"
4386 CXX
="$CXX -Kpthread"
4387 ac_cv_cxx_thread
=yes
4388 elif test "$ac_cv_kthread" = "yes"
4391 ac_cv_cxx_thread
=yes
4392 elif test "$ac_cv_pthread" = "yes"
4395 ac_cv_cxx_thread
=yes
4398 if test $ac_cv_cxx_thread = yes
4400 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4401 $CXX -c conftest.
$ac_ext 2>&5
4402 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4403 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4405 ac_cv_cxx_thread
=yes
4411 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4412 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4417 # checks for header files
4418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4420 if test "${ac_cv_header_stdc+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 cat >conftest.
$ac_ext <<_ACEOF
4426 cat confdefs.h
>>conftest.
$ac_ext
4427 cat >>conftest.
$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4442 rm -f conftest.
$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4446 grep -v '^ *+' conftest.er1
>conftest.err
4448 cat conftest.err
>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try
='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try
='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_header_stdc
=yes
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.
$ac_ext >&5
4469 ac_cv_header_stdc
=no
4471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4473 if test $ac_cv_header_stdc = yes; then
4474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4475 cat >conftest.
$ac_ext <<_ACEOF
4478 cat confdefs.h
>>conftest.
$ac_ext
4479 cat >>conftest.
$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485 $EGREP "memchr" >/dev
/null
2>&1; then
4488 ac_cv_header_stdc
=no
4494 if test $ac_cv_header_stdc = yes; then
4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496 cat >conftest.
$ac_ext <<_ACEOF
4499 cat confdefs.h
>>conftest.
$ac_ext
4500 cat >>conftest.
$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "free" >/dev
/null
2>&1; then
4509 ac_cv_header_stdc
=no
4515 if test $ac_cv_header_stdc = yes; then
4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517 if test "$cross_compiling" = yes; then
4520 cat >conftest.
$ac_ext <<_ACEOF
4523 cat confdefs.h
>>conftest.
$ac_ext
4524 cat >>conftest.
$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4527 #if ((' ' & 0x0FF) == 0x020)
4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 # define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4550 rm -f conftest
$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.
$ac_ext >&5
4568 ac_cv_header_stdc
=no
4570 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4576 if test $ac_cv_header_stdc = yes; then
4578 cat >>confdefs.h
<<\_ACEOF
4579 #define STDC_HEADERS 1
4584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4594 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4595 inttypes.h stdint.h unistd.h
4597 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4598 echo "$as_me:$LINENO: checking for $ac_header" >&5
4599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 cat >conftest.
$ac_ext <<_ACEOF
4606 cat confdefs.h
>>conftest.
$ac_ext
4607 cat >>conftest.
$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4611 #include <$ac_header>
4613 rm -f conftest.
$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4617 grep -v '^ *+' conftest.er1
>conftest.err
4619 cat conftest.err
>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try
='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try
='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 eval "$as_ac_Header=yes"
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.
$ac_ext >&5
4640 eval "$as_ac_Header=no"
4642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4647 cat >>confdefs.h
<<_ACEOF
4648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4705 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4707 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4708 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4710 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4712 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
4714 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4715 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4716 bluetooth
/bluetooth.h
4718 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4728 # Is the header compilable?
4729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4731 cat >conftest.
$ac_ext <<_ACEOF
4734 cat confdefs.h
>>conftest.
$ac_ext
4735 cat >>conftest.
$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4738 #include <$ac_header>
4740 rm -f conftest.
$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4744 grep -v '^ *+' conftest.er1
>conftest.err
4746 cat conftest.err
>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try
='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try
='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_header_compiler
=yes
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.
$ac_ext >&5
4767 ac_header_compiler
=no
4769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4771 echo "${ECHO_T}$ac_header_compiler" >&6
4773 # Is the header present?
4774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4776 cat >conftest.
$ac_ext <<_ACEOF
4779 cat confdefs.h
>>conftest.
$ac_ext
4780 cat >>conftest.
$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 #include <$ac_header>
4784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4785 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
4792 if test -s conftest.err
; then
4793 ac_cpp_err
=$ac_c_preproc_warn_flag
4794 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4801 if test -z "$ac_cpp_err"; then
4802 ac_header_preproc
=yes
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.
$ac_ext >&5
4807 ac_header_preproc
=no
4809 rm -f conftest.err conftest.
$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4811 echo "${ECHO_T}$ac_header_preproc" >&6
4813 # So? What about this header?
4814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4820 ac_header_preproc
=yes
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4837 ## ------------------------------------------------ ##
4838 ## Report this to http://www.python.org/python-bugs ##
4839 ## ------------------------------------------------ ##
4842 sed "s/^/$as_me: WARNING: /" >&2
4845 echo "$as_me:$LINENO: checking for $ac_header" >&5
4846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 eval "$as_ac_Header=\$ac_header_preproc"
4852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4857 cat >>confdefs.h
<<_ACEOF
4858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4872 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4873 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4874 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.
$ac_ext <<_ACEOF
4881 cat confdefs.h
>>conftest.
$ac_ext
4882 cat >>conftest.
$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <sys/types.h>
4896 rm -f conftest.
$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4900 grep -v '^ *+' conftest.er1
>conftest.err
4902 cat conftest.err
>&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try
='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try
='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 eval "$as_ac_Header=yes"
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.
$ac_ext >&5
4923 eval "$as_ac_Header=no"
4925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4930 cat >>confdefs.h
<<_ACEOF
4931 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4934 ac_header_dirent
=$ac_hdr; break
4938 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4939 if test $ac_header_dirent = dirent.h
; then
4940 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4941 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4942 if test "${ac_cv_search_opendir+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 ac_func_search_save_LIBS
=$LIBS
4946 ac_cv_search_opendir
=no
4947 cat >conftest.
$ac_ext <<_ACEOF
4950 cat confdefs.h
>>conftest.
$ac_ext
4951 cat >>conftest.
$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4969 rm -f conftest.
$ac_objext conftest
$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>conftest.er1
4973 grep -v '^ *+' conftest.er1
>conftest.err
4975 cat conftest.err
>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try
='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try
='test -s conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_search_opendir
="none required"
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4997 rm -f conftest.err conftest.
$ac_objext \
4998 conftest
$ac_exeext conftest.
$ac_ext
4999 if test "$ac_cv_search_opendir" = no
; then
5000 for ac_lib
in dir
; do
5001 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5002 cat >conftest.
$ac_ext <<_ACEOF
5005 cat confdefs.h
>>conftest.
$ac_ext
5006 cat >>conftest.
$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5009 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5024 rm -f conftest.
$ac_objext conftest
$ac_exeext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026 (eval $ac_link) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1
>conftest.err
5030 cat conftest.err
>&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try
='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try
='test -s conftest$ac_exeext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_search_opendir
="-l$ac_lib"
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.
$ac_ext >&5
5053 rm -f conftest.err conftest.
$ac_objext \
5054 conftest
$ac_exeext conftest.
$ac_ext
5057 LIBS
=$ac_func_search_save_LIBS
5059 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5060 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5061 if test "$ac_cv_search_opendir" != no
; then
5062 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5067 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5068 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5069 if test "${ac_cv_search_opendir+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 ac_func_search_save_LIBS
=$LIBS
5073 ac_cv_search_opendir
=no
5074 cat >conftest.
$ac_ext <<_ACEOF
5077 cat confdefs.h
>>conftest.
$ac_ext
5078 cat >>conftest.
$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5096 rm -f conftest.
$ac_objext conftest
$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5100 grep -v '^ *+' conftest.er1
>conftest.err
5102 cat conftest.err
>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try
='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try
='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_search_opendir
="none required"
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.
$ac_ext >&5
5124 rm -f conftest.err conftest.
$ac_objext \
5125 conftest
$ac_exeext conftest.
$ac_ext
5126 if test "$ac_cv_search_opendir" = no
; then
5128 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5129 cat >conftest.
$ac_ext <<_ACEOF
5132 cat confdefs.h
>>conftest.
$ac_ext
5133 cat >>conftest.
$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5136 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5151 rm -f conftest.
$ac_objext conftest
$ac_exeext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153 (eval $ac_link) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1
>conftest.err
5157 cat conftest.err
>&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try
='test -z "$ac_c_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try
='test -s conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_search_opendir
="-l$ac_lib"
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.
$ac_ext >&5
5180 rm -f conftest.err conftest.
$ac_objext \
5181 conftest
$ac_exeext conftest.
$ac_ext
5184 LIBS
=$ac_func_search_save_LIBS
5186 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5187 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5188 if test "$ac_cv_search_opendir" != no
; then
5189 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5195 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5196 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5197 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.
$ac_ext <<_ACEOF
5203 cat confdefs.h
>>conftest.
$ac_ext
5204 cat >>conftest.
$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5210 return makedev(0, 0);
5215 rm -f conftest.
$ac_objext conftest
$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>conftest.er1
5219 grep -v '^ *+' conftest.er1
>conftest.err
5221 cat conftest.err
>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try
='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try
='test -s conftest$ac_exeext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_header_sys_types_h_makedev
=yes
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.
$ac_ext >&5
5242 ac_cv_header_sys_types_h_makedev
=no
5244 rm -f conftest.err conftest.
$ac_objext \
5245 conftest
$ac_exeext conftest.
$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5249 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5251 if test $ac_cv_header_sys_types_h_makedev = no
; then
5252 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5253 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5254 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5255 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5259 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5261 # Is the header compilable?
5262 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5263 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5264 cat >conftest.
$ac_ext <<_ACEOF
5267 cat confdefs.h
>>conftest.
$ac_ext
5268 cat >>conftest.
$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5271 #include <sys/mkdev.h>
5273 rm -f conftest.
$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5277 grep -v '^ *+' conftest.er1
>conftest.err
5279 cat conftest.err
>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try
='test -z "$ac_c_werror_flag"
5283 || test ! -s conftest.err'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try
='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_header_compiler
=yes
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.
$ac_ext >&5
5300 ac_header_compiler
=no
5302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5304 echo "${ECHO_T}$ac_header_compiler" >&6
5306 # Is the header present?
5307 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5308 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5309 cat >conftest.
$ac_ext <<_ACEOF
5312 cat confdefs.h
>>conftest.
$ac_ext
5313 cat >>conftest.
$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 #include <sys/mkdev.h>
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1
>conftest.err
5322 cat conftest.err
>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } >/dev
/null
; then
5325 if test -s conftest.err
; then
5326 ac_cpp_err
=$ac_c_preproc_warn_flag
5327 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5334 if test -z "$ac_cpp_err"; then
5335 ac_header_preproc
=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.
$ac_ext >&5
5340 ac_header_preproc
=no
5342 rm -f conftest.err conftest.
$ac_ext
5343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 echo "${ECHO_T}$ac_header_preproc" >&6
5346 # So? What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5349 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5350 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5352 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5353 ac_header_preproc
=yes
5356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5361 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5363 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5365 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5367 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5370 ## ------------------------------------------------ ##
5371 ## Report this to http://www.python.org/python-bugs ##
5372 ## ------------------------------------------------ ##
5375 sed "s/^/$as_me: WARNING: /" >&2
5378 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5379 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5380 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5386 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5389 if test $ac_cv_header_sys_mkdev_h = yes; then
5391 cat >>confdefs.h
<<\_ACEOF
5392 #define MAJOR_IN_MKDEV 1
5399 if test $ac_cv_header_sys_mkdev_h = no
; then
5400 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5401 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5402 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5403 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5407 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5409 # Is the header compilable?
5410 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5411 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5412 cat >conftest.
$ac_ext <<_ACEOF
5415 cat confdefs.h
>>conftest.
$ac_ext
5416 cat >>conftest.
$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 $ac_includes_default
5419 #include <sys/sysmacros.h>
5421 rm -f conftest.
$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1
>conftest.err
5427 cat conftest.err
>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try
='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try
='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_header_compiler
=yes
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.
$ac_ext >&5
5448 ac_header_compiler
=no
5450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5452 echo "${ECHO_T}$ac_header_compiler" >&6
5454 # Is the header present?
5455 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5456 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5457 cat >conftest.
$ac_ext <<_ACEOF
5460 cat confdefs.h
>>conftest.
$ac_ext
5461 cat >>conftest.
$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <sys/sysmacros.h>
5465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5466 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5468 grep -v '^ *+' conftest.er1
>conftest.err
5470 cat conftest.err
>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev
/null
; then
5473 if test -s conftest.err
; then
5474 ac_cpp_err
=$ac_c_preproc_warn_flag
5475 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5482 if test -z "$ac_cpp_err"; then
5483 ac_header_preproc
=yes
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.
$ac_ext >&5
5488 ac_header_preproc
=no
5490 rm -f conftest.err conftest.
$ac_ext
5491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5492 echo "${ECHO_T}$ac_header_preproc" >&6
5494 # So? What about this header?
5495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5497 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5498 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5500 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5501 ac_header_preproc
=yes
5504 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5505 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5507 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5509 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5511 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5513 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5515 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5518 ## ------------------------------------------------ ##
5519 ## Report this to http://www.python.org/python-bugs ##
5520 ## ------------------------------------------------ ##
5523 sed "s/^/$as_me: WARNING: /" >&2
5526 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5527 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5528 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5533 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5534 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5537 if test $ac_cv_header_sys_sysmacros_h = yes; then
5539 cat >>confdefs.h
<<\_ACEOF
5540 #define MAJOR_IN_SYSMACROS 1
5550 # On Solaris, term.h requires curses.h
5552 for ac_header
in term.h
5554 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5555 echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 cat >conftest.
$ac_ext <<_ACEOF
5563 cat confdefs.h
>>conftest.
$ac_ext
5564 cat >>conftest.
$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 #ifdef HAVE_CURSES_H
5572 #include <$ac_header>
5574 rm -f conftest.
$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5578 grep -v '^ *+' conftest.er1
>conftest.err
5580 cat conftest.err
>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try
='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try
='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 eval "$as_ac_Header=yes"
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.
$ac_ext >&5
5601 eval "$as_ac_Header=no"
5603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5608 cat >>confdefs.h
<<_ACEOF
5609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5617 # On Linux, netlink.h requires asm/types.h
5619 for ac_header
in linux
/netlink.h
5621 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5622 echo "$as_me:$LINENO: checking for $ac_header" >&5
5623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 cat >conftest.
$ac_ext <<_ACEOF
5630 cat confdefs.h
>>conftest.
$ac_ext
5631 cat >>conftest.
$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 #ifdef HAVE_ASM_TYPES_H
5635 #include <asm/types.h>
5637 #ifdef HAVE_SYS_SOCKET_H
5638 #include <sys/socket.h>
5642 #include <$ac_header>
5644 rm -f conftest.
$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1
>conftest.err
5650 cat conftest.err
>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try
='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try
='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 eval "$as_ac_Header=yes"
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.
$ac_ext >&5
5671 eval "$as_ac_Header=no"
5673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5678 cat >>confdefs.h
<<_ACEOF
5679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5687 # checks for typedefs
5689 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5690 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5691 cat >conftest.
$ac_ext <<_ACEOF
5694 cat confdefs.h
>>conftest.
$ac_ext
5695 cat >>conftest.
$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701 $EGREP "clock_t" >/dev
/null
2>&1; then
5706 cat >>confdefs.h
<<\_ACEOF
5707 #define clock_t long
5714 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5715 echo "${ECHO_T}$was_it_defined" >&6
5717 # Check whether using makedev requires defining _OSF_SOURCE
5718 echo "$as_me:$LINENO: checking for makedev" >&5
5719 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5720 cat >conftest.
$ac_ext <<_ACEOF
5723 cat confdefs.h
>>conftest.
$ac_ext
5724 cat >>conftest.
$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #include <sys/types.h>
5735 rm -f conftest.
$ac_objext conftest
$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>conftest.er1
5739 grep -v '^ *+' conftest.er1
>conftest.err
5741 cat conftest.err
>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try
='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try
='test -s conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_has_makedev
=yes
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.
$ac_ext >&5
5762 ac_cv_has_makedev
=no
5764 rm -f conftest.err conftest.
$ac_objext \
5765 conftest
$ac_exeext conftest.
$ac_ext
5766 if test "$ac_cv_has_makedev" = "no"; then
5767 # we didn't link, try if _OSF_SOURCE will allow us to link
5768 cat >conftest.
$ac_ext <<_ACEOF
5771 cat confdefs.h
>>conftest.
$ac_ext
5772 cat >>conftest.
$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5775 #define _OSF_SOURCE 1
5776 #include <sys/types.h>
5786 rm -f conftest.
$ac_objext conftest
$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1
>conftest.err
5792 cat conftest.err
>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try
='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try
='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_has_makedev
=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.
$ac_ext >&5
5813 ac_cv_has_makedev
=no
5815 rm -f conftest.err conftest.
$ac_objext \
5816 conftest
$ac_exeext conftest.
$ac_ext
5817 if test "$ac_cv_has_makedev" = "yes"; then
5819 cat >>confdefs.h
<<\_ACEOF
5820 #define _OSF_SOURCE 1
5825 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5826 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5827 if test "$ac_cv_has_makedev" = "yes"; then
5829 cat >>confdefs.h
<<\_ACEOF
5830 #define HAVE_MAKEDEV 1
5835 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5836 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5837 # defined, but the compiler does not support pragma redefine_extname,
5838 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5839 # structures (such as rlimit64) without declaring them. As a
5840 # work-around, disable LFS on such configurations
5843 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5844 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5845 cat >conftest.
$ac_ext <<_ACEOF
5848 cat confdefs.h
>>conftest.
$ac_ext
5849 cat >>conftest.
$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5852 #define _LARGEFILE_SOURCE 1
5853 #define _FILE_OFFSET_BITS 64
5854 #include <sys/resource.h>
5864 rm -f conftest.
$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5868 grep -v '^ *+' conftest.er1
>conftest.err
5870 cat conftest.err
>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try
='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try
='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5894 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5895 echo "${ECHO_T}$sol_lfs_bug" >&6
5896 if test "$sol_lfs_bug" = "yes"; then
5900 if test "$use_lfs" = "yes"; then
5901 # Two defines needed to enable largefile support on various platforms
5902 # These may affect some typedefs
5904 cat >>confdefs.h
<<\_ACEOF
5905 #define _LARGEFILE_SOURCE 1
5909 cat >>confdefs.h
<<\_ACEOF
5910 #define _FILE_OFFSET_BITS 64
5915 # Add some code to confdefs.h so that the test for off_t works on SCO
5916 cat >> confdefs.h
<<\EOF
5922 # Type availability checks
5923 echo "$as_me:$LINENO: checking for mode_t" >&5
5924 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5925 if test "${ac_cv_type_mode_t+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 cat >conftest.
$ac_ext <<_ACEOF
5931 cat confdefs.h
>>conftest.
$ac_ext
5932 cat >>conftest.
$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5940 if (sizeof (mode_t))
5946 rm -f conftest.
$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_type_mode_t
=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5973 ac_cv_type_mode_t
=no
5975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5978 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5979 if test $ac_cv_type_mode_t = yes; then
5983 cat >>confdefs.h
<<_ACEOF
5989 echo "$as_me:$LINENO: checking for off_t" >&5
5990 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5991 if test "${ac_cv_type_off_t+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 cat >conftest.
$ac_ext <<_ACEOF
5997 cat confdefs.h
>>conftest.
$ac_ext
5998 cat >>conftest.
$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6012 rm -f conftest.
$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6016 grep -v '^ *+' conftest.er1
>conftest.err
6018 cat conftest.err
>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try
='test -z "$ac_c_werror_flag"
6022 || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try
='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_type_off_t
=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.
$ac_ext >&5
6041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6044 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6045 if test $ac_cv_type_off_t = yes; then
6049 cat >>confdefs.h
<<_ACEOF
6055 echo "$as_me:$LINENO: checking for pid_t" >&5
6056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6057 if test "${ac_cv_type_pid_t+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 cat >conftest.
$ac_ext <<_ACEOF
6063 cat confdefs.h
>>conftest.
$ac_ext
6064 cat >>conftest.
$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6078 rm -f conftest.
$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080 (eval $ac_compile) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1
>conftest.err
6084 cat conftest.err
>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try
='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try
='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_type_pid_t
=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.
$ac_ext >&5
6107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6109 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6110 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6111 if test $ac_cv_type_pid_t = yes; then
6115 cat >>confdefs.h
<<_ACEOF
6121 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6122 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6123 if test "${ac_cv_type_signal+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 cat >conftest.
$ac_ext <<_ACEOF
6129 cat confdefs.h
>>conftest.
$ac_ext
6130 cat >>conftest.
$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #include <sys/types.h>
6138 extern "C" void (*signal (int, void (*)(int)))(int);
6140 void (*signal ()) ();
6151 rm -f conftest.
$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>conftest.er1
6155 grep -v '^ *+' conftest.er1
>conftest.err
6157 cat conftest.err
>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try
='test -z "$ac_c_werror_flag"
6161 || test ! -s conftest.err'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; } &&
6167 { ac_try
='test -s conftest.$ac_objext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_type_signal
=void
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.
$ac_ext >&5
6178 ac_cv_type_signal
=int
6180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6182 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6183 echo "${ECHO_T}$ac_cv_type_signal" >&6
6185 cat >>confdefs.h
<<_ACEOF
6186 #define RETSIGTYPE $ac_cv_type_signal
6190 echo "$as_me:$LINENO: checking for size_t" >&5
6191 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6192 if test "${ac_cv_type_size_t+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 cat >conftest.
$ac_ext <<_ACEOF
6198 cat confdefs.h
>>conftest.
$ac_ext
6199 cat >>conftest.
$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 $ac_includes_default
6207 if (sizeof (size_t))
6213 rm -f conftest.
$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>conftest.er1
6217 grep -v '^ *+' conftest.er1
>conftest.err
6219 cat conftest.err
>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try
='test -z "$ac_c_werror_flag"
6223 || test ! -s conftest.err'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; } &&
6229 { ac_try
='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 ac_cv_type_size_t
=yes
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.
$ac_ext >&5
6240 ac_cv_type_size_t
=no
6242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6245 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6246 if test $ac_cv_type_size_t = yes; then
6250 cat >>confdefs.h
<<_ACEOF
6251 #define size_t unsigned
6256 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6257 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6258 if test "${ac_cv_type_uid_t+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "uid_t" >/dev
/null
2>&1; then
6272 ac_cv_type_uid_t
=yes
6279 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6280 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6281 if test $ac_cv_type_uid_t = no
; then
6283 cat >>confdefs.h
<<\_ACEOF
6288 cat >>confdefs.h
<<\_ACEOF
6294 echo "$as_me:$LINENO: checking for ssize_t" >&5
6295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6296 if test "${ac_cv_type_ssize_t+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 cat >conftest.
$ac_ext <<_ACEOF
6302 cat confdefs.h
>>conftest.
$ac_ext
6303 cat >>conftest.
$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6311 if (sizeof (ssize_t))
6317 rm -f conftest.
$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6321 grep -v '^ *+' conftest.er1
>conftest.err
6323 cat conftest.err
>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try
='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try
='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_type_ssize_t
=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.
$ac_ext >&5
6344 ac_cv_type_ssize_t
=no
6346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6348 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6349 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6350 if test $ac_cv_type_ssize_t = yes; then
6352 cat >>confdefs.h
<<\_ACEOF
6353 #define HAVE_SSIZE_T 1
6359 # Sizes of various common basic types
6360 # ANSI C requires sizeof(char) == 1, so no need to check it
6361 echo "$as_me:$LINENO: checking for int" >&5
6362 echo $ECHO_N "checking for int... $ECHO_C" >&6
6363 if test "${ac_cv_type_int+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 cat >conftest.
$ac_ext <<_ACEOF
6369 cat confdefs.h
>>conftest.
$ac_ext
6370 cat >>conftest.
$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6384 rm -f conftest.
$ac_objext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386 (eval $ac_compile) 2>conftest.er1
6388 grep -v '^ *+' conftest.er1
>conftest.err
6390 cat conftest.err
>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try
='test -z "$ac_c_werror_flag"
6394 || test ! -s conftest.err'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; } &&
6400 { ac_try
='test -s conftest.$ac_objext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.
$ac_ext >&5
6413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6416 echo "${ECHO_T}$ac_cv_type_int" >&6
6418 echo "$as_me:$LINENO: checking size of int" >&5
6419 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6420 if test "${ac_cv_sizeof_int+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 if test "$ac_cv_type_int" = yes; then
6424 # The cast to unsigned long works around a bug in the HP C Compiler
6425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6427 # This bug is HP SR number 8606223364.
6428 if test "$cross_compiling" = yes; then
6429 # Depending upon the size, compute the lo and hi bounds.
6430 cat >conftest.
$ac_ext <<_ACEOF
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6440 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6447 rm -f conftest.
$ac_objext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>conftest.er1
6451 grep -v '^ *+' conftest.er1
>conftest.err
6453 cat conftest.err
>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try
='test -z "$ac_c_werror_flag"
6457 || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try
='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6471 cat >conftest.
$ac_ext <<_ACEOF
6474 cat confdefs.h
>>conftest.
$ac_ext
6475 cat >>conftest.
$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6481 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6488 rm -f conftest.
$ac_objext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>conftest.er1
6492 grep -v '^ *+' conftest.er1
>conftest.err
6494 cat conftest.err
>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try
='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try
='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_hi
=$ac_mid; break
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.
$ac_ext >&5
6515 ac_lo
=`expr $ac_mid + 1`
6516 if test $ac_lo -le $ac_mid; then
6520 ac_mid
=`expr 2 '*' $ac_mid + 1`
6522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.
$ac_ext >&5
6528 cat >conftest.
$ac_ext <<_ACEOF
6531 cat confdefs.h
>>conftest.
$ac_ext
6532 cat >>conftest.
$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6538 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6545 rm -f conftest.
$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>conftest.er1
6549 grep -v '^ *+' conftest.er1
>conftest.err
6551 cat conftest.err
>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try
='test -z "$ac_c_werror_flag"
6555 || test ! -s conftest.err'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try
='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6579 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6586 rm -f conftest.
$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1
>conftest.err
6592 cat conftest.err
>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try
='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try
='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_lo
=$ac_mid; break
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 ac_hi
=`expr '(' $ac_mid ')' - 1`
6614 if test $ac_mid -le $ac_hi; then
6618 ac_mid
=`expr 2 '*' $ac_mid`
6620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.
$ac_ext >&5
6628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6631 # Binary search between lo and hi bounds.
6632 while test "x$ac_lo" != "x$ac_hi"; do
6633 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6634 cat >conftest.
$ac_ext <<_ACEOF
6637 cat confdefs.h
>>conftest.
$ac_ext
6638 cat >>conftest.
$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 $ac_includes_default
6644 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6651 rm -f conftest.
$ac_objext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>conftest.er1
6655 grep -v '^ *+' conftest.er1
>conftest.err
6657 cat conftest.err
>&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try
='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try
='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.
$ac_ext >&5
6678 ac_lo
=`expr '(' $ac_mid ')' + 1`
6680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6683 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6685 See \`config.log' for more details." >&5
6686 echo "$as_me: error: cannot compute sizeof (int), 77
6687 See \`config.log' for more details." >&2;}
6688 { (exit 1); exit 1; }; } ;;
6691 if test "$cross_compiling" = yes; then
6692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6693 See \`config.log' for more details." >&5
6694 echo "$as_me: error: cannot run test program while cross compiling
6695 See \`config.log' for more details." >&2;}
6696 { (exit 1); exit 1; }; }
6698 cat >conftest.
$ac_ext <<_ACEOF
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 long longval () { return (long) (sizeof (int)); }
6706 unsigned long ulongval () { return (long) (sizeof (int)); }
6713 FILE *f = fopen ("conftest.val", "w");
6716 if (((long) (sizeof (int))) < 0)
6718 long i = longval ();
6719 if (i != ((long) (sizeof (int))))
6721 fprintf (f, "%ld\n", i);
6725 unsigned long i = ulongval ();
6726 if (i != ((long) (sizeof (int))))
6728 fprintf (f, "%lu\n", i);
6730 exit (ferror (f) || fclose (f) != 0);
6736 rm -f conftest
$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_sizeof_int
=`cat conftest.val`
6749 echo "$as_me: program exited with status $ac_status" >&5
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.
$ac_ext >&5
6754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6755 See \`config.log' for more details." >&5
6756 echo "$as_me: error: cannot compute sizeof (int), 77
6757 See \`config.log' for more details." >&2;}
6758 { (exit 1); exit 1; }; }
6760 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6770 cat >>confdefs.h
<<_ACEOF
6771 #define SIZEOF_INT $ac_cv_sizeof_int
6775 echo "$as_me:$LINENO: checking for long" >&5
6776 echo $ECHO_N "checking for long... $ECHO_C" >&6
6777 if test "${ac_cv_type_long+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6798 rm -f conftest.
$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>conftest.er1
6802 grep -v '^ *+' conftest.er1
>conftest.err
6804 cat conftest.err
>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try
='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try
='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.
$ac_ext >&5
6827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6830 echo "${ECHO_T}$ac_cv_type_long" >&6
6832 echo "$as_me:$LINENO: checking size of long" >&5
6833 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6834 if test "${ac_cv_sizeof_long+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 if test "$ac_cv_type_long" = yes; then
6838 # The cast to unsigned long works around a bug in the HP C Compiler
6839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6841 # This bug is HP SR number 8606223364.
6842 if test "$cross_compiling" = yes; then
6843 # Depending upon the size, compute the lo and hi bounds.
6844 cat >conftest.
$ac_ext <<_ACEOF
6847 cat confdefs.h
>>conftest.
$ac_ext
6848 cat >>conftest.
$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6854 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6861 rm -f conftest.
$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863 (eval $ac_compile) 2>conftest.er1
6865 grep -v '^ *+' conftest.er1
>conftest.err
6867 cat conftest.err
>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try
='test -z "$ac_c_werror_flag"
6871 || test ! -s conftest.err'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; } &&
6877 { ac_try
='test -s conftest.$ac_objext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6885 cat >conftest.
$ac_ext <<_ACEOF
6888 cat confdefs.h
>>conftest.
$ac_ext
6889 cat >>conftest.
$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 $ac_includes_default
6895 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6902 rm -f conftest.
$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6906 grep -v '^ *+' conftest.er1
>conftest.err
6908 cat conftest.err
>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try
='test -z "$ac_c_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try
='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_hi
=$ac_mid; break
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.
$ac_ext >&5
6929 ac_lo
=`expr $ac_mid + 1`
6930 if test $ac_lo -le $ac_mid; then
6934 ac_mid
=`expr 2 '*' $ac_mid + 1`
6936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.
$ac_ext >&5
6942 cat >conftest.
$ac_ext <<_ACEOF
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6952 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6959 rm -f conftest.
$ac_objext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961 (eval $ac_compile) 2>conftest.er1
6963 grep -v '^ *+' conftest.er1
>conftest.err
6965 cat conftest.err
>&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try
='test -z "$ac_c_werror_flag"
6969 || test ! -s conftest.err'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try
='test -s conftest.$ac_objext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6983 cat >conftest.
$ac_ext <<_ACEOF
6986 cat confdefs.h
>>conftest.
$ac_ext
6987 cat >>conftest.
$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7000 rm -f conftest.
$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1
>conftest.err
7006 cat conftest.err
>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try
='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try
='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_lo
=$ac_mid; break
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.
$ac_ext >&5
7027 ac_hi
=`expr '(' $ac_mid ')' - 1`
7028 if test $ac_mid -le $ac_hi; then
7032 ac_mid
=`expr 2 '*' $ac_mid`
7034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.
$ac_ext >&5
7042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7045 # Binary search between lo and hi bounds.
7046 while test "x$ac_lo" != "x$ac_hi"; do
7047 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7048 cat >conftest.
$ac_ext <<_ACEOF
7051 cat confdefs.h
>>conftest.
$ac_ext
7052 cat >>conftest.
$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7058 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7065 rm -f conftest.
$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try
='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try
='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.
$ac_ext >&5
7092 ac_lo
=`expr '(' $ac_mid ')' + 1`
7094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7097 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7099 See \`config.log' for more details." >&5
7100 echo "$as_me: error: cannot compute sizeof (long), 77
7101 See \`config.log' for more details." >&2;}
7102 { (exit 1); exit 1; }; } ;;
7105 if test "$cross_compiling" = yes; then
7106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7107 See \`config.log' for more details." >&5
7108 echo "$as_me: error: cannot run test program while cross compiling
7109 See \`config.log' for more details." >&2;}
7110 { (exit 1); exit 1; }; }
7112 cat >conftest.
$ac_ext <<_ACEOF
7115 cat confdefs.h
>>conftest.
$ac_ext
7116 cat >>conftest.
$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 long longval () { return (long) (sizeof (long)); }
7120 unsigned long ulongval () { return (long) (sizeof (long)); }
7127 FILE *f = fopen ("conftest.val", "w");
7130 if (((long) (sizeof (long))) < 0)
7132 long i = longval ();
7133 if (i != ((long) (sizeof (long))))
7135 fprintf (f, "%ld\n", i);
7139 unsigned long i = ulongval ();
7140 if (i != ((long) (sizeof (long))))
7142 fprintf (f, "%lu\n", i);
7144 exit (ferror (f) || fclose (f) != 0);
7150 rm -f conftest
$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152 (eval $ac_link) 2>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_sizeof_long
=`cat conftest.val`
7163 echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.
$ac_ext >&5
7168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7169 See \`config.log' for more details." >&5
7170 echo "$as_me: error: cannot compute sizeof (long), 77
7171 See \`config.log' for more details." >&2;}
7172 { (exit 1); exit 1; }; }
7174 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7182 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7183 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7184 cat >>confdefs.h
<<_ACEOF
7185 #define SIZEOF_LONG $ac_cv_sizeof_long
7189 echo "$as_me:$LINENO: checking for void *" >&5
7190 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7191 if test "${ac_cv_type_void_p+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7206 if (sizeof (void *))
7212 rm -f conftest.
$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7216 grep -v '^ *+' conftest.er1
>conftest.err
7218 cat conftest.err
>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try
='test -z "$ac_c_werror_flag"
7222 || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try
='test -s conftest.$ac_objext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 ac_cv_type_void_p
=yes
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.
$ac_ext >&5
7239 ac_cv_type_void_p
=no
7241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7244 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7246 echo "$as_me:$LINENO: checking size of void *" >&5
7247 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7248 if test "${ac_cv_sizeof_void_p+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 if test "$ac_cv_type_void_p" = yes; then
7252 # The cast to unsigned long works around a bug in the HP C Compiler
7253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7255 # This bug is HP SR number 8606223364.
7256 if test "$cross_compiling" = yes; then
7257 # Depending upon the size, compute the lo and hi bounds.
7258 cat >conftest.
$ac_ext <<_ACEOF
7261 cat confdefs.h
>>conftest.
$ac_ext
7262 cat >>conftest.
$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7268 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7275 rm -f conftest.
$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>conftest.er1
7279 grep -v '^ *+' conftest.er1
>conftest.err
7281 cat conftest.err
>&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try
='test -z "$ac_c_werror_flag"
7285 || test ! -s conftest.err'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; } &&
7291 { ac_try
='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7299 cat >conftest.
$ac_ext <<_ACEOF
7302 cat confdefs.h
>>conftest.
$ac_ext
7303 cat >>conftest.
$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7309 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7316 rm -f conftest.
$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7320 grep -v '^ *+' conftest.er1
>conftest.err
7322 cat conftest.err
>&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try
='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try
='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 ac_hi
=$ac_mid; break
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.
$ac_ext >&5
7343 ac_lo
=`expr $ac_mid + 1`
7344 if test $ac_lo -le $ac_mid; then
7348 ac_mid
=`expr 2 '*' $ac_mid + 1`
7350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.
$ac_ext >&5
7356 cat >conftest.
$ac_ext <<_ACEOF
7359 cat confdefs.h
>>conftest.
$ac_ext
7360 cat >>conftest.
$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7366 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7373 rm -f conftest.
$ac_objext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7375 (eval $ac_compile) 2>conftest.er1
7377 grep -v '^ *+' conftest.er1
>conftest.err
7379 cat conftest.err
>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try
='test -z "$ac_c_werror_flag"
7383 || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try
='test -s conftest.$ac_objext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7397 cat >conftest.
$ac_ext <<_ACEOF
7400 cat confdefs.h
>>conftest.
$ac_ext
7401 cat >>conftest.
$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7407 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7414 rm -f conftest.
$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try
='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try
='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_lo
=$ac_mid; break
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7441 ac_hi
=`expr '(' $ac_mid ')' - 1`
7442 if test $ac_mid -le $ac_hi; then
7446 ac_mid
=`expr 2 '*' $ac_mid`
7448 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.
$ac_ext >&5
7456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7459 # Binary search between lo and hi bounds.
7460 while test "x$ac_lo" != "x$ac_hi"; do
7461 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7462 cat >conftest.
$ac_ext <<_ACEOF
7465 cat confdefs.h
>>conftest.
$ac_ext
7466 cat >>conftest.
$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7472 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7479 rm -f conftest.
$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>conftest.er1
7483 grep -v '^ *+' conftest.er1
>conftest.err
7485 cat conftest.err
>&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try
='test -z "$ac_c_werror_flag"
7489 || test ! -s conftest.err'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try
='test -s conftest.$ac_objext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.
$ac_ext >&5
7506 ac_lo
=`expr '(' $ac_mid ')' + 1`
7508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7511 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7512 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7513 See \`config.log' for more details." >&5
7514 echo "$as_me: error: cannot compute sizeof (void *), 77
7515 See \`config.log' for more details." >&2;}
7516 { (exit 1); exit 1; }; } ;;
7519 if test "$cross_compiling" = yes; then
7520 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7521 See \`config.log' for more details." >&5
7522 echo "$as_me: error: cannot run test program while cross compiling
7523 See \`config.log' for more details." >&2;}
7524 { (exit 1); exit 1; }; }
7526 cat >conftest.
$ac_ext <<_ACEOF
7529 cat confdefs.h
>>conftest.
$ac_ext
7530 cat >>conftest.
$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7533 long longval () { return (long) (sizeof (void *)); }
7534 unsigned long ulongval () { return (long) (sizeof (void *)); }
7541 FILE *f = fopen ("conftest.val", "w");
7544 if (((long) (sizeof (void *))) < 0)
7546 long i = longval ();
7547 if (i != ((long) (sizeof (void *))))
7549 fprintf (f, "%ld\n", i);
7553 unsigned long i = ulongval ();
7554 if (i != ((long) (sizeof (void *))))
7556 fprintf (f, "%lu\n", i);
7558 exit (ferror (f) || fclose (f) != 0);
7564 rm -f conftest
$ac_exeext
7565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7566 (eval $ac_link) 2>&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_sizeof_void_p
=`cat conftest.val`
7577 echo "$as_me: program exited with status $ac_status" >&5
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.
$ac_ext >&5
7582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7583 See \`config.log' for more details." >&5
7584 echo "$as_me: error: cannot compute sizeof (void *), 77
7585 See \`config.log' for more details." >&2;}
7586 { (exit 1); exit 1; }; }
7588 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7593 ac_cv_sizeof_void_p
=0
7596 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7597 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7598 cat >>confdefs.h
<<_ACEOF
7599 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7603 echo "$as_me:$LINENO: checking for short" >&5
7604 echo $ECHO_N "checking for short... $ECHO_C" >&6
7605 if test "${ac_cv_type_short+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 cat >conftest.
$ac_ext <<_ACEOF
7611 cat confdefs.h
>>conftest.
$ac_ext
7612 cat >>conftest.
$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7626 rm -f conftest.
$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>conftest.er1
7630 grep -v '^ *+' conftest.er1
>conftest.err
7632 cat conftest.err
>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try
='test -z "$ac_c_werror_flag"
7636 || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try
='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 ac_cv_type_short
=yes
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.
$ac_ext >&5
7655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7657 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7658 echo "${ECHO_T}$ac_cv_type_short" >&6
7660 echo "$as_me:$LINENO: checking size of short" >&5
7661 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7662 if test "${ac_cv_sizeof_short+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 if test "$ac_cv_type_short" = yes; then
7666 # The cast to unsigned long works around a bug in the HP C Compiler
7667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7669 # This bug is HP SR number 8606223364.
7670 if test "$cross_compiling" = yes; then
7671 # Depending upon the size, compute the lo and hi bounds.
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7682 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7689 rm -f conftest.
$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7693 grep -v '^ *+' conftest.er1
>conftest.err
7695 cat conftest.err
>&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try
='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try
='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7713 cat >conftest.
$ac_ext <<_ACEOF
7716 cat confdefs.h
>>conftest.
$ac_ext
7717 cat >>conftest.
$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 $ac_includes_default
7723 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7730 rm -f conftest.
$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>conftest.er1
7734 grep -v '^ *+' conftest.er1
>conftest.err
7736 cat conftest.err
>&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try
='test -z "$ac_c_werror_flag"
7740 || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try
='test -s conftest.$ac_objext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_hi
=$ac_mid; break
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.
$ac_ext >&5
7757 ac_lo
=`expr $ac_mid + 1`
7758 if test $ac_lo -le $ac_mid; then
7762 ac_mid
=`expr 2 '*' $ac_mid + 1`
7764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.
$ac_ext >&5
7770 cat >conftest.
$ac_ext <<_ACEOF
7773 cat confdefs.h
>>conftest.
$ac_ext
7774 cat >>conftest.
$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7780 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7787 rm -f conftest.
$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789 (eval $ac_compile) 2>conftest.er1
7791 grep -v '^ *+' conftest.er1
>conftest.err
7793 cat conftest.err
>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try
='test -z "$ac_c_werror_flag"
7797 || test ! -s conftest.err'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; } &&
7803 { ac_try
='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7811 cat >conftest.
$ac_ext <<_ACEOF
7814 cat confdefs.h
>>conftest.
$ac_ext
7815 cat >>conftest.
$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7821 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7828 rm -f conftest.
$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7832 grep -v '^ *+' conftest.er1
>conftest.err
7834 cat conftest.err
>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try
='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try
='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_lo
=$ac_mid; break
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.
$ac_ext >&5
7855 ac_hi
=`expr '(' $ac_mid ')' - 1`
7856 if test $ac_mid -le $ac_hi; then
7860 ac_mid
=`expr 2 '*' $ac_mid`
7862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.
$ac_ext >&5
7870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7873 # Binary search between lo and hi bounds.
7874 while test "x$ac_lo" != "x$ac_hi"; do
7875 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7876 cat >conftest.
$ac_ext <<_ACEOF
7879 cat confdefs.h
>>conftest.
$ac_ext
7880 cat >>conftest.
$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 $ac_includes_default
7886 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7893 rm -f conftest.
$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>conftest.er1
7897 grep -v '^ *+' conftest.er1
>conftest.err
7899 cat conftest.err
>&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try
='test -z "$ac_c_werror_flag"
7903 || test ! -s conftest.err'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try
='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.
$ac_ext >&5
7920 ac_lo
=`expr '(' $ac_mid ')' + 1`
7922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7925 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7926 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7927 See \`config.log' for more details." >&5
7928 echo "$as_me: error: cannot compute sizeof (short), 77
7929 See \`config.log' for more details." >&2;}
7930 { (exit 1); exit 1; }; } ;;
7933 if test "$cross_compiling" = yes; then
7934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7935 See \`config.log' for more details." >&5
7936 echo "$as_me: error: cannot run test program while cross compiling
7937 See \`config.log' for more details." >&2;}
7938 { (exit 1); exit 1; }; }
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7947 long longval () { return (long) (sizeof (short)); }
7948 unsigned long ulongval () { return (long) (sizeof (short)); }
7955 FILE *f = fopen ("conftest.val", "w");
7958 if (((long) (sizeof (short))) < 0)
7960 long i = longval ();
7961 if (i != ((long) (sizeof (short))))
7963 fprintf (f, "%ld\n", i);
7967 unsigned long i = ulongval ();
7968 if (i != ((long) (sizeof (short))))
7970 fprintf (f, "%lu\n", i);
7972 exit (ferror (f) || fclose (f) != 0);
7978 rm -f conftest
$ac_exeext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7980 (eval $ac_link) 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_sizeof_short
=`cat conftest.val`
7991 echo "$as_me: program exited with status $ac_status" >&5
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.
$ac_ext >&5
7996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7997 See \`config.log' for more details." >&5
7998 echo "$as_me: error: cannot compute sizeof (short), 77
7999 See \`config.log' for more details." >&2;}
8000 { (exit 1); exit 1; }; }
8002 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8007 ac_cv_sizeof_short
=0
8010 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8011 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8012 cat >>confdefs.h
<<_ACEOF
8013 #define SIZEOF_SHORT $ac_cv_sizeof_short
8017 echo "$as_me:$LINENO: checking for float" >&5
8018 echo $ECHO_N "checking for float... $ECHO_C" >&6
8019 if test "${ac_cv_type_float+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 cat >conftest.
$ac_ext <<_ACEOF
8025 cat confdefs.h
>>conftest.
$ac_ext
8026 cat >>conftest.
$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8040 rm -f conftest.
$ac_objext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>conftest.er1
8044 grep -v '^ *+' conftest.er1
>conftest.err
8046 cat conftest.err
>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try
='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try
='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_type_float
=yes
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.
$ac_ext >&5
8069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8072 echo "${ECHO_T}$ac_cv_type_float" >&6
8074 echo "$as_me:$LINENO: checking size of float" >&5
8075 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8076 if test "${ac_cv_sizeof_float+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 if test "$ac_cv_type_float" = yes; then
8080 # The cast to unsigned long works around a bug in the HP C Compiler
8081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8083 # This bug is HP SR number 8606223364.
8084 if test "$cross_compiling" = yes; then
8085 # Depending upon the size, compute the lo and hi bounds.
8086 cat >conftest.
$ac_ext <<_ACEOF
8089 cat confdefs.h
>>conftest.
$ac_ext
8090 cat >>conftest.
$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 $ac_includes_default
8096 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8103 rm -f conftest.
$ac_objext
8104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8105 (eval $ac_compile) 2>conftest.er1
8107 grep -v '^ *+' conftest.er1
>conftest.err
8109 cat conftest.err
>&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try
='test -z "$ac_c_werror_flag"
8113 || test ! -s conftest.err'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try
='test -s conftest.$ac_objext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8127 cat >conftest.
$ac_ext <<_ACEOF
8130 cat confdefs.h
>>conftest.
$ac_ext
8131 cat >>conftest.
$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 $ac_includes_default
8137 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8144 rm -f conftest.
$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>conftest.er1
8148 grep -v '^ *+' conftest.er1
>conftest.err
8150 cat conftest.err
>&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try
='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try
='test -s conftest.$ac_objext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_hi
=$ac_mid; break
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.
$ac_ext >&5
8171 ac_lo
=`expr $ac_mid + 1`
8172 if test $ac_lo -le $ac_mid; then
8176 ac_mid
=`expr 2 '*' $ac_mid + 1`
8178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.
$ac_ext >&5
8184 cat >conftest.
$ac_ext <<_ACEOF
8187 cat confdefs.h
>>conftest.
$ac_ext
8188 cat >>conftest.
$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8194 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8201 rm -f conftest.
$ac_objext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203 (eval $ac_compile) 2>conftest.er1
8205 grep -v '^ *+' conftest.er1
>conftest.err
8207 cat conftest.err
>&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try
='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try
='test -s conftest.$ac_objext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8225 cat >conftest.
$ac_ext <<_ACEOF
8228 cat confdefs.h
>>conftest.
$ac_ext
8229 cat >>conftest.
$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8235 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8242 rm -f conftest.
$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try
='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_lo
=$ac_mid; break
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 ac_hi
=`expr '(' $ac_mid ')' - 1`
8270 if test $ac_mid -le $ac_hi; then
8274 ac_mid
=`expr 2 '*' $ac_mid`
8276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.
$ac_ext >&5
8284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8287 # Binary search between lo and hi bounds.
8288 while test "x$ac_lo" != "x$ac_hi"; do
8289 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8290 cat >conftest.
$ac_ext <<_ACEOF
8293 cat confdefs.h
>>conftest.
$ac_ext
8294 cat >>conftest.
$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8300 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8307 rm -f conftest.
$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1
>conftest.err
8313 cat conftest.err
>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try
='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try
='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.
$ac_ext >&5
8334 ac_lo
=`expr '(' $ac_mid ')' + 1`
8336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8339 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8340 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8341 See \`config.log' for more details." >&5
8342 echo "$as_me: error: cannot compute sizeof (float), 77
8343 See \`config.log' for more details." >&2;}
8344 { (exit 1); exit 1; }; } ;;
8347 if test "$cross_compiling" = yes; then
8348 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8349 See \`config.log' for more details." >&5
8350 echo "$as_me: error: cannot run test program while cross compiling
8351 See \`config.log' for more details." >&2;}
8352 { (exit 1); exit 1; }; }
8354 cat >conftest.
$ac_ext <<_ACEOF
8357 cat confdefs.h
>>conftest.
$ac_ext
8358 cat >>conftest.
$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 long longval () { return (long) (sizeof (float)); }
8362 unsigned long ulongval () { return (long) (sizeof (float)); }
8369 FILE *f = fopen ("conftest.val", "w");
8372 if (((long) (sizeof (float))) < 0)
8374 long i = longval ();
8375 if (i != ((long) (sizeof (float))))
8377 fprintf (f, "%ld\n", i);
8381 unsigned long i = ulongval ();
8382 if (i != ((long) (sizeof (float))))
8384 fprintf (f, "%lu\n", i);
8386 exit (ferror (f) || fclose (f) != 0);
8392 rm -f conftest
$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_sizeof_float
=`cat conftest.val`
8405 echo "$as_me: program exited with status $ac_status" >&5
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.
$ac_ext >&5
8410 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8411 See \`config.log' for more details." >&5
8412 echo "$as_me: error: cannot compute sizeof (float), 77
8413 See \`config.log' for more details." >&2;}
8414 { (exit 1); exit 1; }; }
8416 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8421 ac_cv_sizeof_float
=0
8424 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8425 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8426 cat >>confdefs.h
<<_ACEOF
8427 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8431 echo "$as_me:$LINENO: checking for double" >&5
8432 echo $ECHO_N "checking for double... $ECHO_C" >&6
8433 if test "${ac_cv_type_double+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 cat >conftest.
$ac_ext <<_ACEOF
8439 cat confdefs.h
>>conftest.
$ac_ext
8440 cat >>conftest.
$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8448 if (sizeof (double))
8454 rm -f conftest.
$ac_objext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456 (eval $ac_compile) 2>conftest.er1
8458 grep -v '^ *+' conftest.er1
>conftest.err
8460 cat conftest.err
>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try
='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try
='test -s conftest.$ac_objext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_type_double
=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 ac_cv_type_double
=no
8483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8485 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8486 echo "${ECHO_T}$ac_cv_type_double" >&6
8488 echo "$as_me:$LINENO: checking size of double" >&5
8489 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8490 if test "${ac_cv_sizeof_double+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 if test "$ac_cv_type_double" = yes; then
8494 # The cast to unsigned long works around a bug in the HP C Compiler
8495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8497 # This bug is HP SR number 8606223364.
8498 if test "$cross_compiling" = yes; then
8499 # Depending upon the size, compute the lo and hi bounds.
8500 cat >conftest.
$ac_ext <<_ACEOF
8503 cat confdefs.h
>>conftest.
$ac_ext
8504 cat >>conftest.
$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8510 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8517 rm -f conftest.
$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>conftest.er1
8521 grep -v '^ *+' conftest.er1
>conftest.err
8523 cat conftest.err
>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try
='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try
='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8541 cat >conftest.
$ac_ext <<_ACEOF
8544 cat confdefs.h
>>conftest.
$ac_ext
8545 cat >>conftest.
$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8551 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8558 rm -f conftest.
$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1
>conftest.err
8564 cat conftest.err
>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try
='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try
='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_hi
=$ac_mid; break
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8585 ac_lo
=`expr $ac_mid + 1`
8586 if test $ac_lo -le $ac_mid; then
8590 ac_mid
=`expr 2 '*' $ac_mid + 1`
8592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.
$ac_ext >&5
8598 cat >conftest.
$ac_ext <<_ACEOF
8601 cat confdefs.h
>>conftest.
$ac_ext
8602 cat >>conftest.
$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604 $ac_includes_default
8608 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8615 rm -f conftest.
$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1
>conftest.err
8621 cat conftest.err
>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try
='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try
='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8639 cat >conftest.
$ac_ext <<_ACEOF
8642 cat confdefs.h
>>conftest.
$ac_ext
8643 cat >>conftest.
$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8649 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8656 rm -f conftest.
$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1
>conftest.err
8662 cat conftest.err
>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try
='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try
='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_lo
=$ac_mid; break
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.
$ac_ext >&5
8683 ac_hi
=`expr '(' $ac_mid ')' - 1`
8684 if test $ac_mid -le $ac_hi; then
8688 ac_mid
=`expr 2 '*' $ac_mid`
8690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.
$ac_ext >&5
8698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8701 # Binary search between lo and hi bounds.
8702 while test "x$ac_lo" != "x$ac_hi"; do
8703 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8704 cat >conftest.
$ac_ext <<_ACEOF
8707 cat confdefs.h
>>conftest.
$ac_ext
8708 cat >>conftest.
$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8714 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8721 rm -f conftest.
$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1
>conftest.err
8727 cat conftest.err
>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try
='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try
='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.
$ac_ext >&5
8748 ac_lo
=`expr '(' $ac_mid ')' + 1`
8750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8753 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8754 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8755 See \`config.log' for more details." >&5
8756 echo "$as_me: error: cannot compute sizeof (double), 77
8757 See \`config.log' for more details." >&2;}
8758 { (exit 1); exit 1; }; } ;;
8761 if test "$cross_compiling" = yes; then
8762 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8763 See \`config.log' for more details." >&5
8764 echo "$as_me: error: cannot run test program while cross compiling
8765 See \`config.log' for more details." >&2;}
8766 { (exit 1); exit 1; }; }
8768 cat >conftest.
$ac_ext <<_ACEOF
8771 cat confdefs.h
>>conftest.
$ac_ext
8772 cat >>conftest.
$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 long longval () { return (long) (sizeof (double)); }
8776 unsigned long ulongval () { return (long) (sizeof (double)); }
8783 FILE *f = fopen ("conftest.val", "w");
8786 if (((long) (sizeof (double))) < 0)
8788 long i = longval ();
8789 if (i != ((long) (sizeof (double))))
8791 fprintf (f, "%ld\n", i);
8795 unsigned long i = ulongval ();
8796 if (i != ((long) (sizeof (double))))
8798 fprintf (f, "%lu\n", i);
8800 exit (ferror (f) || fclose (f) != 0);
8806 rm -f conftest
$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_sizeof_double
=`cat conftest.val`
8819 echo "$as_me: program exited with status $ac_status" >&5
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.
$ac_ext >&5
8824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8825 See \`config.log' for more details." >&5
8826 echo "$as_me: error: cannot compute sizeof (double), 77
8827 See \`config.log' for more details." >&2;}
8828 { (exit 1); exit 1; }; }
8830 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8835 ac_cv_sizeof_double
=0
8838 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8839 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8840 cat >>confdefs.h
<<_ACEOF
8841 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8845 echo "$as_me:$LINENO: checking for fpos_t" >&5
8846 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8847 if test "${ac_cv_type_fpos_t+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 cat >conftest.
$ac_ext <<_ACEOF
8853 cat confdefs.h
>>conftest.
$ac_ext
8854 cat >>conftest.
$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 $ac_includes_default
8862 if (sizeof (fpos_t))
8868 rm -f conftest.
$ac_objext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>conftest.er1
8872 grep -v '^ *+' conftest.er1
>conftest.err
8874 cat conftest.err
>&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try
='test -z "$ac_c_werror_flag"
8878 || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try
='test -s conftest.$ac_objext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_type_fpos_t
=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.
$ac_ext >&5
8895 ac_cv_type_fpos_t
=no
8897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8899 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8900 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8902 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8903 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8904 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 if test "$ac_cv_type_fpos_t" = yes; then
8908 # The cast to unsigned long works around a bug in the HP C Compiler
8909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8911 # This bug is HP SR number 8606223364.
8912 if test "$cross_compiling" = yes; then
8913 # Depending upon the size, compute the lo and hi bounds.
8914 cat >conftest.
$ac_ext <<_ACEOF
8917 cat confdefs.h
>>conftest.
$ac_ext
8918 cat >>conftest.
$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8924 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8931 rm -f conftest.
$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>conftest.er1
8935 grep -v '^ *+' conftest.er1
>conftest.err
8937 cat conftest.err
>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try
='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try
='test -s conftest.$ac_objext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8955 cat >conftest.
$ac_ext <<_ACEOF
8958 cat confdefs.h
>>conftest.
$ac_ext
8959 cat >>conftest.
$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 $ac_includes_default
8965 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8972 rm -f conftest.
$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8976 grep -v '^ *+' conftest.er1
>conftest.err
8978 cat conftest.err
>&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try
='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try
='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_hi
=$ac_mid; break
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.
$ac_ext >&5
8999 ac_lo
=`expr $ac_mid + 1`
9000 if test $ac_lo -le $ac_mid; then
9004 ac_mid
=`expr 2 '*' $ac_mid + 1`
9006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.
$ac_ext >&5
9012 cat >conftest.
$ac_ext <<_ACEOF
9015 cat confdefs.h
>>conftest.
$ac_ext
9016 cat >>conftest.
$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9022 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
9029 rm -f conftest.
$ac_objext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>conftest.er1
9033 grep -v '^ *+' conftest.er1
>conftest.err
9035 cat conftest.err
>&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try
='test -z "$ac_c_werror_flag"
9039 || test ! -s conftest.err'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try
='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9053 cat >conftest.
$ac_ext <<_ACEOF
9056 cat confdefs.h
>>conftest.
$ac_ext
9057 cat >>conftest.
$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9063 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
9070 rm -f conftest.
$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9074 grep -v '^ *+' conftest.er1
>conftest.err
9076 cat conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try
='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try
='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_lo
=$ac_mid; break
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.
$ac_ext >&5
9097 ac_hi
=`expr '(' $ac_mid ')' - 1`
9098 if test $ac_mid -le $ac_hi; then
9102 ac_mid
=`expr 2 '*' $ac_mid`
9104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.
$ac_ext >&5
9112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9115 # Binary search between lo and hi bounds.
9116 while test "x$ac_lo" != "x$ac_hi"; do
9117 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9118 cat >conftest.
$ac_ext <<_ACEOF
9121 cat confdefs.h
>>conftest.
$ac_ext
9122 cat >>conftest.
$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9128 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9135 rm -f conftest.
$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9139 grep -v '^ *+' conftest.er1
>conftest.err
9141 cat conftest.err
>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try
='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try
='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.
$ac_ext >&5
9162 ac_lo
=`expr '(' $ac_mid ')' + 1`
9164 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9167 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9168 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9169 See \`config.log' for more details." >&5
9170 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9171 See \`config.log' for more details." >&2;}
9172 { (exit 1); exit 1; }; } ;;
9175 if test "$cross_compiling" = yes; then
9176 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9177 See \`config.log' for more details." >&5
9178 echo "$as_me: error: cannot run test program while cross compiling
9179 See \`config.log' for more details." >&2;}
9180 { (exit 1); exit 1; }; }
9182 cat >conftest.
$ac_ext <<_ACEOF
9185 cat confdefs.h
>>conftest.
$ac_ext
9186 cat >>conftest.
$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 long longval () { return (long) (sizeof (fpos_t)); }
9190 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9197 FILE *f = fopen ("conftest.val", "w");
9200 if (((long) (sizeof (fpos_t))) < 0)
9202 long i = longval ();
9203 if (i != ((long) (sizeof (fpos_t))))
9205 fprintf (f, "%ld\n", i);
9209 unsigned long i = ulongval ();
9210 if (i != ((long) (sizeof (fpos_t))))
9212 fprintf (f, "%lu\n", i);
9214 exit (ferror (f) || fclose (f) != 0);
9220 rm -f conftest
$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9233 echo "$as_me: program exited with status $ac_status" >&5
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.
$ac_ext >&5
9238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9239 See \`config.log' for more details." >&5
9240 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9241 See \`config.log' for more details." >&2;}
9242 { (exit 1); exit 1; }; }
9244 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9249 ac_cv_sizeof_fpos_t
=0
9252 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9253 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9254 cat >>confdefs.h
<<_ACEOF
9255 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9259 echo "$as_me:$LINENO: checking for size_t" >&5
9260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9261 if test "${ac_cv_type_size_t+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 cat >conftest.
$ac_ext <<_ACEOF
9267 cat confdefs.h
>>conftest.
$ac_ext
9268 cat >>conftest.
$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9276 if (sizeof (size_t))
9282 rm -f conftest.
$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 (eval $ac_compile) 2>conftest.er1
9286 grep -v '^ *+' conftest.er1
>conftest.err
9288 cat conftest.err
>&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try
='test -z "$ac_c_werror_flag"
9292 || test ! -s conftest.err'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try
='test -s conftest.$ac_objext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_type_size_t
=yes
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.
$ac_ext >&5
9309 ac_cv_type_size_t
=no
9311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9316 echo "$as_me:$LINENO: checking size of size_t" >&5
9317 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9318 if test "${ac_cv_sizeof_size_t+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 if test "$ac_cv_type_size_t" = yes; then
9322 # The cast to unsigned long works around a bug in the HP C Compiler
9323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9325 # This bug is HP SR number 8606223364.
9326 if test "$cross_compiling" = yes; then
9327 # Depending upon the size, compute the lo and hi bounds.
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9338 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9345 rm -f conftest.
$ac_objext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347 (eval $ac_compile) 2>conftest.er1
9349 grep -v '^ *+' conftest.er1
>conftest.err
9351 cat conftest.err
>&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try
='test -z "$ac_c_werror_flag"
9355 || test ! -s conftest.err'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try
='test -s conftest.$ac_objext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9369 cat >conftest.
$ac_ext <<_ACEOF
9372 cat confdefs.h
>>conftest.
$ac_ext
9373 cat >>conftest.
$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9379 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9386 rm -f conftest.
$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9390 grep -v '^ *+' conftest.er1
>conftest.err
9392 cat conftest.err
>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try
='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try
='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_hi
=$ac_mid; break
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.
$ac_ext >&5
9413 ac_lo
=`expr $ac_mid + 1`
9414 if test $ac_lo -le $ac_mid; then
9418 ac_mid
=`expr 2 '*' $ac_mid + 1`
9420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9423 echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.
$ac_ext >&5
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9436 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9443 rm -f conftest.
$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9447 grep -v '^ *+' conftest.er1
>conftest.err
9449 cat conftest.err
>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try
='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try
='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9467 cat >conftest.
$ac_ext <<_ACEOF
9470 cat confdefs.h
>>conftest.
$ac_ext
9471 cat >>conftest.
$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9477 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9484 rm -f conftest.
$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9488 grep -v '^ *+' conftest.er1
>conftest.err
9490 cat conftest.err
>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try
='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try
='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 ac_lo
=$ac_mid; break
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.
$ac_ext >&5
9511 ac_hi
=`expr '(' $ac_mid ')' - 1`
9512 if test $ac_mid -le $ac_hi; then
9516 ac_mid
=`expr 2 '*' $ac_mid`
9518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.
$ac_ext >&5
9526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9529 # Binary search between lo and hi bounds.
9530 while test "x$ac_lo" != "x$ac_hi"; do
9531 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9532 cat >conftest.
$ac_ext <<_ACEOF
9535 cat confdefs.h
>>conftest.
$ac_ext
9536 cat >>conftest.
$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9542 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9549 rm -f conftest.
$ac_objext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9551 (eval $ac_compile) 2>conftest.er1
9553 grep -v '^ *+' conftest.er1
>conftest.err
9555 cat conftest.err
>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try
='test -z "$ac_c_werror_flag"
9559 || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try
='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.
$ac_ext >&5
9576 ac_lo
=`expr '(' $ac_mid ')' + 1`
9578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9581 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9582 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9583 See \`config.log' for more details." >&5
9584 echo "$as_me: error: cannot compute sizeof (size_t), 77
9585 See \`config.log' for more details." >&2;}
9586 { (exit 1); exit 1; }; } ;;
9589 if test "$cross_compiling" = yes; then
9590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9591 See \`config.log' for more details." >&5
9592 echo "$as_me: error: cannot run test program while cross compiling
9593 See \`config.log' for more details." >&2;}
9594 { (exit 1); exit 1; }; }
9596 cat >conftest.
$ac_ext <<_ACEOF
9599 cat confdefs.h
>>conftest.
$ac_ext
9600 cat >>conftest.
$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 $ac_includes_default
9603 long longval () { return (long) (sizeof (size_t)); }
9604 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9611 FILE *f = fopen ("conftest.val", "w");
9614 if (((long) (sizeof (size_t))) < 0)
9616 long i = longval ();
9617 if (i != ((long) (sizeof (size_t))))
9619 fprintf (f, "%ld\n", i);
9623 unsigned long i = ulongval ();
9624 if (i != ((long) (sizeof (size_t))))
9626 fprintf (f, "%lu\n", i);
9628 exit (ferror (f) || fclose (f) != 0);
9634 rm -f conftest
$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_sizeof_size_t
=`cat conftest.val`
9647 echo "$as_me: program exited with status $ac_status" >&5
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.
$ac_ext >&5
9652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9653 See \`config.log' for more details." >&5
9654 echo "$as_me: error: cannot compute sizeof (size_t), 77
9655 See \`config.log' for more details." >&2;}
9656 { (exit 1); exit 1; }; }
9658 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9663 ac_cv_sizeof_size_t
=0
9666 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9667 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9668 cat >>confdefs.h
<<_ACEOF
9669 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9674 echo "$as_me:$LINENO: checking for long long support" >&5
9675 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9677 cat >conftest.
$ac_ext <<_ACEOF
9680 cat confdefs.h
>>conftest.
$ac_ext
9681 cat >>conftest.
$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9687 long long x; x = (long long)0;
9692 rm -f conftest.
$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>conftest.er1
9696 grep -v '^ *+' conftest.er1
>conftest.err
9698 cat conftest.err
>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try
='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try
='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9716 cat >>confdefs.h
<<\_ACEOF
9717 #define HAVE_LONG_LONG 1
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.
$ac_ext >&5
9727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9728 echo "$as_me:$LINENO: result: $have_long_long" >&5
9729 echo "${ECHO_T}$have_long_long" >&6
9730 if test "$have_long_long" = yes ; then
9731 echo "$as_me:$LINENO: checking for long long" >&5
9732 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9733 if test "${ac_cv_type_long_long+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.
$ac_ext <<_ACEOF
9739 cat confdefs.h
>>conftest.
$ac_ext
9740 cat >>conftest.
$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9746 if ((long long *) 0)
9748 if (sizeof (long long))
9754 rm -f conftest.
$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1
>conftest.err
9760 cat conftest.err
>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try
='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try
='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_type_long_long
=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.
$ac_ext >&5
9781 ac_cv_type_long_long
=no
9783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9785 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9786 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9788 echo "$as_me:$LINENO: checking size of long long" >&5
9789 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9790 if test "${ac_cv_sizeof_long_long+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 if test "$ac_cv_type_long_long" = yes; then
9794 # The cast to unsigned long works around a bug in the HP C Compiler
9795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9797 # This bug is HP SR number 8606223364.
9798 if test "$cross_compiling" = yes; then
9799 # Depending upon the size, compute the lo and hi bounds.
9800 cat >conftest.
$ac_ext <<_ACEOF
9803 cat confdefs.h
>>conftest.
$ac_ext
9804 cat >>conftest.
$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 $ac_includes_default
9810 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9817 rm -f conftest.
$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9821 grep -v '^ *+' conftest.er1
>conftest.err
9823 cat conftest.err
>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try
='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try
='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9841 cat >conftest.
$ac_ext <<_ACEOF
9844 cat confdefs.h
>>conftest.
$ac_ext
9845 cat >>conftest.
$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 $ac_includes_default
9851 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9858 rm -f conftest.
$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1
>conftest.err
9864 cat conftest.err
>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try
='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try
='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_hi
=$ac_mid; break
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.
$ac_ext >&5
9885 ac_lo
=`expr $ac_mid + 1`
9886 if test $ac_lo -le $ac_mid; then
9890 ac_mid
=`expr 2 '*' $ac_mid + 1`
9892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.
$ac_ext >&5
9898 cat >conftest.
$ac_ext <<_ACEOF
9901 cat confdefs.h
>>conftest.
$ac_ext
9902 cat >>conftest.
$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 $ac_includes_default
9908 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9915 rm -f conftest.
$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9919 grep -v '^ *+' conftest.er1
>conftest.err
9921 cat conftest.err
>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try
='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try
='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9939 cat >conftest.
$ac_ext <<_ACEOF
9942 cat confdefs.h
>>conftest.
$ac_ext
9943 cat >>conftest.
$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9956 rm -f conftest.
$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1
>conftest.err
9962 cat conftest.err
>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try
='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try
='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_lo
=$ac_mid; break
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.
$ac_ext >&5
9983 ac_hi
=`expr '(' $ac_mid ')' - 1`
9984 if test $ac_mid -le $ac_hi; then
9988 ac_mid
=`expr 2 '*' $ac_mid`
9990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.
$ac_ext >&5
9998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10001 # Binary search between lo and hi bounds.
10002 while test "x$ac_lo" != "x$ac_hi"; do
10003 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10004 cat >conftest.
$ac_ext <<_ACEOF
10007 cat confdefs.h
>>conftest.
$ac_ext
10008 cat >>conftest.
$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 $ac_includes_default
10014 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10021 rm -f conftest.
$ac_objext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>conftest.er1
10025 grep -v '^ *+' conftest.er1
>conftest.err
10027 cat conftest.err
>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try
='test -z "$ac_c_werror_flag"
10031 || test ! -s conftest.err'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try
='test -s conftest.$ac_objext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.
$ac_ext >&5
10048 ac_lo
=`expr '(' $ac_mid ')' + 1`
10050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10053 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
10054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10055 See \`config.log' for more details." >&5
10056 echo "$as_me: error: cannot compute sizeof (long long), 77
10057 See \`config.log' for more details." >&2;}
10058 { (exit 1); exit 1; }; } ;;
10061 if test "$cross_compiling" = yes; then
10062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10063 See \`config.log' for more details." >&5
10064 echo "$as_me: error: cannot run test program while cross compiling
10065 See \`config.log' for more details." >&2;}
10066 { (exit 1); exit 1; }; }
10068 cat >conftest.
$ac_ext <<_ACEOF
10071 cat confdefs.h
>>conftest.
$ac_ext
10072 cat >>conftest.
$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 long longval () { return (long) (sizeof (long long)); }
10076 unsigned long ulongval () { return (long) (sizeof (long long)); }
10078 #include <stdlib.h>
10083 FILE *f = fopen ("conftest.val", "w");
10086 if (((long) (sizeof (long long))) < 0)
10088 long i = longval ();
10089 if (i != ((long) (sizeof (long long))))
10091 fprintf (f, "%ld\n", i);
10095 unsigned long i = ulongval ();
10096 if (i != ((long) (sizeof (long long))))
10098 fprintf (f, "%lu\n", i);
10100 exit (ferror (f) || fclose (f) != 0);
10106 rm -f conftest
$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_sizeof_long_long
=`cat conftest.val`
10119 echo "$as_me: program exited with status $ac_status" >&5
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.
$ac_ext >&5
10123 ( exit $ac_status )
10124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10125 See \`config.log' for more details." >&5
10126 echo "$as_me: error: cannot compute sizeof (long long), 77
10127 See \`config.log' for more details." >&2;}
10128 { (exit 1); exit 1; }; }
10130 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10135 ac_cv_sizeof_long_long
=0
10138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10139 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10140 cat >>confdefs.h
<<_ACEOF
10141 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10147 echo "$as_me:$LINENO: checking for _Bool support" >&5
10148 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6
10150 cat >conftest.
$ac_ext <<_ACEOF
10153 cat confdefs.h
>>conftest.
$ac_ext
10154 cat >>conftest.
$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10160 _Bool x; x = (_Bool)0;
10165 rm -f conftest.
$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>conftest.er1
10169 grep -v '^ *+' conftest.er1
>conftest.err
10171 cat conftest.err
>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try
='test -z "$ac_c_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try
='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10189 cat >>confdefs.h
<<\_ACEOF
10190 #define HAVE_C99_BOOL 1
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.
$ac_ext >&5
10200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10201 echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10202 echo "${ECHO_T}$have_c99_bool" >&6
10203 if test "$have_c99_bool" = yes ; then
10204 echo "$as_me:$LINENO: checking for _Bool" >&5
10205 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10206 if test "${ac_cv_type__Bool+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 cat >conftest.
$ac_ext <<_ACEOF
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10221 if (sizeof (_Bool))
10227 rm -f conftest.
$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>conftest.er1
10231 grep -v '^ *+' conftest.er1
>conftest.err
10233 cat conftest.err
>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try
='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try
='test -s conftest.$ac_objext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_type__Bool
=yes
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.
$ac_ext >&5
10254 ac_cv_type__Bool
=no
10256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10258 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10259 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10261 echo "$as_me:$LINENO: checking size of _Bool" >&5
10262 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6
10263 if test "${ac_cv_sizeof__Bool+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 if test "$ac_cv_type__Bool" = yes; then
10267 # The cast to unsigned long works around a bug in the HP C Compiler
10268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10270 # This bug is HP SR number 8606223364.
10271 if test "$cross_compiling" = yes; then
10272 # Depending upon the size, compute the lo and hi bounds.
10273 cat >conftest.
$ac_ext <<_ACEOF
10276 cat confdefs.h
>>conftest.
$ac_ext
10277 cat >>conftest.
$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10283 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= 0)];
10290 rm -f conftest.
$ac_objext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292 (eval $ac_compile) 2>conftest.er1
10294 grep -v '^ *+' conftest.er1
>conftest.err
10296 cat conftest.err
>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try
='test -z "$ac_c_werror_flag"
10300 || test ! -s conftest.err'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; } &&
10306 { ac_try
='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10314 cat >conftest.
$ac_ext <<_ACEOF
10317 cat confdefs.h
>>conftest.
$ac_ext
10318 cat >>conftest.
$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10324 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10331 rm -f conftest.
$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1
>conftest.err
10337 cat conftest.err
>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try
='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try
='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_hi
=$ac_mid; break
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.
$ac_ext >&5
10358 ac_lo
=`expr $ac_mid + 1`
10359 if test $ac_lo -le $ac_mid; then
10363 ac_mid
=`expr 2 '*' $ac_mid + 1`
10365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.
$ac_ext >&5
10371 cat >conftest.
$ac_ext <<_ACEOF
10374 cat confdefs.h
>>conftest.
$ac_ext
10375 cat >>conftest.
$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10381 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) < 0)];
10388 rm -f conftest.
$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>conftest.er1
10392 grep -v '^ *+' conftest.er1
>conftest.err
10394 cat conftest.err
>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try
='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try
='test -s conftest.$ac_objext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10412 cat >conftest.
$ac_ext <<_ACEOF
10415 cat confdefs.h
>>conftest.
$ac_ext
10416 cat >>conftest.
$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10422 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= $ac_mid)];
10429 rm -f conftest.
$ac_objext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>conftest.er1
10433 grep -v '^ *+' conftest.er1
>conftest.err
10435 cat conftest.err
>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try
='test -z "$ac_c_werror_flag"
10439 || test ! -s conftest.err'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; } &&
10445 { ac_try
='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_lo
=$ac_mid; break
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.
$ac_ext >&5
10456 ac_hi
=`expr '(' $ac_mid ')' - 1`
10457 if test $ac_mid -le $ac_hi; then
10461 ac_mid
=`expr 2 '*' $ac_mid`
10463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.
$ac_ext >&5
10471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 # Binary search between lo and hi bounds.
10475 while test "x$ac_lo" != "x$ac_hi"; do
10476 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10477 cat >conftest.
$ac_ext <<_ACEOF
10480 cat confdefs.h
>>conftest.
$ac_ext
10481 cat >>conftest.
$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 $ac_includes_default
10487 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10494 rm -f conftest.
$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10498 grep -v '^ *+' conftest.er1
>conftest.err
10500 cat conftest.err
>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try
='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try
='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.
$ac_ext >&5
10521 ac_lo
=`expr '(' $ac_mid ')' + 1`
10523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10526 ?
*) ac_cv_sizeof__Bool
=$ac_lo;;
10527 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10528 See \`config.log' for more details." >&5
10529 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10530 See \`config.log' for more details." >&2;}
10531 { (exit 1); exit 1; }; } ;;
10534 if test "$cross_compiling" = yes; then
10535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10536 See \`config.log' for more details." >&5
10537 echo "$as_me: error: cannot run test program while cross compiling
10538 See \`config.log' for more details." >&2;}
10539 { (exit 1); exit 1; }; }
10541 cat >conftest.
$ac_ext <<_ACEOF
10544 cat confdefs.h
>>conftest.
$ac_ext
10545 cat >>conftest.
$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 $ac_includes_default
10548 long longval () { return (long) (sizeof (_Bool)); }
10549 unsigned long ulongval () { return (long) (sizeof (_Bool)); }
10551 #include <stdlib.h>
10556 FILE *f = fopen ("conftest.val", "w");
10559 if (((long) (sizeof (_Bool))) < 0)
10561 long i = longval ();
10562 if (i != ((long) (sizeof (_Bool))))
10564 fprintf (f, "%ld\n", i);
10568 unsigned long i = ulongval ();
10569 if (i != ((long) (sizeof (_Bool))))
10571 fprintf (f, "%lu\n", i);
10573 exit (ferror (f) || fclose (f) != 0);
10579 rm -f conftest
$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_sizeof__Bool
=`cat conftest.val`
10592 echo "$as_me: program exited with status $ac_status" >&5
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.
$ac_ext >&5
10596 ( exit $ac_status )
10597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10598 See \`config.log' for more details." >&5
10599 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10600 See \`config.log' for more details." >&2;}
10601 { (exit 1); exit 1; }; }
10603 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10608 ac_cv_sizeof__Bool
=0
10611 echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
10612 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6
10613 cat >>confdefs.h
<<_ACEOF
10614 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
10620 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10621 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10622 if test "${ac_cv_type_uintptr_t+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 cat >conftest.
$ac_ext <<_ACEOF
10628 cat confdefs.h
>>conftest.
$ac_ext
10629 cat >>conftest.
$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #ifdef HAVE_STDINT_H
10632 #include <stdint.h>
10638 if ((uintptr_t *) 0)
10640 if (sizeof (uintptr_t))
10646 rm -f conftest.
$ac_objext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648 (eval $ac_compile) 2>conftest.er1
10650 grep -v '^ *+' conftest.er1
>conftest.err
10652 cat conftest.err
>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try
='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try
='test -s conftest.$ac_objext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_type_uintptr_t
=yes
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.
$ac_ext >&5
10673 ac_cv_type_uintptr_t
=no
10675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10678 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10679 if test $ac_cv_type_uintptr_t = yes; then
10681 cat >>confdefs.h
<<_ACEOF
10682 #define HAVE_UINTPTR_T 1
10685 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10686 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10687 if test "${ac_cv_type_uintptr_t+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 cat >conftest.
$ac_ext <<_ACEOF
10693 cat confdefs.h
>>conftest.
$ac_ext
10694 cat >>conftest.
$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 $ac_includes_default
10700 if ((uintptr_t *) 0)
10702 if (sizeof (uintptr_t))
10708 rm -f conftest.
$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10712 grep -v '^ *+' conftest.er1
>conftest.err
10714 cat conftest.err
>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try
='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try
='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 ac_cv_type_uintptr_t
=yes
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.
$ac_ext >&5
10735 ac_cv_type_uintptr_t
=no
10737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10739 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10740 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10742 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10743 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10744 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 if test "$ac_cv_type_uintptr_t" = yes; then
10748 # The cast to unsigned long works around a bug in the HP C Compiler
10749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10751 # This bug is HP SR number 8606223364.
10752 if test "$cross_compiling" = yes; then
10753 # Depending upon the size, compute the lo and hi bounds.
10754 cat >conftest.
$ac_ext <<_ACEOF
10757 cat confdefs.h
>>conftest.
$ac_ext
10758 cat >>conftest.
$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 $ac_includes_default
10764 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10771 rm -f conftest.
$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10775 grep -v '^ *+' conftest.er1
>conftest.err
10777 cat conftest.err
>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try
='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try
='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10795 cat >conftest.
$ac_ext <<_ACEOF
10798 cat confdefs.h
>>conftest.
$ac_ext
10799 cat >>conftest.
$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 $ac_includes_default
10805 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10812 rm -f conftest.
$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>conftest.er1
10816 grep -v '^ *+' conftest.er1
>conftest.err
10818 cat conftest.err
>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try
='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try
='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_hi
=$ac_mid; break
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.
$ac_ext >&5
10839 ac_lo
=`expr $ac_mid + 1`
10840 if test $ac_lo -le $ac_mid; then
10844 ac_mid
=`expr 2 '*' $ac_mid + 1`
10846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.
$ac_ext >&5
10852 cat >conftest.
$ac_ext <<_ACEOF
10855 cat confdefs.h
>>conftest.
$ac_ext
10856 cat >>conftest.
$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 $ac_includes_default
10862 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10869 rm -f conftest.
$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10873 grep -v '^ *+' conftest.er1
>conftest.err
10875 cat conftest.err
>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try
='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try
='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10893 cat >conftest.
$ac_ext <<_ACEOF
10896 cat confdefs.h
>>conftest.
$ac_ext
10897 cat >>conftest.
$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 $ac_includes_default
10903 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10910 rm -f conftest.
$ac_objext
10911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10912 (eval $ac_compile) 2>conftest.er1
10914 grep -v '^ *+' conftest.er1
>conftest.err
10916 cat conftest.err
>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try
='test -z "$ac_c_werror_flag"
10920 || test ! -s conftest.err'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; } &&
10926 { ac_try
='test -s conftest.$ac_objext'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 ac_lo
=$ac_mid; break
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.
$ac_ext >&5
10937 ac_hi
=`expr '(' $ac_mid ')' - 1`
10938 if test $ac_mid -le $ac_hi; then
10942 ac_mid
=`expr 2 '*' $ac_mid`
10944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.
$ac_ext >&5
10952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10955 # Binary search between lo and hi bounds.
10956 while test "x$ac_lo" != "x$ac_hi"; do
10957 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10958 cat >conftest.
$ac_ext <<_ACEOF
10961 cat confdefs.h
>>conftest.
$ac_ext
10962 cat >>conftest.
$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10968 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10975 rm -f conftest.
$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>conftest.er1
10979 grep -v '^ *+' conftest.er1
>conftest.err
10981 cat conftest.err
>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try
='test -z "$ac_c_werror_flag"
10985 || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try
='test -s conftest.$ac_objext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.
$ac_ext >&5
11002 ac_lo
=`expr '(' $ac_mid ')' + 1`
11004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11007 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
11008 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11009 See \`config.log' for more details." >&5
11010 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11011 See \`config.log' for more details." >&2;}
11012 { (exit 1); exit 1; }; } ;;
11015 if test "$cross_compiling" = yes; then
11016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11017 See \`config.log' for more details." >&5
11018 echo "$as_me: error: cannot run test program while cross compiling
11019 See \`config.log' for more details." >&2;}
11020 { (exit 1); exit 1; }; }
11022 cat >conftest.
$ac_ext <<_ACEOF
11025 cat confdefs.h
>>conftest.
$ac_ext
11026 cat >>conftest.
$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 $ac_includes_default
11029 long longval () { return (long) (sizeof (uintptr_t)); }
11030 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
11032 #include <stdlib.h>
11037 FILE *f = fopen ("conftest.val", "w");
11040 if (((long) (sizeof (uintptr_t))) < 0)
11042 long i = longval ();
11043 if (i != ((long) (sizeof (uintptr_t))))
11045 fprintf (f, "%ld\n", i);
11049 unsigned long i = ulongval ();
11050 if (i != ((long) (sizeof (uintptr_t))))
11052 fprintf (f, "%lu\n", i);
11054 exit (ferror (f) || fclose (f) != 0);
11060 rm -f conftest
$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
11073 echo "$as_me: program exited with status $ac_status" >&5
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.
$ac_ext >&5
11077 ( exit $ac_status )
11078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11079 See \`config.log' for more details." >&5
11080 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11081 See \`config.log' for more details." >&2;}
11082 { (exit 1); exit 1; }; }
11084 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11089 ac_cv_sizeof_uintptr_t
=0
11092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11093 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
11094 cat >>confdefs.h
<<_ACEOF
11095 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11103 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11104 echo "$as_me:$LINENO: checking size of off_t" >&5
11105 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11106 if test "${ac_cv_sizeof_off_t+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 if test "$cross_compiling" = yes; then
11110 ac_cv_sizeof_off_t
=4
11112 cat >conftest.
$ac_ext <<_ACEOF
11115 cat confdefs.h
>>conftest.
$ac_ext
11116 cat >>conftest.
$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11119 #include <sys/types.h>
11122 FILE *f=fopen("conftestval", "w");
11124 fprintf(f, "%d\n", sizeof(off_t));
11128 rm -f conftest
$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_sizeof_off_t
=`cat conftestval`
11141 echo "$as_me: program exited with status $ac_status" >&5
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.
$ac_ext >&5
11145 ( exit $ac_status )
11146 ac_cv_sizeof_off_t
=0
11148 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11154 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11156 cat >>confdefs.h
<<_ACEOF
11157 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11161 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11162 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
11163 if test "$have_long_long" = yes -a \
11164 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11165 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11167 cat >>confdefs.h
<<\_ACEOF
11168 #define HAVE_LARGEFILE_SUPPORT 1
11171 echo "$as_me:$LINENO: result: yes" >&5
11172 echo "${ECHO_T}yes" >&6
11174 echo "$as_me:$LINENO: result: no" >&5
11175 echo "${ECHO_T}no" >&6
11178 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11179 echo "$as_me:$LINENO: checking size of time_t" >&5
11180 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
11181 if test "${ac_cv_sizeof_time_t+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 if test "$cross_compiling" = yes; then
11185 ac_cv_sizeof_time_t
=4
11187 cat >conftest.
$ac_ext <<_ACEOF
11190 cat confdefs.h
>>conftest.
$ac_ext
11191 cat >>conftest.
$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11197 FILE *f=fopen("conftestval", "w");
11199 fprintf(f, "%d\n", sizeof(time_t));
11203 rm -f conftest
$ac_exeext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205 (eval $ac_link) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_sizeof_time_t
=`cat conftestval`
11216 echo "$as_me: program exited with status $ac_status" >&5
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.
$ac_ext >&5
11220 ( exit $ac_status )
11221 ac_cv_sizeof_time_t
=0
11223 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11228 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11229 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
11231 cat >>confdefs.h
<<_ACEOF
11232 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11237 # if have pthread_t then define SIZEOF_PTHREAD_T
11239 if test "$ac_cv_kpthread" = "yes"
11240 then CC
="$CC -Kpthread"
11241 elif test "$ac_cv_kthread" = "yes"
11242 then CC
="$CC -Kthread"
11243 elif test "$ac_cv_pthread" = "yes"
11244 then CC
="$CC -pthread"
11246 echo "$as_me:$LINENO: checking for pthread_t" >&5
11247 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
11249 cat >conftest.
$ac_ext <<_ACEOF
11252 cat confdefs.h
>>conftest.
$ac_ext
11253 cat >>conftest.
$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <pthread.h>
11259 pthread_t x; x = *(pthread_t*)0;
11264 rm -f conftest.
$ac_objext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>conftest.er1
11268 grep -v '^ *+' conftest.er1
>conftest.err
11270 cat conftest.err
>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try
='test -z "$ac_c_werror_flag"
11274 || test ! -s conftest.err'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try
='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.
$ac_ext >&5
11292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11293 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11294 echo "${ECHO_T}$have_pthread_t" >&6
11295 if test "$have_pthread_t" = yes ; then
11296 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11297 echo "$as_me:$LINENO: checking size of pthread_t" >&5
11298 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
11299 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 if test "$cross_compiling" = yes; then
11303 ac_cv_sizeof_pthread_t
=4
11305 cat >conftest.
$ac_ext <<_ACEOF
11308 cat confdefs.h
>>conftest.
$ac_ext
11309 cat >>conftest.
$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11312 #include <pthread.h>
11315 FILE *f=fopen("conftestval", "w");
11317 fprintf(f, "%d\n", sizeof(pthread_t));
11321 rm -f conftest
$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_sizeof_pthread_t
=`cat conftestval`
11334 echo "$as_me: program exited with status $ac_status" >&5
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.
$ac_ext >&5
11338 ( exit $ac_status )
11339 ac_cv_sizeof_pthread_t
=0
11341 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11347 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
11349 cat >>confdefs.h
<<_ACEOF
11350 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11356 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11357 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
11358 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
11359 if test "${enable_toolbox_glue+set}" = set; then
11360 enableval
="$enable_toolbox_glue"
11364 if test -z "$enable_toolbox_glue"
11366 case $ac_sys_system/$ac_sys_release in
11368 enable_toolbox_glue
="yes";;
11370 enable_toolbox_glue
="no";;
11373 case "$enable_toolbox_glue" in
11375 extra_machdep_objs
="Python/mactoolboxglue.o"
11376 extra_undefs
="-u _PyMac_Error"
11378 cat >>confdefs.h
<<\_ACEOF
11379 #define USE_TOOLBOX_OBJECT_GLUE 1
11384 extra_machdep_objs
=""
11388 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11389 echo "${ECHO_T}$enable_toolbox_glue" >&6
11392 case $ac_sys_system/$ac_sys_release in
11393 Darwin
/[01567]\..
*)
11394 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
11397 OTHER_LIBTOOL_OPT
=""
11402 case $ac_sys_system/$ac_sys_release in
11403 Darwin
/[01567]\..
*)
11404 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
11405 if test "${enable_universalsdk}"; then
11408 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
11410 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11411 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11413 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11414 if test ${gcc_version} '<' 4.0
11416 LIBTOOL_CRUFT
="-lcc_dynamic"
11420 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11421 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11422 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11425 echo "$as_me:$LINENO: checking for --enable-framework" >&5
11426 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
11427 if test "$enable_framework"
11429 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
11430 # -F. is needed to allow linking to the framework while
11431 # in the build location.
11433 cat >>confdefs.h
<<\_ACEOF
11434 #define WITH_NEXT_FRAMEWORK 1
11437 echo "$as_me:$LINENO: result: yes" >&5
11438 echo "${ECHO_T}yes" >&6
11440 echo "$as_me:$LINENO: result: no" >&5
11441 echo "${ECHO_T}no" >&6
11444 echo "$as_me:$LINENO: checking for dyld" >&5
11445 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
11446 case $ac_sys_system/$ac_sys_release in
11449 cat >>confdefs.h
<<\_ACEOF
11450 #define WITH_DYLD 1
11453 echo "$as_me:$LINENO: result: always on for Darwin" >&5
11454 echo "${ECHO_T}always on for Darwin" >&6
11457 echo "$as_me:$LINENO: result: no" >&5
11458 echo "${ECHO_T}no" >&6
11462 # Set info about shared libraries.
11468 # SO is the extension of shared libraries `(including the dot!)
11469 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11470 echo "$as_me:$LINENO: checking SO" >&5
11471 echo $ECHO_N "checking SO... $ECHO_C" >&6
11474 case $ac_sys_system in
11485 # this might also be a termcap variable, see #610332
11487 echo '====================================================================='
11489 echo '+ WARNING: You have set SO in your environment. +'
11490 echo '+ Do you really mean to change the extension for shared libraries? +'
11491 echo '+ Continuing in 10 seconds to let you to ponder. +'
11493 echo '====================================================================='
11496 echo "$as_me:$LINENO: result: $SO" >&5
11497 echo "${ECHO_T}$SO" >&6
11499 cat >>confdefs.h
<<_ACEOF
11500 #define SHLIB_EXT "$SO"
11503 # LDSHARED is the ld *command* used to create shared library
11504 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11505 # (Shared libraries in this instance are shared modules to be loaded into
11506 # Python, as opposed to building Python itself as a shared library.)
11507 echo "$as_me:$LINENO: checking LDSHARED" >&5
11508 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
11509 if test -z "$LDSHARED"
11511 case $ac_sys_system/$ac_sys_release in
11513 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11514 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11517 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11518 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11520 IRIX
/5*) LDSHARED
="ld -shared";;
11521 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
11523 if test "$GCC" = "yes"
11524 then LDSHARED
='$(CC) -shared'
11525 else LDSHARED
='$(CC) -G';
11527 hp
*|HP
*) LDSHARED
="ld -b";;
11528 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
11530 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11531 if test "$enable_framework" ; then
11532 # Link against the framework. All externals should be defined.
11533 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11534 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11536 # No framework. Ignore undefined symbols, assuming they come from Python
11537 LDSHARED
="$LDSHARED -undefined suppress"
11539 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
11540 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11541 if test "$enable_framework" ; then
11542 # Link against the framework. All externals should be defined.
11543 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11544 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11546 # No framework, use the Python app as bundle-loader
11547 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11548 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11551 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11552 # This allows an extension to be used in any Python
11553 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11554 if test ${cur_target} '>' 10.2; then
11557 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11558 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
11559 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11561 if test "${enable_universalsdk}"; then
11562 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11564 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11565 BLDSHARED
="$LDSHARED"
11567 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11568 if test "$enable_framework" ; then
11569 # Link against the framework. All externals should be defined.
11570 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11571 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11573 # No framework, use the Python app as bundle-loader
11574 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11575 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11579 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11580 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11582 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11584 LDSHARED
="$CC -shared ${LDFLAGS}"
11586 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11589 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11591 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11594 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11595 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11598 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11602 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11603 OpenUNIX
*|UnixWare
*)
11604 if test "$GCC" = "yes"
11605 then LDSHARED
='$(CC) -shared'
11606 else LDSHARED
='$(CC) -G'
11608 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11609 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11610 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11611 atheos
*) LDSHARED
="gcc -shared";;
11615 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11616 echo "${ECHO_T}$LDSHARED" >&6
11617 BLDSHARED
=${BLDSHARED-$LDSHARED}
11618 # CCSHARED are the C *flags* used to create objects to go into a shared
11619 # library (module) -- this is only needed for a few systems
11620 echo "$as_me:$LINENO: checking CCSHARED" >&5
11621 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11622 if test -z "$CCSHARED"
11624 case $ac_sys_system/$ac_sys_release in
11625 SunOS
*) if test "$GCC" = yes;
11626 then CCSHARED
="-fPIC";
11627 elif test `uname -p` = sparc
;
11628 then CCSHARED
="-xcode=pic32";
11629 else CCSHARED
="-Kpic";
11631 hp
*|HP
*) if test "$GCC" = yes;
11632 then CCSHARED
="-fPIC";
11633 else CCSHARED
="+z";
11635 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11636 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11637 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11638 OpenUNIX
*|UnixWare
*)
11639 if test "$GCC" = "yes"
11640 then CCSHARED
="-fPIC"
11641 else CCSHARED
="-KPIC"
11644 if test "$GCC" = "yes"
11645 then CCSHARED
="-fPIC"
11646 else CCSHARED
="-Kpic -belf"
11648 Monterey
*) CCSHARED
="-G";;
11649 IRIX
*/6*) case $CC in
11650 *gcc
*) CCSHARED
="-shared";;
11653 atheos
*) CCSHARED
="-fPIC";;
11656 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11657 echo "${ECHO_T}$CCSHARED" >&6
11658 # LINKFORSHARED are the flags passed to the $(CC) command that links
11659 # the python executable -- this is only needed for a few systems
11660 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11661 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11662 if test -z "$LINKFORSHARED"
11664 case $ac_sys_system/$ac_sys_release in
11665 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11667 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11668 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11669 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11670 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11671 # -u libsys_s pulls in all symbols in libsys
11673 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11675 # not used by the core itself but which needs to be in the core so
11676 # that dynamically loaded extension modules have access to it.
11677 # -prebind is no longer used, because it actually seems to give a
11678 # slowdown in stead of a speedup, maybe due to the large number of
11679 # dynamic loads Python does.
11681 LINKFORSHARED
="$extra_undefs"
11682 if test "$enable_framework"
11684 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11686 LINKFORSHARED
="$LINKFORSHARED";;
11687 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11688 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11689 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11690 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11691 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11693 LINKFORSHARED
="-Wl,--export-dynamic"
11695 SunOS
/5*) case $CC in
11697 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11699 LINKFORSHARED
="-Xlinker --export-dynamic"
11703 if test $enable_shared = "no"
11705 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11709 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11710 echo "${ECHO_T}$LINKFORSHARED" >&6
11713 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11714 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11715 if test ! "$LIBRARY" = "$LDLIBRARY"
11717 case $ac_sys_system in
11719 # Cygwin needs CCSHARED when building extension DLLs
11720 # but not when building the interpreter DLL.
11721 CFLAGSFORSHARED
='';;
11723 CFLAGSFORSHARED
='$(CCSHARED)'
11726 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11727 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11729 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11730 # library (with --enable-shared).
11731 # For platforms on which shared libraries are not allowed to have unresolved
11732 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11733 # if it is not required, since it creates a dependency of the shared library
11734 # to LIBS. This, in turn, means that applications linking the shared libpython
11735 # don't need to link LIBS explicitly. The default should be only changed
11736 # on systems where this approach causes problems.
11738 echo "$as_me:$LINENO: checking SHLIBS" >&5
11739 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11740 case "$ac_sys_system" in
11744 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11745 echo "${ECHO_T}$SHLIBS" >&6
11748 # checks for libraries
11750 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11751 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 ac_check_lib_save_LIBS
=$LIBS
11757 cat >conftest.
$ac_ext <<_ACEOF
11760 cat confdefs.h
>>conftest.
$ac_ext
11761 cat >>conftest.
$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11764 /* Override any gcc2 internal prototype to avoid an error. */
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11779 rm -f conftest.
$ac_objext conftest
$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11783 grep -v '^ *+' conftest.er1
>conftest.err
11785 cat conftest.err
>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try
='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try
='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_lib_dl_dlopen
=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.
$ac_ext >&5
11806 ac_cv_lib_dl_dlopen
=no
11808 rm -f conftest.err conftest.
$ac_objext \
11809 conftest
$ac_exeext conftest.
$ac_ext
11810 LIBS
=$ac_check_lib_save_LIBS
11812 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11813 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11814 if test $ac_cv_lib_dl_dlopen = yes; then
11815 cat >>confdefs.h
<<_ACEOF
11816 #define HAVE_LIBDL 1
11822 # Dynamic linking for SunOS/Solaris and SYSV
11824 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11825 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11826 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 ac_check_lib_save_LIBS
=$LIBS
11831 cat >conftest.
$ac_ext <<_ACEOF
11834 cat confdefs.h
>>conftest.
$ac_ext
11835 cat >>conftest.
$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11838 /* Override any gcc2 internal prototype to avoid an error. */
11842 /* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11853 rm -f conftest.
$ac_objext conftest
$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11857 grep -v '^ *+' conftest.er1
>conftest.err
11859 cat conftest.err
>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try
='test -z "$ac_c_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try
='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_lib_dld_shl_load
=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.
$ac_ext >&5
11880 ac_cv_lib_dld_shl_load
=no
11882 rm -f conftest.err conftest.
$ac_objext \
11883 conftest
$ac_exeext conftest.
$ac_ext
11884 LIBS
=$ac_check_lib_save_LIBS
11886 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11887 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11888 if test $ac_cv_lib_dld_shl_load = yes; then
11889 cat >>confdefs.h
<<_ACEOF
11890 #define HAVE_LIBDLD 1
11896 # Dynamic linking for HP-UX
11898 # only check for sem_ini if thread support is requested
11899 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11900 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11901 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11902 if test "${ac_cv_search_sem_init+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 ac_func_search_save_LIBS
=$LIBS
11906 ac_cv_search_sem_init
=no
11907 cat >conftest.
$ac_ext <<_ACEOF
11910 cat confdefs.h
>>conftest.
$ac_ext
11911 cat >>conftest.
$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11914 /* Override any gcc2 internal prototype to avoid an error. */
11918 /* We use char because int might match the return type of a gcc2
11919 builtin and then its argument prototype would still apply. */
11929 rm -f conftest.
$ac_objext conftest
$ac_exeext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931 (eval $ac_link) 2>conftest.er1
11933 grep -v '^ *+' conftest.er1
>conftest.err
11935 cat conftest.err
>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try
='test -z "$ac_c_werror_flag"
11939 || test ! -s conftest.err'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try
='test -s conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_search_sem_init
="none required"
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.
$ac_ext >&5
11957 rm -f conftest.err conftest.
$ac_objext \
11958 conftest
$ac_exeext conftest.
$ac_ext
11959 if test "$ac_cv_search_sem_init" = no
; then
11960 for ac_lib
in pthread rt posix4
; do
11961 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11962 cat >conftest.
$ac_ext <<_ACEOF
11965 cat confdefs.h
>>conftest.
$ac_ext
11966 cat >>conftest.
$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11969 /* Override any gcc2 internal prototype to avoid an error. */
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11984 rm -f conftest.
$ac_objext conftest
$ac_exeext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986 (eval $ac_link) 2>conftest.er1
11988 grep -v '^ *+' conftest.er1
>conftest.err
11990 cat conftest.err
>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try
='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try
='test -s conftest$ac_exeext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 ac_cv_search_sem_init
="-l$ac_lib"
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.
$ac_ext >&5
12013 rm -f conftest.err conftest.
$ac_objext \
12014 conftest
$ac_exeext conftest.
$ac_ext
12017 LIBS
=$ac_func_search_save_LIBS
12019 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12020 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
12021 if test "$ac_cv_search_sem_init" != no
; then
12022 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
12025 # 'Real Time' functions on Solaris
12026 # posix4 on Solaris 2.6
12027 # pthread (first!) on Linux
12030 # check if we need libintl for locale functions
12031 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12032 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
12033 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 ac_check_lib_save_LIBS
=$LIBS
12037 LIBS
="-lintl $LIBS"
12038 cat >conftest.
$ac_ext <<_ACEOF
12041 cat confdefs.h
>>conftest.
$ac_ext
12042 cat >>conftest.
$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12045 /* Override any gcc2 internal prototype to avoid an error. */
12049 /* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12051 char textdomain ();
12060 rm -f conftest.
$ac_objext conftest
$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>conftest.er1
12064 grep -v '^ *+' conftest.er1
>conftest.err
12066 cat conftest.err
>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try
='test -z "$ac_c_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try
='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_lib_intl_textdomain
=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.
$ac_ext >&5
12087 ac_cv_lib_intl_textdomain
=no
12089 rm -f conftest.err conftest.
$ac_objext \
12090 conftest
$ac_exeext conftest.
$ac_ext
12091 LIBS
=$ac_check_lib_save_LIBS
12093 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12094 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
12095 if test $ac_cv_lib_intl_textdomain = yes; then
12097 cat >>confdefs.h
<<\_ACEOF
12098 #define WITH_LIBINTL 1
12104 # checks for system dependent C++ extensions support
12105 case "$ac_sys_system" in
12106 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12107 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
12108 cat >conftest.
$ac_ext <<_ACEOF
12111 cat confdefs.h
>>conftest.
$ac_ext
12112 cat >>conftest.
$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include "/usr/lpp/xlC/include/load.h"
12118 loadAndInit("", 0, "")
12123 rm -f conftest.
$ac_objext conftest
$ac_exeext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12125 (eval $ac_link) 2>conftest.er1
12127 grep -v '^ *+' conftest.er1
>conftest.err
12129 cat conftest.err
>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try
='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try
='test -s conftest$ac_exeext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12146 cat >>confdefs.h
<<\_ACEOF
12147 #define AIX_GENUINE_CPLUSPLUS 1
12150 echo "$as_me:$LINENO: result: yes" >&5
12151 echo "${ECHO_T}yes" >&6
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.
$ac_ext >&5
12156 echo "$as_me:$LINENO: result: no" >&5
12157 echo "${ECHO_T}no" >&6
12159 rm -f conftest.err conftest.
$ac_objext \
12160 conftest
$ac_exeext conftest.
$ac_ext;;
12164 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12165 # BeOS' sockets are stashed in libnet.
12166 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12167 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
12168 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 ac_check_lib_save_LIBS
=$LIBS
12173 cat >conftest.
$ac_ext <<_ACEOF
12176 cat confdefs.h
>>conftest.
$ac_ext
12177 cat >>conftest.
$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 /* Override any gcc2 internal prototype to avoid an error. */
12184 /* We use char because int might match the return type of a gcc2
12185 builtin and then its argument prototype would still apply. */
12195 rm -f conftest.
$ac_objext conftest
$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197 (eval $ac_link) 2>conftest.er1
12199 grep -v '^ *+' conftest.er1
>conftest.err
12201 cat conftest.err
>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try
='test -z "$ac_c_werror_flag"
12205 || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try
='test -s conftest$ac_exeext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_cv_lib_nsl_t_open
=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.
$ac_ext >&5
12222 ac_cv_lib_nsl_t_open
=no
12224 rm -f conftest.err conftest.
$ac_objext \
12225 conftest
$ac_exeext conftest.
$ac_ext
12226 LIBS
=$ac_check_lib_save_LIBS
12228 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12229 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
12230 if test $ac_cv_lib_nsl_t_open = yes; then
12234 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12235 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12236 if test "${ac_cv_lib_socket_socket+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 ac_check_lib_save_LIBS
=$LIBS
12240 LIBS
="-lsocket $LIBS $LIBS"
12241 cat >conftest.
$ac_ext <<_ACEOF
12244 cat confdefs.h
>>conftest.
$ac_ext
12245 cat >>conftest.
$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12248 /* Override any gcc2 internal prototype to avoid an error. */
12252 /* We use char because int might match the return type of a gcc2
12253 builtin and then its argument prototype would still apply. */
12263 rm -f conftest.
$ac_objext conftest
$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>conftest.er1
12267 grep -v '^ *+' conftest.er1
>conftest.err
12269 cat conftest.err
>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try
='test -z "$ac_c_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try
='test -s conftest$ac_exeext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_lib_socket_socket
=yes
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.
$ac_ext >&5
12290 ac_cv_lib_socket_socket
=no
12292 rm -f conftest.err conftest.
$ac_objext \
12293 conftest
$ac_exeext conftest.
$ac_ext
12294 LIBS
=$ac_check_lib_save_LIBS
12296 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12297 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12298 if test $ac_cv_lib_socket_socket = yes; then
12299 LIBS
="-lsocket $LIBS"
12303 case "$ac_sys_system" in
12305 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12306 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
12307 if test "${ac_cv_lib_net_socket+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 ac_check_lib_save_LIBS
=$LIBS
12311 LIBS
="-lnet $LIBS $LIBS"
12312 cat >conftest.
$ac_ext <<_ACEOF
12315 cat confdefs.h
>>conftest.
$ac_ext
12316 cat >>conftest.
$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 /* Override any gcc2 internal prototype to avoid an error. */
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12334 rm -f conftest.
$ac_objext conftest
$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>conftest.er1
12338 grep -v '^ *+' conftest.er1
>conftest.err
12340 cat conftest.err
>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try
='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
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); }; } &&
12350 { ac_try
='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_lib_net_socket
=yes
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.
$ac_ext >&5
12361 ac_cv_lib_net_socket
=no
12363 rm -f conftest.err conftest.
$ac_objext \
12364 conftest
$ac_exeext conftest.
$ac_ext
12365 LIBS
=$ac_check_lib_save_LIBS
12367 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12368 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
12369 if test $ac_cv_lib_net_socket = yes; then
12376 echo "$as_me:$LINENO: checking for --with-libs" >&5
12377 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
12379 # Check whether --with-libs or --without-libs was given.
12380 if test "${with_libs+set}" = set; then
12381 withval
="$with_libs"
12383 echo "$as_me:$LINENO: result: $withval" >&5
12384 echo "${ECHO_T}$withval" >&6
12385 LIBS
="$withval $LIBS"
12388 echo "$as_me:$LINENO: result: no" >&5
12389 echo "${ECHO_T}no" >&6
12392 # Check for use of the system libffi library
12393 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12394 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
12396 # Check whether --with-system_ffi or --without-system_ffi was given.
12397 if test "${with_system_ffi+set}" = set; then
12398 withval
="$with_system_ffi"
12402 if test -z "$with_system_ffi"
12403 then with_system_ffi
="no"
12405 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12406 echo "${ECHO_T}$with_system_ffi" >&6
12408 # Determine if signalmodule should be used.
12411 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12412 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
12414 # Check whether --with-signal-module or --without-signal-module was given.
12415 if test "${with_signal_module+set}" = set; then
12416 withval
="$with_signal_module"
12420 if test -z "$with_signal_module"
12421 then with_signal_module
="yes"
12423 echo "$as_me:$LINENO: result: $with_signal_module" >&5
12424 echo "${ECHO_T}$with_signal_module" >&6
12426 if test "${with_signal_module}" = "yes"; then
12427 USE_SIGNAL_MODULE
=""
12430 USE_SIGNAL_MODULE
="#"
12431 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
12434 # This is used to generate Setup.config
12436 USE_THREAD_MODULE
=""
12438 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12439 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
12442 # Check whether --with-dec-threads or --without-dec-threads was given.
12443 if test "${with_dec_threads+set}" = set; then
12444 withval
="$with_dec_threads"
12446 echo "$as_me:$LINENO: result: $withval" >&5
12447 echo "${ECHO_T}$withval" >&6
12449 if test "${with_thread+set}" != set; then
12450 with_thread
="$withval";
12453 echo "$as_me:$LINENO: result: no" >&5
12454 echo "${ECHO_T}no" >&6
12457 # Templates for things AC_DEFINEd more than once.
12458 # For a single AC_DEFINE, no template is needed.
12466 echo "$as_me:$LINENO: checking for --with-threads" >&5
12467 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
12469 # Check whether --with-threads or --without-threads was given.
12470 if test "${with_threads+set}" = set; then
12471 withval
="$with_threads"
12475 # --with-thread is deprecated, but check for it anyway
12477 # Check whether --with-thread or --without-thread was given.
12478 if test "${with_thread+set}" = set; then
12479 withval
="$with_thread"
12480 with_threads
=$with_thread
12483 if test -z "$with_threads"
12484 then with_threads
="yes"
12486 echo "$as_me:$LINENO: result: $with_threads" >&5
12487 echo "${ECHO_T}$with_threads" >&6
12490 if test "$with_threads" = "no"
12492 USE_THREAD_MODULE
="#"
12493 elif test "$ac_cv_pthread_is_default" = yes
12495 cat >>confdefs.h
<<\_ACEOF
12496 #define WITH_THREAD 1
12499 # Defining _REENTRANT on system with POSIX threads should not hurt.
12500 cat >>confdefs.h
<<\_ACEOF
12501 #define _REENTRANT 1
12505 THREADOBJ
="Python/thread.o"
12506 elif test "$ac_cv_kpthread" = "yes"
12509 if test "$ac_cv_cxx_thread" = "yes"; then
12510 CXX
="$CXX -Kpthread"
12512 cat >>confdefs.h
<<\_ACEOF
12513 #define WITH_THREAD 1
12517 THREADOBJ
="Python/thread.o"
12518 elif test "$ac_cv_kthread" = "yes"
12521 if test "$ac_cv_cxx_thread" = "yes"; then
12522 CXX
="$CXX -Kthread"
12524 cat >>confdefs.h
<<\_ACEOF
12525 #define WITH_THREAD 1
12529 THREADOBJ
="Python/thread.o"
12530 elif test "$ac_cv_pthread" = "yes"
12533 if test "$ac_cv_cxx_thread" = "yes"; then
12534 CXX
="$CXX -pthread"
12536 cat >>confdefs.h
<<\_ACEOF
12537 #define WITH_THREAD 1
12541 THREADOBJ
="Python/thread.o"
12543 if test ! -z "$with_threads" -a -d "$with_threads"
12544 then LDFLAGS
="$LDFLAGS -L$with_threads"
12546 if test ! -z "$withval" -a -d "$withval"
12547 then LDFLAGS
="$LDFLAGS -L$withval"
12550 # According to the POSIX spec, a pthreads implementation must
12551 # define _POSIX_THREADS in unistd.h. Some apparently don't
12552 # (e.g. gnu pth with pthread emulation)
12553 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12554 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12555 cat >conftest.
$ac_ext <<_ACEOF
12558 cat confdefs.h
>>conftest.
$ac_ext
12559 cat >>conftest.
$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12562 #include <unistd.h>
12563 #ifdef _POSIX_THREADS
12568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12569 $EGREP "yes" >/dev
/null
2>&1; then
12570 unistd_defines_pthreads
=yes
12572 unistd_defines_pthreads
=no
12576 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12577 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12579 cat >>confdefs.h
<<\_ACEOF
12580 #define _REENTRANT 1
12583 if test "${ac_cv_header_cthreads_h+set}" = set; then
12584 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12585 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12586 if test "${ac_cv_header_cthreads_h+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12590 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12592 # Is the header compilable?
12593 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12594 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12595 cat >conftest.
$ac_ext <<_ACEOF
12598 cat confdefs.h
>>conftest.
$ac_ext
12599 cat >>conftest.
$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 $ac_includes_default
12602 #include <cthreads.h>
12604 rm -f conftest.
$ac_objext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>conftest.er1
12608 grep -v '^ *+' conftest.er1
>conftest.err
12610 cat conftest.err
>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try
='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try
='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_header_compiler
=yes
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.
$ac_ext >&5
12631 ac_header_compiler
=no
12633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12635 echo "${ECHO_T}$ac_header_compiler" >&6
12637 # Is the header present?
12638 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12639 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12640 cat >conftest.
$ac_ext <<_ACEOF
12643 cat confdefs.h
>>conftest.
$ac_ext
12644 cat >>conftest.
$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12646 #include <cthreads.h>
12648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12649 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1
>conftest.err
12653 cat conftest.err
>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } >/dev
/null
; then
12656 if test -s conftest.err
; then
12657 ac_cpp_err
=$ac_c_preproc_warn_flag
12658 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12665 if test -z "$ac_cpp_err"; then
12666 ac_header_preproc
=yes
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.
$ac_ext >&5
12671 ac_header_preproc
=no
12673 rm -f conftest.err conftest.
$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675 echo "${ECHO_T}$ac_header_preproc" >&6
12677 # So? What about this header?
12678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12680 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12681 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12683 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12684 ac_header_preproc
=yes
12687 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12688 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12690 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12692 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12694 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12696 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12698 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12701 ## ------------------------------------------------ ##
12702 ## Report this to http://www.python.org/python-bugs ##
12703 ## ------------------------------------------------ ##
12706 sed "s/^/$as_me: WARNING: /" >&2
12709 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12710 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12711 if test "${ac_cv_header_cthreads_h+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 ac_cv_header_cthreads_h
=$ac_header_preproc
12716 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12717 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12720 if test $ac_cv_header_cthreads_h = yes; then
12721 cat >>confdefs.h
<<\_ACEOF
12722 #define WITH_THREAD 1
12725 cat >>confdefs.h
<<\_ACEOF
12726 #define C_THREADS 1
12730 cat >>confdefs.h
<<\_ACEOF
12731 #define HURD_C_THREADS 1
12734 LIBS
="$LIBS -lthreads"
12735 THREADOBJ
="Python/thread.o"
12738 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12739 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12740 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12741 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12747 # Is the header compilable?
12748 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12749 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12750 cat >conftest.
$ac_ext <<_ACEOF
12753 cat confdefs.h
>>conftest.
$ac_ext
12754 cat >>conftest.
$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 $ac_includes_default
12757 #include <mach/cthreads.h>
12759 rm -f conftest.
$ac_objext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761 (eval $ac_compile) 2>conftest.er1
12763 grep -v '^ *+' conftest.er1
>conftest.err
12765 cat conftest.err
>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try
='test -z "$ac_c_werror_flag"
12769 || test ! -s conftest.err'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; } &&
12775 { ac_try
='test -s conftest.$ac_objext'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_header_compiler
=yes
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.
$ac_ext >&5
12786 ac_header_compiler
=no
12788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12790 echo "${ECHO_T}$ac_header_compiler" >&6
12792 # Is the header present?
12793 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12794 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12795 cat >conftest.
$ac_ext <<_ACEOF
12798 cat confdefs.h
>>conftest.
$ac_ext
12799 cat >>conftest.
$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 #include <mach/cthreads.h>
12803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12804 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12806 grep -v '^ *+' conftest.er1
>conftest.err
12808 cat conftest.err
>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } >/dev
/null
; then
12811 if test -s conftest.err
; then
12812 ac_cpp_err
=$ac_c_preproc_warn_flag
12813 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12820 if test -z "$ac_cpp_err"; then
12821 ac_header_preproc
=yes
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.
$ac_ext >&5
12826 ac_header_preproc
=no
12828 rm -f conftest.err conftest.
$ac_ext
12829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12830 echo "${ECHO_T}$ac_header_preproc" >&6
12832 # So? What about this header?
12833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12835 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12836 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12838 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12839 ac_header_preproc
=yes
12842 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12843 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12845 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12847 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12849 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12851 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12853 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12856 ## ------------------------------------------------ ##
12857 ## Report this to http://www.python.org/python-bugs ##
12858 ## ------------------------------------------------ ##
12861 sed "s/^/$as_me: WARNING: /" >&2
12864 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12865 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12866 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12871 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12872 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12875 if test $ac_cv_header_mach_cthreads_h = yes; then
12876 cat >>confdefs.h
<<\_ACEOF
12877 #define WITH_THREAD 1
12880 cat >>confdefs.h
<<\_ACEOF
12881 #define C_THREADS 1
12885 cat >>confdefs.h
<<\_ACEOF
12886 #define MACH_C_THREADS 1
12889 THREADOBJ
="Python/thread.o"
12892 echo "$as_me:$LINENO: checking for --with-pth" >&5
12893 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12895 # Check whether --with-pth or --without-pth was given.
12896 if test "${with_pth+set}" = set; then
12897 withval
="$with_pth"
12898 echo "$as_me:$LINENO: result: $withval" >&5
12899 echo "${ECHO_T}$withval" >&6
12900 cat >>confdefs.h
<<\_ACEOF
12901 #define WITH_THREAD 1
12905 cat >>confdefs.h
<<\_ACEOF
12910 THREADOBJ
="Python/thread.o"
12912 echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6
12915 # Just looking for pthread_create in libpthread is not enough:
12916 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12917 # So we really have to include pthread.h, and then link.
12919 LIBS
="$LIBS -lpthread"
12920 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12921 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12922 cat >conftest.
$ac_ext <<_ACEOF
12925 cat confdefs.h
>>conftest.
$ac_ext
12926 cat >>conftest.
$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 #include <pthread.h>
12930 void * start_routine (void *arg) { exit (0); }
12935 pthread_create (NULL, NULL, start_routine, NULL)
12940 rm -f conftest.
$ac_objext conftest
$ac_exeext
12941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12942 (eval $ac_link) 2>conftest.er1
12944 grep -v '^ *+' conftest.er1
>conftest.err
12946 cat conftest.err
>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try
='test -z "$ac_c_werror_flag"
12950 || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try
='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12963 echo "$as_me:$LINENO: result: yes" >&5
12964 echo "${ECHO_T}yes" >&6
12965 cat >>confdefs.h
<<\_ACEOF
12966 #define WITH_THREAD 1
12970 THREADOBJ
="Python/thread.o"
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.
$ac_ext >&5
12977 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12978 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12979 if test "${ac_cv_func_pthread_detach+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 cat >conftest.
$ac_ext <<_ACEOF
12985 cat confdefs.h
>>conftest.
$ac_ext
12986 cat >>conftest.
$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12990 #define pthread_detach innocuous_pthread_detach
12992 /* System header to define __stub macros and hopefully few prototypes,
12993 which can conflict with char pthread_detach (); below.
12994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12995 <limits.h> exists even on freestanding compilers. */
12998 # include <limits.h>
13000 # include <assert.h>
13003 #undef pthread_detach
13005 /* Override any gcc2 internal prototype to avoid an error. */
13010 /* We use char because int might match the return type of a gcc2
13011 builtin and then its argument prototype would still apply. */
13012 char pthread_detach ();
13013 /* The GNU C library defines this for functions which it implements
13014 to always fail with ENOSYS. Some functions are actually named
13015 something starting with __ and the normal name is an alias. */
13016 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
13019 char (*f) () = pthread_detach;
13028 return f != pthread_detach;
13033 rm -f conftest.
$ac_objext conftest
$ac_exeext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035 (eval $ac_link) 2>conftest.er1
13037 grep -v '^ *+' conftest.er1
>conftest.err
13039 cat conftest.err
>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try
='test -z "$ac_c_werror_flag"
13043 || test ! -s conftest.err'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try
='test -s conftest$ac_exeext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13055 ac_cv_func_pthread_detach
=yes
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.
$ac_ext >&5
13060 ac_cv_func_pthread_detach
=no
13062 rm -f conftest.err conftest.
$ac_objext \
13063 conftest
$ac_exeext conftest.
$ac_ext
13065 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13066 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
13067 if test $ac_cv_func_pthread_detach = yes; then
13068 cat >>confdefs.h
<<\_ACEOF
13069 #define WITH_THREAD 1
13073 THREADOBJ
="Python/thread.o"
13076 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13077 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13078 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13079 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13083 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13085 # Is the header compilable?
13086 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13087 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
13088 cat >conftest.
$ac_ext <<_ACEOF
13091 cat confdefs.h
>>conftest.
$ac_ext
13092 cat >>conftest.
$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 $ac_includes_default
13095 #include <atheos/threads.h>
13097 rm -f conftest.
$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13101 grep -v '^ *+' conftest.er1
>conftest.err
13103 cat conftest.err
>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try
='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try
='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_header_compiler
=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.
$ac_ext >&5
13124 ac_header_compiler
=no
13126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13128 echo "${ECHO_T}$ac_header_compiler" >&6
13130 # Is the header present?
13131 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13132 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
13133 cat >conftest.
$ac_ext <<_ACEOF
13136 cat confdefs.h
>>conftest.
$ac_ext
13137 cat >>conftest.
$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139 #include <atheos/threads.h>
13141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13144 grep -v '^ *+' conftest.er1
>conftest.err
13146 cat conftest.err
>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } >/dev
/null
; then
13149 if test -s conftest.err
; then
13150 ac_cpp_err
=$ac_c_preproc_warn_flag
13151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13158 if test -z "$ac_cpp_err"; then
13159 ac_header_preproc
=yes
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.
$ac_ext >&5
13164 ac_header_preproc
=no
13166 rm -f conftest.err conftest.
$ac_ext
13167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13168 echo "${ECHO_T}$ac_header_preproc" >&6
13170 # So? What about this header?
13171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13173 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13174 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13176 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13177 ac_header_preproc
=yes
13180 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13181 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13183 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13185 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13187 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13189 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13191 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13194 ## ------------------------------------------------ ##
13195 ## Report this to http://www.python.org/python-bugs ##
13196 ## ------------------------------------------------ ##
13199 sed "s/^/$as_me: WARNING: /" >&2
13202 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13203 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13204 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 ac_cv_header_atheos_threads_h
=$ac_header_preproc
13209 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13210 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13213 if test $ac_cv_header_atheos_threads_h = yes; then
13214 cat >>confdefs.h
<<\_ACEOF
13215 #define WITH_THREAD 1
13219 cat >>confdefs.h
<<\_ACEOF
13220 #define ATHEOS_THREADS 1
13223 THREADOBJ
="Python/thread.o"
13226 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13227 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13228 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13229 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13233 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13235 # Is the header compilable?
13236 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13237 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
13238 cat >conftest.
$ac_ext <<_ACEOF
13241 cat confdefs.h
>>conftest.
$ac_ext
13242 cat >>conftest.
$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13245 #include <kernel/OS.h>
13247 rm -f conftest.
$ac_objext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249 (eval $ac_compile) 2>conftest.er1
13251 grep -v '^ *+' conftest.er1
>conftest.err
13253 cat conftest.err
>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try
='test -z "$ac_c_werror_flag"
13257 || test ! -s conftest.err'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; } &&
13263 { ac_try
='test -s conftest.$ac_objext'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_header_compiler
=yes
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.
$ac_ext >&5
13274 ac_header_compiler
=no
13276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13278 echo "${ECHO_T}$ac_header_compiler" >&6
13280 # Is the header present?
13281 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13282 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
13283 cat >conftest.
$ac_ext <<_ACEOF
13286 cat confdefs.h
>>conftest.
$ac_ext
13287 cat >>conftest.
$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 #include <kernel/OS.h>
13291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13292 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13294 grep -v '^ *+' conftest.er1
>conftest.err
13296 cat conftest.err
>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } >/dev
/null
; then
13299 if test -s conftest.err
; then
13300 ac_cpp_err
=$ac_c_preproc_warn_flag
13301 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13308 if test -z "$ac_cpp_err"; then
13309 ac_header_preproc
=yes
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.
$ac_ext >&5
13314 ac_header_preproc
=no
13316 rm -f conftest.err conftest.
$ac_ext
13317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13318 echo "${ECHO_T}$ac_header_preproc" >&6
13320 # So? What about this header?
13321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13323 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13324 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13326 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13327 ac_header_preproc
=yes
13330 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13331 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13333 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13335 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13337 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13339 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13341 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13344 ## ------------------------------------------------ ##
13345 ## Report this to http://www.python.org/python-bugs ##
13346 ## ------------------------------------------------ ##
13349 sed "s/^/$as_me: WARNING: /" >&2
13352 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13353 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13354 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 ac_cv_header_kernel_OS_h
=$ac_header_preproc
13359 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13360 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13363 if test $ac_cv_header_kernel_OS_h = yes; then
13364 cat >>confdefs.h
<<\_ACEOF
13365 #define WITH_THREAD 1
13369 cat >>confdefs.h
<<\_ACEOF
13370 #define BEOS_THREADS 1
13373 THREADOBJ
="Python/thread.o"
13376 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13377 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
13378 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_check_lib_save_LIBS
=$LIBS
13382 LIBS
="-lpthreads $LIBS"
13383 cat >conftest.
$ac_ext <<_ACEOF
13386 cat confdefs.h
>>conftest.
$ac_ext
13387 cat >>conftest.
$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13390 /* Override any gcc2 internal prototype to avoid an error. */
13394 /* We use char because int might match the return type of a gcc2
13395 builtin and then its argument prototype would still apply. */
13396 char pthread_create ();
13405 rm -f conftest.
$ac_objext conftest
$ac_exeext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13407 (eval $ac_link) 2>conftest.er1
13409 grep -v '^ *+' conftest.er1
>conftest.err
13411 cat conftest.err
>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try
='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try
='test -s conftest$ac_exeext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_cv_lib_pthreads_pthread_create
=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.
$ac_ext >&5
13432 ac_cv_lib_pthreads_pthread_create
=no
13434 rm -f conftest.err conftest.
$ac_objext \
13435 conftest
$ac_exeext conftest.
$ac_ext
13436 LIBS
=$ac_check_lib_save_LIBS
13438 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13439 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
13440 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13441 cat >>confdefs.h
<<\_ACEOF
13442 #define WITH_THREAD 1
13446 LIBS
="$LIBS -lpthreads"
13447 THREADOBJ
="Python/thread.o"
13450 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13451 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
13452 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 ac_check_lib_save_LIBS
=$LIBS
13457 cat >conftest.
$ac_ext <<_ACEOF
13460 cat confdefs.h
>>conftest.
$ac_ext
13461 cat >>conftest.
$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13464 /* Override any gcc2 internal prototype to avoid an error. */
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470 char pthread_create ();
13479 rm -f conftest.
$ac_objext conftest
$ac_exeext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13481 (eval $ac_link) 2>conftest.er1
13483 grep -v '^ *+' conftest.er1
>conftest.err
13485 cat conftest.err
>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try
='test -z "$ac_c_werror_flag"
13489 || test ! -s conftest.err'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; } &&
13495 { ac_try
='test -s conftest$ac_exeext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_cv_lib_c_r_pthread_create
=yes
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.
$ac_ext >&5
13506 ac_cv_lib_c_r_pthread_create
=no
13508 rm -f conftest.err conftest.
$ac_objext \
13509 conftest
$ac_exeext conftest.
$ac_ext
13510 LIBS
=$ac_check_lib_save_LIBS
13512 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13513 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
13514 if test $ac_cv_lib_c_r_pthread_create = yes; then
13515 cat >>confdefs.h
<<\_ACEOF
13516 #define WITH_THREAD 1
13521 THREADOBJ
="Python/thread.o"
13524 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13525 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
13526 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 ac_check_lib_save_LIBS
=$LIBS
13530 LIBS
="-lpthread $LIBS"
13531 cat >conftest.
$ac_ext <<_ACEOF
13534 cat confdefs.h
>>conftest.
$ac_ext
13535 cat >>conftest.
$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13538 /* Override any gcc2 internal prototype to avoid an error. */
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13544 char __pthread_create_system ();
13548 __pthread_create_system ();
13553 rm -f conftest.
$ac_objext conftest
$ac_exeext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13555 (eval $ac_link) 2>conftest.er1
13557 grep -v '^ *+' conftest.er1
>conftest.err
13559 cat conftest.err
>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try
='test -z "$ac_c_werror_flag"
13563 || test ! -s conftest.err'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try
='test -s conftest$ac_exeext'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 ac_cv_lib_pthread___pthread_create_system
=yes
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.
$ac_ext >&5
13580 ac_cv_lib_pthread___pthread_create_system
=no
13582 rm -f conftest.err conftest.
$ac_objext \
13583 conftest
$ac_exeext conftest.
$ac_ext
13584 LIBS
=$ac_check_lib_save_LIBS
13586 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13587 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13588 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13589 cat >>confdefs.h
<<\_ACEOF
13590 #define WITH_THREAD 1
13594 LIBS
="$LIBS -lpthread"
13595 THREADOBJ
="Python/thread.o"
13598 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13599 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13600 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 ac_check_lib_save_LIBS
=$LIBS
13605 cat >conftest.
$ac_ext <<_ACEOF
13608 cat confdefs.h
>>conftest.
$ac_ext
13609 cat >>conftest.
$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13612 /* Override any gcc2 internal prototype to avoid an error. */
13616 /* We use char because int might match the return type of a gcc2
13617 builtin and then its argument prototype would still apply. */
13618 char pthread_create ();
13627 rm -f conftest.
$ac_objext conftest
$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629 (eval $ac_link) 2>conftest.er1
13631 grep -v '^ *+' conftest.er1
>conftest.err
13633 cat conftest.err
>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try
='test -z "$ac_c_werror_flag"
13637 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try
='test -s conftest$ac_exeext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_cv_lib_cma_pthread_create
=yes
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.
$ac_ext >&5
13654 ac_cv_lib_cma_pthread_create
=no
13656 rm -f conftest.err conftest.
$ac_objext \
13657 conftest
$ac_exeext conftest.
$ac_ext
13658 LIBS
=$ac_check_lib_save_LIBS
13660 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13661 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13662 if test $ac_cv_lib_cma_pthread_create = yes; then
13663 cat >>confdefs.h
<<\_ACEOF
13664 #define WITH_THREAD 1
13669 THREADOBJ
="Python/thread.o"
13672 USE_THREAD_MODULE
="#"
13691 rm -f conftest.err conftest.
$ac_objext \
13692 conftest
$ac_exeext conftest.
$ac_ext
13701 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13702 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13703 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 ac_check_lib_save_LIBS
=$LIBS
13708 cat >conftest.
$ac_ext <<_ACEOF
13711 cat confdefs.h
>>conftest.
$ac_ext
13712 cat >>conftest.
$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 /* Override any gcc2 internal prototype to avoid an error. */
13719 /* We use char because int might match the return type of a gcc2
13720 builtin and then its argument prototype would still apply. */
13730 rm -f conftest.
$ac_objext conftest
$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>conftest.er1
13734 grep -v '^ *+' conftest.er1
>conftest.err
13736 cat conftest.err
>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try
='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try
='test -s conftest$ac_exeext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_lib_mpc_usconfig
=yes
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.
$ac_ext >&5
13757 ac_cv_lib_mpc_usconfig
=no
13759 rm -f conftest.err conftest.
$ac_objext \
13760 conftest
$ac_exeext conftest.
$ac_ext
13761 LIBS
=$ac_check_lib_save_LIBS
13763 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13764 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13765 if test $ac_cv_lib_mpc_usconfig = yes; then
13766 cat >>confdefs.h
<<\_ACEOF
13767 #define WITH_THREAD 1
13771 THREADOBJ
="Python/thread.o"
13772 USE_THREAD_MODULE
=""
13776 if test "$posix_threads" != "yes"; then
13777 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13778 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13779 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 ac_check_lib_save_LIBS
=$LIBS
13783 LIBS
="-lthread $LIBS"
13784 cat >conftest.
$ac_ext <<_ACEOF
13787 cat confdefs.h
>>conftest.
$ac_ext
13788 cat >>conftest.
$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13791 /* Override any gcc2 internal prototype to avoid an error. */
13795 /* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13797 char thr_create ();
13806 rm -f conftest.
$ac_objext conftest
$ac_exeext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808 (eval $ac_link) 2>conftest.er1
13810 grep -v '^ *+' conftest.er1
>conftest.err
13812 cat conftest.err
>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try
='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try
='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_lib_thread_thr_create
=yes
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.
$ac_ext >&5
13833 ac_cv_lib_thread_thr_create
=no
13835 rm -f conftest.err conftest.
$ac_objext \
13836 conftest
$ac_exeext conftest.
$ac_ext
13837 LIBS
=$ac_check_lib_save_LIBS
13839 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13840 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13841 if test $ac_cv_lib_thread_thr_create = yes; then
13842 cat >>confdefs.h
<<\_ACEOF
13843 #define WITH_THREAD 1
13846 LIBS
="$LIBS -lthread"
13847 THREADOBJ
="Python/thread.o"
13848 USE_THREAD_MODULE
=""
13853 if test "$USE_THREAD_MODULE" != "#"
13855 # If the above checks didn't disable threads, (at least) OSF1
13856 # needs this '-threads' argument during linking.
13857 case $ac_sys_system in
13858 OSF1
) LDLAST
=-threads;;
13863 if test "$posix_threads" = "yes"; then
13864 if test "$unistd_defines_pthreads" = "no"; then
13866 cat >>confdefs.h
<<\_ACEOF
13867 #define _POSIX_THREADS 1
13872 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13873 case $ac_sys_system/$ac_sys_release in
13875 cat >>confdefs.h
<<\_ACEOF
13876 #define HAVE_PTHREAD_DESTRUCTOR 1
13881 cat >>confdefs.h
<<\_ACEOF
13882 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13888 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13889 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13890 if test "${ac_cv_pthread_system_supported+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 if test "$cross_compiling" = yes; then
13894 ac_cv_pthread_system_supported
=no
13896 cat >conftest.
$ac_ext <<_ACEOF
13899 cat confdefs.h
>>conftest.
$ac_ext
13900 cat >>conftest.
$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 #include <pthread.h>
13903 void *foo(void *parm) {
13907 pthread_attr_t attr;
13909 if (pthread_attr_init(&attr)) exit(-1);
13910 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13911 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13915 rm -f conftest
$ac_exeext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917 (eval $ac_link) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_pthread_system_supported
=yes
13928 echo "$as_me: program exited with status $ac_status" >&5
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.
$ac_ext >&5
13932 ( exit $ac_status )
13933 ac_cv_pthread_system_supported
=no
13935 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13940 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13941 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13942 if test "$ac_cv_pthread_system_supported" = "yes"; then
13944 cat >>confdefs.h
<<\_ACEOF
13945 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13950 for ac_func
in pthread_sigmask
13952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13953 echo "$as_me:$LINENO: checking for $ac_func" >&5
13954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13955 if eval "test \"\${$as_ac_var+set}\" = set"; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 cat >conftest.
$ac_ext <<_ACEOF
13961 cat confdefs.h
>>conftest.
$ac_ext
13962 cat >>conftest.
$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13966 #define $ac_func innocuous_$ac_func
13968 /* System header to define __stub macros and hopefully few prototypes,
13969 which can conflict with char $ac_func (); below.
13970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13971 <limits.h> exists even on freestanding compilers. */
13974 # include <limits.h>
13976 # include <assert.h>
13981 /* Override any gcc2 internal prototype to avoid an error. */
13986 /* We use char because int might match the return type of a gcc2
13987 builtin and then its argument prototype would still apply. */
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13995 char (*f) () = $ac_func;
14004 return f != $ac_func;
14009 rm -f conftest.
$ac_objext conftest
$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1
>conftest.err
14015 cat conftest.err
>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try
='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try
='test -s conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 eval "$as_ac_var=yes"
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.
$ac_ext >&5
14036 eval "$as_ac_var=no"
14038 rm -f conftest.err conftest.
$ac_objext \
14039 conftest
$ac_exeext conftest.
$ac_ext
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14043 if test `eval echo '${'$as_ac_var'}'` = yes; then
14044 cat >>confdefs.h
<<_ACEOF
14045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14047 case $ac_sys_system in
14050 cat >>confdefs.h
<<\_ACEOF
14051 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14062 # Check for enable-ipv6
14065 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14066 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
14067 # Check whether --enable-ipv6 or --disable-ipv6 was given.
14068 if test "${enable_ipv6+set}" = set; then
14069 enableval
="$enable_ipv6"
14070 case "$enableval" in
14072 echo "$as_me:$LINENO: result: no" >&5
14073 echo "${ECHO_T}no" >&6
14076 *) echo "$as_me:$LINENO: result: yes" >&5
14077 echo "${ECHO_T}yes" >&6
14078 cat >>confdefs.h
<<\_ACEOF
14079 #define ENABLE_IPV6 1
14087 if test "$cross_compiling" = yes; then
14088 echo "$as_me:$LINENO: result: no" >&5
14089 echo "${ECHO_T}no" >&6
14093 cat >conftest.
$ac_ext <<_ACEOF
14096 cat confdefs.h
>>conftest.
$ac_ext
14097 cat >>conftest.
$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 /* AF_INET6 available check */
14100 #include <sys/types.h>
14101 #include <sys/socket.h>
14104 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14111 rm -f conftest
$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 echo "$as_me:$LINENO: result: yes" >&5
14123 echo "${ECHO_T}yes" >&6
14126 echo "$as_me: program exited with status $ac_status" >&5
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.
$ac_ext >&5
14130 ( exit $ac_status )
14131 echo "$as_me:$LINENO: result: no" >&5
14132 echo "${ECHO_T}no" >&6
14135 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14138 if test "$ipv6" = "yes"; then
14139 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14140 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
14141 cat >conftest.
$ac_ext <<_ACEOF
14144 cat confdefs.h
>>conftest.
$ac_ext
14145 cat >>conftest.
$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14148 #include <netinet/in.h>
14152 struct sockaddr_in6 x;
14158 rm -f conftest.
$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>conftest.er1
14162 grep -v '^ *+' conftest.er1
>conftest.err
14164 cat conftest.err
>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try
='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try
='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 echo "$as_me:$LINENO: result: yes" >&5
14181 echo "${ECHO_T}yes" >&6
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.
$ac_ext >&5
14187 echo "$as_me:$LINENO: result: no" >&5
14188 echo "${ECHO_T}no" >&6
14191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14194 if test "$ipv6" = "yes"; then
14195 cat >>confdefs.h
<<\_ACEOF
14196 #define ENABLE_IPV6 1
14207 if test "$ipv6" = "yes"; then
14208 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14209 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
14210 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
14214 cat >conftest.
$ac_ext <<_ACEOF
14217 cat confdefs.h
>>conftest.
$ac_ext
14218 cat >>conftest.
$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14221 #include <netinet/in.h>
14222 #ifdef IPV6_INRIA_VERSION
14226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14227 $EGREP "yes" >/dev
/null
2>&1; then
14234 cat >conftest.
$ac_ext <<_ACEOF
14237 cat confdefs.h
>>conftest.
$ac_ext
14238 cat >>conftest.
$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14241 #include <netinet/in.h>
14246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14247 $EGREP "yes" >/dev
/null
2>&1; then
14250 ipv6libdir
=/usr
/local
/v
6/lib
14257 cat >conftest.
$ac_ext <<_ACEOF
14260 cat confdefs.h
>>conftest.
$ac_ext
14261 cat >>conftest.
$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14264 #include <features.h>
14265 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14270 $EGREP "yes" >/dev
/null
2>&1; then
14278 if test -d /usr
/inet6
; then
14281 ipv6libdir
=/usr
/inet
6/lib
14282 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
14286 if test -f /etc
/netconfig
; then
14287 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
14294 cat >conftest.
$ac_ext <<_ACEOF
14297 cat confdefs.h
>>conftest.
$ac_ext
14298 cat >>conftest.
$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 #include <sys/param.h>
14302 #ifdef _TOSHIBA_INET6
14306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14307 $EGREP "yes" >/dev
/null
2>&1; then
14310 ipv6libdir
=/usr
/local
/v
6/lib
14316 cat >conftest.
$ac_ext <<_ACEOF
14319 cat confdefs.h
>>conftest.
$ac_ext
14320 cat >>conftest.
$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14323 #include </usr/local/v6/include/sys/v6config.h>
14328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14329 $EGREP "yes" >/dev
/null
2>&1; then
14332 ipv6libdir
=/usr
/local
/v
6/lib
;
14333 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
14339 cat >conftest.
$ac_ext <<_ACEOF
14342 cat confdefs.h
>>conftest.
$ac_ext
14343 cat >>conftest.
$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14346 #include <sys/param.h>
14347 #ifdef _ZETA_MINAMI_INET6
14351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14352 $EGREP "yes" >/dev
/null
2>&1; then
14355 ipv6libdir
=/usr
/local
/v
6/lib
14361 if test "$ipv6type" != "unknown"; then
14365 echo "$as_me:$LINENO: result: $ipv6type" >&5
14366 echo "${ECHO_T}$ipv6type" >&6
14369 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14370 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
14371 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
14372 echo "using lib$ipv6lib"
14374 if test $ipv6trylibc = "yes"; then
14377 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14378 echo "You need to fetch lib$ipv6lib.a from appropriate"
14379 echo 'ipv6 kit and compile beforehand.'
14385 # Check for --with-doc-strings
14386 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14387 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
14389 # Check whether --with-doc-strings or --without-doc-strings was given.
14390 if test "${with_doc_strings+set}" = set; then
14391 withval
="$with_doc_strings"
14395 if test -z "$with_doc_strings"
14396 then with_doc_strings
="yes"
14398 if test "$with_doc_strings" != "no"
14401 cat >>confdefs.h
<<\_ACEOF
14402 #define WITH_DOC_STRINGS 1
14406 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14407 echo "${ECHO_T}$with_doc_strings" >&6
14409 # Check for Python-specific malloc support
14410 echo "$as_me:$LINENO: checking for --with-tsc" >&5
14411 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
14413 # Check whether --with-tsc or --without-tsc was given.
14414 if test "${with_tsc+set}" = set; then
14415 withval
="$with_tsc"
14417 if test "$withval" != no
14420 cat >>confdefs.h
<<\_ACEOF
14424 echo "$as_me:$LINENO: result: yes" >&5
14425 echo "${ECHO_T}yes" >&6
14426 else echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6
14430 echo "$as_me:$LINENO: result: no" >&5
14431 echo "${ECHO_T}no" >&6
14434 # Check for Python-specific malloc support
14435 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14436 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
14438 # Check whether --with-pymalloc or --without-pymalloc was given.
14439 if test "${with_pymalloc+set}" = set; then
14440 withval
="$with_pymalloc"
14444 if test -z "$with_pymalloc"
14445 then with_pymalloc
="yes"
14447 if test "$with_pymalloc" != "no"
14450 cat >>confdefs.h
<<\_ACEOF
14451 #define WITH_PYMALLOC 1
14455 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14456 echo "${ECHO_T}$with_pymalloc" >&6
14458 # Check for --with-wctype-functions
14459 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14460 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
14462 # Check whether --with-wctype-functions or --without-wctype-functions was given.
14463 if test "${with_wctype_functions+set}" = set; then
14464 withval
="$with_wctype_functions"
14466 if test "$withval" != no
14469 cat >>confdefs.h
<<\_ACEOF
14470 #define WANT_WCTYPE_FUNCTIONS 1
14473 echo "$as_me:$LINENO: result: yes" >&5
14474 echo "${ECHO_T}yes" >&6
14475 else echo "$as_me:$LINENO: result: no" >&5
14476 echo "${ECHO_T}no" >&6
14479 echo "$as_me:$LINENO: result: no" >&5
14480 echo "${ECHO_T}no" >&6
14483 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14487 # the dlopen() function means we might want to use dynload_shlib.o. some
14488 # platforms, such as AIX, have dlopen(), but don't want to use it.
14490 for ac_func
in dlopen
14492 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14493 echo "$as_me:$LINENO: checking for $ac_func" >&5
14494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14495 if eval "test \"\${$as_ac_var+set}\" = set"; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 cat >conftest.
$ac_ext <<_ACEOF
14501 cat confdefs.h
>>conftest.
$ac_ext
14502 cat >>conftest.
$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14506 #define $ac_func innocuous_$ac_func
14508 /* System header to define __stub macros and hopefully few prototypes,
14509 which can conflict with char $ac_func (); below.
14510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14511 <limits.h> exists even on freestanding compilers. */
14514 # include <limits.h>
14516 # include <assert.h>
14521 /* Override any gcc2 internal prototype to avoid an error. */
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14529 /* The GNU C library defines this for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14535 char (*f) () = $ac_func;
14544 return f != $ac_func;
14549 rm -f conftest.
$ac_objext conftest
$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>conftest.er1
14553 grep -v '^ *+' conftest.er1
>conftest.err
14555 cat conftest.err
>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try
='test -z "$ac_c_werror_flag"
14559 || test ! -s conftest.err'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try
='test -s conftest$ac_exeext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14571 eval "$as_ac_var=yes"
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.
$ac_ext >&5
14576 eval "$as_ac_var=no"
14578 rm -f conftest.err conftest.
$ac_objext \
14579 conftest
$ac_exeext conftest.
$ac_ext
14581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14583 if test `eval echo '${'$as_ac_var'}'` = yes; then
14584 cat >>confdefs.h
<<_ACEOF
14585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14592 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14593 # loading of modules.
14595 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14596 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14597 if test -z "$DYNLOADFILE"
14599 case $ac_sys_system/$ac_sys_release in
14600 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14601 if test "$ac_cv_func_dlopen" = yes
14602 then DYNLOADFILE
="dynload_shlib.o"
14603 else DYNLOADFILE
="dynload_aix.o"
14606 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14607 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14608 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14609 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14610 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14612 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14613 # out any dynamic loading
14614 if test "$ac_cv_func_dlopen" = yes
14615 then DYNLOADFILE
="dynload_shlib.o"
14616 else DYNLOADFILE
="dynload_stub.o"
14621 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14622 echo "${ECHO_T}$DYNLOADFILE" >&6
14623 if test "$DYNLOADFILE" != "dynload_stub.o"
14626 cat >>confdefs.h
<<\_ACEOF
14627 #define HAVE_DYNAMIC_LOADING 1
14632 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14635 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14636 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14637 if test -z "$MACHDEP_OBJS"
14639 MACHDEP_OBJS
=$extra_machdep_objs
14641 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14643 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14644 echo "${ECHO_T}MACHDEP_OBJS" >&6
14646 # checks for library functions
14725 for ac_func
in alarm bind_textdomain_codeset chflags chown
clock confstr \
14726 ctermid execv fork fpathconf ftime ftruncate \
14727 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14728 getpriority getpwent getspnam getspent getsid getwd \
14729 kill killpg lchflags lchown lstat
mkfifo mknod mktime \
14730 mremap nice pathconf pause plock poll pthread_init \
14731 putenv readlink realpath \
14732 select setegid seteuid setgid \
14733 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14734 sigaction siginterrupt sigrelse strftime \
14735 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14736 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14738 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14739 echo "$as_me:$LINENO: checking for $ac_func" >&5
14740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14741 if eval "test \"\${$as_ac_var+set}\" = set"; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 cat >conftest.
$ac_ext <<_ACEOF
14747 cat confdefs.h
>>conftest.
$ac_ext
14748 cat >>conftest.
$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14752 #define $ac_func innocuous_$ac_func
14754 /* System header to define __stub macros and hopefully few prototypes,
14755 which can conflict with char $ac_func (); below.
14756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14757 <limits.h> exists even on freestanding compilers. */
14760 # include <limits.h>
14762 # include <assert.h>
14767 /* Override any gcc2 internal prototype to avoid an error. */
14772 /* We use char because int might match the return type of a gcc2
14773 builtin and then its argument prototype would still apply. */
14775 /* The GNU C library defines this for functions which it implements
14776 to always fail with ENOSYS. Some functions are actually named
14777 something starting with __ and the normal name is an alias. */
14778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14781 char (*f) () = $ac_func;
14790 return f != $ac_func;
14795 rm -f conftest.
$ac_objext conftest
$ac_exeext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14797 (eval $ac_link) 2>conftest.er1
14799 grep -v '^ *+' conftest.er1
>conftest.err
14801 cat conftest.err
>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try
='test -z "$ac_c_werror_flag"
14805 || test ! -s conftest.err'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try
='test -s conftest$ac_exeext'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 eval "$as_ac_var=yes"
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.
$ac_ext >&5
14822 eval "$as_ac_var=no"
14824 rm -f conftest.err conftest.
$ac_objext \
14825 conftest
$ac_exeext conftest.
$ac_ext
14827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14829 if test `eval echo '${'$as_ac_var'}'` = yes; then
14830 cat >>confdefs.h
<<_ACEOF
14831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14838 # For some functions, having a definition is not sufficient, since
14839 # we want to take their address.
14840 echo "$as_me:$LINENO: checking for chroot" >&5
14841 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14842 cat >conftest.
$ac_ext <<_ACEOF
14845 cat confdefs.h
>>conftest.
$ac_ext
14846 cat >>conftest.
$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 #include <unistd.h>
14857 rm -f conftest.
$ac_objext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14859 (eval $ac_compile) 2>conftest.er1
14861 grep -v '^ *+' conftest.er1
>conftest.err
14863 cat conftest.err
>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try
='test -z "$ac_c_werror_flag"
14867 || test ! -s conftest.err'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try
='test -s conftest.$ac_objext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14880 cat >>confdefs.h
<<\_ACEOF
14881 #define HAVE_CHROOT 1
14884 echo "$as_me:$LINENO: result: yes" >&5
14885 echo "${ECHO_T}yes" >&6
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.
$ac_ext >&5
14890 echo "$as_me:$LINENO: result: no" >&5
14891 echo "${ECHO_T}no" >&6
14894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14895 echo "$as_me:$LINENO: checking for link" >&5
14896 echo $ECHO_N "checking for link... $ECHO_C" >&6
14897 cat >conftest.
$ac_ext <<_ACEOF
14900 cat confdefs.h
>>conftest.
$ac_ext
14901 cat >>conftest.
$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 #include <unistd.h>
14912 rm -f conftest.
$ac_objext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14914 (eval $ac_compile) 2>conftest.er1
14916 grep -v '^ *+' conftest.er1
>conftest.err
14918 cat conftest.err
>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try
='test -z "$ac_c_werror_flag"
14922 || test ! -s conftest.err'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try
='test -s conftest.$ac_objext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14935 cat >>confdefs.h
<<\_ACEOF
14936 #define HAVE_LINK 1
14939 echo "$as_me:$LINENO: result: yes" >&5
14940 echo "${ECHO_T}yes" >&6
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.
$ac_ext >&5
14945 echo "$as_me:$LINENO: result: no" >&5
14946 echo "${ECHO_T}no" >&6
14949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14950 echo "$as_me:$LINENO: checking for symlink" >&5
14951 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14952 cat >conftest.
$ac_ext <<_ACEOF
14955 cat confdefs.h
>>conftest.
$ac_ext
14956 cat >>conftest.
$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <unistd.h>
14967 rm -f conftest.
$ac_objext
14968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969 (eval $ac_compile) 2>conftest.er1
14971 grep -v '^ *+' conftest.er1
>conftest.err
14973 cat conftest.err
>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try
='test -z "$ac_c_werror_flag"
14977 || test ! -s conftest.err'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; } &&
14983 { ac_try
='test -s conftest.$ac_objext'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14990 cat >>confdefs.h
<<\_ACEOF
14991 #define HAVE_SYMLINK 1
14994 echo "$as_me:$LINENO: result: yes" >&5
14995 echo "${ECHO_T}yes" >&6
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.
$ac_ext >&5
15000 echo "$as_me:$LINENO: result: no" >&5
15001 echo "${ECHO_T}no" >&6
15004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15005 echo "$as_me:$LINENO: checking for fchdir" >&5
15006 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
15007 cat >conftest.
$ac_ext <<_ACEOF
15010 cat confdefs.h
>>conftest.
$ac_ext
15011 cat >>conftest.
$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 #include <unistd.h>
15022 rm -f conftest.
$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>conftest.er1
15026 grep -v '^ *+' conftest.er1
>conftest.err
15028 cat conftest.err
>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try
='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try
='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15045 cat >>confdefs.h
<<\_ACEOF
15046 #define HAVE_FCHDIR 1
15049 echo "$as_me:$LINENO: result: yes" >&5
15050 echo "${ECHO_T}yes" >&6
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.
$ac_ext >&5
15055 echo "$as_me:$LINENO: result: no" >&5
15056 echo "${ECHO_T}no" >&6
15059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15060 echo "$as_me:$LINENO: checking for fsync" >&5
15061 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
15062 cat >conftest.
$ac_ext <<_ACEOF
15065 cat confdefs.h
>>conftest.
$ac_ext
15066 cat >>conftest.
$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <unistd.h>
15077 rm -f conftest.
$ac_objext
15078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079 (eval $ac_compile) 2>conftest.er1
15081 grep -v '^ *+' conftest.er1
>conftest.err
15083 cat conftest.err
>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try
='test -z "$ac_c_werror_flag"
15087 || test ! -s conftest.err'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; } &&
15093 { ac_try
='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15100 cat >>confdefs.h
<<\_ACEOF
15101 #define HAVE_FSYNC 1
15104 echo "$as_me:$LINENO: result: yes" >&5
15105 echo "${ECHO_T}yes" >&6
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.
$ac_ext >&5
15110 echo "$as_me:$LINENO: result: no" >&5
15111 echo "${ECHO_T}no" >&6
15114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15115 echo "$as_me:$LINENO: checking for fdatasync" >&5
15116 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
15117 cat >conftest.
$ac_ext <<_ACEOF
15120 cat confdefs.h
>>conftest.
$ac_ext
15121 cat >>conftest.
$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 #include <unistd.h>
15132 rm -f conftest.
$ac_objext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15134 (eval $ac_compile) 2>conftest.er1
15136 grep -v '^ *+' conftest.er1
>conftest.err
15138 cat conftest.err
>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try
='test -z "$ac_c_werror_flag"
15142 || test ! -s conftest.err'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try
='test -s conftest.$ac_objext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15155 cat >>confdefs.h
<<\_ACEOF
15156 #define HAVE_FDATASYNC 1
15159 echo "$as_me:$LINENO: result: yes" >&5
15160 echo "${ECHO_T}yes" >&6
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.
$ac_ext >&5
15165 echo "$as_me:$LINENO: result: no" >&5
15166 echo "${ECHO_T}no" >&6
15169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15171 # On some systems (eg. FreeBSD 5), we would find a definition of the
15172 # functions ctermid_r, setgroups in the library, but no prototype
15173 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15174 # address to avoid compiler warnings and potential miscompilations
15175 # because of the missing prototypes.
15177 echo "$as_me:$LINENO: checking for ctermid_r" >&5
15178 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
15179 cat >conftest.
$ac_ext <<_ACEOF
15182 cat confdefs.h
>>conftest.
$ac_ext
15183 cat >>conftest.
$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15186 #include "confdefs.h"
15192 void* p = ctermid_r
15197 rm -f conftest.
$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>conftest.er1
15201 grep -v '^ *+' conftest.er1
>conftest.err
15203 cat conftest.err
>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try
='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try
='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15220 cat >>confdefs.h
<<\_ACEOF
15221 #define HAVE_CTERMID_R 1
15224 echo "$as_me:$LINENO: result: yes" >&5
15225 echo "${ECHO_T}yes" >&6
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.
$ac_ext >&5
15230 echo "$as_me:$LINENO: result: no" >&5
15231 echo "${ECHO_T}no" >&6
15234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15236 echo "$as_me:$LINENO: checking for flock" >&5
15237 echo $ECHO_N "checking for flock... $ECHO_C" >&6
15238 cat >conftest.
$ac_ext <<_ACEOF
15241 cat confdefs.h
>>conftest.
$ac_ext
15242 cat >>conftest.
$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 #include "confdefs.h"
15246 #include <sys/file.h>
15256 rm -f conftest.
$ac_objext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 (eval $ac_compile) 2>conftest.er1
15260 grep -v '^ *+' conftest.er1
>conftest.err
15262 cat conftest.err
>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } &&
15265 { ac_try
='test -z "$ac_c_werror_flag"
15266 || test ! -s conftest.err'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try
='test -s conftest.$ac_objext'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15279 cat >>confdefs.h
<<\_ACEOF
15280 #define HAVE_FLOCK 1
15283 echo "$as_me:$LINENO: result: yes" >&5
15284 echo "${ECHO_T}yes" >&6
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.
$ac_ext >&5
15289 echo "$as_me:$LINENO: result: no" >&5
15290 echo "${ECHO_T}no" >&6
15293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15295 echo "$as_me:$LINENO: checking for getpagesize" >&5
15296 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
15297 cat >conftest.
$ac_ext <<_ACEOF
15300 cat confdefs.h
>>conftest.
$ac_ext
15301 cat >>conftest.
$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15304 #include "confdefs.h"
15305 #include <unistd.h>
15310 void* p = getpagesize
15315 rm -f conftest.
$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>conftest.er1
15319 grep -v '^ *+' conftest.er1
>conftest.err
15321 cat conftest.err
>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } &&
15324 { ac_try
='test -z "$ac_c_werror_flag"
15325 || test ! -s conftest.err'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; } &&
15331 { ac_try
='test -s conftest.$ac_objext'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15338 cat >>confdefs.h
<<\_ACEOF
15339 #define HAVE_GETPAGESIZE 1
15342 echo "$as_me:$LINENO: result: yes" >&5
15343 echo "${ECHO_T}yes" >&6
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.
$ac_ext >&5
15348 echo "$as_me:$LINENO: result: no" >&5
15349 echo "${ECHO_T}no" >&6
15352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15354 for ac_prog
in true
15356 # Extract the first word of "$ac_prog", so it can be a program name with args.
15357 set dummy
$ac_prog; ac_word
=$2
15358 echo "$as_me:$LINENO: checking for $ac_word" >&5
15359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15360 if test "${ac_cv_prog_TRUE+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 if test -n "$TRUE"; then
15364 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
15366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15367 for as_dir
in $PATH
15370 test -z "$as_dir" && as_dir
=.
15371 for ac_exec_ext
in '' $ac_executable_extensions; do
15372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15373 ac_cv_prog_TRUE
="$ac_prog"
15374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15382 TRUE
=$ac_cv_prog_TRUE
15383 if test -n "$TRUE"; then
15384 echo "$as_me:$LINENO: result: $TRUE" >&5
15385 echo "${ECHO_T}$TRUE" >&6
15387 echo "$as_me:$LINENO: result: no" >&5
15388 echo "${ECHO_T}no" >&6
15391 test -n "$TRUE" && break
15393 test -n "$TRUE" || TRUE
="/bin/true"
15396 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15397 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
15398 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 ac_check_lib_save_LIBS
=$LIBS
15403 cat >conftest.
$ac_ext <<_ACEOF
15406 cat confdefs.h
>>conftest.
$ac_ext
15407 cat >>conftest.
$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15410 /* Override any gcc2 internal prototype to avoid an error. */
15414 /* We use char because int might match the return type of a gcc2
15415 builtin and then its argument prototype would still apply. */
15425 rm -f conftest.
$ac_objext conftest
$ac_exeext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15427 (eval $ac_link) 2>conftest.er1
15429 grep -v '^ *+' conftest.er1
>conftest.err
15431 cat conftest.err
>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try
='test -z "$ac_c_werror_flag"
15435 || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try
='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_cv_lib_c_inet_aton
=yes
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.
$ac_ext >&5
15452 ac_cv_lib_c_inet_aton
=no
15454 rm -f conftest.err conftest.
$ac_objext \
15455 conftest
$ac_exeext conftest.
$ac_ext
15456 LIBS
=$ac_check_lib_save_LIBS
15458 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15459 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
15460 if test $ac_cv_lib_c_inet_aton = yes; then
15464 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15465 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
15466 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 ac_check_lib_save_LIBS
=$LIBS
15470 LIBS
="-lresolv $LIBS"
15471 cat >conftest.
$ac_ext <<_ACEOF
15474 cat confdefs.h
>>conftest.
$ac_ext
15475 cat >>conftest.
$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15478 /* Override any gcc2 internal prototype to avoid an error. */
15482 /* We use char because int might match the return type of a gcc2
15483 builtin and then its argument prototype would still apply. */
15493 rm -f conftest.
$ac_objext conftest
$ac_exeext
15494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15495 (eval $ac_link) 2>conftest.er1
15497 grep -v '^ *+' conftest.er1
>conftest.err
15499 cat conftest.err
>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try
='test -z "$ac_c_werror_flag"
15503 || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try
='test -s conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_cv_lib_resolv_inet_aton
=yes
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.
$ac_ext >&5
15520 ac_cv_lib_resolv_inet_aton
=no
15522 rm -f conftest.err conftest.
$ac_objext \
15523 conftest
$ac_exeext conftest.
$ac_ext
15524 LIBS
=$ac_check_lib_save_LIBS
15526 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15527 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
15528 if test $ac_cv_lib_resolv_inet_aton = yes; then
15529 cat >>confdefs.h
<<_ACEOF
15530 #define HAVE_LIBRESOLV 1
15533 LIBS
="-lresolv $LIBS"
15541 case $ac_sys_system/$ac_sys_release in
15543 _CUR_CFLAGS
="${CFLAGS}"
15544 _CUR_LDFLAGS
="${LDFLAGS}"
15545 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
15546 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15550 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15551 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15552 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 ac_check_lib_save_LIBS
=$LIBS
15557 cat >conftest.
$ac_ext <<_ACEOF
15560 cat confdefs.h
>>conftest.
$ac_ext
15561 cat >>conftest.
$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15564 /* Override any gcc2 internal prototype to avoid an error. */
15568 /* We use char because int might match the return type of a gcc2
15569 builtin and then its argument prototype would still apply. */
15570 char inflateCopy ();
15579 rm -f conftest.
$ac_objext conftest
$ac_exeext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>conftest.er1
15583 grep -v '^ *+' conftest.er1
>conftest.err
15585 cat conftest.err
>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try
='test -z "$ac_c_werror_flag"
15589 || test ! -s conftest.err'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try
='test -s conftest$ac_exeext'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_cv_lib_z_inflateCopy
=yes
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.
$ac_ext >&5
15606 ac_cv_lib_z_inflateCopy
=no
15608 rm -f conftest.err conftest.
$ac_objext \
15609 conftest
$ac_exeext conftest.
$ac_ext
15610 LIBS
=$ac_check_lib_save_LIBS
15612 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15613 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15614 if test $ac_cv_lib_z_inflateCopy = yes; then
15616 cat >>confdefs.h
<<\_ACEOF
15617 #define HAVE_ZLIB_COPY 1
15623 case $ac_sys_system/$ac_sys_release in
15625 CFLAGS
="${_CUR_CFLAGS}"
15626 LDFLAGS
="${_CUR_LDFLAGS}"
15630 echo "$as_me:$LINENO: checking for hstrerror" >&5
15631 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15632 cat >conftest.
$ac_ext <<_ACEOF
15635 cat confdefs.h
>>conftest.
$ac_ext
15636 cat >>conftest.
$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15639 #include "confdefs.h"
15645 void* p = hstrerror; hstrerror(0)
15650 rm -f conftest.
$ac_objext conftest
$ac_exeext
15651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15652 (eval $ac_link) 2>conftest.er1
15654 grep -v '^ *+' conftest.er1
>conftest.err
15656 cat conftest.err
>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try
='test -z "$ac_c_werror_flag"
15660 || test ! -s conftest.err'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try
='test -s conftest$ac_exeext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15673 cat >>confdefs.h
<<\_ACEOF
15674 #define HAVE_HSTRERROR 1
15677 echo "$as_me:$LINENO: result: yes" >&5
15678 echo "${ECHO_T}yes" >&6
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.
$ac_ext >&5
15683 echo "$as_me:$LINENO: result: no" >&5
15684 echo "${ECHO_T}no" >&6
15687 rm -f conftest.err conftest.
$ac_objext \
15688 conftest
$ac_exeext conftest.
$ac_ext
15690 echo "$as_me:$LINENO: checking for inet_aton" >&5
15691 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15692 cat >conftest.
$ac_ext <<_ACEOF
15695 cat confdefs.h
>>conftest.
$ac_ext
15696 cat >>conftest.
$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15699 #include "confdefs.h"
15700 #include <sys/types.h>
15701 #include <sys/socket.h>
15702 #include <netinet/in.h>
15703 #include <arpa/inet.h>
15708 void* p = inet_aton;inet_aton(0,0)
15713 rm -f conftest.
$ac_objext conftest
$ac_exeext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>conftest.er1
15717 grep -v '^ *+' conftest.er1
>conftest.err
15719 cat conftest.err
>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try
='test -z "$ac_c_werror_flag"
15723 || test ! -s conftest.err'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try
='test -s conftest$ac_exeext'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15736 cat >>confdefs.h
<<\_ACEOF
15737 #define HAVE_INET_ATON 1
15740 echo "$as_me:$LINENO: result: yes" >&5
15741 echo "${ECHO_T}yes" >&6
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.
$ac_ext >&5
15746 echo "$as_me:$LINENO: result: no" >&5
15747 echo "${ECHO_T}no" >&6
15750 rm -f conftest.err conftest.
$ac_objext \
15751 conftest
$ac_exeext conftest.
$ac_ext
15753 echo "$as_me:$LINENO: checking for inet_pton" >&5
15754 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15755 cat >conftest.
$ac_ext <<_ACEOF
15758 cat confdefs.h
>>conftest.
$ac_ext
15759 cat >>conftest.
$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15762 #include "confdefs.h"
15763 #include <sys/types.h>
15764 #include <sys/socket.h>
15765 #include <netinet/in.h>
15766 #include <arpa/inet.h>
15771 void* p = inet_pton
15776 rm -f conftest.
$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778 (eval $ac_compile) 2>conftest.er1
15780 grep -v '^ *+' conftest.er1
>conftest.err
15782 cat conftest.err
>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try
='test -z "$ac_c_werror_flag"
15786 || test ! -s conftest.err'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try
='test -s conftest.$ac_objext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15799 cat >>confdefs.h
<<\_ACEOF
15800 #define HAVE_INET_PTON 1
15803 echo "$as_me:$LINENO: result: yes" >&5
15804 echo "${ECHO_T}yes" >&6
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.
$ac_ext >&5
15809 echo "$as_me:$LINENO: result: no" >&5
15810 echo "${ECHO_T}no" >&6
15813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15815 # On some systems, setgroups is in unistd.h, on others, in grp.h
15816 echo "$as_me:$LINENO: checking for setgroups" >&5
15817 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15818 cat >conftest.
$ac_ext <<_ACEOF
15821 cat confdefs.h
>>conftest.
$ac_ext
15822 cat >>conftest.
$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15825 #include "confdefs.h"
15826 #include <unistd.h>
15834 void* p = setgroups
15839 rm -f conftest.
$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>conftest.er1
15843 grep -v '^ *+' conftest.er1
>conftest.err
15845 cat conftest.err
>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try
='test -z "$ac_c_werror_flag"
15849 || test ! -s conftest.err'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try
='test -s conftest.$ac_objext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15862 cat >>confdefs.h
<<\_ACEOF
15863 #define HAVE_SETGROUPS 1
15866 echo "$as_me:$LINENO: result: yes" >&5
15867 echo "${ECHO_T}yes" >&6
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.
$ac_ext >&5
15872 echo "$as_me:$LINENO: result: no" >&5
15873 echo "${ECHO_T}no" >&6
15876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15878 # check for openpty and forkpty
15881 for ac_func
in openpty
15883 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15884 echo "$as_me:$LINENO: checking for $ac_func" >&5
15885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15886 if eval "test \"\${$as_ac_var+set}\" = set"; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 cat >conftest.
$ac_ext <<_ACEOF
15892 cat confdefs.h
>>conftest.
$ac_ext
15893 cat >>conftest.
$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15897 #define $ac_func innocuous_$ac_func
15899 /* System header to define __stub macros and hopefully few prototypes,
15900 which can conflict with char $ac_func (); below.
15901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902 <limits.h> exists even on freestanding compilers. */
15905 # include <limits.h>
15907 # include <assert.h>
15912 /* Override any gcc2 internal prototype to avoid an error. */
15917 /* We use char because int might match the return type of a gcc2
15918 builtin and then its argument prototype would still apply. */
15920 /* The GNU C library defines this for functions which it implements
15921 to always fail with ENOSYS. Some functions are actually named
15922 something starting with __ and the normal name is an alias. */
15923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15926 char (*f) () = $ac_func;
15935 return f != $ac_func;
15940 rm -f conftest.
$ac_objext conftest
$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>conftest.er1
15944 grep -v '^ *+' conftest.er1
>conftest.err
15946 cat conftest.err
>&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try
='test -z "$ac_c_werror_flag"
15950 || test ! -s conftest.err'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try
='test -s conftest$ac_exeext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 eval "$as_ac_var=yes"
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.
$ac_ext >&5
15967 eval "$as_ac_var=no"
15969 rm -f conftest.err conftest.
$ac_objext \
15970 conftest
$ac_exeext conftest.
$ac_ext
15972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15974 if test `eval echo '${'$as_ac_var'}'` = yes; then
15975 cat >>confdefs.h
<<_ACEOF
15976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15980 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15981 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15982 if test "${ac_cv_lib_util_openpty+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 ac_check_lib_save_LIBS
=$LIBS
15986 LIBS
="-lutil $LIBS"
15987 cat >conftest.
$ac_ext <<_ACEOF
15990 cat confdefs.h
>>conftest.
$ac_ext
15991 cat >>conftest.
$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15994 /* Override any gcc2 internal prototype to avoid an error. */
15998 /* We use char because int might match the return type of a gcc2
15999 builtin and then its argument prototype would still apply. */
16009 rm -f conftest.
$ac_objext conftest
$ac_exeext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16011 (eval $ac_link) 2>conftest.er1
16013 grep -v '^ *+' conftest.er1
>conftest.err
16015 cat conftest.err
>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try
='test -z "$ac_c_werror_flag"
16019 || test ! -s conftest.err'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try
='test -s conftest$ac_exeext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_cv_lib_util_openpty
=yes
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.
$ac_ext >&5
16036 ac_cv_lib_util_openpty
=no
16038 rm -f conftest.err conftest.
$ac_objext \
16039 conftest
$ac_exeext conftest.
$ac_ext
16040 LIBS
=$ac_check_lib_save_LIBS
16042 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16043 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16044 if test $ac_cv_lib_util_openpty = yes; then
16045 cat >>confdefs.h
<<\_ACEOF
16046 #define HAVE_OPENPTY 1
16048 LIBS
="$LIBS -lutil"
16050 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16051 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
16052 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 ac_check_lib_save_LIBS
=$LIBS
16057 cat >conftest.
$ac_ext <<_ACEOF
16060 cat confdefs.h
>>conftest.
$ac_ext
16061 cat >>conftest.
$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16064 /* Override any gcc2 internal prototype to avoid an error. */
16068 /* We use char because int might match the return type of a gcc2
16069 builtin and then its argument prototype would still apply. */
16079 rm -f conftest.
$ac_objext conftest
$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081 (eval $ac_link) 2>conftest.er1
16083 grep -v '^ *+' conftest.er1
>conftest.err
16085 cat conftest.err
>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try
='test -z "$ac_c_werror_flag"
16089 || test ! -s conftest.err'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; } &&
16095 { ac_try
='test -s conftest$ac_exeext'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_lib_bsd_openpty
=yes
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.
$ac_ext >&5
16106 ac_cv_lib_bsd_openpty
=no
16108 rm -f conftest.err conftest.
$ac_objext \
16109 conftest
$ac_exeext conftest.
$ac_ext
16110 LIBS
=$ac_check_lib_save_LIBS
16112 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16113 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
16114 if test $ac_cv_lib_bsd_openpty = yes; then
16115 cat >>confdefs.h
<<\_ACEOF
16116 #define HAVE_OPENPTY 1
16129 for ac_func
in forkpty
16131 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16132 echo "$as_me:$LINENO: checking for $ac_func" >&5
16133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16134 if eval "test \"\${$as_ac_var+set}\" = set"; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 cat >conftest.
$ac_ext <<_ACEOF
16140 cat confdefs.h
>>conftest.
$ac_ext
16141 cat >>conftest.
$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16145 #define $ac_func innocuous_$ac_func
16147 /* System header to define __stub macros and hopefully few prototypes,
16148 which can conflict with char $ac_func (); below.
16149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16150 <limits.h> exists even on freestanding compilers. */
16153 # include <limits.h>
16155 # include <assert.h>
16160 /* Override any gcc2 internal prototype to avoid an error. */
16165 /* We use char because int might match the return type of a gcc2
16166 builtin and then its argument prototype would still apply. */
16168 /* The GNU C library defines this for functions which it implements
16169 to always fail with ENOSYS. Some functions are actually named
16170 something starting with __ and the normal name is an alias. */
16171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16174 char (*f) () = $ac_func;
16183 return f != $ac_func;
16188 rm -f conftest.
$ac_objext conftest
$ac_exeext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16190 (eval $ac_link) 2>conftest.er1
16192 grep -v '^ *+' conftest.er1
>conftest.err
16194 cat conftest.err
>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try
='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try
='test -s conftest$ac_exeext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 eval "$as_ac_var=yes"
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.
$ac_ext >&5
16215 eval "$as_ac_var=no"
16217 rm -f conftest.err conftest.
$ac_objext \
16218 conftest
$ac_exeext conftest.
$ac_ext
16220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16222 if test `eval echo '${'$as_ac_var'}'` = yes; then
16223 cat >>confdefs.h
<<_ACEOF
16224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16228 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16229 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
16230 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 ac_check_lib_save_LIBS
=$LIBS
16234 LIBS
="-lutil $LIBS"
16235 cat >conftest.
$ac_ext <<_ACEOF
16238 cat confdefs.h
>>conftest.
$ac_ext
16239 cat >>conftest.
$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16242 /* Override any gcc2 internal prototype to avoid an error. */
16246 /* We use char because int might match the return type of a gcc2
16247 builtin and then its argument prototype would still apply. */
16257 rm -f conftest.
$ac_objext conftest
$ac_exeext
16258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16259 (eval $ac_link) 2>conftest.er1
16261 grep -v '^ *+' conftest.er1
>conftest.err
16263 cat conftest.err
>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try
='test -z "$ac_c_werror_flag"
16267 || test ! -s conftest.err'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try
='test -s conftest$ac_exeext'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 ac_cv_lib_util_forkpty
=yes
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.
$ac_ext >&5
16284 ac_cv_lib_util_forkpty
=no
16286 rm -f conftest.err conftest.
$ac_objext \
16287 conftest
$ac_exeext conftest.
$ac_ext
16288 LIBS
=$ac_check_lib_save_LIBS
16290 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16291 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
16292 if test $ac_cv_lib_util_forkpty = yes; then
16293 cat >>confdefs.h
<<\_ACEOF
16294 #define HAVE_FORKPTY 1
16296 LIBS
="$LIBS -lutil"
16298 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16299 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
16300 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 ac_check_lib_save_LIBS
=$LIBS
16305 cat >conftest.
$ac_ext <<_ACEOF
16308 cat confdefs.h
>>conftest.
$ac_ext
16309 cat >>conftest.
$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16312 /* Override any gcc2 internal prototype to avoid an error. */
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16327 rm -f conftest.
$ac_objext conftest
$ac_exeext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16329 (eval $ac_link) 2>conftest.er1
16331 grep -v '^ *+' conftest.er1
>conftest.err
16333 cat conftest.err
>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try
='test -z "$ac_c_werror_flag"
16337 || test ! -s conftest.err'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; } &&
16343 { ac_try
='test -s conftest$ac_exeext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_cv_lib_bsd_forkpty
=yes
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.
$ac_ext >&5
16354 ac_cv_lib_bsd_forkpty
=no
16356 rm -f conftest.err conftest.
$ac_objext \
16357 conftest
$ac_exeext conftest.
$ac_ext
16358 LIBS
=$ac_check_lib_save_LIBS
16360 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16361 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
16362 if test $ac_cv_lib_bsd_forkpty = yes; then
16363 cat >>confdefs.h
<<\_ACEOF
16364 #define HAVE_FORKPTY 1
16377 # check for long file support functions
16384 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16386 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16387 echo "$as_me:$LINENO: checking for $ac_func" >&5
16388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16389 if eval "test \"\${$as_ac_var+set}\" = set"; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 cat >conftest.
$ac_ext <<_ACEOF
16395 cat confdefs.h
>>conftest.
$ac_ext
16396 cat >>conftest.
$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16400 #define $ac_func innocuous_$ac_func
16402 /* System header to define __stub macros and hopefully few prototypes,
16403 which can conflict with char $ac_func (); below.
16404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16405 <limits.h> exists even on freestanding compilers. */
16408 # include <limits.h>
16410 # include <assert.h>
16415 /* Override any gcc2 internal prototype to avoid an error. */
16420 /* We use char because int might match the return type of a gcc2
16421 builtin and then its argument prototype would still apply. */
16423 /* The GNU C library defines this for functions which it implements
16424 to always fail with ENOSYS. Some functions are actually named
16425 something starting with __ and the normal name is an alias. */
16426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16429 char (*f) () = $ac_func;
16438 return f != $ac_func;
16443 rm -f conftest.
$ac_objext conftest
$ac_exeext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16445 (eval $ac_link) 2>conftest.er1
16447 grep -v '^ *+' conftest.er1
>conftest.err
16449 cat conftest.err
>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try
='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try
='test -s conftest$ac_exeext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 eval "$as_ac_var=yes"
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.
$ac_ext >&5
16470 eval "$as_ac_var=no"
16472 rm -f conftest.err conftest.
$ac_objext \
16473 conftest
$ac_exeext conftest.
$ac_ext
16475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16477 if test `eval echo '${'$as_ac_var'}'` = yes; then
16478 cat >>confdefs.h
<<_ACEOF
16479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16491 for ac_func
in dup2 getcwd strdup strerror memmove
16493 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16494 echo "$as_me:$LINENO: checking for $ac_func" >&5
16495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16496 if eval "test \"\${$as_ac_var+set}\" = set"; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 cat >conftest.
$ac_ext <<_ACEOF
16502 cat confdefs.h
>>conftest.
$ac_ext
16503 cat >>conftest.
$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16507 #define $ac_func innocuous_$ac_func
16509 /* System header to define __stub macros and hopefully few prototypes,
16510 which can conflict with char $ac_func (); below.
16511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16512 <limits.h> exists even on freestanding compilers. */
16515 # include <limits.h>
16517 # include <assert.h>
16522 /* Override any gcc2 internal prototype to avoid an error. */
16527 /* We use char because int might match the return type of a gcc2
16528 builtin and then its argument prototype would still apply. */
16530 /* The GNU C library defines this for functions which it implements
16531 to always fail with ENOSYS. Some functions are actually named
16532 something starting with __ and the normal name is an alias. */
16533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16536 char (*f) () = $ac_func;
16545 return f != $ac_func;
16550 rm -f conftest.
$ac_objext conftest
$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552 (eval $ac_link) 2>conftest.er1
16554 grep -v '^ *+' conftest.er1
>conftest.err
16556 cat conftest.err
>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try
='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try
='test -s conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 eval "$as_ac_var=yes"
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.
$ac_ext >&5
16577 eval "$as_ac_var=no"
16579 rm -f conftest.err conftest.
$ac_objext \
16580 conftest
$ac_exeext conftest.
$ac_ext
16582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16584 if test `eval echo '${'$as_ac_var'}'` = yes; then
16585 cat >>confdefs.h
<<_ACEOF
16586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16591 "$ac_func.$ac_objext" | \
16592 *" $ac_func.$ac_objext" | \
16593 "$ac_func.$ac_objext "* | \
16594 *" $ac_func.$ac_objext "* ) ;;
16595 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16603 for ac_func
in getpgrp
16605 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16606 echo "$as_me:$LINENO: checking for $ac_func" >&5
16607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16608 if eval "test \"\${$as_ac_var+set}\" = set"; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 cat >conftest.
$ac_ext <<_ACEOF
16614 cat confdefs.h
>>conftest.
$ac_ext
16615 cat >>conftest.
$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16619 #define $ac_func innocuous_$ac_func
16621 /* System header to define __stub macros and hopefully few prototypes,
16622 which can conflict with char $ac_func (); below.
16623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16624 <limits.h> exists even on freestanding compilers. */
16627 # include <limits.h>
16629 # include <assert.h>
16634 /* Override any gcc2 internal prototype to avoid an error. */
16639 /* We use char because int might match the return type of a gcc2
16640 builtin and then its argument prototype would still apply. */
16642 /* The GNU C library defines this for functions which it implements
16643 to always fail with ENOSYS. Some functions are actually named
16644 something starting with __ and the normal name is an alias. */
16645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16648 char (*f) () = $ac_func;
16657 return f != $ac_func;
16662 rm -f conftest.
$ac_objext conftest
$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>conftest.er1
16666 grep -v '^ *+' conftest.er1
>conftest.err
16668 cat conftest.err
>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try
='test -z "$ac_c_werror_flag"
16672 || test ! -s conftest.err'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; } &&
16678 { ac_try
='test -s conftest$ac_exeext'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 eval "$as_ac_var=yes"
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.
$ac_ext >&5
16689 eval "$as_ac_var=no"
16691 rm -f conftest.err conftest.
$ac_objext \
16692 conftest
$ac_exeext conftest.
$ac_ext
16694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16696 if test `eval echo '${'$as_ac_var'}'` = yes; then
16697 cat >>confdefs.h
<<_ACEOF
16698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16700 cat >conftest.
$ac_ext <<_ACEOF
16703 cat confdefs.h
>>conftest.
$ac_ext
16704 cat >>conftest.
$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 #include <unistd.h>
16715 rm -f conftest.
$ac_objext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>conftest.er1
16719 grep -v '^ *+' conftest.er1
>conftest.err
16721 cat conftest.err
>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try
='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try
='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16738 cat >>confdefs.h
<<\_ACEOF
16739 #define GETPGRP_HAVE_ARG 1
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.
$ac_ext >&5
16748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16754 for ac_func
in setpgrp
16756 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16757 echo "$as_me:$LINENO: checking for $ac_func" >&5
16758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16759 if eval "test \"\${$as_ac_var+set}\" = set"; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 cat >conftest.
$ac_ext <<_ACEOF
16765 cat confdefs.h
>>conftest.
$ac_ext
16766 cat >>conftest.
$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16770 #define $ac_func innocuous_$ac_func
16772 /* System header to define __stub macros and hopefully few prototypes,
16773 which can conflict with char $ac_func (); below.
16774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16775 <limits.h> exists even on freestanding compilers. */
16778 # include <limits.h>
16780 # include <assert.h>
16785 /* Override any gcc2 internal prototype to avoid an error. */
16790 /* We use char because int might match the return type of a gcc2
16791 builtin and then its argument prototype would still apply. */
16793 /* The GNU C library defines this for functions which it implements
16794 to always fail with ENOSYS. Some functions are actually named
16795 something starting with __ and the normal name is an alias. */
16796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16799 char (*f) () = $ac_func;
16808 return f != $ac_func;
16813 rm -f conftest.
$ac_objext conftest
$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815 (eval $ac_link) 2>conftest.er1
16817 grep -v '^ *+' conftest.er1
>conftest.err
16819 cat conftest.err
>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try
='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
16835 eval "$as_ac_var=yes"
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.
$ac_ext >&5
16840 eval "$as_ac_var=no"
16842 rm -f conftest.err conftest.
$ac_objext \
16843 conftest
$ac_exeext conftest.
$ac_ext
16845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16847 if test `eval echo '${'$as_ac_var'}'` = yes; then
16848 cat >>confdefs.h
<<_ACEOF
16849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16851 cat >conftest.
$ac_ext <<_ACEOF
16854 cat confdefs.h
>>conftest.
$ac_ext
16855 cat >>conftest.
$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <unistd.h>
16866 rm -f conftest.
$ac_objext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16868 (eval $ac_compile) 2>conftest.er1
16870 grep -v '^ *+' conftest.er1
>conftest.err
16872 cat conftest.err
>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try
='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try
='test -s conftest.$ac_objext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16889 cat >>confdefs.h
<<\_ACEOF
16890 #define SETPGRP_HAVE_ARG 1
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.
$ac_ext >&5
16899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16905 for ac_func
in gettimeofday
16907 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16908 echo "$as_me:$LINENO: checking for $ac_func" >&5
16909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16910 if eval "test \"\${$as_ac_var+set}\" = set"; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 cat >conftest.
$ac_ext <<_ACEOF
16916 cat confdefs.h
>>conftest.
$ac_ext
16917 cat >>conftest.
$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16921 #define $ac_func innocuous_$ac_func
16923 /* System header to define __stub macros and hopefully few prototypes,
16924 which can conflict with char $ac_func (); below.
16925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16926 <limits.h> exists even on freestanding compilers. */
16929 # include <limits.h>
16931 # include <assert.h>
16936 /* Override any gcc2 internal prototype to avoid an error. */
16941 /* We use char because int might match the return type of a gcc2
16942 builtin and then its argument prototype would still apply. */
16944 /* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16950 char (*f) () = $ac_func;
16959 return f != $ac_func;
16964 rm -f conftest.
$ac_objext conftest
$ac_exeext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966 (eval $ac_link) 2>conftest.er1
16968 grep -v '^ *+' conftest.er1
>conftest.err
16970 cat conftest.err
>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try
='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try
='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 eval "$as_ac_var=yes"
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.
$ac_ext >&5
16991 eval "$as_ac_var=no"
16993 rm -f conftest.err conftest.
$ac_objext \
16994 conftest
$ac_exeext conftest.
$ac_ext
16996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16998 if test `eval echo '${'$as_ac_var'}'` = yes; then
16999 cat >>confdefs.h
<<_ACEOF
17000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17002 cat >conftest.
$ac_ext <<_ACEOF
17005 cat confdefs.h
>>conftest.
$ac_ext
17006 cat >>conftest.
$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 #include <sys/time.h>
17012 gettimeofday((struct timeval*)0,(struct timezone*)0);
17017 rm -f conftest.
$ac_objext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17019 (eval $ac_compile) 2>conftest.er1
17021 grep -v '^ *+' conftest.er1
>conftest.err
17023 cat conftest.err
>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try
='test -z "$ac_c_werror_flag"
17027 || test ! -s conftest.err'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try
='test -s conftest.$ac_objext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.
$ac_ext >&5
17045 cat >>confdefs.h
<<\_ACEOF
17046 #define GETTIMEOFDAY_NO_TZ 1
17051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17057 echo "$as_me:$LINENO: checking for major" >&5
17058 echo $ECHO_N "checking for major... $ECHO_C" >&6
17059 cat >conftest.
$ac_ext <<_ACEOF
17062 cat confdefs.h
>>conftest.
$ac_ext
17063 cat >>conftest.
$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17066 #if defined(MAJOR_IN_MKDEV)
17067 #include <sys/mkdev.h>
17068 #elif defined(MAJOR_IN_SYSMACROS)
17069 #include <sys/sysmacros.h>
17071 #include <sys/types.h>
17078 makedev(major(0),minor(0));
17084 rm -f conftest.
$ac_objext conftest
$ac_exeext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086 (eval $ac_link) 2>conftest.er1
17088 grep -v '^ *+' conftest.er1
>conftest.err
17090 cat conftest.err
>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try
='test -z "$ac_c_werror_flag"
17094 || test ! -s conftest.err'
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try
='test -s conftest$ac_exeext'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17108 cat >>confdefs.h
<<\_ACEOF
17109 #define HAVE_DEVICE_MACROS 1
17112 echo "$as_me:$LINENO: result: yes" >&5
17113 echo "${ECHO_T}yes" >&6
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.
$ac_ext >&5
17120 echo "$as_me:$LINENO: result: no" >&5
17121 echo "${ECHO_T}no" >&6
17124 rm -f conftest.err conftest.
$ac_objext \
17125 conftest
$ac_exeext conftest.
$ac_ext
17127 # On OSF/1 V5.1, getaddrinfo is available, but a define
17128 # for [no]getaddrinfo in netdb.h.
17129 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17130 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17131 cat >conftest.
$ac_ext <<_ACEOF
17134 cat confdefs.h
>>conftest.
$ac_ext
17135 cat >>conftest.
$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17138 #include <sys/types.h>
17139 #include <sys/socket.h>
17147 getaddrinfo(NULL, NULL, NULL, NULL);
17153 rm -f conftest.
$ac_objext conftest
$ac_exeext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>conftest.er1
17157 grep -v '^ *+' conftest.er1
>conftest.err
17159 cat conftest.err
>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try
='test -z "$ac_c_werror_flag"
17163 || test ! -s conftest.err'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try
='test -s conftest$ac_exeext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17176 echo "$as_me:$LINENO: result: yes" >&5
17177 echo "${ECHO_T}yes" >&6
17178 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17179 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
17180 if test "$cross_compiling" = yes; then
17181 echo "$as_me:$LINENO: result: buggy" >&5
17182 echo "${ECHO_T}buggy" >&6
17183 buggygetaddrinfo
=yes
17185 cat >conftest.
$ac_ext <<_ACEOF
17188 cat confdefs.h
>>conftest.
$ac_ext
17189 cat >>conftest.
$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17192 #include <sys/types.h>
17194 #include <string.h>
17195 #include <sys/socket.h>
17196 #include <netinet/in.h>
17200 int passive, gaierr, inet4 = 0, inet6 = 0;
17201 struct addrinfo hints, *ai, *aitop;
17202 char straddr[INET6_ADDRSTRLEN], strport[16];
17204 for (passive = 0; passive <= 1; passive++) {
17205 memset(&hints, 0, sizeof(hints));
17206 hints.ai_family = AF_UNSPEC;
17207 hints.ai_flags = passive ? AI_PASSIVE : 0;
17208 hints.ai_socktype = SOCK_STREAM;
17209 hints.ai_protocol = IPPROTO_TCP;
17210 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17211 (void)gai_strerror(gaierr);
17214 for (ai = aitop; ai; ai = ai->ai_next) {
17215 if (ai->ai_addr == NULL ||
17216 ai->ai_addrlen == 0 ||
17217 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17218 straddr, sizeof(straddr), strport, sizeof(strport),
17219 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17222 switch (ai->ai_family) {
17224 if (strcmp(strport, "54321") != 0) {
17228 if (strcmp(straddr, "0.0.0.0") != 0) {
17232 if (strcmp(straddr, "127.0.0.1") != 0) {
17239 if (strcmp(strport, "54321") != 0) {
17243 if (strcmp(straddr, "::") != 0) {
17247 if (strcmp(straddr, "::1") != 0) {
17257 /* another family support? */
17263 if (!(inet4 == 0 || inet4 == 2))
17265 if (!(inet6 == 0 || inet6 == 2))
17269 freeaddrinfo(aitop);
17274 freeaddrinfo(aitop);
17279 rm -f conftest
$ac_exeext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 echo "$as_me:$LINENO: result: good" >&5
17291 echo "${ECHO_T}good" >&6
17292 buggygetaddrinfo
=no
17294 echo "$as_me: program exited with status $ac_status" >&5
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.
$ac_ext >&5
17298 ( exit $ac_status )
17299 echo "$as_me:$LINENO: result: buggy" >&5
17300 echo "${ECHO_T}buggy" >&6
17301 buggygetaddrinfo
=yes
17303 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.
$ac_ext >&5
17310 echo "$as_me:$LINENO: result: no" >&5
17311 echo "${ECHO_T}no" >&6
17312 buggygetaddrinfo
=yes
17315 rm -f conftest.err conftest.
$ac_objext \
17316 conftest
$ac_exeext conftest.
$ac_ext
17318 if test "$buggygetaddrinfo" = "yes"; then
17319 if test "$ipv6" = "yes"; then
17320 echo 'Fatal: You must get working getaddrinfo() function.'
17321 echo ' or you can specify "--disable-ipv6"'.
17326 cat >>confdefs.h
<<\_ACEOF
17327 #define HAVE_GETADDRINFO 1
17332 for ac_func
in getnameinfo
17334 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335 echo "$as_me:$LINENO: checking for $ac_func" >&5
17336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17337 if eval "test \"\${$as_ac_var+set}\" = set"; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 cat >conftest.
$ac_ext <<_ACEOF
17343 cat confdefs.h
>>conftest.
$ac_ext
17344 cat >>conftest.
$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348 #define $ac_func innocuous_$ac_func
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17356 # include <limits.h>
17358 # include <assert.h>
17363 /* Override any gcc2 internal prototype to avoid an error. */
17368 /* We use char because int might match the return type of a gcc2
17369 builtin and then its argument prototype would still apply. */
17371 /* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17377 char (*f) () = $ac_func;
17386 return f != $ac_func;
17391 rm -f conftest.
$ac_objext conftest
$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>conftest.er1
17395 grep -v '^ *+' conftest.er1
>conftest.err
17397 cat conftest.err
>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try
='test -z "$ac_c_werror_flag"
17401 || test ! -s conftest.err'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try
='test -s conftest$ac_exeext'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 eval "$as_ac_var=yes"
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.
$ac_ext >&5
17418 eval "$as_ac_var=no"
17420 rm -f conftest.err conftest.
$ac_objext \
17421 conftest
$ac_exeext conftest.
$ac_ext
17423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17425 if test `eval echo '${'$as_ac_var'}'` = yes; then
17426 cat >>confdefs.h
<<_ACEOF
17427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17434 # checks for structures
17435 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17436 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17437 if test "${ac_cv_header_time+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 cat >conftest.
$ac_ext <<_ACEOF
17443 cat confdefs.h
>>conftest.
$ac_ext
17444 cat >>conftest.
$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 #include <sys/types.h>
17447 #include <sys/time.h>
17453 if ((struct tm *) 0)
17459 rm -f conftest.
$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461 (eval $ac_compile) 2>conftest.er1
17463 grep -v '^ *+' conftest.er1
>conftest.err
17465 cat conftest.err
>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try
='test -z "$ac_c_werror_flag"
17469 || test ! -s conftest.err'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } &&
17475 { ac_try
='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_header_time
=yes
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.
$ac_ext >&5
17486 ac_cv_header_time
=no
17488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17490 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17491 echo "${ECHO_T}$ac_cv_header_time" >&6
17492 if test $ac_cv_header_time = yes; then
17494 cat >>confdefs.h
<<\_ACEOF
17495 #define TIME_WITH_SYS_TIME 1
17500 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17501 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
17502 if test "${ac_cv_struct_tm+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 cat >conftest.
$ac_ext <<_ACEOF
17508 cat confdefs.h
>>conftest.
$ac_ext
17509 cat >>conftest.
$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 #include <sys/types.h>
17517 struct tm *tp; tp->tm_sec;
17522 rm -f conftest.
$ac_objext
17523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17524 (eval $ac_compile) 2>conftest.er1
17526 grep -v '^ *+' conftest.er1
>conftest.err
17528 cat conftest.err
>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try
='test -z "$ac_c_werror_flag"
17532 || test ! -s conftest.err'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; } &&
17538 { ac_try
='test -s conftest.$ac_objext'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 ac_cv_struct_tm
=time.h
17546 echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.
$ac_ext >&5
17549 ac_cv_struct_tm
=sys
/time.h
17551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17553 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17554 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17555 if test $ac_cv_struct_tm = sys
/time.h
; then
17557 cat >>confdefs.h
<<\_ACEOF
17558 #define TM_IN_SYS_TIME 1
17563 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17564 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17565 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 cat >conftest.
$ac_ext <<_ACEOF
17571 cat confdefs.h
>>conftest.
$ac_ext
17572 cat >>conftest.
$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 #include <sys/types.h>
17575 #include <$ac_cv_struct_tm>
17581 static struct tm ac_aggr;
17582 if (ac_aggr.tm_zone)
17588 rm -f conftest.
$ac_objext
17589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17590 (eval $ac_compile) 2>conftest.er1
17592 grep -v '^ *+' conftest.er1
>conftest.err
17594 cat conftest.err
>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try
='test -z "$ac_c_werror_flag"
17598 || test ! -s conftest.err'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; } &&
17604 { ac_try
='test -s conftest.$ac_objext'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 ac_cv_member_struct_tm_tm_zone
=yes
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.
$ac_ext >&5
17615 cat >conftest.
$ac_ext <<_ACEOF
17618 cat confdefs.h
>>conftest.
$ac_ext
17619 cat >>conftest.
$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621 #include <sys/types.h>
17622 #include <$ac_cv_struct_tm>
17628 static struct tm ac_aggr;
17629 if (sizeof ac_aggr.tm_zone)
17635 rm -f conftest.
$ac_objext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637 (eval $ac_compile) 2>conftest.er1
17639 grep -v '^ *+' conftest.er1
>conftest.err
17641 cat conftest.err
>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try
='test -z "$ac_c_werror_flag"
17645 || test ! -s conftest.err'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try
='test -s conftest.$ac_objext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_cv_member_struct_tm_tm_zone
=yes
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.
$ac_ext >&5
17662 ac_cv_member_struct_tm_tm_zone
=no
17664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17669 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17670 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17672 cat >>confdefs.h
<<_ACEOF
17673 #define HAVE_STRUCT_TM_TM_ZONE 1
17679 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17681 cat >>confdefs.h
<<\_ACEOF
17682 #define HAVE_TM_ZONE 1
17686 echo "$as_me:$LINENO: checking for tzname" >&5
17687 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17688 if test "${ac_cv_var_tzname+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 cat >conftest.
$ac_ext <<_ACEOF
17694 cat confdefs.h
>>conftest.
$ac_ext
17695 cat >>conftest.
$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17698 #ifndef tzname /* For SGI. */
17699 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17710 rm -f conftest.
$ac_objext conftest
$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>conftest.er1
17714 grep -v '^ *+' conftest.er1
>conftest.err
17716 cat conftest.err
>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try
='test -z "$ac_c_werror_flag"
17720 || test ! -s conftest.err'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try
='test -s conftest$ac_exeext'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 ac_cv_var_tzname
=yes
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.
$ac_ext >&5
17737 ac_cv_var_tzname
=no
17739 rm -f conftest.err conftest.
$ac_objext \
17740 conftest
$ac_exeext conftest.
$ac_ext
17742 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17743 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17744 if test $ac_cv_var_tzname = yes; then
17746 cat >>confdefs.h
<<\_ACEOF
17747 #define HAVE_TZNAME 1
17753 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17754 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17755 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 cat >conftest.
$ac_ext <<_ACEOF
17761 cat confdefs.h
>>conftest.
$ac_ext
17762 cat >>conftest.
$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 $ac_includes_default
17768 static struct stat ac_aggr;
17769 if (ac_aggr.st_rdev)
17775 rm -f conftest.
$ac_objext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17777 (eval $ac_compile) 2>conftest.er1
17779 grep -v '^ *+' conftest.er1
>conftest.err
17781 cat conftest.err
>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try
='test -z "$ac_c_werror_flag"
17785 || test ! -s conftest.err'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } &&
17791 { ac_try
='test -s conftest.$ac_objext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_cv_member_struct_stat_st_rdev
=yes
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.
$ac_ext >&5
17802 cat >conftest.
$ac_ext <<_ACEOF
17805 cat confdefs.h
>>conftest.
$ac_ext
17806 cat >>conftest.
$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 $ac_includes_default
17812 static struct stat ac_aggr;
17813 if (sizeof ac_aggr.st_rdev)
17819 rm -f conftest.
$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>conftest.er1
17823 grep -v '^ *+' conftest.er1
>conftest.err
17825 cat conftest.err
>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try
='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try
='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_member_struct_stat_st_rdev
=yes
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.
$ac_ext >&5
17846 ac_cv_member_struct_stat_st_rdev
=no
17848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17853 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17854 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17856 cat >>confdefs.h
<<_ACEOF
17857 #define HAVE_STRUCT_STAT_ST_RDEV 1
17863 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17864 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17865 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 cat >conftest.
$ac_ext <<_ACEOF
17871 cat confdefs.h
>>conftest.
$ac_ext
17872 cat >>conftest.
$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 $ac_includes_default
17878 static struct stat ac_aggr;
17879 if (ac_aggr.st_blksize)
17885 rm -f conftest.
$ac_objext
17886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17887 (eval $ac_compile) 2>conftest.er1
17889 grep -v '^ *+' conftest.er1
>conftest.err
17891 cat conftest.err
>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } &&
17894 { ac_try
='test -z "$ac_c_werror_flag"
17895 || test ! -s conftest.err'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; } &&
17901 { ac_try
='test -s conftest.$ac_objext'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 ac_cv_member_struct_stat_st_blksize
=yes
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.
$ac_ext >&5
17912 cat >conftest.
$ac_ext <<_ACEOF
17915 cat confdefs.h
>>conftest.
$ac_ext
17916 cat >>conftest.
$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17918 $ac_includes_default
17922 static struct stat ac_aggr;
17923 if (sizeof ac_aggr.st_blksize)
17929 rm -f conftest.
$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931 (eval $ac_compile) 2>conftest.er1
17933 grep -v '^ *+' conftest.er1
>conftest.err
17935 cat conftest.err
>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try
='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try
='test -s conftest.$ac_objext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_cv_member_struct_stat_st_blksize
=yes
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.
$ac_ext >&5
17956 ac_cv_member_struct_stat_st_blksize
=no
17958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17962 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17963 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17964 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17966 cat >>confdefs.h
<<_ACEOF
17967 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17973 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17974 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17975 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 cat >conftest.
$ac_ext <<_ACEOF
17981 cat confdefs.h
>>conftest.
$ac_ext
17982 cat >>conftest.
$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 $ac_includes_default
17988 static struct stat ac_aggr;
17989 if (ac_aggr.st_flags)
17995 rm -f conftest.
$ac_objext
17996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17997 (eval $ac_compile) 2>conftest.er1
17999 grep -v '^ *+' conftest.er1
>conftest.err
18001 cat conftest.err
>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try
='test -z "$ac_c_werror_flag"
18005 || test ! -s conftest.err'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try
='test -s conftest.$ac_objext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_member_struct_stat_st_flags
=yes
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.
$ac_ext >&5
18022 cat >conftest.
$ac_ext <<_ACEOF
18025 cat confdefs.h
>>conftest.
$ac_ext
18026 cat >>conftest.
$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18028 $ac_includes_default
18032 static struct stat ac_aggr;
18033 if (sizeof ac_aggr.st_flags)
18039 rm -f conftest.
$ac_objext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18041 (eval $ac_compile) 2>conftest.er1
18043 grep -v '^ *+' conftest.er1
>conftest.err
18045 cat conftest.err
>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try
='test -z "$ac_c_werror_flag"
18049 || test ! -s conftest.err'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try
='test -s conftest.$ac_objext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_member_struct_stat_st_flags
=yes
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.
$ac_ext >&5
18066 ac_cv_member_struct_stat_st_flags
=no
18068 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18073 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
18074 if test $ac_cv_member_struct_stat_st_flags = yes; then
18076 cat >>confdefs.h
<<_ACEOF
18077 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18083 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18084 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
18085 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18086 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 cat >conftest.
$ac_ext <<_ACEOF
18091 cat confdefs.h
>>conftest.
$ac_ext
18092 cat >>conftest.
$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094 $ac_includes_default
18098 static struct stat ac_aggr;
18099 if (ac_aggr.st_gen)
18105 rm -f conftest.
$ac_objext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18107 (eval $ac_compile) 2>conftest.er1
18109 grep -v '^ *+' conftest.er1
>conftest.err
18111 cat conftest.err
>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try
='test -z "$ac_c_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try
='test -s conftest.$ac_objext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_member_struct_stat_st_gen
=yes
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.
$ac_ext >&5
18132 cat >conftest.
$ac_ext <<_ACEOF
18135 cat confdefs.h
>>conftest.
$ac_ext
18136 cat >>conftest.
$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 $ac_includes_default
18142 static struct stat ac_aggr;
18143 if (sizeof ac_aggr.st_gen)
18149 rm -f conftest.
$ac_objext
18150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18151 (eval $ac_compile) 2>conftest.er1
18153 grep -v '^ *+' conftest.er1
>conftest.err
18155 cat conftest.err
>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
18158 { ac_try
='test -z "$ac_c_werror_flag"
18159 || test ! -s conftest.err'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try
='test -s conftest.$ac_objext'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 ac_cv_member_struct_stat_st_gen
=yes
18173 echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.
$ac_ext >&5
18176 ac_cv_member_struct_stat_st_gen
=no
18178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18182 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18183 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
18184 if test $ac_cv_member_struct_stat_st_gen = yes; then
18186 cat >>confdefs.h
<<_ACEOF
18187 #define HAVE_STRUCT_STAT_ST_GEN 1
18193 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18194 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
18195 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 cat >conftest.
$ac_ext <<_ACEOF
18201 cat confdefs.h
>>conftest.
$ac_ext
18202 cat >>conftest.
$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18204 $ac_includes_default
18208 static struct stat ac_aggr;
18209 if (ac_aggr.st_birthtime)
18215 rm -f conftest.
$ac_objext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>conftest.er1
18219 grep -v '^ *+' conftest.er1
>conftest.err
18221 cat conftest.err
>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try
='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try
='test -s conftest.$ac_objext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_cv_member_struct_stat_st_birthtime
=yes
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.
$ac_ext >&5
18242 cat >conftest.
$ac_ext <<_ACEOF
18245 cat confdefs.h
>>conftest.
$ac_ext
18246 cat >>conftest.
$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 $ac_includes_default
18252 static struct stat ac_aggr;
18253 if (sizeof ac_aggr.st_birthtime)
18259 rm -f conftest.
$ac_objext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261 (eval $ac_compile) 2>conftest.er1
18263 grep -v '^ *+' conftest.er1
>conftest.err
18265 cat conftest.err
>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try
='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try
='test -s conftest.$ac_objext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_member_struct_stat_st_birthtime
=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.
$ac_ext >&5
18286 ac_cv_member_struct_stat_st_birthtime
=no
18288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18293 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
18294 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18296 cat >>confdefs.h
<<_ACEOF
18297 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18303 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18304 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18305 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 cat >conftest.
$ac_ext <<_ACEOF
18311 cat confdefs.h
>>conftest.
$ac_ext
18312 cat >>conftest.
$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 $ac_includes_default
18318 static struct stat ac_aggr;
18319 if (ac_aggr.st_blocks)
18325 rm -f conftest.
$ac_objext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18327 (eval $ac_compile) 2>conftest.er1
18329 grep -v '^ *+' conftest.er1
>conftest.err
18331 cat conftest.err
>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try
='test -z "$ac_c_werror_flag"
18335 || test ! -s conftest.err'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try
='test -s conftest.$ac_objext'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_member_struct_stat_st_blocks
=yes
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.
$ac_ext >&5
18352 cat >conftest.
$ac_ext <<_ACEOF
18355 cat confdefs.h
>>conftest.
$ac_ext
18356 cat >>conftest.
$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18358 $ac_includes_default
18362 static struct stat ac_aggr;
18363 if (sizeof ac_aggr.st_blocks)
18369 rm -f conftest.
$ac_objext
18370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18371 (eval $ac_compile) 2>conftest.er1
18373 grep -v '^ *+' conftest.er1
>conftest.err
18375 cat conftest.err
>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
18378 { ac_try
='test -z "$ac_c_werror_flag"
18379 || test ! -s conftest.err'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try
='test -s conftest.$ac_objext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_member_struct_stat_st_blocks
=yes
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.
$ac_ext >&5
18396 ac_cv_member_struct_stat_st_blocks
=no
18398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18402 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18403 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18404 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18406 cat >>confdefs.h
<<_ACEOF
18407 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18411 cat >>confdefs.h
<<\_ACEOF
18412 #define HAVE_ST_BLOCKS 1
18417 "fileblocks.$ac_objext" | \
18418 *" fileblocks.$ac_objext" | \
18419 "fileblocks.$ac_objext "* | \
18420 *" fileblocks.$ac_objext "* ) ;;
18421 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
18428 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18429 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
18430 if test "${ac_cv_header_time_altzone+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 cat >conftest.
$ac_ext <<_ACEOF
18436 cat confdefs.h
>>conftest.
$ac_ext
18437 cat >>conftest.
$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18448 rm -f conftest.
$ac_objext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450 (eval $ac_compile) 2>conftest.er1
18452 grep -v '^ *+' conftest.er1
>conftest.err
18454 cat conftest.err
>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try
='test -z "$ac_c_werror_flag"
18458 || test ! -s conftest.err'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try
='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_header_time_altzone
=yes
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.
$ac_ext >&5
18475 ac_cv_header_time_altzone
=no
18477 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18480 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18481 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
18482 if test $ac_cv_header_time_altzone = yes; then
18484 cat >>confdefs.h
<<\_ACEOF
18485 #define HAVE_ALTZONE 1
18491 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18492 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
18493 cat >conftest.
$ac_ext <<_ACEOF
18496 cat confdefs.h
>>conftest.
$ac_ext
18497 cat >>conftest.
$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18500 #include <sys/types.h>
18501 #include <sys/select.h>
18502 #include <sys/time.h>
18512 rm -f conftest.
$ac_objext
18513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18514 (eval $ac_compile) 2>conftest.er1
18516 grep -v '^ *+' conftest.er1
>conftest.err
18518 cat conftest.err
>&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try
='test -z "$ac_c_werror_flag"
18522 || test ! -s conftest.err'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try
='test -s conftest.$ac_objext'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18536 cat >>confdefs.h
<<\_ACEOF
18537 #define SYS_SELECT_WITH_SYS_TIME 1
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.
$ac_ext >&5
18547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18548 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18549 echo "${ECHO_T}$was_it_defined" >&6
18551 echo "$as_me:$LINENO: checking for addrinfo" >&5
18552 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18553 if test "${ac_cv_struct_addrinfo+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18556 cat >conftest.
$ac_ext <<_ACEOF
18559 cat confdefs.h
>>conftest.
$ac_ext
18560 cat >>conftest.
$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18563 # include <netdb.h>
18572 rm -f conftest.
$ac_objext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18574 (eval $ac_compile) 2>conftest.er1
18576 grep -v '^ *+' conftest.er1
>conftest.err
18578 cat conftest.err
>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try
='test -z "$ac_c_werror_flag"
18582 || test ! -s conftest.err'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try
='test -s conftest.$ac_objext'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_cv_struct_addrinfo
=yes
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.
$ac_ext >&5
18599 ac_cv_struct_addrinfo
=no
18601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18604 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18605 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18606 if test $ac_cv_struct_addrinfo = yes; then
18608 cat >>confdefs.h
<<\_ACEOF
18609 #define HAVE_ADDRINFO 1
18614 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18615 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18616 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 cat >conftest.
$ac_ext <<_ACEOF
18622 cat confdefs.h
>>conftest.
$ac_ext
18623 cat >>conftest.
$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18626 # include <sys/types.h>
18627 # include <sys/socket.h>
18631 struct sockaddr_storage s
18636 rm -f conftest.
$ac_objext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18638 (eval $ac_compile) 2>conftest.er1
18640 grep -v '^ *+' conftest.er1
>conftest.err
18642 cat conftest.err
>&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } &&
18645 { ac_try
='test -z "$ac_c_werror_flag"
18646 || test ! -s conftest.err'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; } &&
18652 { ac_try
='test -s conftest.$ac_objext'
18653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 ac_cv_struct_sockaddr_storage
=yes
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.
$ac_ext >&5
18663 ac_cv_struct_sockaddr_storage
=no
18665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18668 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18669 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18670 if test $ac_cv_struct_sockaddr_storage = yes; then
18672 cat >>confdefs.h
<<\_ACEOF
18673 #define HAVE_SOCKADDR_STORAGE 1
18678 # checks for compiler characteristics
18681 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18682 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18683 if test "${ac_cv_c_char_unsigned+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 cat >conftest.
$ac_ext <<_ACEOF
18689 cat confdefs.h
>>conftest.
$ac_ext
18690 cat >>conftest.
$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 $ac_includes_default
18696 static int test_array [1 - 2 * !(((char) -1) < 0)];
18703 rm -f conftest.
$ac_objext
18704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18705 (eval $ac_compile) 2>conftest.er1
18707 grep -v '^ *+' conftest.er1
>conftest.err
18709 cat conftest.err
>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
18712 { ac_try
='test -z "$ac_c_werror_flag"
18713 || test ! -s conftest.err'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try
='test -s conftest.$ac_objext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 ac_cv_c_char_unsigned
=no
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.
$ac_ext >&5
18730 ac_cv_c_char_unsigned
=yes
18732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18734 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18735 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18736 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18737 cat >>confdefs.h
<<\_ACEOF
18738 #define __CHAR_UNSIGNED__ 1
18743 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18744 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18745 if test "${ac_cv_c_const+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 cat >conftest.
$ac_ext <<_ACEOF
18751 cat confdefs.h
>>conftest.
$ac_ext
18752 cat >>conftest.
$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18758 /* FIXME: Include the comments suggested by Paul. */
18759 #ifndef __cplusplus
18760 /* Ultrix mips cc rejects this. */
18761 typedef int charset[2];
18763 /* SunOS 4.1.1 cc rejects this. */
18764 char const *const *ccp;
18766 /* NEC SVR4.0.2 mips cc rejects this. */
18767 struct point {int x, y;};
18768 static struct point const zero = {0,0};
18769 /* AIX XL C 1.02.0.0 rejects this.
18770 It does not let you subtract one const X* pointer from another in
18771 an arm of an if-expression whose if-part is not a constant
18773 const char *g = "string";
18774 ccp = &g + (g ? g-g : 0);
18775 /* HPUX 7.0 cc rejects these. */
18778 ccp = (char const *const *) p;
18779 { /* SCO 3.2v4 cc rejects this. */
18781 char const *s = 0 ? (char *) 0 : (char const *) 0;
18785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18786 int x[] = {25, 17};
18787 const int *foo = &x[0];
18790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18791 typedef const int *iptr;
18795 { /* AIX XL C 1.02.0.0 rejects this saying
18796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18797 struct s { int j; const int *ap[3]; };
18798 struct s *b; b->j = 5;
18800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18801 const int foo = 10;
18809 rm -f conftest.
$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18813 grep -v '^ *+' conftest.er1
>conftest.err
18815 cat conftest.err
>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try
='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try
='test -s conftest.$ac_objext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.
$ac_ext >&5
18838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18840 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18841 echo "${ECHO_T}$ac_cv_c_const" >&6
18842 if test $ac_cv_c_const = no
; then
18844 cat >>confdefs.h
<<\_ACEOF
18852 echo "$as_me:$LINENO: checking for working volatile" >&5
18853 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18854 cat >conftest.
$ac_ext <<_ACEOF
18857 cat confdefs.h
>>conftest.
$ac_ext
18858 cat >>conftest.
$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18864 volatile int x; x = 0;
18869 rm -f conftest.
$ac_objext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18871 (eval $ac_compile) 2>conftest.er1
18873 grep -v '^ *+' conftest.er1
>conftest.err
18875 cat conftest.err
>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try
='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try
='test -s conftest.$ac_objext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.
$ac_ext >&5
18897 cat >>confdefs.h
<<\_ACEOF
18903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18904 echo "$as_me:$LINENO: result: $works" >&5
18905 echo "${ECHO_T}$works" >&6
18908 echo "$as_me:$LINENO: checking for working signed char" >&5
18909 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18910 cat >conftest.
$ac_ext <<_ACEOF
18913 cat confdefs.h
>>conftest.
$ac_ext
18914 cat >>conftest.
$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18925 rm -f conftest.
$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>conftest.er1
18929 grep -v '^ *+' conftest.er1
>conftest.err
18931 cat conftest.err
>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try
='test -z "$ac_c_werror_flag"
18935 || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try
='test -s conftest.$ac_objext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.
$ac_ext >&5
18953 cat >>confdefs.h
<<\_ACEOF
18959 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18960 echo "$as_me:$LINENO: result: $works" >&5
18961 echo "${ECHO_T}$works" >&6
18964 echo "$as_me:$LINENO: checking for prototypes" >&5
18965 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18966 cat >conftest.
$ac_ext <<_ACEOF
18969 cat confdefs.h
>>conftest.
$ac_ext
18970 cat >>conftest.
$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 int foo(int x) { return 0; }
18981 rm -f conftest.
$ac_objext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18983 (eval $ac_compile) 2>conftest.er1
18985 grep -v '^ *+' conftest.er1
>conftest.err
18987 cat conftest.err
>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
18990 { ac_try
='test -z "$ac_c_werror_flag"
18991 || test ! -s conftest.err'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try
='test -s conftest.$ac_objext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19005 cat >>confdefs.h
<<\_ACEOF
19006 #define HAVE_PROTOTYPES 1
19009 have_prototypes
=yes
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.
$ac_ext >&5
19016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19017 echo "$as_me:$LINENO: result: $have_prototypes" >&5
19018 echo "${ECHO_T}$have_prototypes" >&6
19021 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19022 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
19023 cat >conftest.
$ac_ext <<_ACEOF
19026 cat confdefs.h
>>conftest.
$ac_ext
19027 cat >>conftest.
$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 #include <stdarg.h>
19031 int foo(int x, ...) {
19035 va_arg(va, char *);
19036 va_arg(va, double);
19043 return foo(10, "", 3.14);
19048 rm -f conftest.
$ac_objext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19050 (eval $ac_compile) 2>conftest.er1
19052 grep -v '^ *+' conftest.er1
>conftest.err
19054 cat conftest.err
>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } &&
19057 { ac_try
='test -z "$ac_c_werror_flag"
19058 || test ! -s conftest.err'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; } &&
19064 { ac_try
='test -s conftest.$ac_objext'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; }; then
19072 cat >>confdefs.h
<<\_ACEOF
19073 #define HAVE_STDARG_PROTOTYPES 1
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.
$ac_ext >&5
19083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19084 echo "$as_me:$LINENO: result: $works" >&5
19085 echo "${ECHO_T}$works" >&6
19087 # check for socketpair
19088 echo "$as_me:$LINENO: checking for socketpair" >&5
19089 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
19090 cat >conftest.
$ac_ext <<_ACEOF
19093 cat confdefs.h
>>conftest.
$ac_ext
19094 cat >>conftest.
$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19097 #include <sys/types.h>
19098 #include <sys/socket.h>
19108 rm -f conftest.
$ac_objext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>conftest.er1
19112 grep -v '^ *+' conftest.er1
>conftest.err
19114 cat conftest.err
>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try
='test -z "$ac_c_werror_flag"
19118 || test ! -s conftest.err'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try
='test -s conftest.$ac_objext'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19131 cat >>confdefs.h
<<\_ACEOF
19132 #define HAVE_SOCKETPAIR 1
19135 echo "$as_me:$LINENO: result: yes" >&5
19136 echo "${ECHO_T}yes" >&6
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.
$ac_ext >&5
19141 echo "$as_me:$LINENO: result: no" >&5
19142 echo "${ECHO_T}no" >&6
19145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19147 # check if sockaddr has sa_len member
19148 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19149 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
19150 cat >conftest.
$ac_ext <<_ACEOF
19153 cat confdefs.h
>>conftest.
$ac_ext
19154 cat >>conftest.
$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 #include <sys/types.h>
19157 #include <sys/socket.h>
19167 rm -f conftest.
$ac_objext
19168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19169 (eval $ac_compile) 2>conftest.er1
19171 grep -v '^ *+' conftest.er1
>conftest.err
19173 cat conftest.err
>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try
='test -z "$ac_c_werror_flag"
19177 || test ! -s conftest.err'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try
='test -s conftest.$ac_objext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19189 echo "$as_me:$LINENO: result: yes" >&5
19190 echo "${ECHO_T}yes" >&6
19192 cat >>confdefs.h
<<\_ACEOF
19193 #define HAVE_SOCKADDR_SA_LEN 1
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.
$ac_ext >&5
19200 echo "$as_me:$LINENO: result: no" >&5
19201 echo "${ECHO_T}no" >&6
19203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19205 va_list_is_array
=no
19206 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19207 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
19208 cat >conftest.
$ac_ext <<_ACEOF
19211 cat confdefs.h
>>conftest.
$ac_ext
19212 cat >>conftest.
$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19215 #ifdef HAVE_STDARG_PROTOTYPES
19216 #include <stdarg.h>
19218 #include <varargs.h>
19224 va_list list1, list2; list1 = list2;
19229 rm -f conftest.
$ac_objext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231 (eval $ac_compile) 2>conftest.er1
19233 grep -v '^ *+' conftest.er1
>conftest.err
19235 cat conftest.err
>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
19238 { ac_try
='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try
='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.
$ac_ext >&5
19258 cat >>confdefs.h
<<\_ACEOF
19259 #define VA_LIST_IS_ARRAY 1
19262 va_list_is_array
=yes
19265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19266 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19267 echo "${ECHO_T}$va_list_is_array" >&6
19269 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19273 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19274 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
19275 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 cat >conftest.
$ac_ext <<_ACEOF
19281 cat confdefs.h
>>conftest.
$ac_ext
19282 cat >>conftest.
$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19284 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19286 #define gethostbyname_r innocuous_gethostbyname_r
19288 /* System header to define __stub macros and hopefully few prototypes,
19289 which can conflict with char gethostbyname_r (); below.
19290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19291 <limits.h> exists even on freestanding compilers. */
19294 # include <limits.h>
19296 # include <assert.h>
19299 #undef gethostbyname_r
19301 /* Override any gcc2 internal prototype to avoid an error. */
19306 /* We use char because int might match the return type of a gcc2
19307 builtin and then its argument prototype would still apply. */
19308 char gethostbyname_r ();
19309 /* The GNU C library defines this for functions which it implements
19310 to always fail with ENOSYS. Some functions are actually named
19311 something starting with __ and the normal name is an alias. */
19312 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
19315 char (*f) () = gethostbyname_r;
19324 return f != gethostbyname_r;
19329 rm -f conftest.
$ac_objext conftest
$ac_exeext
19330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331 (eval $ac_link) 2>conftest.er1
19333 grep -v '^ *+' conftest.er1
>conftest.err
19335 cat conftest.err
>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try
='test -z "$ac_c_werror_flag"
19339 || test ! -s conftest.err'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try
='test -s conftest$ac_exeext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_cv_func_gethostbyname_r
=yes
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.
$ac_ext >&5
19356 ac_cv_func_gethostbyname_r
=no
19358 rm -f conftest.err conftest.
$ac_objext \
19359 conftest
$ac_exeext conftest.
$ac_ext
19361 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19362 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
19363 if test $ac_cv_func_gethostbyname_r = yes; then
19365 cat >>confdefs.h
<<\_ACEOF
19366 #define HAVE_GETHOSTBYNAME_R 1
19369 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19370 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
19372 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19373 cat >conftest.
$ac_ext <<_ACEOF
19376 cat confdefs.h
>>conftest.
$ac_ext
19377 cat >>conftest.
$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19380 # include <netdb.h>
19387 struct hostent *he, *res;
19392 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19398 rm -f conftest.
$ac_objext
19399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19400 (eval $ac_compile) 2>conftest.er1
19402 grep -v '^ *+' conftest.er1
>conftest.err
19404 cat conftest.err
>&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
19407 { ac_try
='test -z "$ac_c_werror_flag"
19408 || test ! -s conftest.err'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try
='test -s conftest.$ac_objext'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19421 cat >>confdefs.h
<<\_ACEOF
19422 #define HAVE_GETHOSTBYNAME_R 1
19426 cat >>confdefs.h
<<\_ACEOF
19427 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19430 echo "$as_me:$LINENO: result: yes" >&5
19431 echo "${ECHO_T}yes" >&6
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.
$ac_ext >&5
19438 echo "$as_me:$LINENO: result: no" >&5
19439 echo "${ECHO_T}no" >&6
19440 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19441 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
19442 cat >conftest.
$ac_ext <<_ACEOF
19445 cat confdefs.h
>>conftest.
$ac_ext
19446 cat >>conftest.
$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19449 # include <netdb.h>
19456 struct hostent *he;
19461 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19467 rm -f conftest.
$ac_objext
19468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19469 (eval $ac_compile) 2>conftest.er1
19471 grep -v '^ *+' conftest.er1
>conftest.err
19473 cat conftest.err
>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } &&
19476 { ac_try
='test -z "$ac_c_werror_flag"
19477 || test ! -s conftest.err'
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 (eval $ac_try) 2>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; } &&
19483 { ac_try
='test -s conftest.$ac_objext'
19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; }; then
19490 cat >>confdefs.h
<<\_ACEOF
19491 #define HAVE_GETHOSTBYNAME_R 1
19495 cat >>confdefs.h
<<\_ACEOF
19496 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19499 echo "$as_me:$LINENO: result: yes" >&5
19500 echo "${ECHO_T}yes" >&6
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.
$ac_ext >&5
19507 echo "$as_me:$LINENO: result: no" >&5
19508 echo "${ECHO_T}no" >&6
19509 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19510 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
19511 cat >conftest.
$ac_ext <<_ACEOF
19514 cat confdefs.h
>>conftest.
$ac_ext
19515 cat >>conftest.
$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19518 # include <netdb.h>
19525 struct hostent *he;
19526 struct hostent_data data;
19528 (void) gethostbyname_r(name, he, &data);
19534 rm -f conftest.
$ac_objext
19535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19536 (eval $ac_compile) 2>conftest.er1
19538 grep -v '^ *+' conftest.er1
>conftest.err
19540 cat conftest.err
>&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
19543 { ac_try
='test -z "$ac_c_werror_flag"
19544 || test ! -s conftest.err'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try
='test -s conftest.$ac_objext'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19557 cat >>confdefs.h
<<\_ACEOF
19558 #define HAVE_GETHOSTBYNAME_R 1
19562 cat >>confdefs.h
<<\_ACEOF
19563 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19566 echo "$as_me:$LINENO: result: yes" >&5
19567 echo "${ECHO_T}yes" >&6
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.
$ac_ext >&5
19574 echo "$as_me:$LINENO: result: no" >&5
19575 echo "${ECHO_T}no" >&6
19578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19590 for ac_func
in gethostbyname
19592 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19593 echo "$as_me:$LINENO: checking for $ac_func" >&5
19594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19595 if eval "test \"\${$as_ac_var+set}\" = set"; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 cat >conftest.
$ac_ext <<_ACEOF
19601 cat confdefs.h
>>conftest.
$ac_ext
19602 cat >>conftest.
$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19606 #define $ac_func innocuous_$ac_func
19608 /* System header to define __stub macros and hopefully few prototypes,
19609 which can conflict with char $ac_func (); below.
19610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19611 <limits.h> exists even on freestanding compilers. */
19614 # include <limits.h>
19616 # include <assert.h>
19621 /* Override any gcc2 internal prototype to avoid an error. */
19626 /* We use char because int might match the return type of a gcc2
19627 builtin and then its argument prototype would still apply. */
19629 /* The GNU C library defines this for functions which it implements
19630 to always fail with ENOSYS. Some functions are actually named
19631 something starting with __ and the normal name is an alias. */
19632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19635 char (*f) () = $ac_func;
19644 return f != $ac_func;
19649 rm -f conftest.
$ac_objext conftest
$ac_exeext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651 (eval $ac_link) 2>conftest.er1
19653 grep -v '^ *+' conftest.er1
>conftest.err
19655 cat conftest.err
>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try
='test -z "$ac_c_werror_flag"
19659 || test ! -s conftest.err'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try
='test -s conftest$ac_exeext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 eval "$as_ac_var=yes"
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.
$ac_ext >&5
19676 eval "$as_ac_var=no"
19678 rm -f conftest.err conftest.
$ac_objext \
19679 conftest
$ac_exeext conftest.
$ac_ext
19681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19683 if test `eval echo '${'$as_ac_var'}'` = yes; then
19684 cat >>confdefs.h
<<_ACEOF
19685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19700 # checks for system services
19703 # Linux requires this for correct f.p. operations
19704 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19705 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19706 if test "${ac_cv_func___fpu_control+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 cat >conftest.
$ac_ext <<_ACEOF
19712 cat confdefs.h
>>conftest.
$ac_ext
19713 cat >>conftest.
$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19717 #define __fpu_control innocuous___fpu_control
19719 /* System header to define __stub macros and hopefully few prototypes,
19720 which can conflict with char __fpu_control (); below.
19721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19722 <limits.h> exists even on freestanding compilers. */
19725 # include <limits.h>
19727 # include <assert.h>
19730 #undef __fpu_control
19732 /* Override any gcc2 internal prototype to avoid an error. */
19737 /* We use char because int might match the return type of a gcc2
19738 builtin and then its argument prototype would still apply. */
19739 char __fpu_control ();
19740 /* The GNU C library defines this for functions which it implements
19741 to always fail with ENOSYS. Some functions are actually named
19742 something starting with __ and the normal name is an alias. */
19743 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19746 char (*f) () = __fpu_control;
19755 return f != __fpu_control;
19760 rm -f conftest.
$ac_objext conftest
$ac_exeext
19761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762 (eval $ac_link) 2>conftest.er1
19764 grep -v '^ *+' conftest.er1
>conftest.err
19766 cat conftest.err
>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
19769 { ac_try
='test -z "$ac_c_werror_flag"
19770 || test ! -s conftest.err'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } &&
19776 { ac_try
='test -s conftest$ac_exeext'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_cv_func___fpu_control
=yes
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.
$ac_ext >&5
19787 ac_cv_func___fpu_control
=no
19789 rm -f conftest.err conftest.
$ac_objext \
19790 conftest
$ac_exeext conftest.
$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19793 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19794 if test $ac_cv_func___fpu_control = yes; then
19798 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19799 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19800 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS
=$LIBS
19804 LIBS
="-lieee $LIBS"
19805 cat >conftest.
$ac_ext <<_ACEOF
19808 cat confdefs.h
>>conftest.
$ac_ext
19809 cat >>conftest.
$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any gcc2 internal prototype to avoid an error. */
19816 /* We use char because int might match the return type of a gcc2
19817 builtin and then its argument prototype would still apply. */
19818 char __fpu_control ();
19827 rm -f conftest.
$ac_objext conftest
$ac_exeext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19829 (eval $ac_link) 2>conftest.er1
19831 grep -v '^ *+' conftest.er1
>conftest.err
19833 cat conftest.err
>&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try
='test -z "$ac_c_werror_flag"
19837 || test ! -s conftest.err'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try
='test -s conftest$ac_exeext'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_lib_ieee___fpu_control
=yes
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.
$ac_ext >&5
19854 ac_cv_lib_ieee___fpu_control
=no
19856 rm -f conftest.err conftest.
$ac_objext \
19857 conftest
$ac_exeext conftest.
$ac_ext
19858 LIBS
=$ac_check_lib_save_LIBS
19860 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19861 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19862 if test $ac_cv_lib_ieee___fpu_control = yes; then
19863 cat >>confdefs.h
<<_ACEOF
19864 #define HAVE_LIBIEEE 1
19867 LIBS
="-lieee $LIBS"
19875 # Check for --with-fpectl
19876 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19877 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19879 # Check whether --with-fpectl or --without-fpectl was given.
19880 if test "${with_fpectl+set}" = set; then
19881 withval
="$with_fpectl"
19883 if test "$withval" != no
19886 cat >>confdefs.h
<<\_ACEOF
19887 #define WANT_SIGFPE_HANDLER 1
19890 echo "$as_me:$LINENO: result: yes" >&5
19891 echo "${ECHO_T}yes" >&6
19892 else echo "$as_me:$LINENO: result: no" >&5
19893 echo "${ECHO_T}no" >&6
19896 echo "$as_me:$LINENO: result: no" >&5
19897 echo "${ECHO_T}no" >&6
19900 # check for --with-libm=...
19902 case $ac_sys_system in
19907 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19908 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19910 # Check whether --with-libm or --without-libm was given.
19911 if test "${with_libm+set}" = set; then
19912 withval
="$with_libm"
19914 if test "$withval" = no
19916 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19917 echo "${ECHO_T}force LIBM empty" >&6
19918 elif test "$withval" != yes
19920 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19921 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19922 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19923 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19924 { (exit 1); exit 1; }; }
19927 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19928 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19931 # check for --with-libc=...
19933 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19934 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19936 # Check whether --with-libc or --without-libc was given.
19937 if test "${with_libc+set}" = set; then
19938 withval
="$with_libc"
19940 if test "$withval" = no
19942 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19943 echo "${ECHO_T}force LIBC empty" >&6
19944 elif test "$withval" != yes
19946 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19947 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19948 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19949 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19950 { (exit 1); exit 1; }; }
19953 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19954 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19957 # check for hypot() in math library
19961 for ac_func
in hypot
19963 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19964 echo "$as_me:$LINENO: checking for $ac_func" >&5
19965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19966 if eval "test \"\${$as_ac_var+set}\" = set"; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 cat >conftest.
$ac_ext <<_ACEOF
19972 cat confdefs.h
>>conftest.
$ac_ext
19973 cat >>conftest.
$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19977 #define $ac_func innocuous_$ac_func
19979 /* System header to define __stub macros and hopefully few prototypes,
19980 which can conflict with char $ac_func (); below.
19981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19982 <limits.h> exists even on freestanding compilers. */
19985 # include <limits.h>
19987 # include <assert.h>
19992 /* Override any gcc2 internal prototype to avoid an error. */
19997 /* We use char because int might match the return type of a gcc2
19998 builtin and then its argument prototype would still apply. */
20000 /* The GNU C library defines this for functions which it implements
20001 to always fail with ENOSYS. Some functions are actually named
20002 something starting with __ and the normal name is an alias. */
20003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20006 char (*f) () = $ac_func;
20015 return f != $ac_func;
20020 rm -f conftest.
$ac_objext conftest
$ac_exeext
20021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20022 (eval $ac_link) 2>conftest.er1
20024 grep -v '^ *+' conftest.er1
>conftest.err
20026 cat conftest.err
>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try
='test -z "$ac_c_werror_flag"
20030 || test ! -s conftest.err'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try
='test -s conftest$ac_exeext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 eval "$as_ac_var=yes"
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.
$ac_ext >&5
20047 eval "$as_ac_var=no"
20049 rm -f conftest.err conftest.
$ac_objext \
20050 conftest
$ac_exeext conftest.
$ac_ext
20052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20054 if test `eval echo '${'$as_ac_var'}'` = yes; then
20055 cat >>confdefs.h
<<_ACEOF
20056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20061 "$ac_func.$ac_objext" | \
20062 *" $ac_func.$ac_objext" | \
20063 "$ac_func.$ac_objext "* | \
20064 *" $ac_func.$ac_objext "* ) ;;
20065 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
20074 # check for wchar.h
20075 if test "${ac_cv_header_wchar_h+set}" = set; then
20076 echo "$as_me:$LINENO: checking for wchar.h" >&5
20077 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20078 if test "${ac_cv_header_wchar_h+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20082 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20084 # Is the header compilable?
20085 echo "$as_me:$LINENO: checking wchar.h usability" >&5
20086 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
20087 cat >conftest.
$ac_ext <<_ACEOF
20090 cat confdefs.h
>>conftest.
$ac_ext
20091 cat >>conftest.
$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093 $ac_includes_default
20096 rm -f conftest.
$ac_objext
20097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20098 (eval $ac_compile) 2>conftest.er1
20100 grep -v '^ *+' conftest.er1
>conftest.err
20102 cat conftest.err
>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try
='test -z "$ac_c_werror_flag"
20106 || test ! -s conftest.err'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try
='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_header_compiler
=yes
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.
$ac_ext >&5
20123 ac_header_compiler
=no
20125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20127 echo "${ECHO_T}$ac_header_compiler" >&6
20129 # Is the header present?
20130 echo "$as_me:$LINENO: checking wchar.h presence" >&5
20131 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
20132 cat >conftest.
$ac_ext <<_ACEOF
20135 cat confdefs.h
>>conftest.
$ac_ext
20136 cat >>conftest.
$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20141 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20143 grep -v '^ *+' conftest.er1
>conftest.err
20145 cat conftest.err
>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } >/dev
/null
; then
20148 if test -s conftest.err
; then
20149 ac_cpp_err
=$ac_c_preproc_warn_flag
20150 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20157 if test -z "$ac_cpp_err"; then
20158 ac_header_preproc
=yes
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.
$ac_ext >&5
20163 ac_header_preproc
=no
20165 rm -f conftest.err conftest.
$ac_ext
20166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20167 echo "${ECHO_T}$ac_header_preproc" >&6
20169 # So? What about this header?
20170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20172 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20173 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20174 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20175 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20176 ac_header_preproc
=yes
20179 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20180 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20182 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20183 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20184 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20186 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20188 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20190 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20193 ## ------------------------------------------------ ##
20194 ## Report this to http://www.python.org/python-bugs ##
20195 ## ------------------------------------------------ ##
20198 sed "s/^/$as_me: WARNING: /" >&2
20201 echo "$as_me:$LINENO: checking for wchar.h" >&5
20202 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20203 if test "${ac_cv_header_wchar_h+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 ac_cv_header_wchar_h
=$ac_header_preproc
20208 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20209 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20212 if test $ac_cv_header_wchar_h = yes; then
20215 cat >>confdefs.h
<<\_ACEOF
20216 #define HAVE_WCHAR_H 1
20228 # determine wchar_t size
20229 if test "$wchar_h" = yes
20231 echo "$as_me:$LINENO: checking for wchar_t" >&5
20232 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20233 if test "${ac_cv_type_wchar_t+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 cat >conftest.
$ac_ext <<_ACEOF
20239 cat confdefs.h
>>conftest.
$ac_ext
20240 cat >>conftest.
$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20249 if (sizeof (wchar_t))
20255 rm -f conftest.
$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20259 grep -v '^ *+' conftest.er1
>conftest.err
20261 cat conftest.err
>&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try
='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try
='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_cv_type_wchar_t
=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.
$ac_ext >&5
20282 ac_cv_type_wchar_t
=no
20284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20286 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20287 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20289 echo "$as_me:$LINENO: checking size of wchar_t" >&5
20290 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20291 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20294 if test "$ac_cv_type_wchar_t" = yes; then
20295 # The cast to unsigned long works around a bug in the HP C Compiler
20296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20298 # This bug is HP SR number 8606223364.
20299 if test "$cross_compiling" = yes; then
20300 # Depending upon the size, compute the lo and hi bounds.
20301 cat >conftest.
$ac_ext <<_ACEOF
20304 cat confdefs.h
>>conftest.
$ac_ext
20305 cat >>conftest.
$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20312 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20319 rm -f conftest.
$ac_objext
20320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20321 (eval $ac_compile) 2>conftest.er1
20323 grep -v '^ *+' conftest.er1
>conftest.err
20325 cat conftest.err
>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } &&
20328 { ac_try
='test -z "$ac_c_werror_flag"
20329 || test ! -s conftest.err'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try
='test -s conftest.$ac_objext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20343 cat >conftest.
$ac_ext <<_ACEOF
20346 cat confdefs.h
>>conftest.
$ac_ext
20347 cat >>conftest.
$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20354 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20361 rm -f conftest.
$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>conftest.er1
20365 grep -v '^ *+' conftest.er1
>conftest.err
20367 cat conftest.err
>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try
='test -z "$ac_c_werror_flag"
20371 || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try
='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_hi
=$ac_mid; break
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.
$ac_ext >&5
20388 ac_lo
=`expr $ac_mid + 1`
20389 if test $ac_lo -le $ac_mid; then
20393 ac_mid
=`expr 2 '*' $ac_mid + 1`
20395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.
$ac_ext >&5
20401 cat >conftest.
$ac_ext <<_ACEOF
20404 cat confdefs.h
>>conftest.
$ac_ext
20405 cat >>conftest.
$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20412 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20419 rm -f conftest.
$ac_objext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20423 grep -v '^ *+' conftest.er1
>conftest.err
20425 cat conftest.err
>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try
='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try
='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20443 cat >conftest.
$ac_ext <<_ACEOF
20446 cat confdefs.h
>>conftest.
$ac_ext
20447 cat >>conftest.
$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20454 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20461 rm -f conftest.
$ac_objext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20463 (eval $ac_compile) 2>conftest.er1
20465 grep -v '^ *+' conftest.er1
>conftest.err
20467 cat conftest.err
>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try
='test -z "$ac_c_werror_flag"
20471 || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try
='test -s conftest.$ac_objext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_lo
=$ac_mid; break
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.
$ac_ext >&5
20488 ac_hi
=`expr '(' $ac_mid ')' - 1`
20489 if test $ac_mid -le $ac_hi; then
20493 ac_mid
=`expr 2 '*' $ac_mid`
20495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.
$ac_ext >&5
20503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20505 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20506 # Binary search between lo and hi bounds.
20507 while test "x$ac_lo" != "x$ac_hi"; do
20508 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20509 cat >conftest.
$ac_ext <<_ACEOF
20512 cat confdefs.h
>>conftest.
$ac_ext
20513 cat >>conftest.
$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20520 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20527 rm -f conftest.
$ac_objext
20528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529 (eval $ac_compile) 2>conftest.er1
20531 grep -v '^ *+' conftest.er1
>conftest.err
20533 cat conftest.err
>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
20536 { ac_try
='test -z "$ac_c_werror_flag"
20537 || test ! -s conftest.err'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try
='test -s conftest.$ac_objext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.
$ac_ext >&5
20554 ac_lo
=`expr '(' $ac_mid ')' + 1`
20556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20559 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
20560 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20561 See \`config.log' for more details." >&5
20562 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20563 See \`config.log' for more details." >&2;}
20564 { (exit 1); exit 1; }; } ;;
20567 if test "$cross_compiling" = yes; then
20568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20569 See \`config.log' for more details." >&5
20570 echo "$as_me: error: cannot run test program while cross compiling
20571 See \`config.log' for more details." >&2;}
20572 { (exit 1); exit 1; }; }
20574 cat >conftest.
$ac_ext <<_ACEOF
20577 cat confdefs.h
>>conftest.
$ac_ext
20578 cat >>conftest.
$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20582 long longval () { return (long) (sizeof (wchar_t)); }
20583 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20585 #include <stdlib.h>
20590 FILE *f = fopen ("conftest.val", "w");
20593 if (((long) (sizeof (wchar_t))) < 0)
20595 long i = longval ();
20596 if (i != ((long) (sizeof (wchar_t))))
20598 fprintf (f, "%ld\n", i);
20602 unsigned long i = ulongval ();
20603 if (i != ((long) (sizeof (wchar_t))))
20605 fprintf (f, "%lu\n", i);
20607 exit (ferror (f) || fclose (f) != 0);
20613 rm -f conftest
$ac_exeext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20615 (eval $ac_link) 2>&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_sizeof_wchar_t
=`cat conftest.val`
20626 echo "$as_me: program exited with status $ac_status" >&5
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.
$ac_ext >&5
20630 ( exit $ac_status )
20631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20632 See \`config.log' for more details." >&5
20633 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20634 See \`config.log' for more details." >&2;}
20635 { (exit 1); exit 1; }; }
20637 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20642 ac_cv_sizeof_wchar_t
=0
20645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20646 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20647 cat >>confdefs.h
<<_ACEOF
20648 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20654 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20655 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20657 cat >conftest.
$ac_ext <<_ACEOF
20660 cat confdefs.h
>>conftest.
$ac_ext
20661 cat >>conftest.
$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20665 #if TCL_UTF_MAX != 6
20666 # error "NOT UCS4_TCL"
20676 rm -f conftest.
$ac_objext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20678 (eval $ac_compile) 2>conftest.er1
20680 grep -v '^ *+' conftest.er1
>conftest.err
20682 cat conftest.err
>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try
='test -z "$ac_c_werror_flag"
20686 || test ! -s conftest.err'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try
='test -s conftest.$ac_objext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20700 cat >>confdefs.h
<<\_ACEOF
20701 #define HAVE_UCS4_TCL 1
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.
$ac_ext >&5
20711 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20712 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20713 echo "${ECHO_T}$have_ucs4_tcl" >&6
20715 # check whether wchar_t is signed or not
20716 if test "$wchar_h" = yes
20718 # check whether wchar_t is signed or not
20719 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20720 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20721 if test "${ac_cv_wchar_t_signed+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20725 if test "$cross_compiling" = yes; then
20726 ac_cv_wchar_t_signed
=yes
20728 cat >conftest.
$ac_ext <<_ACEOF
20731 cat confdefs.h
>>conftest.
$ac_ext
20732 cat >>conftest.
$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20738 /* Success: exit code 0 */
20739 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20743 rm -f conftest
$ac_exeext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20745 (eval $ac_link) 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 ac_cv_wchar_t_signed
=yes
20756 echo "$as_me: program exited with status $ac_status" >&5
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.
$ac_ext >&5
20760 ( exit $ac_status )
20761 ac_cv_wchar_t_signed
=no
20763 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20767 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20768 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20771 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20772 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20773 # Check whether --enable-unicode or --disable-unicode was given.
20774 if test "${enable_unicode+set}" = set; then
20775 enableval
="$enable_unicode"
20781 if test $enable_unicode = yes
20783 # Without any arguments, Py_UNICODE defaults to two-byte mode
20784 case "$have_ucs4_tcl" in
20785 yes) enable_unicode
="ucs4"
20787 *) enable_unicode
="ucs2"
20794 case "$enable_unicode" in
20795 ucs2
) unicode_size
="2"
20796 cat >>confdefs.h
<<\_ACEOF
20797 #define Py_UNICODE_SIZE 2
20801 ucs4
) unicode_size
="4"
20802 cat >>confdefs.h
<<\_ACEOF
20803 #define Py_UNICODE_SIZE 4
20813 if test "$enable_unicode" = "no"
20816 echo "$as_me:$LINENO: result: not used" >&5
20817 echo "${ECHO_T}not used" >&6
20819 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20821 cat >>confdefs.h
<<\_ACEOF
20822 #define Py_USING_UNICODE 1
20826 # wchar_t is only usable if it maps to an unsigned type
20827 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20828 -a "$ac_cv_wchar_t_signed" = "no"
20830 PY_UNICODE_TYPE
="wchar_t"
20832 cat >>confdefs.h
<<\_ACEOF
20833 #define HAVE_USABLE_WCHAR_T 1
20836 cat >>confdefs.h
<<\_ACEOF
20837 #define PY_UNICODE_TYPE wchar_t
20840 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20842 PY_UNICODE_TYPE
="unsigned short"
20843 cat >>confdefs.h
<<\_ACEOF
20844 #define PY_UNICODE_TYPE unsigned short
20847 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20849 PY_UNICODE_TYPE
="unsigned long"
20850 cat >>confdefs.h
<<\_ACEOF
20851 #define PY_UNICODE_TYPE unsigned long
20855 PY_UNICODE_TYPE
="no type found"
20857 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20858 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20861 # check for endianness
20862 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20863 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20864 if test "${ac_cv_c_bigendian+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 # See if sys/param.h defines the BYTE_ORDER macro.
20868 cat >conftest.
$ac_ext <<_ACEOF
20871 cat confdefs.h
>>conftest.
$ac_ext
20872 cat >>conftest.
$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 #include <sys/types.h>
20875 #include <sys/param.h>
20880 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20881 bogus endian macros
20888 rm -f conftest.
$ac_objext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890 (eval $ac_compile) 2>conftest.er1
20892 grep -v '^ *+' conftest.er1
>conftest.err
20894 cat conftest.err
>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try
='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try
='test -s conftest.$ac_objext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 # It does; now see whether it defined to BIG_ENDIAN or not.
20911 cat >conftest.
$ac_ext <<_ACEOF
20914 cat confdefs.h
>>conftest.
$ac_ext
20915 cat >>conftest.
$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 #include <sys/types.h>
20918 #include <sys/param.h>
20923 #if BYTE_ORDER != BIG_ENDIAN
20931 rm -f conftest.
$ac_objext
20932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20933 (eval $ac_compile) 2>conftest.er1
20935 grep -v '^ *+' conftest.er1
>conftest.err
20937 cat conftest.err
>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } &&
20940 { ac_try
='test -z "$ac_c_werror_flag"
20941 || test ! -s conftest.err'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; } &&
20947 { ac_try
='test -s conftest.$ac_objext'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 ac_cv_c_bigendian
=yes
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.
$ac_ext >&5
20958 ac_cv_c_bigendian
=no
20960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.
$ac_ext >&5
20965 # It does not; compile a test program.
20966 if test "$cross_compiling" = yes; then
20967 # try to guess the endianness by grepping values into an object file
20968 ac_cv_c_bigendian
=unknown
20969 cat >conftest.
$ac_ext <<_ACEOF
20972 cat confdefs.h
>>conftest.
$ac_ext
20973 cat >>conftest.
$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20976 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20977 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20978 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20979 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20980 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20984 _ascii (); _ebcdic ();
20989 rm -f conftest.
$ac_objext
20990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20991 (eval $ac_compile) 2>conftest.er1
20993 grep -v '^ *+' conftest.er1
>conftest.err
20995 cat conftest.err
>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try
='test -z "$ac_c_werror_flag"
20999 || test ! -s conftest.err'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try
='test -s conftest.$ac_objext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
21012 ac_cv_c_bigendian
=yes
21014 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
21015 if test "$ac_cv_c_bigendian" = unknown
; then
21016 ac_cv_c_bigendian
=no
21018 # finding both strings is unlikely to happen, but who knows?
21019 ac_cv_c_bigendian
=unknown
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.
$ac_ext >&5
21027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21029 cat >conftest.
$ac_ext <<_ACEOF
21032 cat confdefs.h
>>conftest.
$ac_ext
21033 cat >>conftest.
$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21038 /* Are we little or big endian? From Harbison&Steele. */
21042 char c[sizeof (long)];
21045 exit (u.c[sizeof (long) - 1] == 1);
21048 rm -f conftest
$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; }; then
21059 ac_cv_c_bigendian
=no
21061 echo "$as_me: program exited with status $ac_status" >&5
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.
$ac_ext >&5
21065 ( exit $ac_status )
21066 ac_cv_c_bigendian
=yes
21068 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21073 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21074 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21075 case $ac_cv_c_bigendian in
21078 cat >>confdefs.h
<<\_ACEOF
21079 #define WORDS_BIGENDIAN 1
21085 { { echo "$as_me:$LINENO: error: unknown endianness
21086 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21087 echo "$as_me: error: unknown endianness
21088 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21089 { (exit 1); exit 1; }; } ;;
21095 # Check whether right shifting a negative integer extends the sign bit
21096 # or fills with zeros (like the Cray J90, according to Tim Peters).
21097 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21098 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
21099 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 if test "$cross_compiling" = yes; then
21104 ac_cv_rshift_extends_sign
=yes
21106 cat >conftest.
$ac_ext <<_ACEOF
21109 cat confdefs.h
>>conftest.
$ac_ext
21110 cat >>conftest.
$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21115 exit(((-1)>>3 == -1) ? 0 : 1);
21119 rm -f conftest
$ac_exeext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21121 (eval $ac_link) 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_cv_rshift_extends_sign
=yes
21132 echo "$as_me: program exited with status $ac_status" >&5
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.
$ac_ext >&5
21136 ( exit $ac_status )
21137 ac_cv_rshift_extends_sign
=no
21139 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21143 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21144 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
21145 if test "$ac_cv_rshift_extends_sign" = no
21148 cat >>confdefs.h
<<\_ACEOF
21149 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21154 # check for getc_unlocked and related locking functions
21155 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21156 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
21157 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21161 cat >conftest.
$ac_ext <<_ACEOF
21164 cat confdefs.h
>>conftest.
$ac_ext
21165 cat >>conftest.
$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21172 FILE *f = fopen("/dev/null", "r");
21181 rm -f conftest.
$ac_objext conftest
$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>conftest.er1
21185 grep -v '^ *+' conftest.er1
>conftest.err
21187 cat conftest.err
>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try
='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try
='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_have_getc_unlocked
=yes
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.
$ac_ext >&5
21208 ac_cv_have_getc_unlocked
=no
21210 rm -f conftest.err conftest.
$ac_objext \
21211 conftest
$ac_exeext conftest.
$ac_ext
21214 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21215 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
21216 if test "$ac_cv_have_getc_unlocked" = yes
21219 cat >>confdefs.h
<<\_ACEOF
21220 #define HAVE_GETC_UNLOCKED 1
21225 # check where readline lives
21226 # save the value of LIBS so we don't actually link Python with readline
21227 LIBS_no_readline
=$LIBS
21229 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21230 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
21231 if test "${ac_cv_lib_readline_readline+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 ac_check_lib_save_LIBS
=$LIBS
21235 LIBS
="-lreadline $LIBS"
21236 cat >conftest.
$ac_ext <<_ACEOF
21239 cat confdefs.h
>>conftest.
$ac_ext
21240 cat >>conftest.
$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21243 /* Override any gcc2 internal prototype to avoid an error. */
21247 /* We use char because int might match the return type of a gcc2
21248 builtin and then its argument prototype would still apply. */
21258 rm -f conftest.
$ac_objext conftest
$ac_exeext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260 (eval $ac_link) 2>conftest.er1
21262 grep -v '^ *+' conftest.er1
>conftest.err
21264 cat conftest.err
>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try
='test -z "$ac_c_werror_flag"
21268 || test ! -s conftest.err'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try
='test -s conftest$ac_exeext'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ac_cv_lib_readline_readline
=yes
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.
$ac_ext >&5
21285 ac_cv_lib_readline_readline
=no
21287 rm -f conftest.err conftest.
$ac_objext \
21288 conftest
$ac_exeext conftest.
$ac_ext
21289 LIBS
=$ac_check_lib_save_LIBS
21291 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21292 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
21293 if test $ac_cv_lib_readline_readline = yes; then
21294 cat >>confdefs.h
<<_ACEOF
21295 #define HAVE_LIBREADLINE 1
21298 LIBS
="-lreadline $LIBS"
21302 if test "$ac_cv_have_readline_readline" = no
21305 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21306 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
21307 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21310 ac_check_lib_save_LIBS
=$LIBS
21311 LIBS
="-ltermcap $LIBS"
21312 cat >conftest.
$ac_ext <<_ACEOF
21315 cat confdefs.h
>>conftest.
$ac_ext
21316 cat >>conftest.
$ac_ext <<_ACEOF
21317 /* end confdefs.h. */
21319 /* Override any gcc2 internal prototype to avoid an error. */
21323 /* We use char because int might match the return type of a gcc2
21324 builtin and then its argument prototype would still apply. */
21334 rm -f conftest.
$ac_objext conftest
$ac_exeext
21335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21336 (eval $ac_link) 2>conftest.er1
21338 grep -v '^ *+' conftest.er1
>conftest.err
21340 cat conftest.err
>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
21343 { ac_try
='test -z "$ac_c_werror_flag"
21344 || test ! -s conftest.err'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try
='test -s conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_lib_termcap_readline
=yes
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.
$ac_ext >&5
21361 ac_cv_lib_termcap_readline
=no
21363 rm -f conftest.err conftest.
$ac_objext \
21364 conftest
$ac_exeext conftest.
$ac_ext
21365 LIBS
=$ac_check_lib_save_LIBS
21367 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21368 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
21369 if test $ac_cv_lib_termcap_readline = yes; then
21370 cat >>confdefs.h
<<_ACEOF
21371 #define HAVE_LIBTERMCAP 1
21374 LIBS
="-ltermcap $LIBS"
21380 # check for readline 2.1
21381 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21382 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
21383 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21386 ac_check_lib_save_LIBS
=$LIBS
21387 LIBS
="-lreadline $LIBS"
21388 cat >conftest.
$ac_ext <<_ACEOF
21391 cat confdefs.h
>>conftest.
$ac_ext
21392 cat >>conftest.
$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21395 /* Override any gcc2 internal prototype to avoid an error. */
21399 /* We use char because int might match the return type of a gcc2
21400 builtin and then its argument prototype would still apply. */
21401 char rl_callback_handler_install ();
21405 rl_callback_handler_install ();
21410 rm -f conftest.
$ac_objext conftest
$ac_exeext
21411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21412 (eval $ac_link) 2>conftest.er1
21414 grep -v '^ *+' conftest.er1
>conftest.err
21416 cat conftest.err
>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } &&
21419 { ac_try
='test -z "$ac_c_werror_flag"
21420 || test ! -s conftest.err'
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; } &&
21426 { ac_try
='test -s conftest$ac_exeext'
21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 ac_cv_lib_readline_rl_callback_handler_install
=yes
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.
$ac_ext >&5
21437 ac_cv_lib_readline_rl_callback_handler_install
=no
21439 rm -f conftest.err conftest.
$ac_objext \
21440 conftest
$ac_exeext conftest.
$ac_ext
21441 LIBS
=$ac_check_lib_save_LIBS
21443 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21444 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
21445 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21447 cat >>confdefs.h
<<\_ACEOF
21448 #define HAVE_RL_CALLBACK 1
21454 # check for readline 2.2
21455 cat >conftest.
$ac_ext <<_ACEOF
21458 cat confdefs.h
>>conftest.
$ac_ext
21459 cat >>conftest.
$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <readline/readline.h>
21463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21464 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21466 grep -v '^ *+' conftest.er1
>conftest.err
21468 cat conftest.err
>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } >/dev
/null
; then
21471 if test -s conftest.err
; then
21472 ac_cpp_err
=$ac_c_preproc_warn_flag
21473 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21480 if test -z "$ac_cpp_err"; then
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.
$ac_ext >&5
21488 rm -f conftest.err conftest.
$ac_ext
21489 if test $have_readline = yes
21491 cat >conftest.
$ac_ext <<_ACEOF
21494 cat confdefs.h
>>conftest.
$ac_ext
21495 cat >>conftest.
$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <readline/readline.h>
21500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21501 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
21503 cat >>confdefs.h
<<\_ACEOF
21504 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21512 # check for readline 4.0
21513 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
21514 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
21515 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 ac_check_lib_save_LIBS
=$LIBS
21519 LIBS
="-lreadline $LIBS"
21520 cat >conftest.
$ac_ext <<_ACEOF
21523 cat confdefs.h
>>conftest.
$ac_ext
21524 cat >>conftest.
$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21527 /* Override any gcc2 internal prototype to avoid an error. */
21531 /* We use char because int might match the return type of a gcc2
21532 builtin and then its argument prototype would still apply. */
21533 char rl_pre_input_hook ();
21537 rl_pre_input_hook ();
21542 rm -f conftest.
$ac_objext conftest
$ac_exeext
21543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21544 (eval $ac_link) 2>conftest.er1
21546 grep -v '^ *+' conftest.er1
>conftest.err
21548 cat conftest.err
>&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try
='test -z "$ac_c_werror_flag"
21552 || test ! -s conftest.err'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; } &&
21558 { ac_try
='test -s conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_cv_lib_readline_rl_pre_input_hook
=yes
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.
$ac_ext >&5
21569 ac_cv_lib_readline_rl_pre_input_hook
=no
21571 rm -f conftest.err conftest.
$ac_objext \
21572 conftest
$ac_exeext conftest.
$ac_ext
21573 LIBS
=$ac_check_lib_save_LIBS
21575 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21576 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21577 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21579 cat >>confdefs.h
<<\_ACEOF
21580 #define HAVE_RL_PRE_INPUT_HOOK 1
21586 # check for readline 4.2
21587 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21588 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21589 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 ac_check_lib_save_LIBS
=$LIBS
21593 LIBS
="-lreadline $LIBS"
21594 cat >conftest.
$ac_ext <<_ACEOF
21597 cat confdefs.h
>>conftest.
$ac_ext
21598 cat >>conftest.
$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21601 /* Override any gcc2 internal prototype to avoid an error. */
21605 /* We use char because int might match the return type of a gcc2
21606 builtin and then its argument prototype would still apply. */
21607 char rl_completion_matches ();
21611 rl_completion_matches ();
21616 rm -f conftest.
$ac_objext conftest
$ac_exeext
21617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21618 (eval $ac_link) 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_exeext'
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_lib_readline_rl_completion_matches
=yes
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.
$ac_ext >&5
21643 ac_cv_lib_readline_rl_completion_matches
=no
21645 rm -f conftest.err conftest.
$ac_objext \
21646 conftest
$ac_exeext conftest.
$ac_ext
21647 LIBS
=$ac_check_lib_save_LIBS
21649 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21650 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21651 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21653 cat >>confdefs.h
<<\_ACEOF
21654 #define HAVE_RL_COMPLETION_MATCHES 1
21660 # also in readline 4.2
21661 cat >conftest.
$ac_ext <<_ACEOF
21664 cat confdefs.h
>>conftest.
$ac_ext
21665 cat >>conftest.
$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 #include <readline/readline.h>
21669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21670 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21672 grep -v '^ *+' conftest.er1
>conftest.err
21674 cat conftest.err
>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } >/dev
/null
; then
21677 if test -s conftest.err
; then
21678 ac_cpp_err
=$ac_c_preproc_warn_flag
21679 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21686 if test -z "$ac_cpp_err"; then
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.
$ac_ext >&5
21694 rm -f conftest.err conftest.
$ac_ext
21695 if test $have_readline = yes
21697 cat >conftest.
$ac_ext <<_ACEOF
21700 cat confdefs.h
>>conftest.
$ac_ext
21701 cat >>conftest.
$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include <readline/readline.h>
21706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21707 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21709 cat >>confdefs.h
<<\_ACEOF
21710 #define HAVE_RL_CATCH_SIGNAL 1
21718 # End of readline checks: restore LIBS
21719 LIBS
=$LIBS_no_readline
21721 echo "$as_me:$LINENO: checking for broken nice()" >&5
21722 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21723 if test "${ac_cv_broken_nice+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 if test "$cross_compiling" = yes; then
21728 ac_cv_broken_nice
=no
21730 cat >conftest.
$ac_ext <<_ACEOF
21733 cat confdefs.h
>>conftest.
$ac_ext
21734 cat >>conftest.
$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21739 int val1 = nice(1);
21740 if (val1 != -1 && val1 == nice(2))
21746 rm -f conftest
$ac_exeext
21747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21748 (eval $ac_link) 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_broken_nice
=yes
21759 echo "$as_me: program exited with status $ac_status" >&5
21760 echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.
$ac_ext >&5
21763 ( exit $ac_status )
21764 ac_cv_broken_nice
=no
21766 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21770 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21771 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21772 if test "$ac_cv_broken_nice" = yes
21775 cat >>confdefs.h
<<\_ACEOF
21776 #define HAVE_BROKEN_NICE 1
21781 echo "$as_me:$LINENO: checking for broken poll()" >&5
21782 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21783 if test "$cross_compiling" = yes; then
21784 ac_cv_broken_poll
=no
21786 cat >conftest.
$ac_ext <<_ACEOF
21789 cat confdefs.h
>>conftest.
$ac_ext
21790 cat >>conftest.
$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21797 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21801 int poll_test = poll (&poll_struct, 1, 0);
21807 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21818 rm -f conftest
$ac_exeext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21820 (eval $ac_link) 2>&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21829 ac_cv_broken_poll
=yes
21831 echo "$as_me: program exited with status $ac_status" >&5
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.
$ac_ext >&5
21835 ( exit $ac_status )
21836 ac_cv_broken_poll
=no
21838 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21840 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21841 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21842 if test "$ac_cv_broken_poll" = yes
21845 cat >>confdefs.h
<<\_ACEOF
21846 #define HAVE_BROKEN_POLL 1
21851 # Before we can test tzset, we need to check if struct tm has a tm_zone
21852 # (which is not required by ISO C or UNIX spec) and/or if we support
21854 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21855 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21856 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21859 cat >conftest.
$ac_ext <<_ACEOF
21862 cat confdefs.h
>>conftest.
$ac_ext
21863 cat >>conftest.
$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <sys/types.h>
21866 #include <$ac_cv_struct_tm>
21872 static struct tm ac_aggr;
21873 if (ac_aggr.tm_zone)
21879 rm -f conftest.
$ac_objext
21880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21881 (eval $ac_compile) 2>conftest.er1
21883 grep -v '^ *+' conftest.er1
>conftest.err
21885 cat conftest.err
>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } &&
21888 { ac_try
='test -z "$ac_c_werror_flag"
21889 || test ! -s conftest.err'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; } &&
21895 { ac_try
='test -s conftest.$ac_objext'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_cv_member_struct_tm_tm_zone
=yes
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.
$ac_ext >&5
21906 cat >conftest.
$ac_ext <<_ACEOF
21909 cat confdefs.h
>>conftest.
$ac_ext
21910 cat >>conftest.
$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <sys/types.h>
21913 #include <$ac_cv_struct_tm>
21919 static struct tm ac_aggr;
21920 if (sizeof ac_aggr.tm_zone)
21926 rm -f conftest.
$ac_objext
21927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21928 (eval $ac_compile) 2>conftest.er1
21930 grep -v '^ *+' conftest.er1
>conftest.err
21932 cat conftest.err
>&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
21935 { ac_try
='test -z "$ac_c_werror_flag"
21936 || test ! -s conftest.err'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try
='test -s conftest.$ac_objext'
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; }; then
21948 ac_cv_member_struct_tm_tm_zone
=yes
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.
$ac_ext >&5
21953 ac_cv_member_struct_tm_tm_zone
=no
21955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21960 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21961 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21963 cat >>confdefs.h
<<_ACEOF
21964 #define HAVE_STRUCT_TM_TM_ZONE 1
21970 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21972 cat >>confdefs.h
<<\_ACEOF
21973 #define HAVE_TM_ZONE 1
21977 echo "$as_me:$LINENO: checking for tzname" >&5
21978 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21979 if test "${ac_cv_var_tzname+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 cat >conftest.
$ac_ext <<_ACEOF
21985 cat confdefs.h
>>conftest.
$ac_ext
21986 cat >>conftest.
$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21989 #ifndef tzname /* For SGI. */
21990 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22001 rm -f conftest.
$ac_objext conftest
$ac_exeext
22002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22003 (eval $ac_link) 2>conftest.er1
22005 grep -v '^ *+' conftest.er1
>conftest.err
22007 cat conftest.err
>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } &&
22010 { ac_try
='test -z "$ac_c_werror_flag"
22011 || test ! -s conftest.err'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; } &&
22017 { ac_try
='test -s conftest$ac_exeext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_var_tzname
=yes
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.
$ac_ext >&5
22028 ac_cv_var_tzname
=no
22030 rm -f conftest.err conftest.
$ac_objext \
22031 conftest
$ac_exeext conftest.
$ac_ext
22033 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22034 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22035 if test $ac_cv_var_tzname = yes; then
22037 cat >>confdefs.h
<<\_ACEOF
22038 #define HAVE_TZNAME 1
22045 # check tzset(3) exists and works like we expect it to
22046 echo "$as_me:$LINENO: checking for working tzset()" >&5
22047 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
22048 if test "${ac_cv_working_tzset+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 if test "$cross_compiling" = yes; then
22053 ac_cv_working_tzset
=no
22055 cat >conftest.
$ac_ext <<_ACEOF
22058 cat confdefs.h
>>conftest.
$ac_ext
22059 cat >>conftest.
$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 #include <stdlib.h>
22064 #include <string.h>
22067 extern char *tzname[];
22072 /* Note that we need to ensure that not only does tzset(3)
22073 do 'something' with localtime, but it works as documented
22074 in the library reference and as expected by the test suite.
22075 This includes making sure that tzname is set properly if
22076 tm->tm_zone does not exist since it is the alternative way
22077 of getting timezone info.
22079 Red Hat 6.2 doesn't understand the southern hemisphere
22080 after New Year's Day.
22083 time_t groundhogday = 1044144000; /* GMT-based */
22084 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22086 putenv("TZ=UTC+0");
22088 if (localtime(&groundhogday)->tm_hour != 0)
22091 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22092 if (strcmp(tzname[0], "UTC") ||
22093 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22097 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22099 if (localtime(&groundhogday)->tm_hour != 19)
22102 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22106 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22108 if (localtime(&groundhogday)->tm_hour != 11)
22111 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22115 #if HAVE_STRUCT_TM_TM_ZONE
22116 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22118 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22126 rm -f conftest
$ac_exeext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22128 (eval $ac_link) 2>&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133 (eval $ac_try) 2>&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137 ac_cv_working_tzset
=yes
22139 echo "$as_me: program exited with status $ac_status" >&5
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.
$ac_ext >&5
22143 ( exit $ac_status )
22144 ac_cv_working_tzset
=no
22146 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22150 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22151 echo "${ECHO_T}$ac_cv_working_tzset" >&6
22152 if test "$ac_cv_working_tzset" = yes
22155 cat >>confdefs.h
<<\_ACEOF
22156 #define HAVE_WORKING_TZSET 1
22161 # Look for subsecond timestamps in struct stat
22162 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22163 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
22164 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22167 cat >conftest.
$ac_ext <<_ACEOF
22170 cat confdefs.h
>>conftest.
$ac_ext
22171 cat >>conftest.
$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 #include <sys/stat.h>
22179 st.st_mtim.tv_nsec = 1;
22185 rm -f conftest.
$ac_objext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22187 (eval $ac_compile) 2>conftest.er1
22189 grep -v '^ *+' conftest.er1
>conftest.err
22191 cat conftest.err
>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } &&
22194 { ac_try
='test -z "$ac_c_werror_flag"
22195 || test ! -s conftest.err'
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try
='test -s conftest.$ac_objext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_stat_tv_nsec
=yes
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.
$ac_ext >&5
22212 ac_cv_stat_tv_nsec
=no
22214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22217 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22218 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
22219 if test "$ac_cv_stat_tv_nsec" = yes
22222 cat >>confdefs.h
<<\_ACEOF
22223 #define HAVE_STAT_TV_NSEC 1
22228 # Look for BSD style subsecond timestamps in struct stat
22229 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22230 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
22231 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 cat >conftest.
$ac_ext <<_ACEOF
22237 cat confdefs.h
>>conftest.
$ac_ext
22238 cat >>conftest.
$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 #include <sys/stat.h>
22246 st.st_mtimespec.tv_nsec = 1;
22252 rm -f conftest.
$ac_objext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22254 (eval $ac_compile) 2>conftest.er1
22256 grep -v '^ *+' conftest.er1
>conftest.err
22258 cat conftest.err
>&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
22261 { ac_try
='test -z "$ac_c_werror_flag"
22262 || test ! -s conftest.err'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try
='test -s conftest.$ac_objext'
22269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270 (eval $ac_try) 2>&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; }; then
22274 ac_cv_stat_tv_nsec2
=yes
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.
$ac_ext >&5
22279 ac_cv_stat_tv_nsec2
=no
22281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22284 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22285 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
22286 if test "$ac_cv_stat_tv_nsec2" = yes
22289 cat >>confdefs.h
<<\_ACEOF
22290 #define HAVE_STAT_TV_NSEC2 1
22295 # On HP/UX 11.0, mvwdelch is a block with a return statement
22296 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22297 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
22298 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 cat >conftest.
$ac_ext <<_ACEOF
22304 cat confdefs.h
>>conftest.
$ac_ext
22305 cat >>conftest.
$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 #include <curses.h>
22313 rtn = mvwdelch(0,0,0);
22319 rm -f conftest.
$ac_objext
22320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22321 (eval $ac_compile) 2>conftest.er1
22323 grep -v '^ *+' conftest.er1
>conftest.err
22325 cat conftest.err
>&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } &&
22328 { ac_try
='test -z "$ac_c_werror_flag"
22329 || test ! -s conftest.err'
22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331 (eval $ac_try) 2>&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; } &&
22335 { ac_try
='test -s conftest.$ac_objext'
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; }; then
22341 ac_cv_mvwdelch_is_expression
=yes
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.
$ac_ext >&5
22346 ac_cv_mvwdelch_is_expression
=no
22348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22351 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22352 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
22354 if test "$ac_cv_mvwdelch_is_expression" = yes
22357 cat >>confdefs.h
<<\_ACEOF
22358 #define MVWDELCH_IS_EXPRESSION 1
22363 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
22364 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
22365 if test "${ac_cv_window_has_flags+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22368 cat >conftest.
$ac_ext <<_ACEOF
22371 cat confdefs.h
>>conftest.
$ac_ext
22372 cat >>conftest.
$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <curses.h>
22386 rm -f conftest.
$ac_objext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22388 (eval $ac_compile) 2>conftest.er1
22390 grep -v '^ *+' conftest.er1
>conftest.err
22392 cat conftest.err
>&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try
='test -z "$ac_c_werror_flag"
22396 || test ! -s conftest.err'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; } &&
22402 { ac_try
='test -s conftest.$ac_objext'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 ac_cv_window_has_flags
=yes
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.
$ac_ext >&5
22413 ac_cv_window_has_flags
=no
22415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22418 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
22419 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
22422 if test "$ac_cv_window_has_flags" = yes
22425 cat >>confdefs.h
<<\_ACEOF
22426 #define WINDOW_HAS_FLAGS 1
22431 echo "$as_me:$LINENO: checking for is_term_resized" >&5
22432 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
22433 cat >conftest.
$ac_ext <<_ACEOF
22436 cat confdefs.h
>>conftest.
$ac_ext
22437 cat >>conftest.
$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22439 #include <curses.h>
22443 void *x=is_term_resized
22448 rm -f conftest.
$ac_objext
22449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450 (eval $ac_compile) 2>conftest.er1
22452 grep -v '^ *+' conftest.er1
>conftest.err
22454 cat conftest.err
>&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } &&
22457 { ac_try
='test -z "$ac_c_werror_flag"
22458 || test ! -s conftest.err'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } &&
22464 { ac_try
='test -s conftest.$ac_objext'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22471 cat >>confdefs.h
<<\_ACEOF
22472 #define HAVE_CURSES_IS_TERM_RESIZED 1
22475 echo "$as_me:$LINENO: result: yes" >&5
22476 echo "${ECHO_T}yes" >&6
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.
$ac_ext >&5
22481 echo "$as_me:$LINENO: result: no" >&5
22482 echo "${ECHO_T}no" >&6
22485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22487 echo "$as_me:$LINENO: checking for resize_term" >&5
22488 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
22489 cat >conftest.
$ac_ext <<_ACEOF
22492 cat confdefs.h
>>conftest.
$ac_ext
22493 cat >>conftest.
$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22495 #include <curses.h>
22499 void *x=resize_term
22504 rm -f conftest.
$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>conftest.er1
22508 grep -v '^ *+' conftest.er1
>conftest.err
22510 cat conftest.err
>&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try
='test -z "$ac_c_werror_flag"
22514 || test ! -s conftest.err'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; } &&
22520 { ac_try
='test -s conftest.$ac_objext'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22527 cat >>confdefs.h
<<\_ACEOF
22528 #define HAVE_CURSES_RESIZE_TERM 1
22531 echo "$as_me:$LINENO: result: yes" >&5
22532 echo "${ECHO_T}yes" >&6
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.
$ac_ext >&5
22537 echo "$as_me:$LINENO: result: no" >&5
22538 echo "${ECHO_T}no" >&6
22541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22543 echo "$as_me:$LINENO: checking for resizeterm" >&5
22544 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22545 cat >conftest.
$ac_ext <<_ACEOF
22548 cat confdefs.h
>>conftest.
$ac_ext
22549 cat >>conftest.
$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 #include <curses.h>
22560 rm -f conftest.
$ac_objext
22561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22562 (eval $ac_compile) 2>conftest.er1
22564 grep -v '^ *+' conftest.er1
>conftest.err
22566 cat conftest.err
>&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } &&
22569 { ac_try
='test -z "$ac_c_werror_flag"
22570 || test ! -s conftest.err'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; } &&
22576 { ac_try
='test -s conftest.$ac_objext'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; }; then
22583 cat >>confdefs.h
<<\_ACEOF
22584 #define HAVE_CURSES_RESIZETERM 1
22587 echo "$as_me:$LINENO: result: yes" >&5
22588 echo "${ECHO_T}yes" >&6
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.
$ac_ext >&5
22593 echo "$as_me:$LINENO: result: no" >&5
22594 echo "${ECHO_T}no" >&6
22597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22599 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22600 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22602 if test -r /dev
/ptmx
22604 echo "$as_me:$LINENO: result: yes" >&5
22605 echo "${ECHO_T}yes" >&6
22607 cat >>confdefs.h
<<\_ACEOF
22608 #define HAVE_DEV_PTMX 1
22612 echo "$as_me:$LINENO: result: no" >&5
22613 echo "${ECHO_T}no" >&6
22616 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22617 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22619 if test -r /dev
/ptc
22621 echo "$as_me:$LINENO: result: yes" >&5
22622 echo "${ECHO_T}yes" >&6
22624 cat >>confdefs.h
<<\_ACEOF
22625 #define HAVE_DEV_PTC 1
22629 echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6
22633 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22634 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22635 if test "$cross_compiling" = yes; then
22636 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22637 See \`config.log' for more details." >&5
22638 echo "$as_me: error: cannot run test program while cross compiling
22639 See \`config.log' for more details." >&2;}
22640 { (exit 1); exit 1; }; }
22642 cat >conftest.
$ac_ext <<_ACEOF
22645 cat confdefs.h
>>conftest.
$ac_ext
22646 cat >>conftest.
$ac_ext <<_ACEOF
22647 /* end confdefs.h. */
22649 #include <stddef.h>
22650 #include <string.h>
22656 #ifdef HAVE_SSIZE_T
22657 typedef ssize_t Py_ssize_t;
22658 #elif SIZEOF_VOID_P == SIZEOF_LONG
22659 typedef long Py_ssize_t;
22661 typedef int Py_ssize_t;
22664 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22667 if (strcmp(buffer, "123"))
22670 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22673 if (strcmp(buffer, "-123"))
22679 rm -f conftest
$ac_exeext
22680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22681 (eval $ac_link) 2>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 echo "$as_me:$LINENO: result: yes" >&5
22691 echo "${ECHO_T}yes" >&6
22693 cat >>confdefs.h
<<\_ACEOF
22694 #define PY_FORMAT_SIZE_T "z"
22698 echo "$as_me: program exited with status $ac_status" >&5
22699 echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.
$ac_ext >&5
22702 ( exit $ac_status )
22703 echo "$as_me:$LINENO: result: no" >&5
22704 echo "${ECHO_T}no" >&6
22706 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22709 echo "$as_me:$LINENO: checking for socklen_t" >&5
22710 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22711 if test "${ac_cv_type_socklen_t+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22714 cat >conftest.
$ac_ext <<_ACEOF
22717 cat confdefs.h
>>conftest.
$ac_ext
22718 cat >>conftest.
$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22721 #ifdef HAVE_SYS_TYPES_H
22722 #include <sys/types.h>
22724 #ifdef HAVE_SYS_SOCKET_H
22725 #include <sys/socket.h>
22732 if ((socklen_t *) 0)
22734 if (sizeof (socklen_t))
22740 rm -f conftest.
$ac_objext
22741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22742 (eval $ac_compile) 2>conftest.er1
22744 grep -v '^ *+' conftest.er1
>conftest.err
22746 cat conftest.err
>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
22749 { ac_try
='test -z "$ac_c_werror_flag"
22750 || test ! -s conftest.err'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; } &&
22756 { ac_try
='test -s conftest.$ac_objext'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; }; then
22762 ac_cv_type_socklen_t
=yes
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.
$ac_ext >&5
22767 ac_cv_type_socklen_t
=no
22769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22771 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22772 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22773 if test $ac_cv_type_socklen_t = yes; then
22777 cat >>confdefs.h
<<\_ACEOF
22778 #define socklen_t int
22786 for h
in `(cd $srcdir;echo Python/thread_*.h)`
22788 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
22792 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
22793 echo "$as_me:$LINENO: checking for build directories" >&5
22794 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22795 for dir
in $SRCDIRS; do
22796 if test ! -d $dir; then
22800 echo "$as_me:$LINENO: result: done" >&5
22801 echo "${ECHO_T}done" >&6
22803 # generate output files
22804 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
22806 cat >confcache
<<\_ACEOF
22807 # This file is a shell script that caches the results of configure
22808 # tests run on this system so they can be shared between configure
22809 # scripts and configure runs, see configure's option --config-cache.
22810 # It is not useful on other systems. If it contains results you don't
22811 # want to keep, you may remove or edit it.
22813 # config.status only pays attention to the cache file if you give it
22814 # the --recheck option to rerun configure.
22816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22818 # following values.
22822 # The following way of writing the cache mishandles newlines in values,
22823 # but we know of no workaround that is simple, portable, and efficient.
22824 # So, don't put newlines in cache variables' values.
22825 # Ultrix sh set writes to stderr and can't be redirected directly,
22826 # and sets the high bit in the cache file unless we assign to the vars.
22829 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22831 # `set' does not quote correctly, so add quotes (double-quote
22832 # substitution turns \\\\ into \\, and sed turns \\ into \).
22835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22838 # `set' quotes correctly as required by POSIX, so do not add quotes.
22840 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22847 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22849 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22851 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22852 if test -w $cache_file; then
22853 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22854 cat confcache
>$cache_file
22856 echo "not updating unwritable cache $cache_file"
22861 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22862 # Let make expand exec_prefix.
22863 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22865 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22866 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22867 # trailing colons and then remove the whole line if VPATH becomes empty
22868 # (actually we leave an empty line to preserve line numbers).
22869 if test "x$srcdir" = x.
; then
22870 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22871 s/:*\$(srcdir):*/:/;
22872 s/:*\${srcdir}:*/:/;
22874 s/^\([^=]*=[ ]*\):*/\1/;
22880 DEFS
=-DHAVE_CONFIG_H
22884 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22885 # 1. Remove the extension, and $U if already installed.
22886 ac_i
=`echo "$ac_i" |
22887 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22889 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22890 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22892 LIBOBJS
=$ac_libobjs
22894 LTLIBOBJS
=$ac_ltlibobjs
22898 : ${CONFIG_STATUS=./config.status}
22899 ac_clean_files_save
=$ac_clean_files
22900 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22901 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22902 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22903 cat >$CONFIG_STATUS <<_ACEOF
22905 # Generated by $as_me.
22906 # Run this file to recreate the current configuration.
22907 # Compiler output produced by configure, useful for debugging
22908 # configure, is in config.log if it exists.
22911 ac_cs_recheck=false
22913 SHELL=\${CONFIG_SHELL-$SHELL}
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22917 ## --------------------- ##
22918 ## M4sh Initialization. ##
22919 ## --------------------- ##
22921 # Be Bourne compatible
22922 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22925 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22926 # is contrary to our usage. Disable this feature.
22927 alias -g '${1+"$@"}'='"$@"'
22928 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22931 DUALCASE
=1; export DUALCASE
# for MKS sh
22933 # Support unset when possible.
22934 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22941 # Work around bugs in pre-3.0 UWIN ksh.
22942 $as_unset ENV MAIL MAILPATH
22949 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22950 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22951 LC_TELEPHONE LC_TIME
22953 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22954 eval $as_var=C
; export $as_var
22960 # Required to use basename.
22961 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22967 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22968 as_basename
=basename
22974 # Name of the executable.
22975 as_me
=`$as_basename "$0" ||
22976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22977 X"$0" : 'X\(//\)$' \| \
22978 X"$0" : 'X\(/\)$' \| \
22979 . : '\(.\)' 2>/dev/null ||
22981 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22982 /^X\/\(\/\/\)$/{ s//\1/; q; }
22983 /^X\/\(\/\).*/{ s//\1/; q; }
22987 # PATH needs CR, and LINENO needs CR and PATH.
22988 # Avoid depending upon Character Ranges.
22989 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22990 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22991 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22992 as_cr_digits
='0123456789'
22993 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22995 # The user is always right.
22996 if test "${PATH_SEPARATOR+set}" != set; then
22997 echo "#! /bin/sh" >conf$$.sh
22998 echo "exit 0" >>conf$$.sh
23000 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23009 as_lineno_1
=$LINENO
23010 as_lineno_2
=$LINENO
23011 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23012 test "x$as_lineno_1" != "x$as_lineno_2" &&
23013 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23014 # Find who we are. Look in the path if we contain no path at all
23017 *[\\/]* ) as_myself
=$0 ;;
23018 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23019 for as_dir
in $PATH
23022 test -z "$as_dir" && as_dir
=.
23023 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23028 # We did not find ourselves, most probably we were run as `sh COMMAND'
23029 # in which case we are not to be found in the path.
23030 if test "x$as_myself" = x
; then
23033 if test ! -f "$as_myself"; then
23034 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23035 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23036 { (exit 1); exit 1; }; }
23038 case $CONFIG_SHELL in
23040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23041 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23044 test -z "$as_dir" && as_dir
=.
23045 for as_base
in sh bash ksh sh5
; do
23048 if ("$as_dir/$as_base" -c '
23049 as_lineno_1=$LINENO
23050 as_lineno_2=$LINENO
23051 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23052 test "x$as_lineno_1" != "x$as_lineno_2" &&
23053 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23054 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23055 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23056 CONFIG_SHELL
=$as_dir/$as_base
23057 export CONFIG_SHELL
23058 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23067 # uniformly replaced by the line number. The first 'sed' inserts a
23068 # line-number line before each line; the second 'sed' does the real
23069 # work. The second script uses 'N' to pair each line-number line
23070 # with the numbered line, and appends trailing '-' during
23071 # substitution so that $LINENO is not a special case at line end.
23072 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23073 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23074 sed '=' <$as_myself |
23079 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23082 s,^['$as_cr_digits']*\n,,
23083 ' >$as_me.lineno
&&
23084 chmod +x
$as_me.lineno ||
23085 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23086 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23087 { (exit 1); exit 1; }; }
23089 # Don't try to exec as it changes $[0], causing all sort of problems
23090 # (the dirname of $[0] is not the place where we might find the
23091 # original and so on. Autoconf is especially sensible to this).
23093 # Exit status is that of the last command.
23098 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23099 *c
*,-n*) ECHO_N
= ECHO_C
='
23101 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23102 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23105 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23111 rm -f conf$$ conf$$.exe conf$$.
file
23113 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23114 # We could just check for DJGPP; but this test a) works b) is more generic
23115 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23116 if test -f conf$$.exe
; then
23117 # Don't use ln at all; we don't have any links
23122 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23127 rm -f conf$$ conf$$.exe conf$$.
file
23129 if mkdir
-p .
2>/dev
/null
; then
23132 test -d .
/-p && rmdir .
/-p
23136 as_executable_p
="test -f"
23138 # Sed expression to map a string onto a valid CPP name.
23139 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23141 # Sed expression to map a string onto a valid variable name.
23142 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23146 # We need space, tab and new line, in precisely that order.
23156 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23157 # report actual input values of CONFIG_FILES etc. instead of their
23158 # values after options handling. Logging --version etc. is OK.
23162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23163 ## Running $as_me. ##
23168 This file was extended by python $as_me 2.6, which was
23169 generated by GNU Autoconf 2.59. Invocation command line was
23171 CONFIG_FILES = $CONFIG_FILES
23172 CONFIG_HEADERS = $CONFIG_HEADERS
23173 CONFIG_LINKS = $CONFIG_LINKS
23174 CONFIG_COMMANDS = $CONFIG_COMMANDS
23178 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23182 # Files that config.status was made for.
23183 if test -n "$ac_config_files"; then
23184 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23187 if test -n "$ac_config_headers"; then
23188 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23191 if test -n "$ac_config_links"; then
23192 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23195 if test -n "$ac_config_commands"; then
23196 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23199 cat >>$CONFIG_STATUS <<\_ACEOF
23202 \`$as_me' instantiates files from templates according to the
23203 current configuration.
23205 Usage: $0 [OPTIONS] [FILE]...
23207 -h, --help print this help, then exit
23208 -V, --version print version number, then exit
23209 -q, --quiet do not print progress messages
23210 -d, --debug don't remove temporary files
23211 --recheck update $as_me by reconfiguring in the same conditions
23212 --file=FILE[:TEMPLATE]
23213 instantiate the configuration file FILE
23214 --header=FILE[:TEMPLATE]
23215 instantiate the configuration header FILE
23217 Configuration files:
23220 Configuration headers:
23223 Report bugs to <bug-autoconf@gnu.org>."
23226 cat >>$CONFIG_STATUS <<_ACEOF
23228 python config.status 2.6
23229 configured by $0, generated by GNU Autoconf 2.59,
23230 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23232 Copyright (C) 2003 Free Software Foundation, Inc.
23233 This config.status script is free software; the Free Software Foundation
23234 gives unlimited permission to copy, distribute and modify it."
23239 cat >>$CONFIG_STATUS <<\_ACEOF
23240 # If no file are specified by the user, then we need to provide default
23241 # value. By we need to know if files were specified by the user.
23247 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23248 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23256 *) # This is not an option, so the user has probably given explicit
23259 ac_need_defaults
=false
;;
23263 # Handling of the options.
23265 cat >>$CONFIG_STATUS <<\_ACEOF
23266 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23268 --version |
--vers* |
-V )
23269 echo "$ac_cs_version"; exit 0 ;;
23271 # Conflict between --help and --header
23272 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23273 Try \`$0 --help' for more information." >&5
23274 echo "$as_me: error: ambiguous option: $1
23275 Try \`$0 --help' for more information." >&2;}
23276 { (exit 1); exit 1; }; };;
23277 --help |
--hel |
-h )
23278 echo "$ac_cs_usage"; exit 0 ;;
23279 --debug |
--d* |
-d )
23281 --file |
--fil |
--fi |
--f )
23283 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23284 ac_need_defaults
=false
;;
23285 --header |
--heade |
--head |
--hea )
23287 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23288 ac_need_defaults
=false
;;
23289 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23290 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23293 # This is an error.
23294 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23295 Try \`$0 --help' for more information." >&5
23296 echo "$as_me: error: unrecognized option: $1
23297 Try \`$0 --help' for more information." >&2;}
23298 { (exit 1); exit 1; }; } ;;
23300 *) ac_config_targets
="$ac_config_targets $1" ;;
23306 ac_configure_extra_args
=
23308 if $ac_cs_silent; then
23310 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23314 cat >>$CONFIG_STATUS <<_ACEOF
23315 if \$ac_cs_recheck; then
23316 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23317 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23326 cat >>$CONFIG_STATUS <<\_ACEOF
23327 for ac_config_target
in $ac_config_targets
23329 case "$ac_config_target" in
23330 # Handling of arguments.
23331 "Mac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
23332 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23333 "Mac/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23334 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
23335 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
23336 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
23337 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23339 { (exit 1); exit 1; }; };;
23343 # If the user did not use the arguments to specify the items to instantiate,
23344 # then the envvar interface is used. Set only those that are not.
23345 # We use the long form for the default assignment because of an extremely
23346 # bizarre bug on SunOS 4.1.3.
23347 if $ac_need_defaults; then
23348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23352 # Have a temporary directory for convenience. Make it in the build tree
23353 # simply because there is no reason to put it here, and in addition,
23354 # creating and moving files from /tmp can sometimes cause problems.
23355 # Create a temporary directory, and hook for its removal unless debugging.
23358 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23359 trap '{ (exit 1); exit 1; }' 1 2 13 15
23362 # Create a (secure) tmp directory for tmp files.
23365 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23366 test -n "$tmp" && test -d "$tmp"
23369 tmp
=.
/confstat$$
-$RANDOM
23370 (umask 077 && mkdir
$tmp)
23373 echo "$me: cannot create a temporary directory in ." >&2
23374 { (exit 1); exit 1; }
23379 cat >>$CONFIG_STATUS <<_ACEOF
23382 # CONFIG_FILES section.
23385 # No need to generate the scripts if there are no CONFIG_FILES.
23386 # This happens for instance when ./config.status config.h
23387 if test -n "\$CONFIG_FILES"; then
23388 # Protect against being on the right side of a sed subst in config.status.
23389 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23390 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23391 s,@SHELL@,$SHELL,;t t
23392 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23393 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23394 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23395 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23396 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23397 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23398 s,@exec_prefix@,$exec_prefix,;t t
23399 s,@prefix@,$prefix,;t t
23400 s,@program_transform_name@,$program_transform_name,;t t
23401 s,@bindir@,$bindir,;t t
23402 s,@sbindir@,$sbindir,;t t
23403 s,@libexecdir@,$libexecdir,;t t
23404 s,@datadir@,$datadir,;t t
23405 s,@sysconfdir@,$sysconfdir,;t t
23406 s,@sharedstatedir@,$sharedstatedir,;t t
23407 s,@localstatedir@,$localstatedir,;t t
23408 s,@libdir@,$libdir,;t t
23409 s,@includedir@,$includedir,;t t
23410 s,@oldincludedir@,$oldincludedir,;t t
23411 s,@infodir@,$infodir,;t t
23412 s,@mandir@,$mandir,;t t
23413 s,@build_alias@,$build_alias,;t t
23414 s,@host_alias@,$host_alias,;t t
23415 s,@target_alias@,$target_alias,;t t
23416 s,@DEFS@,$DEFS,;t t
23417 s,@ECHO_C@,$ECHO_C,;t t
23418 s,@ECHO_N@,$ECHO_N,;t t
23419 s,@ECHO_T@,$ECHO_T,;t t
23420 s,@LIBS@,$LIBS,;t t
23421 s,@VERSION@,$VERSION,;t t
23422 s,@SOVERSION@,$SOVERSION,;t t
23423 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
23424 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
23425 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
23426 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
23427 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
23428 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
23429 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
23430 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
23431 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
23432 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
23433 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
23434 s,@MACHDEP@,$MACHDEP,;t t
23435 s,@SGI_ABI@,$SGI_ABI,;t t
23436 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
23437 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
23438 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
23439 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
23441 s,@CFLAGS@,$CFLAGS,;t t
23442 s,@LDFLAGS@,$LDFLAGS,;t t
23443 s,@CPPFLAGS@,$CPPFLAGS,;t t
23444 s,@ac_ct_CC@,$ac_ct_CC,;t t
23445 s,@EXEEXT@,$EXEEXT,;t t
23446 s,@OBJEXT@,$OBJEXT,;t t
23448 s,@MAINCC@,$MAINCC,;t t
23450 s,@EGREP@,$EGREP,;t t
23451 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
23452 s,@LIBRARY@,$LIBRARY,;t t
23453 s,@LDLIBRARY@,$LDLIBRARY,;t t
23454 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
23455 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
23456 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
23457 s,@INSTSONAME@,$INSTSONAME,;t t
23458 s,@RUNSHARED@,$RUNSHARED,;t t
23459 s,@LINKCC@,$LINKCC,;t t
23460 s,@RANLIB@,$RANLIB,;t t
23461 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23463 s,@SVNVERSION@,$SVNVERSION,;t t
23464 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23465 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23466 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23469 s,@BASECFLAGS@,$BASECFLAGS,;t t
23470 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
23471 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
23473 s,@LDSHARED@,$LDSHARED,;t t
23474 s,@BLDSHARED@,$BLDSHARED,;t t
23475 s,@CCSHARED@,$CCSHARED,;t t
23476 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
23477 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
23478 s,@SHLIBS@,$SHLIBS,;t t
23479 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
23480 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
23481 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
23482 s,@LDLAST@,$LDLAST,;t t
23483 s,@THREADOBJ@,$THREADOBJ,;t t
23484 s,@DLINCLDIR@,$DLINCLDIR,;t t
23485 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
23486 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
23487 s,@TRUE@,$TRUE,;t t
23488 s,@LIBOBJS@,$LIBOBJS,;t t
23489 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
23490 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
23491 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
23492 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
23493 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
23494 s,@LIBM@,$LIBM,;t t
23495 s,@LIBC@,$LIBC,;t t
23496 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
23497 s,@THREADHEADERS@,$THREADHEADERS,;t t
23498 s,@SRCDIRS@,$SRCDIRS,;t t
23499 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23504 cat >>$CONFIG_STATUS <<\_ACEOF
23505 # Split the substitutions into bite-sized pieces for seds with
23506 # small command number limits, like on Digital OSF/1 and HP-UX.
23507 ac_max_sed_lines
=48
23508 ac_sed_frag
=1 # Number of current file.
23509 ac_beg
=1 # First line for current file.
23510 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23513 while $ac_more_lines; do
23514 if test $ac_beg -gt 1; then
23515 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23517 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23519 if test ! -s $tmp/subs.frag
; then
23520 ac_more_lines
=false
23522 # The purpose of the label and of the branching condition is to
23523 # speed up the sed processing (if there are no `@' at all, there
23524 # is no need to browse any of the substitutions).
23525 # These are the two extra sed commands mentioned above.
23527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23528 if test -z "$ac_sed_cmds"; then
23529 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23531 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23533 ac_sed_frag
=`expr $ac_sed_frag + 1`
23535 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23538 if test -z "$ac_sed_cmds"; then
23541 fi # test -n "$CONFIG_FILES"
23544 cat >>$CONFIG_STATUS <<\_ACEOF
23545 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23546 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23548 - |
*:- |
*:-:* ) # input from stdin
23550 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23551 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23552 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23553 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23554 * ) ac_file_in
=$ac_file.
in ;;
23557 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23558 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23560 X"$ac_file" : 'X\(//\)[^/]' \| \
23561 X"$ac_file" : 'X\(//\)$' \| \
23562 X"$ac_file" : 'X\(/\)' \| \
23563 . : '\(.\)' 2>/dev/null ||
23565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23567 /^X\(\/\/\)$/{ s//\1/; q; }
23568 /^X\(\/\).*/{ s//\1/; q; }
23570 { if $as_mkdir_p; then
23575 while test ! -d "$as_dir"; do
23576 as_dirs
="$as_dir $as_dirs"
23577 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23578 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23579 X"$as_dir" : 'X\(//\)[^/]' \| \
23580 X"$as_dir" : 'X\(//\)$' \| \
23581 X"$as_dir" : 'X\(/\)' \| \
23582 . : '\(.\)' 2>/dev/null ||
23584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23586 /^X\(\/\/\)$/{ s//\1/; q; }
23587 /^X\(\/\).*/{ s//\1/; q; }
23590 test ! -n "$as_dirs" || mkdir
$as_dirs
23591 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23592 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23593 { (exit 1); exit 1; }; }; }
23597 if test "$ac_dir" != .
; then
23598 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23599 # A "../" for each directory in $ac_dir_suffix.
23600 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23602 ac_dir_suffix
= ac_top_builddir
=
23606 .
) # No --srcdir option. We are building in place.
23608 if test -z "$ac_top_builddir"; then
23611 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23613 [\\/]* | ?
:[\\/]* ) # Absolute path.
23614 ac_srcdir
=$srcdir$ac_dir_suffix;
23615 ac_top_srcdir
=$srcdir ;;
23616 *) # Relative path.
23617 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23618 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23621 # Do not use `cd foo && pwd` to compute absolute paths, because
23622 # the directories may not exist.
23624 .
) ac_abs_builddir
="$ac_dir";;
23627 .
) ac_abs_builddir
=`pwd`;;
23628 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23629 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23632 case $ac_abs_builddir in
23633 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23635 case ${ac_top_builddir}.
in
23636 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23637 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23638 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23641 case $ac_abs_builddir in
23642 .
) ac_abs_srcdir
=$ac_srcdir;;
23645 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23646 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23647 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23650 case $ac_abs_builddir in
23651 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23653 case $ac_top_srcdir in
23654 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23655 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23656 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23662 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23663 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23666 if test x
"$ac_file" != x-
; then
23667 { echo "$as_me:$LINENO: creating $ac_file" >&5
23668 echo "$as_me: creating $ac_file" >&6;}
23671 # Let's still pretend it is `configure' which instantiates (i.e., don't
23672 # use $as_me), people would be surprised to read:
23673 # /* config.h. Generated by config.status. */
23674 if test x
"$ac_file" = x-
; then
23677 configure_input
="$ac_file. "
23679 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23680 sed 's,.*/,,'` by configure."
23682 # First look for the input files in the build tree, otherwise in the
23684 ac_file_inputs
=`IFS=:
23685 for f in $ac_file_in; do
23687 -) echo $tmp/stdin ;;
23689 # Absolute (can't be DOS-style, as IFS=:)
23690 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23691 echo "$as_me: error: cannot find input file: $f" >&2;}
23692 { (exit 1); exit 1; }; }
23695 if test -f "$f"; then
23698 elif test -f "$srcdir/$f"; then
23703 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23704 echo "$as_me: error: cannot find input file: $f" >&2;}
23705 { (exit 1); exit 1; }; }
23708 done` ||
{ (exit 1); exit 1; }
23710 cat >>$CONFIG_STATUS <<_ACEOF
23714 cat >>$CONFIG_STATUS <<\_ACEOF
23716 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23717 s
,@configure_input@
,$configure_input,;t t
23718 s
,@srcdir@
,$ac_srcdir,;t t
23719 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23720 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23721 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23722 s
,@builddir@
,$ac_builddir,;t t
23723 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23724 s
,@top_builddir@
,$ac_top_builddir,;t t
23725 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23726 s
,@INSTALL@
,$ac_INSTALL,;t t
23727 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23729 if test x"$ac_file" != x-; then
23730 mv $tmp/out $ac_file
23738 cat >>$CONFIG_STATUS <<\_ACEOF
23741 # CONFIG_HEADER section.
23744 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23745 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23747 # ac_d sets the value in "#define NAME VALUE" lines.
23748 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23749 ac_dB
='[ ].*$,\1#\2'
23752 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23753 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23754 ac_uB
='$,\1#\2define\3'
23758 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23759 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23761 - |
*:- |
*:-:* ) # input from stdin
23763 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23764 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23765 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23766 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23767 * ) ac_file_in
=$ac_file.
in ;;
23770 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23771 echo "$as_me: creating $ac_file" >&6;}
23773 # First look for the input files in the build tree, otherwise in the
23775 ac_file_inputs
=`IFS=:
23776 for f in $ac_file_in; do
23778 -) echo $tmp/stdin ;;
23780 # Absolute (can't be DOS-style, as IFS=:)
23781 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23782 echo "$as_me: error: cannot find input file: $f" >&2;}
23783 { (exit 1); exit 1; }; }
23784 # Do quote $f, to prevent DOS paths from being IFS'd.
23787 if test -f "$f"; then
23790 elif test -f "$srcdir/$f"; then
23795 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23796 echo "$as_me: error: cannot find input file: $f" >&2;}
23797 { (exit 1); exit 1; }; }
23800 done` ||
{ (exit 1); exit 1; }
23801 # Remove the trailing spaces.
23802 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23806 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23807 # `conftest.undefs', that substitutes the proper values into
23808 # config.h.in to produce config.h. The first handles `#define'
23809 # templates, and the second `#undef' templates.
23810 # And first: Protect against being on the right side of a sed subst in
23811 # config.status. Protect against being in an unquoted here document
23812 # in config.status.
23813 rm -f conftest.defines conftest.undefs
23814 # Using a here document instead of a string reduces the quoting nightmare.
23815 # Putting comments in sed scripts is not portable.
23817 # `end' is used to avoid that the second main sed command (meant for
23818 # 0-ary CPP macros) applies to n-ary macro definitions.
23819 # See the Autoconf documentation for `clear'.
23820 cat >confdef2sed.
sed <<\_ACEOF
23825 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23827 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23830 # If some macros were called several times there might be several times
23831 # the same #defines, which is useless. Nevertheless, we may not want to
23832 # sort them, since we want the *last* AC-DEFINE to be honored.
23833 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23834 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23835 rm -f confdef2sed.sed
23837 # This sed command replaces #undef with comments. This is necessary, for
23838 # example, in the case of _POSIX_SOURCE, which is predefined and required
23839 # on some systems where configure will not decide to define it.
23840 cat >>conftest.undefs <<\_ACEOF
23841 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23844 # Break up conftest.defines because some shells have a limit on the size
23845 # of here documents, and old seds have small limits too (100 cmds).
23846 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23847 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23848 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23849 echo ' :' >>$CONFIG_STATUS
23850 rm -f conftest.tail
23851 while grep . conftest.defines >/dev/null
23853 # Write a limited-size here document to $tmp/defines.sed.
23854 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23855 # Speed up: don't consider the non `#define' lines.
23856 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23857 # Work around the forget-to-reset-the-flag bug.
23858 echo 't clr' >>$CONFIG_STATUS
23859 echo ': clr' >>$CONFIG_STATUS
23860 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23862 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23864 mv $tmp/out $tmp/in
23866 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23867 rm -f conftest.defines
23868 mv conftest.
tail conftest.defines
23870 rm -f conftest.defines
23871 echo ' fi # grep' >>$CONFIG_STATUS
23872 echo >>$CONFIG_STATUS
23874 # Break up conftest.undefs because some shells have a limit on the size
23875 # of here documents, and old seds have small limits too (100 cmds).
23876 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23877 rm -f conftest.
tail
23878 while grep . conftest.undefs
>/dev
/null
23880 # Write a limited-size here document to $tmp/undefs.sed.
23881 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23882 # Speed up: don't consider the non
`#undef'
23883 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23884 # Work around the forget-to-reset-the-flag bug.
23885 echo 't clr' >>$CONFIG_STATUS
23886 echo ': clr' >>$CONFIG_STATUS
23887 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23889 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23891 mv $tmp/out $tmp/in
23893 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23894 rm -f conftest.undefs
23895 mv conftest.tail conftest.undefs
23897 rm -f conftest.undefs
23899 cat >>$CONFIG_STATUS <<\_ACEOF
23900 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23901 # use $as_me), people would be surprised to read:
23902 # /* config.h. Generated by config.status. */
23903 if test x
"$ac_file" = x-
; then
23904 echo "/* Generated by configure. */" >$tmp/config.h
23906 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23908 cat $tmp/in >>$tmp/config.h
23910 if test x
"$ac_file" != x-
; then
23911 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23912 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23913 echo "$as_me: $ac_file is unchanged" >&6;}
23915 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23917 X"$ac_file" : 'X\(//\)[^/]' \| \
23918 X"$ac_file" : 'X\(//\)$' \| \
23919 X"$ac_file" : 'X\(/\)' \| \
23920 . : '\(.\)' 2>/dev/null ||
23922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23924 /^X\(\/\/\)$/{ s//\1/; q; }
23925 /^X\(\/\).*/{ s//\1/; q; }
23927 { if $as_mkdir_p; then
23932 while test ! -d "$as_dir"; do
23933 as_dirs
="$as_dir $as_dirs"
23934 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23936 X"$as_dir" : 'X\(//\)[^/]' \| \
23937 X"$as_dir" : 'X\(//\)$' \| \
23938 X"$as_dir" : 'X\(/\)' \| \
23939 . : '\(.\)' 2>/dev/null ||
23941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23943 /^X\(\/\/\)$/{ s//\1/; q; }
23944 /^X\(\/\).*/{ s//\1/; q; }
23947 test ! -n "$as_dirs" || mkdir
$as_dirs
23948 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23949 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23950 { (exit 1); exit 1; }; }; }
23953 mv $tmp/config.h
$ac_file
23957 rm -f $tmp/config.h
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23964 { (exit 0); exit 0; }
23966 chmod +x
$CONFIG_STATUS
23967 ac_clean_files
=$ac_clean_files_save
23970 # configure is writing to config.log, and then calls config.status.
23971 # config.status does its own redirection, appending to config.log.
23972 # Unfortunately, on DOS this fails, as config.log is still kept open
23973 # by configure, so config.status won't be able to write to it; its
23974 # output is simply discarded. So we exec the FD to /dev/null,
23975 # effectively closing config.log, so it can be properly (re)opened and
23976 # appended to by config.status. When coming back to configure, we
23977 # need to make the FD available again.
23978 if test "$no_create" != yes; then
23980 ac_config_status_args
=
23981 test "$silent" = yes &&
23982 ac_config_status_args
="$ac_config_status_args --quiet"
23984 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23987 # would make configure fail if this is the last instruction.
23988 $ac_cs_success ||
{ (exit 1); exit 1; }
23992 echo "creating Modules/Setup"
23993 if test ! -f Modules
/Setup
23995 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23998 echo "creating Modules/Setup.local"
23999 if test ! -f Modules
/Setup.
local
24001 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
24004 echo "creating Makefile"
24005 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
24006 -s Modules Modules
/Setup.config \
24007 Modules
/Setup.
local Modules
/Setup
24008 mv config.c Modules