2 # From configure.in Revision: .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='python'
272 PACKAGE_TARNAME
='python'
273 PACKAGE_VERSION
='2.5'
274 PACKAGE_STRING
='python 2.5'
275 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
277 ac_unique_file
="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR 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.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive
) echo "Configuration of python 2.5:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-universalsdk[SDKDIR
]
849 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
850 --enable-framework[=INSTALLDIR
]
851 Build
(MacOSX|Darwin
) framework
852 --enable-shared disable
/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
855 --enable-ipv6 Enable ipv6
(with ipv4
) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs
[24]]
858 Enable Unicode
strings (default is
yes)
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler
>
865 compile main
() and link python executable with C
++
867 --with-suffix=.exe
set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable
/enable signal module
872 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
873 --with(out
)-threads[=DIRECTORY
]
874 disable
/enable thread support
875 --with(out
)-thread[=DIRECTORY
]
876 deprecated
; use
--with(out
)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out
)-doc-strings disable
/enable documentation
strings
879 --with(out
)-tsc enable
/disable timestamp counter profile
880 --with(out
)-pymalloc disable
/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables
, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1357 mv confdefs.h.new confdefs.h
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h
<<\_ACEOF
1369 #define _GNU_SOURCE 1
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1386 cat >>confdefs.h
<<\_ACEOF
1387 #define __BSD_VISIBLE 1
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h
<<\_ACEOF
1395 #define _BSD_TYPES 1
1399 define_xopen_source
=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS
="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval
="$enable_universalsdk"
1411 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
1417 enable_universalsdk
=
1420 UNIVERSALSDK
=$enableval
1427 enable_universalsdk
=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval
="$enable_framework"
1438 enableval
=/Library
/Frameworks
1443 PYTHONFRAMEWORKDIR
=no-framework
1444 PYTHONFRAMEWORKPREFIX
=
1445 PYTHONFRAMEWORKINSTALLDIR
=
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])
1557 define_xopen_source
=no
;;
1558 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1559 # of union __?sigval. Reported by Stuart Bishop.
1561 define_xopen_source
=no
;;
1562 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1563 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1564 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1565 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1566 define_xopen_source
=no
;;
1567 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1568 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1570 define_xopen_source
=no
;;
1571 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1572 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1573 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1574 # This should hopefully be fixed in FreeBSD 4.9
1575 FreeBSD
/4.8* | Darwin
/6* )
1576 define_xopen_source
=no
;;
1577 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1578 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1579 # or has another value. By not (re)defining it, the defaults come in place.
1581 define_xopen_source
=no
;;
1583 if test `uname -r` -eq 1; then
1584 define_xopen_source
=no
1587 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1588 # disables platform specific features beyond repair.
1589 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1590 # has no effect, don't bother defining them
1592 define_xopen_source
=no
1597 if test $define_xopen_source = yes
1599 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1600 # defined precisely as g++ defines it
1601 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1603 case $ac_sys_system/$ac_sys_release in
1604 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1606 cat >>confdefs.h
<<\_ACEOF
1607 #define _XOPEN_SOURCE 500
1613 cat >>confdefs.h
<<\_ACEOF
1614 #define _XOPEN_SOURCE 600
1620 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1621 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1622 # several APIs are not declared. Since this is also needed in some
1623 # cases for HP-UX, we define it globally.
1624 # except for Solaris 10, where it must not be defined,
1625 # as it implies XPG4.2
1626 case $ac_sys_system/$ac_sys_release in
1631 cat >>confdefs.h
<<\_ACEOF
1632 #define _XOPEN_SOURCE_EXTENDED 1
1639 cat >>confdefs.h
<<\_ACEOF
1640 #define _POSIX_C_SOURCE 200112L
1647 # SGI compilers allow the specification of the both the ABI and the
1648 # ISA on the command line. Depending on the values of these switches,
1649 # different and often incompatable code will be generated.
1651 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1652 # thus supply support for various ABI/ISA combinations. The MACHDEP
1653 # variable is also adjusted.
1656 if test ! -z "$SGI_ABI"
1659 LDFLAGS
="$SGI_ABI $LDFLAGS"
1660 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1662 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1663 echo "${ECHO_T}$MACHDEP" >&6
1665 # And add extra plat-mac for darwin
1668 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1669 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1670 if test -z "$EXTRAPLATDIR"
1674 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1675 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1683 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1684 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1686 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1687 # it may influence the way we can build extensions, so distutils
1691 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1692 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1694 # checks for alternative programs
1696 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1697 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1698 # just to get things to compile and link. Users are free to override OPT
1699 # when running configure or make. The build should not break if they do.
1700 # BASECFLAGS should generally not be messed with, however.
1702 # XXX shouldn't some/most/all of this code be merged with the stuff later
1703 # on that fiddles with OPT and BASECFLAGS?
1704 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1705 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1707 # Check whether --with-gcc or --without-gcc was given.
1708 if test "${with_gcc+set}" = set; then
1717 without_gcc
=$withval;;
1721 case $ac_sys_system in
1725 case $BE_HOST_CPU in
1729 BASECFLAGS
="$BASECFLAGS -export pragma"
1731 LDFLAGS
="$LDFLAGS -nodup"
1739 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1740 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1741 { (exit 1); exit 1; }; }
1744 AR
="\$(srcdir)/Modules/ar_beos"
1753 echo "$as_me:$LINENO: result: $without_gcc" >&5
1754 echo "${ECHO_T}$without_gcc" >&6
1756 # If the user switches compilers, we can't believe the cache
1757 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1759 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1760 (it is also a good idea to do 'make clean' before compiling)" >&5
1761 echo "$as_me: error: cached CC is different -- throw away $cache_file
1762 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1763 { (exit 1); exit 1; }; }
1767 ac_cpp
='$CPP $CPPFLAGS'
1768 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC
="$CC" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_CC"; then
1810 # Extract the first word of "gcc", so it can be a program name with args.
1811 set dummy gcc
; ac_word
=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_CC"; then
1818 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir
=.
1825 for ac_exec_ext
in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_CC
="gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1837 if test -n "$ac_ct_CC"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839 echo "${ECHO_T}$ac_ct_CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1850 if test -z "$CC"; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1853 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC
="$CC" # Let the user override the test.
1862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir
=.
1867 for ac_exec_ext
in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1888 if test -z "$ac_cv_prog_CC"; then
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc
; ac_word
=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$ac_ct_CC"; then
1898 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1904 test -z "$as_dir" && as_dir
=.
1905 for ac_exec_ext
in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_CC
="cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1917 if test -n "$ac_ct_CC"; then
1918 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1919 echo "${ECHO_T}$ac_ct_CC" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc
; ac_word
=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC
="$CC" # Let the user override the test.
1943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir
=.
1948 for ac_exec_ext
in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1951 ac_prog_rejected
=yes
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 if test $ac_prog_rejected = yes; then
1962 # We found a bogon in the path, so make sure we never use it.
1963 set dummy
$ac_cv_prog_CC
1965 if test $# != 0; then
1966 # We chose a different compiler from the bogus one.
1967 # However, it has the same basename, so the bogon will be chosen
1968 # first if we set CC to just the basename; use the full file name.
1970 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 if test -n "$ac_tool_prefix"; then
1989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC
="$CC" # Let the user override the test.
1999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir
=.
2004 for ac_exec_ext
in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 test -n "$CC" && break
2027 if test -z "$CC"; then
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy
$ac_prog; ac_word
=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir
=.
2046 for ac_exec_ext
in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_ac_ct_CC
="$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2066 test -n "$ac_ct_CC" && break
2075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
2081 # Provide some information about the compiler.
2082 echo "$as_me:$LINENO:" \
2083 "checking for C compiler version" >&5
2084 ac_compiler
=`set X $ac_compile; echo $2`
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2086 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2091 (eval $ac_compiler -v </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); }
2101 cat >conftest.
$ac_ext <<_ACEOF
2104 cat confdefs.h
>>conftest.
$ac_ext
2105 cat >>conftest.
$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2116 ac_clean_files_save
=$ac_clean_files
2117 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2121 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2123 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2125 (eval $ac_link_default) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 # Find the output, starting from the most likely. This scheme is
2130 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2133 # Be careful to initialize this variable, since it used to be cached.
2134 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2136 # b.out is created by i960 compilers.
2137 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2139 test -f "$ac_file" ||
continue
2141 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2144 # This is the source file.
2147 # We found the default executable, but exeext='' is most
2151 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152 # FIXME: I believe we export ac_cv_exeext for Libtool,
2153 # but it would be cool to find out if it's true. Does anybody
2154 # maintain Libtool? --akim.
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.
$ac_ext >&5
2165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: C compiler cannot create executables
2168 See \`config.log' for more details." >&2;}
2169 { (exit 77); exit 77; }; }
2172 ac_exeext
=$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_file" >&5
2174 echo "${ECHO_T}$ac_file" >&6
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2181 # If not cross compiling, check that we can run a simple program.
2182 if test "$cross_compiling" != yes; then
2183 if { ac_try
='./$ac_file'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2191 if test "$cross_compiling" = maybe
; then
2194 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: cannot run C compiled programs.
2198 If you meant to cross compile, use \`--host'.
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2204 echo "$as_me:$LINENO: result: yes" >&5
2205 echo "${ECHO_T}yes" >&6
2207 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2208 ac_clean_files
=$ac_clean_files_save
2209 # Check the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2212 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2213 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2214 echo "${ECHO_T}$cross_compiling" >&6
2216 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2217 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2219 (eval $ac_link) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2225 # work properly (i.e., refer to `conftest.exe'), while it won't with
2227 for ac_file
in conftest.exe conftest conftest.
*; do
2228 test -f "$ac_file" ||
continue
2230 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2231 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2245 rm -f conftest
$ac_cv_exeext
2246 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2247 echo "${ECHO_T}$ac_cv_exeext" >&6
2249 rm -f conftest.
$ac_ext
2250 EXEEXT
=$ac_cv_exeext
2252 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2253 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2254 if test "${ac_cv_objext+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 cat >conftest.
$ac_ext <<_ACEOF
2260 cat confdefs.h
>>conftest.
$ac_ext
2261 cat >>conftest.
$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2280 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2281 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.
$ac_ext >&5
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT
=$ac_cv_objext
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.
$ac_ext <<_ACEOF
2310 cat confdefs.h
>>conftest.
$ac_ext
2311 cat >>conftest.
$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2325 rm -f conftest.
$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2329 grep -v '^ *+' conftest.er1
>conftest.err
2331 cat conftest.err
>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try
='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try
='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.
$ac_ext >&5
2354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2355 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2358 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2360 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2361 ac_test_CFLAGS
=${CFLAGS+set}
2362 ac_save_CFLAGS
=$CFLAGS
2364 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2366 if test "${ac_cv_prog_cc_g+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.
$ac_ext <<_ACEOF
2372 cat confdefs.h
>>conftest.
$ac_ext
2373 cat >>conftest.
$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2384 rm -f conftest.
$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2388 grep -v '^ *+' conftest.er1
>conftest.err
2390 cat conftest.err
>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try
='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try
='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.
$ac_ext >&5
2413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2417 if test "$ac_test_CFLAGS" = set; then
2418 CFLAGS
=$ac_save_CFLAGS
2419 elif test $ac_cv_prog_cc_g = yes; then
2420 if test "$GCC" = yes; then
2426 if test "$GCC" = yes; then
2432 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2433 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_cv_prog_cc_stdc
=no
2439 cat >conftest.
$ac_ext <<_ACEOF
2442 cat confdefs.h
>>conftest.
$ac_ext
2443 cat >>conftest.
$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2447 #include <sys/types.h>
2448 #include <sys/stat.h>
2449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2450 struct buf { int x; };
2451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2452 static char *e (p, i)
2458 static char *f (char * (*g) (char **, int), char **p, ...)
2463 s = g (p, va_arg (v,int));
2468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2469 function prototypes and stuff, but not '\xHH' hex character constants.
2470 These don't provoke an error unfortunately, instead are silently treated
2471 as 'x'. The following induces an error, until -std1 is added to get
2472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2473 array size at least. It's necessary to write '\x00'==0 to get something
2474 that's true only with -std1. */
2475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2477 int test (int i, double x);
2478 struct s1 {int (*f) (int a);};
2479 struct s2 {int (*f) (double a);};
2480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2491 # Don't try gcc -ansi; that turns off useful extensions and
2492 # breaks some systems' header files.
2493 # AIX -qlanglvl=ansi
2494 # Ultrix and OSF/1 -std1
2495 # HP-UX 10.20 and later -Ae
2496 # HP-UX older versions -Aa -D_HPUX_SOURCE
2497 # SVR4 -Xc -D__EXTENSIONS__
2498 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2500 CC
="$ac_save_CC $ac_arg"
2501 rm -f conftest.
$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2505 grep -v '^ *+' conftest.er1
>conftest.err
2507 cat conftest.err
>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try
='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try
='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_prog_cc_stdc
=$ac_arg
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.
$ac_ext >&5
2530 rm -f conftest.err conftest.
$ac_objext
2532 rm -f conftest.
$ac_ext conftest.
$ac_objext
2537 case "x$ac_cv_prog_cc_stdc" in
2539 echo "$as_me:$LINENO: result: none needed" >&5
2540 echo "${ECHO_T}none needed" >&6 ;;
2542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2547 # Some people use a C++ compiler to compile C. Since we use `exit',
2548 # in C++ we need to declare it. In case someone uses the same compiler
2549 # for both compiling C and C++ we need to have the C++ compiler decide
2550 # the declaration of exit, since it's the most demanding environment.
2551 cat >conftest.
$ac_ext <<_ACEOF
2556 rm -f conftest.
$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2560 grep -v '^ *+' conftest.er1
>conftest.err
2562 cat conftest.err
>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try
='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try
='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 for ac_declaration
in \
2580 'extern "C" void std::exit (int) throw (); using std::exit;' \
2581 'extern "C" void std::exit (int); using std::exit;' \
2582 'extern "C" void exit (int) throw ();' \
2583 'extern "C" void exit (int);' \
2586 cat >conftest.
$ac_ext <<_ACEOF
2589 cat confdefs.h
>>conftest.
$ac_ext
2590 cat >>conftest.
$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2602 rm -f conftest.
$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1
>conftest.err
2608 cat conftest.err
>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try
='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try
='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2632 cat >conftest.
$ac_ext <<_ACEOF
2635 cat confdefs.h
>>conftest.
$ac_ext
2636 cat >>conftest.
$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2647 rm -f conftest.
$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1
>conftest.err
2653 cat conftest.err
>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try
='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try
='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.
$ac_ext >&5
2675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2678 if test -n "$ac_declaration"; then
2679 echo '#ifdef __cplusplus' >>confdefs.h
2680 echo $ac_declaration >>confdefs.h
2681 echo '#endif' >>confdefs.h
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2691 ac_cpp
='$CPP $CPPFLAGS'
2692 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2699 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2700 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2702 # Check whether --with-cxx_main or --without-cxx_main was given.
2703 if test "${with_cxx_main+set}" = set; then
2704 withval
="$with_cxx_main"
2708 no
) with_cxx_main
=no
2710 yes) with_cxx_main
=yes
2712 *) with_cxx_main
=yes
2725 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2726 echo "${ECHO_T}$with_cxx_main" >&6
2732 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2733 set dummy g
++; ac_word
=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_path_CXX+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2745 for as_dir
in notfound
2748 test -z "$as_dir" && as_dir
=.
2749 for ac_exec_ext
in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2764 if test -n "$CXX"; then
2765 echo "$as_me:$LINENO: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 cc
) # Extract the first word of "c++", so it can be a program name with args.
2773 set dummy c
++; ac_word
=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_path_CXX+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 for as_dir
in notfound
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2804 if test -n "$CXX"; then
2805 echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2813 if test "$CXX" = "notfound"
2820 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy
$ac_prog; ac_word
=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$CXX"; then
2830 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CXX
="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CXX"; then
2850 echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2857 test -n "$CXX" && break
2859 test -n "$CXX" || CXX
="notfound"
2861 if test "$CXX" = "notfound"
2866 if test "$preset_cxx" != "$CXX"
2868 { echo "$as_me:$LINENO: WARNING:
2870 By default, distutils will build C++ extension modules with \"$CXX\".
2871 If this is not intended, then set CXX on the configure command line.
2873 echo "$as_me: 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.
2881 # checks for UNIX variants that set C preprocessor variables
2884 ac_cpp
='$CPP $CPPFLAGS'
2885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 # Double quotes because CPP needs to be expanded
2899 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2902 for ac_c_preproc_warn_flag
in '' yes
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.
$ac_ext <<_ACEOF
2913 cat confdefs.h
>>conftest.
$ac_ext
2914 cat >>conftest.
$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2917 # include <limits.h>
2919 # include <assert.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1
>conftest.err
2928 cat conftest.err
>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev
/null
; then
2931 if test -s conftest.err
; then
2932 ac_cpp_err
=$ac_c_preproc_warn_flag
2933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2940 if test -z "$ac_cpp_err"; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.
$ac_ext >&5
2946 # Broken: fails on valid input.
2949 rm -f conftest.err conftest.
$ac_ext
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.
$ac_ext <<_ACEOF
2956 cat confdefs.h
>>conftest.
$ac_ext
2957 cat >>conftest.
$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1
>conftest.err
2966 cat conftest.err
>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev
/null
; then
2969 if test -s conftest.err
; then
2970 ac_cpp_err
=$ac_c_preproc_warn_flag
2971 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.
$ac_ext >&5
2985 # Passes both tests.
2989 rm -f conftest.err conftest.
$ac_ext
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.
$ac_ext
2994 if $ac_preproc_ok; then
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3009 for ac_c_preproc_warn_flag
in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.
$ac_ext <<_ACEOF
3020 cat confdefs.h
>>conftest.
$ac_ext
3021 cat >>conftest.
$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev
/null
; then
3038 if test -s conftest.err
; then
3039 ac_cpp_err
=$ac_c_preproc_warn_flag
3040 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.
$ac_ext >&5
3053 # Broken: fails on valid input.
3056 rm -f conftest.err conftest.
$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.
$ac_ext <<_ACEOF
3063 cat confdefs.h
>>conftest.
$ac_ext
3064 cat >>conftest.
$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1
>conftest.err
3073 cat conftest.err
>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev
/null
; then
3076 if test -s conftest.err
; then
3077 ac_cpp_err
=$ac_c_preproc_warn_flag
3078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.
$ac_ext >&5
3092 # Passes both tests.
3096 rm -f conftest.err conftest.
$ac_ext
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.
$ac_ext
3101 if $ac_preproc_ok; then
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3112 ac_cpp
='$CPP $CPPFLAGS'
3113 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3118 echo "$as_me:$LINENO: checking for egrep" >&5
3119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3120 if test "${ac_cv_prog_egrep+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3124 then ac_cv_prog_egrep
='grep -E'
3125 else ac_cv_prog_egrep
='egrep'
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3130 EGREP
=$ac_cv_prog_egrep
3134 echo "$as_me:$LINENO: checking for AIX" >&5
3135 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3136 cat >conftest.
$ac_ext <<_ACEOF
3139 cat confdefs.h
>>conftest.
$ac_ext
3140 cat >>conftest.
$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3148 $EGREP "yes" >/dev
/null
2>&1; then
3149 echo "$as_me:$LINENO: result: yes" >&5
3150 echo "${ECHO_T}yes" >&6
3151 cat >>confdefs.h
<<\_ACEOF
3152 #define _ALL_SOURCE 1
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3163 # Check for unsupported systems
3164 case $ac_sys_system/$ac_sys_release in
3166 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3167 echo See README
for details.
3172 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3173 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3175 # Check whether --with-suffix or --without-suffix was given.
3176 if test "${with_suffix+set}" = set; then
3177 withval
="$with_suffix"
3182 *) EXEEXT
=$withval;;
3185 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3186 echo "${ECHO_T}$EXEEXT" >&6
3188 # Test whether we're running on a non-case-sensitive system, in which
3189 # case we give a warning if no ext is given
3191 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3192 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3193 if test ! -d CaseSensitiveTestDir
; then
3194 mkdir CaseSensitiveTestDir
3197 if test -d casesensitivetestdir
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3207 rmdir CaseSensitiveTestDir
3212 gcc
) CC
="$CC -D_HAVE_BSDI";;
3216 case $ac_sys_system in
3219 cc|
*/cc
) CC
="$CC -Ae";;
3223 cc
) CC
="$CC -Wl,-Bexport";;
3226 # Some functions have a prototype only with that define, e.g. confstr
3228 cat >>confdefs.h
<<\_ACEOF
3229 #define __EXTENSIONS__ 1
3237 echo "$as_me:$LINENO: checking LIBRARY" >&5
3238 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3239 if test -z "$LIBRARY"
3241 LIBRARY
='libpython$(VERSION).a'
3243 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3244 echo "${ECHO_T}$LIBRARY" >&6
3246 # LDLIBRARY is the name of the library to link against (as opposed to the
3247 # name of the library into which to insert object files). BLDLIBRARY is also
3248 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3249 # is blank as the main program is not linked directly against LDLIBRARY.
3250 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3251 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3252 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3253 # DLLLIBRARY is the shared (i.e., DLL) library.
3255 # RUNSHARED is used to run shared python without installed libraries
3257 # INSTSONAME is the name of the shared library that will be use to install
3258 # on the system - some systems like version suffix, others don't
3265 LDLIBRARY
="$LIBRARY"
3266 BLDLIBRARY
='$(LDLIBRARY)'
3267 INSTSONAME
='$(LDLIBRARY)'
3272 # LINKCC is the command that links the python executable -- default is $(CC).
3273 # If CXX is set, and if it is needed to link a main function that was
3274 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3275 # python might then depend on the C++ runtime
3276 # This is altered for AIX in order to build the export list before
3279 echo "$as_me:$LINENO: checking LINKCC" >&5
3280 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3281 if test -z "$LINKCC"
3283 LINKCC
='$(PURIFY) $(MAINCC)'
3284 case $ac_sys_system in
3287 if test $ac_sys_release -ge 5 -o \
3288 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3291 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3293 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3296 echo "$as_me:$LINENO: result: $LINKCC" >&5
3297 echo "${ECHO_T}$LINKCC" >&6
3299 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3300 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3301 # Check whether --enable-shared or --disable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303 enableval
="$enable_shared"
3307 if test -z "$enable_shared"
3309 case $ac_sys_system in
3311 enable_shared
="yes";;
3313 enable_shared
="no";;
3316 echo "$as_me:$LINENO: result: $enable_shared" >&5
3317 echo "${ECHO_T}$enable_shared" >&6
3319 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3320 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3321 # Check whether --enable-profiling or --disable-profiling was given.
3322 if test "${enable_profiling+set}" = set; then
3323 enableval
="$enable_profiling"
3326 if test "$cross_compiling" = yes; then
3327 ac_enable_profiling
="no"
3329 cat >conftest.
$ac_ext <<_ACEOF
3332 cat confdefs.h
>>conftest.
$ac_ext
3333 cat >>conftest.
$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335 int main() { return 0; }
3337 rm -f conftest
$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_enable_profiling
="yes"
3350 echo "$as_me: program exited with status $ac_status" >&5
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.
$ac_ext >&5
3355 ac_enable_profiling
="no"
3357 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3362 echo "${ECHO_T}$ac_enable_profiling" >&6
3364 case "$ac_enable_profiling" in
3366 BASECFLAGS
="-pg $BASECFLAGS"
3367 LDFLAGS
="-pg $LDFLAGS"
3371 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3372 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3374 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3375 # library that we build, but we do not want to link against it (we
3376 # will find it with a -framework option). For this reason there is an
3377 # extra variable BLDLIBRARY against which Python and the extension
3378 # modules are linked, BLDLIBRARY. This is normally the same as
3379 # LDLIBRARY, but empty for MacOSX framework builds.
3380 if test "$enable_framework"
3382 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3383 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3386 BLDLIBRARY
='$(LDLIBRARY)'
3389 # Other platforms follow
3390 if test $enable_shared = "yes"; then
3392 cat >>confdefs.h
<<\_ACEOF
3393 #define Py_ENABLE_SHARED 1
3396 case $ac_sys_system in
3398 LDLIBRARY
='libpython$(VERSION).so'
3401 LDLIBRARY
='libpython$(VERSION).dll.a'
3402 DLLLIBRARY
='libpython$(VERSION).dll'
3405 LDLIBRARY
='libpython$(VERSION).so'
3406 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3408 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3410 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3411 LDLIBRARY
='libpython$(VERSION).so'
3412 BLDLIBRARY
='-L. -lpython$(VERSION)'
3413 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3414 case $ac_sys_system in
3416 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3419 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3424 LDLIBRARY
='libpython$(VERSION).so'
3427 LDLIBRARY
='libpython$(VERSION).sl'
3430 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3431 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3434 LDLIBRARY
='libpython$(VERSION).so'
3435 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3439 LDLIBRARY
='libpython$(VERSION).so'
3440 BLDLIBRARY
='-L. -lpython$(VERSION)'
3441 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3444 else # shared is disabled
3445 case $ac_sys_system in
3447 BLDLIBRARY
='$(LIBRARY)'
3448 LDLIBRARY
='libpython$(VERSION).dll.a'
3453 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3454 echo "${ECHO_T}$LDLIBRARY" >&6
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3458 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_RANLIB+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 if test -n "$RANLIB"; then
3465 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir
=.
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 RANLIB
=$ac_cv_prog_RANLIB
3484 if test -n "$RANLIB"; then
3485 echo "$as_me:$LINENO: result: $RANLIB" >&5
3486 echo "${ECHO_T}$RANLIB" >&6
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3493 if test -z "$ac_cv_prog_RANLIB"; then
3494 ac_ct_RANLIB
=$RANLIB
3495 # Extract the first word of "ranlib", so it can be a program name with args.
3496 set dummy ranlib
; ac_word
=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -n "$ac_ct_RANLIB"; then
3503 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3522 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3523 if test -n "$ac_ct_RANLIB"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3525 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3531 RANLIB
=$ac_ct_RANLIB
3533 RANLIB
="$ac_cv_prog_RANLIB"
3537 for ac_prog
in ar aal
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy
$ac_prog; ac_word
=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_AR+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test -n "$AR"; then
3547 ac_cv_prog_AR
="$AR" # Let the user override the test.
3549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir
=.
3554 for ac_exec_ext
in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_AR
="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$AR" && break
3576 test -n "$AR" || AR
="ar"
3580 # Extract the first word of "svnversion", so it can be a program name with args.
3581 set dummy svnversion
; ac_word
=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$SVNVERSION"; then
3588 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir
=.
3595 for ac_exec_ext
in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_SVNVERSION
="found"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3607 SVNVERSION
=$ac_cv_prog_SVNVERSION
3608 if test -n "$SVNVERSION"; then
3609 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3610 echo "${ECHO_T}$SVNVERSION" >&6
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 if test $SVNVERSION = found
3618 SVNVERSION
="svnversion \$(srcdir)"
3620 SVNVERSION
="echo exported"
3625 # install -d does not work on BSDI or HP-UX
3626 if test -z "$INSTALL"
3628 INSTALL
="${srcdir}/install-sh -c"
3632 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3633 if test -f $ac_dir/install-sh
; then
3635 ac_install_sh
="$ac_aux_dir/install-sh -c"
3637 elif test -f $ac_dir/install.sh
; then
3639 ac_install_sh
="$ac_aux_dir/install.sh -c"
3641 elif test -f $ac_dir/shtool
; then
3643 ac_install_sh
="$ac_aux_dir/shtool install -c"
3647 if test -z "$ac_aux_dir"; then
3648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3649 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3650 { (exit 1); exit 1; }; }
3652 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3653 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3654 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3671 if test -z "$INSTALL"; then
3672 if test "${ac_cv_path_install+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir
=.
3680 # Account for people who put trailing slashes in PATH elements.
3682 .
/ | .
// |
/cC
/* | \
3683 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3684 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3690 for ac_prog
in ginstall scoinst
install; do
3691 for ac_exec_ext
in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3693 if test $ac_prog = install &&
3694 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3697 elif test $ac_prog = install &&
3698 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3702 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL
=$ac_cv_path_install
3717 # As a last resort, use the slow shell script. We don't cache a
3718 # path for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the path is relative.
3721 INSTALL
=$ac_install_sh
3724 echo "$as_me:$LINENO: result: $INSTALL" >&5
3725 echo "${ECHO_T}$INSTALL" >&6
3727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728 # It thinks the first close brace ends the variable substitution.
3729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3733 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3736 # Not every filesystem supports hard links
3738 if test -z "$LN" ; then
3739 case $ac_sys_system in
3741 CYGWIN
*) LN
="ln -s";;
3742 atheos
*) LN
="ln -s";;
3747 # Check for --with-pydebug
3748 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3749 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3751 # Check whether --with-pydebug or --without-pydebug was given.
3752 if test "${with_pydebug+set}" = set; then
3753 withval
="$with_pydebug"
3755 if test "$withval" != no
3758 cat >>confdefs.h
<<\_ACEOF
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6;
3765 else echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3774 # merged with this chunk of code?
3776 # Optimizer/debugger flags
3777 # ------------------------
3778 # (The following bit of code is complicated enough - please keep things
3779 # indented properly. Just pretend you're editing Python code. ;-)
3781 # There are two parallel sets of case statements below, one that checks to
3782 # see if OPT was set and one that does BASECFLAGS setting based upon
3783 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3786 # tweak OPT based on compiler and platform, only if the user didn't set
3787 # it on the command line
3793 if test "$CC" != 'g++' ; then
3794 STRICT_PROTO
="-Wstrict-prototypes"
3796 case $ac_cv_prog_cc_g in
3798 if test "$Py_DEBUG" = 'true' ; then
3799 # Optimization messes up debuggers, so turn it off for
3801 OPT
="-g -Wall $STRICT_PROTO"
3803 OPT
="-g -O3 -Wall $STRICT_PROTO"
3807 OPT
="-O3 -Wall $STRICT_PROTO"
3810 case $ac_sys_system in
3811 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3821 # The current (beta) Monterey compiler dies with optimizations
3822 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3823 case $ac_sys_system in
3832 # tweak BASECFLAGS based on compiler and platform
3835 # Python violates C99 rules, by casting between incompatible
3836 # pointer types. GCC may generate bad code as a result of that,
3837 # so use -fno-strict-aliasing if supported.
3838 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3839 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3841 CC
="$CC -fno-strict-aliasing"
3842 if test "$cross_compiling" = yes; then
3843 ac_cv_no_strict_aliasing_ok
=no
3845 cat >conftest.
$ac_ext <<_ACEOF
3848 cat confdefs.h
>>conftest.
$ac_ext
3849 cat >>conftest.
$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 int main() { return 0; }
3853 rm -f conftest
$ac_exeext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_no_strict_aliasing_ok
=yes
3866 echo "$as_me: program exited with status $ac_status" >&5
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3871 ac_cv_no_strict_aliasing_ok
=no
3873 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3877 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3878 if test $ac_cv_no_strict_aliasing_ok = yes
3880 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3882 case $ac_sys_system in
3884 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3886 # is there any other compiler on Darwin besides gcc?
3888 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 if test "${enable_universalsdk}"; then
3890 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3895 BASECFLAGS
="$BASECFLAGS -mieee"
3901 case $ac_sys_system in
3902 OpenUNIX
*|UnixWare
*)
3903 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3906 BASECFLAGS
="$BASECFLAGS -ieee -std"
3909 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3915 if test "$Py_DEBUG" = 'true'; then
3921 if test "$ac_arch_flags"
3923 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3926 # disable check for icc since it seems to pass, but generates a warning
3929 ac_cv_opt_olimit_ok
=no
3932 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3933 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3934 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 CC
="$CC -OPT:Olimit=0"
3939 if test "$cross_compiling" = yes; then
3940 ac_cv_opt_olimit_ok
=no
3942 cat >conftest.
$ac_ext <<_ACEOF
3945 cat confdefs.h
>>conftest.
$ac_ext
3946 cat >>conftest.
$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 int main() { return 0; }
3950 rm -f conftest
$ac_exeext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952 (eval $ac_link) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_cv_opt_olimit_ok
=yes
3963 echo "$as_me: program exited with status $ac_status" >&5
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.
$ac_ext >&5
3968 ac_cv_opt_olimit_ok
=no
3970 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3975 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3976 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3977 if test $ac_cv_opt_olimit_ok = yes; then
3978 case $ac_sys_system in
3979 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3980 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3985 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3989 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3990 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3991 if test "${ac_cv_olimit_ok+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 CC
="$CC -Olimit 1500"
3996 if test "$cross_compiling" = yes; then
3999 cat >conftest.
$ac_ext <<_ACEOF
4002 cat confdefs.h
>>conftest.
$ac_ext
4003 cat >>conftest.
$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 int main() { return 0; }
4007 rm -f conftest
$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.
$ac_ext >&5
4027 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4032 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4033 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4034 if test $ac_cv_olimit_ok = yes; then
4035 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4039 # On some compilers, pthreads are available without further options
4040 # (e.g. MacOS X). On some of these systems, the compiler will not
4041 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4042 # So we have to see first whether pthreads are available without
4043 # options before we can check whether -Kpthread improves anything.
4044 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4045 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4046 if test "${ac_cv_pthread_is_default+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_pthread_is_default
=no
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 #include <pthread.h>
4061 void* routine(void* p){return NULL;}
4065 if(pthread_create(&p,NULL,routine,NULL)!=0)
4067 (void)pthread_detach(p);
4072 rm -f conftest
$ac_exeext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4074 (eval $ac_link) 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4084 ac_cv_pthread_is_default
=yes
4089 echo "$as_me: program exited with status $ac_status" >&5
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.
$ac_ext >&5
4094 ac_cv_pthread_is_default
=no
4096 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4102 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4105 if test $ac_cv_pthread_is_default = yes
4109 # -Kpthread, if available, provides the right #defines
4110 # and linker options to make pthread_create available
4111 # Some compilers won't report that they do not support -Kpthread,
4112 # so we need to run a program to see whether it really made the
4113 # function available.
4114 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4115 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4116 if test "${ac_cv_kpthread+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test "$cross_compiling" = yes; then
4124 cat >conftest.
$ac_ext <<_ACEOF
4127 cat confdefs.h
>>conftest.
$ac_ext
4128 cat >>conftest.
$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 #include <pthread.h>
4133 void* routine(void* p){return NULL;}
4137 if(pthread_create(&p,NULL,routine,NULL)!=0)
4139 (void)pthread_detach(p);
4144 rm -f conftest
$ac_exeext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4157 echo "$as_me: program exited with status $ac_status" >&5
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.
$ac_ext >&5
4164 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4170 echo "${ECHO_T}$ac_cv_kpthread" >&6
4173 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4175 # -Kthread, if available, provides the right #defines
4176 # and linker options to make pthread_create available
4177 # Some compilers won't report that they do not support -Kthread,
4178 # so we need to run a program to see whether it really made the
4179 # function available.
4180 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4181 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4182 if test "${ac_cv_kthread+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 if test "$cross_compiling" = yes; then
4190 cat >conftest.
$ac_ext <<_ACEOF
4193 cat confdefs.h
>>conftest.
$ac_ext
4194 cat >>conftest.
$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 #include <pthread.h>
4199 void* routine(void* p){return NULL;}
4203 if(pthread_create(&p,NULL,routine,NULL)!=0)
4205 (void)pthread_detach(p);
4210 rm -f conftest
$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4223 echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.
$ac_ext >&5
4230 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4235 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4236 echo "${ECHO_T}$ac_cv_kthread" >&6
4239 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4241 # -pthread, if available, provides the right #defines
4242 # and linker options to make pthread_create available
4243 # Some compilers won't report that they do not support -pthread,
4244 # so we need to run a program to see whether it really made the
4245 # function available.
4246 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4247 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4248 if test "${ac_cv_thread+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test "$cross_compiling" = yes; then
4256 cat >conftest.
$ac_ext <<_ACEOF
4259 cat confdefs.h
>>conftest.
$ac_ext
4260 cat >>conftest.
$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 #include <pthread.h>
4265 void* routine(void* p){return NULL;}
4269 if(pthread_create(&p,NULL,routine,NULL)!=0)
4271 (void)pthread_detach(p);
4276 rm -f conftest
$ac_exeext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278 (eval $ac_link) 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.
$ac_ext >&5
4296 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4301 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4302 echo "${ECHO_T}$ac_cv_pthread" >&6
4305 # If we have set a CC compiler flag for thread support then
4306 # check if it works for CXX, too.
4310 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4311 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4314 if test "$ac_cv_kpthread" = "yes"
4316 CXX
="$CXX -Kpthread"
4317 ac_cv_cxx_thread
=yes
4318 elif test "$ac_cv_kthread" = "yes"
4321 ac_cv_cxx_thread
=yes
4322 elif test "$ac_cv_pthread" = "yes"
4325 ac_cv_cxx_thread
=yes
4328 if test $ac_cv_cxx_thread = yes
4330 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4331 $CXX -c conftest.
$ac_ext 2>&5
4332 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4333 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4335 ac_cv_cxx_thread
=yes
4341 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4342 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4347 # checks for header files
4348 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4350 if test "${ac_cv_header_stdc+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 cat >conftest.
$ac_ext <<_ACEOF
4356 cat confdefs.h
>>conftest.
$ac_ext
4357 cat >>conftest.
$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4372 rm -f conftest.
$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1
>conftest.err
4378 cat conftest.err
>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try
='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try
='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_header_stdc
=yes
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.
$ac_ext >&5
4399 ac_cv_header_stdc
=no
4401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.
$ac_ext <<_ACEOF
4408 cat confdefs.h
>>conftest.
$ac_ext
4409 cat >>conftest.
$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev
/null
2>&1; then
4418 ac_cv_header_stdc
=no
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev
/null
2>&1; then
4439 ac_cv_header_stdc
=no
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4450 cat >conftest.
$ac_ext <<_ACEOF
4453 cat confdefs.h
>>conftest.
$ac_ext
4454 cat >>conftest.
$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4480 rm -f conftest
$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.
$ac_ext >&5
4498 ac_cv_header_stdc
=no
4500 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h
<<\_ACEOF
4509 #define STDC_HEADERS 1
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 cat >conftest.
$ac_ext <<_ACEOF
4536 cat confdefs.h
>>conftest.
$ac_ext
4537 cat >>conftest.
$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4543 rm -f conftest.
$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1
>conftest.err
4549 cat conftest.err
>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try
='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try
='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 eval "$as_ac_Header=yes"
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.
$ac_ext >&5
4570 eval "$as_ac_Header=no"
4572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4577 cat >>confdefs.h
<<_ACEOF
4578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4636 shadow.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4637 signal.h stropts.h termios.h thread.h \
4639 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4641 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
4643 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4644 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4645 bluetooth
/bluetooth.h
4647 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4657 # Is the header compilable?
4658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660 cat >conftest.
$ac_ext <<_ACEOF
4663 cat confdefs.h
>>conftest.
$ac_ext
4664 cat >>conftest.
$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 #include <$ac_header>
4669 rm -f conftest.
$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4673 grep -v '^ *+' conftest.er1
>conftest.err
4675 cat conftest.err
>&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try
='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try
='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler
=yes
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.
$ac_ext >&5
4696 ac_header_compiler
=no
4698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700 echo "${ECHO_T}$ac_header_compiler" >&6
4702 # Is the header present?
4703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705 cat >conftest.
$ac_ext <<_ACEOF
4708 cat confdefs.h
>>conftest.
$ac_ext
4709 cat >>conftest.
$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 #include <$ac_header>
4713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1
>conftest.err
4718 cat conftest.err
>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev
/null
; then
4721 if test -s conftest.err
; then
4722 ac_cpp_err
=$ac_c_preproc_warn_flag
4723 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4730 if test -z "$ac_cpp_err"; then
4731 ac_header_preproc
=yes
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.
$ac_ext >&5
4736 ac_header_preproc
=no
4738 rm -f conftest.err conftest.
$ac_ext
4739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740 echo "${ECHO_T}$ac_header_preproc" >&6
4742 # So? What about this header?
4743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4749 ac_header_preproc
=yes
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4766 ## ------------------------------------------------ ##
4767 ## Report this to http://www.python.org/python-bugs ##
4768 ## ------------------------------------------------ ##
4771 sed "s/^/$as_me: WARNING: /" >&2
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 eval "$as_ac_Header=\$ac_header_preproc"
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h
<<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4800 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4801 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4802 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 cat >conftest.
$ac_ext <<_ACEOF
4810 cat confdefs.h
>>conftest.
$ac_ext
4811 cat >>conftest.
$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <sys/types.h>
4825 rm -f conftest.
$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>conftest.er1
4829 grep -v '^ *+' conftest.er1
>conftest.err
4831 cat conftest.err
>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try
='test -z "$ac_c_werror_flag"
4835 || test ! -s conftest.err'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; } &&
4841 { ac_try
='test -s conftest.$ac_objext'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 eval "$as_ac_Header=yes"
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.
$ac_ext >&5
4852 eval "$as_ac_Header=no"
4854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4859 cat >>confdefs.h
<<_ACEOF
4860 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4863 ac_header_dirent
=$ac_hdr; break
4867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4868 if test $ac_header_dirent = dirent.h
; then
4869 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4871 if test "${ac_cv_search_opendir+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 ac_func_search_save_LIBS
=$LIBS
4875 ac_cv_search_opendir
=no
4876 cat >conftest.
$ac_ext <<_ACEOF
4879 cat confdefs.h
>>conftest.
$ac_ext
4880 cat >>conftest.
$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4883 /* Override any gcc2 internal prototype to avoid an error. */
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4898 rm -f conftest.
$ac_objext conftest
$ac_exeext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4900 (eval $ac_link) 2>conftest.er1
4902 grep -v '^ *+' conftest.er1
>conftest.err
4904 cat conftest.err
>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try
='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try
='test -s conftest$ac_exeext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_search_opendir
="none required"
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.
$ac_ext >&5
4926 rm -f conftest.err conftest.
$ac_objext \
4927 conftest
$ac_exeext conftest.
$ac_ext
4928 if test "$ac_cv_search_opendir" = no
; then
4929 for ac_lib
in dir
; do
4930 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4931 cat >conftest.
$ac_ext <<_ACEOF
4934 cat confdefs.h
>>conftest.
$ac_ext
4935 cat >>conftest.
$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4938 /* Override any gcc2 internal prototype to avoid an error. */
4942 /* We use char because int might match the return type of a gcc2
4943 builtin and then its argument prototype would still apply. */
4953 rm -f conftest.
$ac_objext conftest
$ac_exeext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955 (eval $ac_link) 2>conftest.er1
4957 grep -v '^ *+' conftest.er1
>conftest.err
4959 cat conftest.err
>&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try
='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try
='test -s conftest$ac_exeext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_search_opendir
="-l$ac_lib"
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.
$ac_ext >&5
4982 rm -f conftest.err conftest.
$ac_objext \
4983 conftest
$ac_exeext conftest.
$ac_ext
4986 LIBS
=$ac_func_search_save_LIBS
4988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4990 if test "$ac_cv_search_opendir" != no
; then
4991 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4996 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4997 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4998 if test "${ac_cv_search_opendir+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 ac_func_search_save_LIBS
=$LIBS
5002 ac_cv_search_opendir
=no
5003 cat >conftest.
$ac_ext <<_ACEOF
5006 cat confdefs.h
>>conftest.
$ac_ext
5007 cat >>conftest.
$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5010 /* Override any gcc2 internal prototype to avoid an error. */
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5025 rm -f conftest.
$ac_objext conftest
$ac_exeext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027 (eval $ac_link) 2>conftest.er1
5029 grep -v '^ *+' conftest.er1
>conftest.err
5031 cat conftest.err
>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try
='test -z "$ac_c_werror_flag"
5035 || test ! -s conftest.err'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; } &&
5041 { ac_try
='test -s conftest$ac_exeext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_search_opendir
="none required"
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
5055 if test "$ac_cv_search_opendir" = no
; then
5057 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5058 cat >conftest.
$ac_ext <<_ACEOF
5061 cat confdefs.h
>>conftest.
$ac_ext
5062 cat >>conftest.
$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5065 /* Override any gcc2 internal prototype to avoid an error. */
5069 /* We use char because int might match the return type of a gcc2
5070 builtin and then its argument prototype would still apply. */
5080 rm -f conftest.
$ac_objext conftest
$ac_exeext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5082 (eval $ac_link) 2>conftest.er1
5084 grep -v '^ *+' conftest.er1
>conftest.err
5086 cat conftest.err
>&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } &&
5089 { ac_try
='test -z "$ac_c_werror_flag"
5090 || test ! -s conftest.err'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; } &&
5096 { ac_try
='test -s conftest$ac_exeext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_cv_search_opendir
="-l$ac_lib"
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.
$ac_ext >&5
5109 rm -f conftest.err conftest.
$ac_objext \
5110 conftest
$ac_exeext conftest.
$ac_ext
5113 LIBS
=$ac_func_search_save_LIBS
5115 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5116 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5117 if test "$ac_cv_search_opendir" != no
; then
5118 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5124 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5125 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5126 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 cat >conftest.
$ac_ext <<_ACEOF
5132 cat confdefs.h
>>conftest.
$ac_ext
5133 cat >>conftest.
$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <sys/types.h>
5139 return makedev(0, 0);
5144 rm -f conftest.
$ac_objext conftest
$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>conftest.er1
5148 grep -v '^ *+' conftest.er1
>conftest.err
5150 cat conftest.err
>&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
5153 { ac_try
='test -z "$ac_c_werror_flag"
5154 || test ! -s conftest.err'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; } &&
5160 { ac_try
='test -s conftest$ac_exeext'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_header_sys_types_h_makedev
=yes
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.
$ac_ext >&5
5171 ac_cv_header_sys_types_h_makedev
=no
5173 rm -f conftest.err conftest.
$ac_objext \
5174 conftest
$ac_exeext conftest.
$ac_ext
5177 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5178 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5180 if test $ac_cv_header_sys_types_h_makedev = no
; then
5181 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5182 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5183 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5184 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5188 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5190 # Is the header compilable?
5191 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5192 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5193 cat >conftest.
$ac_ext <<_ACEOF
5196 cat confdefs.h
>>conftest.
$ac_ext
5197 cat >>conftest.
$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5200 #include <sys/mkdev.h>
5202 rm -f conftest.
$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5206 grep -v '^ *+' conftest.er1
>conftest.err
5208 cat conftest.err
>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try
='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try
='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_header_compiler
=yes
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.
$ac_ext >&5
5229 ac_header_compiler
=no
5231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233 echo "${ECHO_T}$ac_header_compiler" >&6
5235 # Is the header present?
5236 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5237 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5238 cat >conftest.
$ac_ext <<_ACEOF
5241 cat confdefs.h
>>conftest.
$ac_ext
5242 cat >>conftest.
$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <sys/mkdev.h>
5246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5249 grep -v '^ *+' conftest.er1
>conftest.err
5251 cat conftest.err
>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev
/null
; then
5254 if test -s conftest.err
; then
5255 ac_cpp_err
=$ac_c_preproc_warn_flag
5256 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5263 if test -z "$ac_cpp_err"; then
5264 ac_header_preproc
=yes
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.
$ac_ext >&5
5269 ac_header_preproc
=no
5271 rm -f conftest.err conftest.
$ac_ext
5272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5273 echo "${ECHO_T}$ac_header_preproc" >&6
5275 # So? What about this header?
5276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5281 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5282 ac_header_preproc
=yes
5285 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5286 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5287 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5288 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5289 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5290 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5292 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5294 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5296 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5299 ## ------------------------------------------------ ##
5300 ## Report this to http://www.python.org/python-bugs ##
5301 ## ------------------------------------------------ ##
5304 sed "s/^/$as_me: WARNING: /" >&2
5307 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5308 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5314 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5315 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5318 if test $ac_cv_header_sys_mkdev_h = yes; then
5320 cat >>confdefs.h
<<\_ACEOF
5321 #define MAJOR_IN_MKDEV 1
5328 if test $ac_cv_header_sys_mkdev_h = no
; then
5329 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5330 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5331 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5332 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5336 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5338 # Is the header compilable?
5339 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5340 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5341 cat >conftest.
$ac_ext <<_ACEOF
5344 cat confdefs.h
>>conftest.
$ac_ext
5345 cat >>conftest.
$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5348 #include <sys/sysmacros.h>
5350 rm -f conftest.
$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5354 grep -v '^ *+' conftest.er1
>conftest.err
5356 cat conftest.err
>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try
='test -z "$ac_c_werror_flag"
5360 || test ! -s conftest.err'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try
='test -s conftest.$ac_objext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_header_compiler
=yes
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.
$ac_ext >&5
5377 ac_header_compiler
=no
5379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5381 echo "${ECHO_T}$ac_header_compiler" >&6
5383 # Is the header present?
5384 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5385 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5386 cat >conftest.
$ac_ext <<_ACEOF
5389 cat confdefs.h
>>conftest.
$ac_ext
5390 cat >>conftest.
$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <sys/sysmacros.h>
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5397 grep -v '^ *+' conftest.er1
>conftest.err
5399 cat conftest.err
>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev
/null
; then
5402 if test -s conftest.err
; then
5403 ac_cpp_err
=$ac_c_preproc_warn_flag
5404 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5411 if test -z "$ac_cpp_err"; then
5412 ac_header_preproc
=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.
$ac_ext >&5
5417 ac_header_preproc
=no
5419 rm -f conftest.err conftest.
$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5421 echo "${ECHO_T}$ac_header_preproc" >&6
5423 # So? What about this header?
5424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5429 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5430 ac_header_preproc
=yes
5433 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5434 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5436 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5438 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5440 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5442 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5444 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5447 ## ------------------------------------------------ ##
5448 ## Report this to http://www.python.org/python-bugs ##
5449 ## ------------------------------------------------ ##
5452 sed "s/^/$as_me: WARNING: /" >&2
5455 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5456 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5457 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5463 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5466 if test $ac_cv_header_sys_sysmacros_h = yes; then
5468 cat >>confdefs.h
<<\_ACEOF
5469 #define MAJOR_IN_SYSMACROS 1
5479 # On Solaris, term.h requires curses.h
5481 for ac_header
in term.h
5483 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 cat >conftest.
$ac_ext <<_ACEOF
5492 cat confdefs.h
>>conftest.
$ac_ext
5493 cat >>conftest.
$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5496 #ifdef HAVE_CURSES_H
5501 #include <$ac_header>
5503 rm -f conftest.
$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5507 grep -v '^ *+' conftest.er1
>conftest.err
5509 cat conftest.err
>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try
='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try
='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 eval "$as_ac_Header=yes"
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.
$ac_ext >&5
5530 eval "$as_ac_Header=no"
5532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5537 cat >>confdefs.h
<<_ACEOF
5538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5546 # On Linux, netlink.h requires asm/types.h
5548 for ac_header
in linux
/netlink.h
5550 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551 echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 cat >conftest.
$ac_ext <<_ACEOF
5559 cat confdefs.h
>>conftest.
$ac_ext
5560 cat >>conftest.
$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5563 #ifdef HAVE_ASM_TYPES_H
5564 #include <asm/types.h>
5566 #ifdef HAVE_SYS_SOCKET_H
5567 #include <sys/socket.h>
5571 #include <$ac_header>
5573 rm -f conftest.
$ac_objext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>conftest.er1
5577 grep -v '^ *+' conftest.er1
>conftest.err
5579 cat conftest.err
>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try
='test -z "$ac_c_werror_flag"
5583 || test ! -s conftest.err'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try
='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 eval "$as_ac_Header=yes"
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.
$ac_ext >&5
5600 eval "$as_ac_Header=no"
5602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5607 cat >>confdefs.h
<<_ACEOF
5608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5616 # checks for typedefs
5618 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5619 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5620 cat >conftest.
$ac_ext <<_ACEOF
5623 cat confdefs.h
>>conftest.
$ac_ext
5624 cat >>conftest.
$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "clock_t" >/dev
/null
2>&1; then
5635 cat >>confdefs.h
<<\_ACEOF
5636 #define clock_t long
5643 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5644 echo "${ECHO_T}$was_it_defined" >&6
5646 # Check whether using makedev requires defining _OSF_SOURCE
5647 echo "$as_me:$LINENO: checking for makedev" >&5
5648 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5649 cat >conftest.
$ac_ext <<_ACEOF
5652 cat confdefs.h
>>conftest.
$ac_ext
5653 cat >>conftest.
$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5664 rm -f conftest.
$ac_objext conftest
$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>conftest.er1
5668 grep -v '^ *+' conftest.er1
>conftest.err
5670 cat conftest.err
>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try
='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try
='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_has_makedev
=yes
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.
$ac_ext >&5
5691 ac_cv_has_makedev
=no
5693 rm -f conftest.err conftest.
$ac_objext \
5694 conftest
$ac_exeext conftest.
$ac_ext
5695 if test "$ac_cv_has_makedev" = "no"; then
5696 # we didn't link, try if _OSF_SOURCE will allow us to link
5697 cat >conftest.
$ac_ext <<_ACEOF
5700 cat confdefs.h
>>conftest.
$ac_ext
5701 cat >>conftest.
$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5704 #define _OSF_SOURCE 1
5705 #include <sys/types.h>
5715 rm -f conftest.
$ac_objext conftest
$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>conftest.er1
5719 grep -v '^ *+' conftest.er1
>conftest.err
5721 cat conftest.err
>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try
='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try
='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_cv_has_makedev
=yes
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.
$ac_ext >&5
5742 ac_cv_has_makedev
=no
5744 rm -f conftest.err conftest.
$ac_objext \
5745 conftest
$ac_exeext conftest.
$ac_ext
5746 if test "$ac_cv_has_makedev" = "yes"; then
5748 cat >>confdefs.h
<<\_ACEOF
5749 #define _OSF_SOURCE 1
5754 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5755 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5756 if test "$ac_cv_has_makedev" = "yes"; then
5758 cat >>confdefs.h
<<\_ACEOF
5759 #define HAVE_MAKEDEV 1
5764 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5765 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5766 # defined, but the compiler does not support pragma redefine_extname,
5767 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5768 # structures (such as rlimit64) without declaring them. As a
5769 # work-around, disable LFS on such configurations
5772 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5773 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5774 cat >conftest.
$ac_ext <<_ACEOF
5777 cat confdefs.h
>>conftest.
$ac_ext
5778 cat >>conftest.
$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 #define _LARGEFILE_SOURCE 1
5782 #define _FILE_OFFSET_BITS 64
5783 #include <sys/resource.h>
5793 rm -f conftest.
$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>conftest.er1
5797 grep -v '^ *+' conftest.er1
>conftest.err
5799 cat conftest.err
>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try
='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try
='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.
$ac_ext >&5
5822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5823 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5824 echo "${ECHO_T}$sol_lfs_bug" >&6
5825 if test "$sol_lfs_bug" = "yes"; then
5829 if test "$use_lfs" = "yes"; then
5830 # Two defines needed to enable largefile support on various platforms
5831 # These may affect some typedefs
5833 cat >>confdefs.h
<<\_ACEOF
5834 #define _LARGEFILE_SOURCE 1
5838 cat >>confdefs.h
<<\_ACEOF
5839 #define _FILE_OFFSET_BITS 64
5844 # Add some code to confdefs.h so that the test for off_t works on SCO
5845 cat >> confdefs.h
<<\EOF
5851 # Type availability checks
5852 echo "$as_me:$LINENO: checking for mode_t" >&5
5853 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5854 if test "${ac_cv_type_mode_t+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 cat >conftest.
$ac_ext <<_ACEOF
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_includes_default
5869 if (sizeof (mode_t))
5875 rm -f conftest.
$ac_objext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>conftest.er1
5879 grep -v '^ *+' conftest.er1
>conftest.err
5881 cat conftest.err
>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try
='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try
='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_type_mode_t
=yes
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.
$ac_ext >&5
5902 ac_cv_type_mode_t
=no
5904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5906 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5907 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5908 if test $ac_cv_type_mode_t = yes; then
5912 cat >>confdefs.h
<<_ACEOF
5918 echo "$as_me:$LINENO: checking for off_t" >&5
5919 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5920 if test "${ac_cv_type_off_t+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 cat >conftest.
$ac_ext <<_ACEOF
5926 cat confdefs.h
>>conftest.
$ac_ext
5927 cat >>conftest.
$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5941 rm -f conftest.
$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>conftest.er1
5945 grep -v '^ *+' conftest.er1
>conftest.err
5947 cat conftest.err
>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try
='test -z "$ac_c_werror_flag"
5951 || test ! -s conftest.err'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try
='test -s conftest.$ac_objext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_type_off_t
=yes
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.
$ac_ext >&5
5970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5972 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5973 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5974 if test $ac_cv_type_off_t = yes; then
5978 cat >>confdefs.h
<<_ACEOF
5984 echo "$as_me:$LINENO: checking for pid_t" >&5
5985 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5986 if test "${ac_cv_type_pid_t+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 cat >conftest.
$ac_ext <<_ACEOF
5992 cat confdefs.h
>>conftest.
$ac_ext
5993 cat >>conftest.
$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
6007 rm -f conftest.
$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1
>conftest.err
6013 cat conftest.err
>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try
='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try
='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_type_pid_t
=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6038 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6039 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6040 if test $ac_cv_type_pid_t = yes; then
6044 cat >>confdefs.h
<<_ACEOF
6050 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6051 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6052 if test "${ac_cv_type_signal+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >conftest.
$ac_ext <<_ACEOF
6058 cat confdefs.h
>>conftest.
$ac_ext
6059 cat >>conftest.
$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <sys/types.h>
6067 extern "C" void (*signal (int, void (*)(int)))(int);
6069 void (*signal ()) ();
6080 rm -f conftest.
$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>conftest.er1
6084 grep -v '^ *+' conftest.er1
>conftest.err
6086 cat conftest.err
>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try
='test -z "$ac_c_werror_flag"
6090 || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try
='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_type_signal
=void
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.
$ac_ext >&5
6107 ac_cv_type_signal
=int
6109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6112 echo "${ECHO_T}$ac_cv_type_signal" >&6
6114 cat >>confdefs.h
<<_ACEOF
6115 #define RETSIGTYPE $ac_cv_type_signal
6119 echo "$as_me:$LINENO: checking for size_t" >&5
6120 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6121 if test "${ac_cv_type_size_t+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.
$ac_ext <<_ACEOF
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6136 if (sizeof (size_t))
6142 rm -f conftest.
$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1
>conftest.err
6148 cat conftest.err
>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try
='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_size_t
=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.
$ac_ext >&5
6169 ac_cv_type_size_t
=no
6171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6174 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6175 if test $ac_cv_type_size_t = yes; then
6179 cat >>confdefs.h
<<_ACEOF
6180 #define size_t unsigned
6185 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6186 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6187 if test "${ac_cv_type_uid_t+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 cat >conftest.
$ac_ext <<_ACEOF
6193 cat confdefs.h
>>conftest.
$ac_ext
6194 cat >>conftest.
$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 #include <sys/types.h>
6199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6200 $EGREP "uid_t" >/dev
/null
2>&1; then
6201 ac_cv_type_uid_t
=yes
6208 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6209 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6210 if test $ac_cv_type_uid_t = no
; then
6212 cat >>confdefs.h
<<\_ACEOF
6217 cat >>confdefs.h
<<\_ACEOF
6223 echo "$as_me:$LINENO: checking for ssize_t" >&5
6224 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6225 if test "${ac_cv_type_ssize_t+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 cat >conftest.
$ac_ext <<_ACEOF
6231 cat confdefs.h
>>conftest.
$ac_ext
6232 cat >>conftest.
$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6240 if (sizeof (ssize_t))
6246 rm -f conftest.
$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1
>conftest.err
6252 cat conftest.err
>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try
='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try
='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_type_ssize_t
=yes
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.
$ac_ext >&5
6273 ac_cv_type_ssize_t
=no
6275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6277 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6278 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6279 if test $ac_cv_type_ssize_t = yes; then
6281 cat >>confdefs.h
<<\_ACEOF
6282 #define HAVE_SSIZE_T 1
6288 # Sizes of various common basic types
6289 # ANSI C requires sizeof(char) == 1, so no need to check it
6290 echo "$as_me:$LINENO: checking for int" >&5
6291 echo $ECHO_N "checking for int... $ECHO_C" >&6
6292 if test "${ac_cv_type_int+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 cat >conftest.
$ac_ext <<_ACEOF
6298 cat confdefs.h
>>conftest.
$ac_ext
6299 cat >>conftest.
$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6313 rm -f conftest.
$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try
='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try
='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.
$ac_ext >&5
6342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6345 echo "${ECHO_T}$ac_cv_type_int" >&6
6347 echo "$as_me:$LINENO: checking size of int" >&5
6348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6349 if test "${ac_cv_sizeof_int+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 if test "$ac_cv_type_int" = yes; then
6353 # The cast to unsigned long works around a bug in the HP C Compiler
6354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6356 # This bug is HP SR number 8606223364.
6357 if test "$cross_compiling" = yes; then
6358 # Depending upon the size, compute the lo and hi bounds.
6359 cat >conftest.
$ac_ext <<_ACEOF
6362 cat confdefs.h
>>conftest.
$ac_ext
6363 cat >>conftest.
$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 $ac_includes_default
6369 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6376 rm -f conftest.
$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6380 grep -v '^ *+' conftest.er1
>conftest.err
6382 cat conftest.err
>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try
='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try
='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6400 cat >conftest.
$ac_ext <<_ACEOF
6403 cat confdefs.h
>>conftest.
$ac_ext
6404 cat >>conftest.
$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6410 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try
='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try
='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_hi
=$ac_mid; break
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 ac_lo
=`expr $ac_mid + 1`
6445 if test $ac_lo -le $ac_mid; then
6449 ac_mid
=`expr 2 '*' $ac_mid + 1`
6451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.
$ac_ext >&5
6457 cat >conftest.
$ac_ext <<_ACEOF
6460 cat confdefs.h
>>conftest.
$ac_ext
6461 cat >>conftest.
$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6467 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6474 rm -f conftest.
$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1
>conftest.err
6480 cat conftest.err
>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try
='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try
='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6498 cat >conftest.
$ac_ext <<_ACEOF
6501 cat confdefs.h
>>conftest.
$ac_ext
6502 cat >>conftest.
$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 $ac_includes_default
6508 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6515 rm -f conftest.
$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1
>conftest.err
6521 cat conftest.err
>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try
='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try
='test -s conftest.$ac_objext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_lo
=$ac_mid; break
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.
$ac_ext >&5
6542 ac_hi
=`expr '(' $ac_mid ')' - 1`
6543 if test $ac_mid -le $ac_hi; then
6547 ac_mid
=`expr 2 '*' $ac_mid`
6549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.
$ac_ext >&5
6557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6560 # Binary search between lo and hi bounds.
6561 while test "x$ac_lo" != "x$ac_hi"; do
6562 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6563 cat >conftest.
$ac_ext <<_ACEOF
6566 cat confdefs.h
>>conftest.
$ac_ext
6567 cat >>conftest.
$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6573 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6580 rm -f conftest.
$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>conftest.er1
6584 grep -v '^ *+' conftest.er1
>conftest.err
6586 cat conftest.err
>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try
='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try
='test -s conftest.$ac_objext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.
$ac_ext >&5
6607 ac_lo
=`expr '(' $ac_mid ')' + 1`
6609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6612 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6613 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6614 See \`config.log' for more details." >&5
6615 echo "$as_me: error: cannot compute sizeof (int), 77
6616 See \`config.log' for more details." >&2;}
6617 { (exit 1); exit 1; }; } ;;
6620 if test "$cross_compiling" = yes; then
6621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6622 See \`config.log' for more details." >&5
6623 echo "$as_me: error: cannot run test program while cross compiling
6624 See \`config.log' for more details." >&2;}
6625 { (exit 1); exit 1; }; }
6627 cat >conftest.
$ac_ext <<_ACEOF
6630 cat confdefs.h
>>conftest.
$ac_ext
6631 cat >>conftest.
$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6634 long longval () { return (long) (sizeof (int)); }
6635 unsigned long ulongval () { return (long) (sizeof (int)); }
6642 FILE *f = fopen ("conftest.val", "w");
6645 if (((long) (sizeof (int))) < 0)
6647 long i = longval ();
6648 if (i != ((long) (sizeof (int))))
6650 fprintf (f, "%ld\n", i);
6654 unsigned long i = ulongval ();
6655 if (i != ((long) (sizeof (int))))
6657 fprintf (f, "%lu\n", i);
6659 exit (ferror (f) || fclose (f) != 0);
6665 rm -f conftest
$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_sizeof_int
=`cat conftest.val`
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.
$ac_ext >&5
6683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6684 See \`config.log' for more details." >&5
6685 echo "$as_me: error: cannot compute sizeof (int), 77
6686 See \`config.log' for more details." >&2;}
6687 { (exit 1); exit 1; }; }
6689 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6698 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6699 cat >>confdefs.h
<<_ACEOF
6700 #define SIZEOF_INT $ac_cv_sizeof_int
6704 echo "$as_me:$LINENO: checking for long" >&5
6705 echo $ECHO_N "checking for long... $ECHO_C" >&6
6706 if test "${ac_cv_type_long+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 cat >conftest.
$ac_ext <<_ACEOF
6712 cat confdefs.h
>>conftest.
$ac_ext
6713 cat >>conftest.
$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 $ac_includes_default
6727 rm -f conftest.
$ac_objext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>conftest.er1
6731 grep -v '^ *+' conftest.er1
>conftest.err
6733 cat conftest.err
>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try
='test -z "$ac_c_werror_flag"
6737 || test ! -s conftest.err'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; } &&
6743 { ac_try
='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.
$ac_ext >&5
6756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6759 echo "${ECHO_T}$ac_cv_type_long" >&6
6761 echo "$as_me:$LINENO: checking size of long" >&5
6762 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6763 if test "${ac_cv_sizeof_long+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test "$ac_cv_type_long" = yes; then
6767 # The cast to unsigned long works around a bug in the HP C Compiler
6768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6770 # This bug is HP SR number 8606223364.
6771 if test "$cross_compiling" = yes; then
6772 # Depending upon the size, compute the lo and hi bounds.
6773 cat >conftest.
$ac_ext <<_ACEOF
6776 cat confdefs.h
>>conftest.
$ac_ext
6777 cat >>conftest.
$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 $ac_includes_default
6783 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6790 rm -f conftest.
$ac_objext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792 (eval $ac_compile) 2>conftest.er1
6794 grep -v '^ *+' conftest.er1
>conftest.err
6796 cat conftest.err
>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try
='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try
='test -s conftest.$ac_objext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6814 cat >conftest.
$ac_ext <<_ACEOF
6817 cat confdefs.h
>>conftest.
$ac_ext
6818 cat >>conftest.
$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 $ac_includes_default
6824 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6831 rm -f conftest.
$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>conftest.er1
6835 grep -v '^ *+' conftest.er1
>conftest.err
6837 cat conftest.err
>&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try
='test -z "$ac_c_werror_flag"
6841 || test ! -s conftest.err'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; } &&
6847 { ac_try
='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 ac_hi
=$ac_mid; break
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6858 ac_lo
=`expr $ac_mid + 1`
6859 if test $ac_lo -le $ac_mid; then
6863 ac_mid
=`expr 2 '*' $ac_mid + 1`
6865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.
$ac_ext >&5
6871 cat >conftest.
$ac_ext <<_ACEOF
6874 cat confdefs.h
>>conftest.
$ac_ext
6875 cat >>conftest.
$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 $ac_includes_default
6881 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6888 rm -f conftest.
$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try
='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try
='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6912 cat >conftest.
$ac_ext <<_ACEOF
6915 cat confdefs.h
>>conftest.
$ac_ext
6916 cat >>conftest.
$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 $ac_includes_default
6922 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6929 rm -f conftest.
$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6933 grep -v '^ *+' conftest.er1
>conftest.err
6935 cat conftest.err
>&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try
='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try
='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_lo
=$ac_mid; break
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.
$ac_ext >&5
6956 ac_hi
=`expr '(' $ac_mid ')' - 1`
6957 if test $ac_mid -le $ac_hi; then
6961 ac_mid
=`expr 2 '*' $ac_mid`
6963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.
$ac_ext >&5
6971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6974 # Binary search between lo and hi bounds.
6975 while test "x$ac_lo" != "x$ac_hi"; do
6976 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6977 cat >conftest.
$ac_ext <<_ACEOF
6980 cat confdefs.h
>>conftest.
$ac_ext
6981 cat >>conftest.
$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6987 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6994 rm -f conftest.
$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6998 grep -v '^ *+' conftest.er1
>conftest.err
7000 cat conftest.err
>&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try
='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try
='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.
$ac_ext >&5
7021 ac_lo
=`expr '(' $ac_mid ')' + 1`
7023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7026 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7027 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7028 See \`config.log' for more details." >&5
7029 echo "$as_me: error: cannot compute sizeof (long), 77
7030 See \`config.log' for more details." >&2;}
7031 { (exit 1); exit 1; }; } ;;
7034 if test "$cross_compiling" = yes; then
7035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: cannot run test program while cross compiling
7038 See \`config.log' for more details." >&2;}
7039 { (exit 1); exit 1; }; }
7041 cat >conftest.
$ac_ext <<_ACEOF
7044 cat confdefs.h
>>conftest.
$ac_ext
7045 cat >>conftest.
$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 long longval () { return (long) (sizeof (long)); }
7049 unsigned long ulongval () { return (long) (sizeof (long)); }
7056 FILE *f = fopen ("conftest.val", "w");
7059 if (((long) (sizeof (long))) < 0)
7061 long i = longval ();
7062 if (i != ((long) (sizeof (long))))
7064 fprintf (f, "%ld\n", i);
7068 unsigned long i = ulongval ();
7069 if (i != ((long) (sizeof (long))))
7071 fprintf (f, "%lu\n", i);
7073 exit (ferror (f) || fclose (f) != 0);
7079 rm -f conftest
$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_sizeof_long
=`cat conftest.val`
7092 echo "$as_me: program exited with status $ac_status" >&5
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.
$ac_ext >&5
7097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7098 See \`config.log' for more details." >&5
7099 echo "$as_me: error: cannot compute sizeof (long), 77
7100 See \`config.log' for more details." >&2;}
7101 { (exit 1); exit 1; }; }
7103 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7111 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7112 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7113 cat >>confdefs.h
<<_ACEOF
7114 #define SIZEOF_LONG $ac_cv_sizeof_long
7118 echo "$as_me:$LINENO: checking for void *" >&5
7119 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7120 if test "${ac_cv_type_void_p+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.
$ac_ext <<_ACEOF
7126 cat confdefs.h
>>conftest.
$ac_ext
7127 cat >>conftest.
$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7135 if (sizeof (void *))
7141 rm -f conftest.
$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>conftest.er1
7145 grep -v '^ *+' conftest.er1
>conftest.err
7147 cat conftest.err
>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try
='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try
='test -s conftest.$ac_objext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_type_void_p
=yes
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.
$ac_ext >&5
7168 ac_cv_type_void_p
=no
7170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7173 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7175 echo "$as_me:$LINENO: checking size of void *" >&5
7176 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7177 if test "${ac_cv_sizeof_void_p+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 if test "$ac_cv_type_void_p" = yes; then
7181 # The cast to unsigned long works around a bug in the HP C Compiler
7182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7184 # This bug is HP SR number 8606223364.
7185 if test "$cross_compiling" = yes; then
7186 # Depending upon the size, compute the lo and hi bounds.
7187 cat >conftest.
$ac_ext <<_ACEOF
7190 cat confdefs.h
>>conftest.
$ac_ext
7191 cat >>conftest.
$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7197 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7204 rm -f conftest.
$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1
>conftest.err
7210 cat conftest.err
>&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try
='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try
='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7228 cat >conftest.
$ac_ext <<_ACEOF
7231 cat confdefs.h
>>conftest.
$ac_ext
7232 cat >>conftest.
$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7238 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7245 rm -f conftest.
$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1
>conftest.err
7251 cat conftest.err
>&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try
='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try
='test -s conftest.$ac_objext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_hi
=$ac_mid; break
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.
$ac_ext >&5
7272 ac_lo
=`expr $ac_mid + 1`
7273 if test $ac_lo -le $ac_mid; then
7277 ac_mid
=`expr 2 '*' $ac_mid + 1`
7279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.
$ac_ext >&5
7285 cat >conftest.
$ac_ext <<_ACEOF
7288 cat confdefs.h
>>conftest.
$ac_ext
7289 cat >>conftest.
$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 $ac_includes_default
7295 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7302 rm -f conftest.
$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>conftest.er1
7306 grep -v '^ *+' conftest.er1
>conftest.err
7308 cat conftest.err
>&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try
='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try
='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7326 cat >conftest.
$ac_ext <<_ACEOF
7329 cat confdefs.h
>>conftest.
$ac_ext
7330 cat >>conftest.
$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 $ac_includes_default
7336 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7343 rm -f conftest.
$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7347 grep -v '^ *+' conftest.er1
>conftest.err
7349 cat conftest.err
>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try
='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try
='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_lo
=$ac_mid; break
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.
$ac_ext >&5
7370 ac_hi
=`expr '(' $ac_mid ')' - 1`
7371 if test $ac_mid -le $ac_hi; then
7375 ac_mid
=`expr 2 '*' $ac_mid`
7377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.
$ac_ext >&5
7385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7388 # Binary search between lo and hi bounds.
7389 while test "x$ac_lo" != "x$ac_hi"; do
7390 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7391 cat >conftest.
$ac_ext <<_ACEOF
7394 cat confdefs.h
>>conftest.
$ac_ext
7395 cat >>conftest.
$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7401 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7408 rm -f conftest.
$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>conftest.er1
7412 grep -v '^ *+' conftest.er1
>conftest.err
7414 cat conftest.err
>&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try
='test -z "$ac_c_werror_flag"
7418 || test ! -s conftest.err'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; } &&
7424 { ac_try
='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.
$ac_ext >&5
7435 ac_lo
=`expr '(' $ac_mid ')' + 1`
7437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7440 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7441 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7442 See \`config.log' for more details." >&5
7443 echo "$as_me: error: cannot compute sizeof (void *), 77
7444 See \`config.log' for more details." >&2;}
7445 { (exit 1); exit 1; }; } ;;
7448 if test "$cross_compiling" = yes; then
7449 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7450 See \`config.log' for more details." >&5
7451 echo "$as_me: error: cannot run test program while cross compiling
7452 See \`config.log' for more details." >&2;}
7453 { (exit 1); exit 1; }; }
7455 cat >conftest.
$ac_ext <<_ACEOF
7458 cat confdefs.h
>>conftest.
$ac_ext
7459 cat >>conftest.
$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7462 long longval () { return (long) (sizeof (void *)); }
7463 unsigned long ulongval () { return (long) (sizeof (void *)); }
7470 FILE *f = fopen ("conftest.val", "w");
7473 if (((long) (sizeof (void *))) < 0)
7475 long i = longval ();
7476 if (i != ((long) (sizeof (void *))))
7478 fprintf (f, "%ld\n", i);
7482 unsigned long i = ulongval ();
7483 if (i != ((long) (sizeof (void *))))
7485 fprintf (f, "%lu\n", i);
7487 exit (ferror (f) || fclose (f) != 0);
7493 rm -f conftest
$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_sizeof_void_p
=`cat conftest.val`
7506 echo "$as_me: program exited with status $ac_status" >&5
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.
$ac_ext >&5
7511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7512 See \`config.log' for more details." >&5
7513 echo "$as_me: error: cannot compute sizeof (void *), 77
7514 See \`config.log' for more details." >&2;}
7515 { (exit 1); exit 1; }; }
7517 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7522 ac_cv_sizeof_void_p
=0
7525 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7526 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7527 cat >>confdefs.h
<<_ACEOF
7528 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7532 echo "$as_me:$LINENO: checking for short" >&5
7533 echo $ECHO_N "checking for short... $ECHO_C" >&6
7534 if test "${ac_cv_type_short+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.
$ac_ext <<_ACEOF
7540 cat confdefs.h
>>conftest.
$ac_ext
7541 cat >>conftest.
$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7555 rm -f conftest.
$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>conftest.er1
7559 grep -v '^ *+' conftest.er1
>conftest.err
7561 cat conftest.err
>&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try
='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try
='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_type_short
=yes
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.
$ac_ext >&5
7584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7587 echo "${ECHO_T}$ac_cv_type_short" >&6
7589 echo "$as_me:$LINENO: checking size of short" >&5
7590 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7591 if test "${ac_cv_sizeof_short+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 if test "$ac_cv_type_short" = yes; then
7595 # The cast to unsigned long works around a bug in the HP C Compiler
7596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7598 # This bug is HP SR number 8606223364.
7599 if test "$cross_compiling" = yes; then
7600 # Depending upon the size, compute the lo and hi bounds.
7601 cat >conftest.
$ac_ext <<_ACEOF
7604 cat confdefs.h
>>conftest.
$ac_ext
7605 cat >>conftest.
$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7611 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7618 rm -f conftest.
$ac_objext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7620 (eval $ac_compile) 2>conftest.er1
7622 grep -v '^ *+' conftest.er1
>conftest.err
7624 cat conftest.err
>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try
='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try
='test -s conftest.$ac_objext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7642 cat >conftest.
$ac_ext <<_ACEOF
7645 cat confdefs.h
>>conftest.
$ac_ext
7646 cat >>conftest.
$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 $ac_includes_default
7652 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7659 rm -f conftest.
$ac_objext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>conftest.er1
7663 grep -v '^ *+' conftest.er1
>conftest.err
7665 cat conftest.err
>&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try
='test -z "$ac_c_werror_flag"
7669 || test ! -s conftest.err'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try
='test -s conftest.$ac_objext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_hi
=$ac_mid; break
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.
$ac_ext >&5
7686 ac_lo
=`expr $ac_mid + 1`
7687 if test $ac_lo -le $ac_mid; then
7691 ac_mid
=`expr 2 '*' $ac_mid + 1`
7693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.
$ac_ext >&5
7699 cat >conftest.
$ac_ext <<_ACEOF
7702 cat confdefs.h
>>conftest.
$ac_ext
7703 cat >>conftest.
$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7709 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7716 rm -f conftest.
$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7720 grep -v '^ *+' conftest.er1
>conftest.err
7722 cat conftest.err
>&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try
='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try
='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7740 cat >conftest.
$ac_ext <<_ACEOF
7743 cat confdefs.h
>>conftest.
$ac_ext
7744 cat >>conftest.
$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 $ac_includes_default
7750 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7757 rm -f conftest.
$ac_objext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7761 grep -v '^ *+' conftest.er1
>conftest.err
7763 cat conftest.err
>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try
='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try
='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_lo
=$ac_mid; break
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.
$ac_ext >&5
7784 ac_hi
=`expr '(' $ac_mid ')' - 1`
7785 if test $ac_mid -le $ac_hi; then
7789 ac_mid
=`expr 2 '*' $ac_mid`
7791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.
$ac_ext >&5
7799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7802 # Binary search between lo and hi bounds.
7803 while test "x$ac_lo" != "x$ac_hi"; do
7804 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7805 cat >conftest.
$ac_ext <<_ACEOF
7808 cat confdefs.h
>>conftest.
$ac_ext
7809 cat >>conftest.
$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7815 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7822 rm -f conftest.
$ac_objext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7824 (eval $ac_compile) 2>conftest.er1
7826 grep -v '^ *+' conftest.er1
>conftest.err
7828 cat conftest.err
>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try
='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try
='test -s conftest.$ac_objext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7849 ac_lo
=`expr '(' $ac_mid ')' + 1`
7851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7854 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7856 See \`config.log' for more details." >&5
7857 echo "$as_me: error: cannot compute sizeof (short), 77
7858 See \`config.log' for more details." >&2;}
7859 { (exit 1); exit 1; }; } ;;
7862 if test "$cross_compiling" = yes; then
7863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7864 See \`config.log' for more details." >&5
7865 echo "$as_me: error: cannot run test program while cross compiling
7866 See \`config.log' for more details." >&2;}
7867 { (exit 1); exit 1; }; }
7869 cat >conftest.
$ac_ext <<_ACEOF
7872 cat confdefs.h
>>conftest.
$ac_ext
7873 cat >>conftest.
$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 $ac_includes_default
7876 long longval () { return (long) (sizeof (short)); }
7877 unsigned long ulongval () { return (long) (sizeof (short)); }
7884 FILE *f = fopen ("conftest.val", "w");
7887 if (((long) (sizeof (short))) < 0)
7889 long i = longval ();
7890 if (i != ((long) (sizeof (short))))
7892 fprintf (f, "%ld\n", i);
7896 unsigned long i = ulongval ();
7897 if (i != ((long) (sizeof (short))))
7899 fprintf (f, "%lu\n", i);
7901 exit (ferror (f) || fclose (f) != 0);
7907 rm -f conftest
$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_cv_sizeof_short
=`cat conftest.val`
7920 echo "$as_me: program exited with status $ac_status" >&5
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.
$ac_ext >&5
7925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7926 See \`config.log' for more details." >&5
7927 echo "$as_me: error: cannot compute sizeof (short), 77
7928 See \`config.log' for more details." >&2;}
7929 { (exit 1); exit 1; }; }
7931 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7936 ac_cv_sizeof_short
=0
7939 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7940 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7941 cat >>confdefs.h
<<_ACEOF
7942 #define SIZEOF_SHORT $ac_cv_sizeof_short
7946 echo "$as_me:$LINENO: checking for float" >&5
7947 echo $ECHO_N "checking for float... $ECHO_C" >&6
7948 if test "${ac_cv_type_float+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 cat >conftest.
$ac_ext <<_ACEOF
7954 cat confdefs.h
>>conftest.
$ac_ext
7955 cat >>conftest.
$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7969 rm -f conftest.
$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1
>conftest.err
7975 cat conftest.err
>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try
='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try
='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_type_float
=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8001 echo "${ECHO_T}$ac_cv_type_float" >&6
8003 echo "$as_me:$LINENO: checking size of float" >&5
8004 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8005 if test "${ac_cv_sizeof_float+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 if test "$ac_cv_type_float" = yes; then
8009 # The cast to unsigned long works around a bug in the HP C Compiler
8010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8012 # This bug is HP SR number 8606223364.
8013 if test "$cross_compiling" = yes; then
8014 # Depending upon the size, compute the lo and hi bounds.
8015 cat >conftest.
$ac_ext <<_ACEOF
8018 cat confdefs.h
>>conftest.
$ac_ext
8019 cat >>conftest.
$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8025 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8032 rm -f conftest.
$ac_objext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034 (eval $ac_compile) 2>conftest.er1
8036 grep -v '^ *+' conftest.er1
>conftest.err
8038 cat conftest.err
>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try
='test -z "$ac_c_werror_flag"
8042 || test ! -s conftest.err'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try
='test -s conftest.$ac_objext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8056 cat >conftest.
$ac_ext <<_ACEOF
8059 cat confdefs.h
>>conftest.
$ac_ext
8060 cat >>conftest.
$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8066 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8073 rm -f conftest.
$ac_objext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8075 (eval $ac_compile) 2>conftest.er1
8077 grep -v '^ *+' conftest.er1
>conftest.err
8079 cat conftest.err
>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try
='test -z "$ac_c_werror_flag"
8083 || test ! -s conftest.err'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try
='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_hi
=$ac_mid; break
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.
$ac_ext >&5
8100 ac_lo
=`expr $ac_mid + 1`
8101 if test $ac_lo -le $ac_mid; then
8105 ac_mid
=`expr 2 '*' $ac_mid + 1`
8107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.
$ac_ext >&5
8113 cat >conftest.
$ac_ext <<_ACEOF
8116 cat confdefs.h
>>conftest.
$ac_ext
8117 cat >>conftest.
$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8123 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8130 rm -f conftest.
$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1
>conftest.err
8136 cat conftest.err
>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try
='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try
='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8154 cat >conftest.
$ac_ext <<_ACEOF
8157 cat confdefs.h
>>conftest.
$ac_ext
8158 cat >>conftest.
$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8164 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8171 rm -f conftest.
$ac_objext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173 (eval $ac_compile) 2>conftest.er1
8175 grep -v '^ *+' conftest.er1
>conftest.err
8177 cat conftest.err
>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try
='test -z "$ac_c_werror_flag"
8181 || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try
='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_lo
=$ac_mid; break
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.
$ac_ext >&5
8198 ac_hi
=`expr '(' $ac_mid ')' - 1`
8199 if test $ac_mid -le $ac_hi; then
8203 ac_mid
=`expr 2 '*' $ac_mid`
8205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.
$ac_ext >&5
8213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8216 # Binary search between lo and hi bounds.
8217 while test "x$ac_lo" != "x$ac_hi"; do
8218 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8219 cat >conftest.
$ac_ext <<_ACEOF
8222 cat confdefs.h
>>conftest.
$ac_ext
8223 cat >>conftest.
$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8229 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8236 rm -f conftest.
$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>conftest.er1
8240 grep -v '^ *+' conftest.er1
>conftest.err
8242 cat conftest.err
>&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try
='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try
='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.
$ac_ext >&5
8263 ac_lo
=`expr '(' $ac_mid ')' + 1`
8265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8268 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8270 See \`config.log' for more details." >&5
8271 echo "$as_me: error: cannot compute sizeof (float), 77
8272 See \`config.log' for more details." >&2;}
8273 { (exit 1); exit 1; }; } ;;
8276 if test "$cross_compiling" = yes; then
8277 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8278 See \`config.log' for more details." >&5
8279 echo "$as_me: error: cannot run test program while cross compiling
8280 See \`config.log' for more details." >&2;}
8281 { (exit 1); exit 1; }; }
8283 cat >conftest.
$ac_ext <<_ACEOF
8286 cat confdefs.h
>>conftest.
$ac_ext
8287 cat >>conftest.
$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 long longval () { return (long) (sizeof (float)); }
8291 unsigned long ulongval () { return (long) (sizeof (float)); }
8298 FILE *f = fopen ("conftest.val", "w");
8301 if (((long) (sizeof (float))) < 0)
8303 long i = longval ();
8304 if (i != ((long) (sizeof (float))))
8306 fprintf (f, "%ld\n", i);
8310 unsigned long i = ulongval ();
8311 if (i != ((long) (sizeof (float))))
8313 fprintf (f, "%lu\n", i);
8315 exit (ferror (f) || fclose (f) != 0);
8321 rm -f conftest
$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323 (eval $ac_link) 2>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_sizeof_float
=`cat conftest.val`
8334 echo "$as_me: program exited with status $ac_status" >&5
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.
$ac_ext >&5
8339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8340 See \`config.log' for more details." >&5
8341 echo "$as_me: error: cannot compute sizeof (float), 77
8342 See \`config.log' for more details." >&2;}
8343 { (exit 1); exit 1; }; }
8345 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8350 ac_cv_sizeof_float
=0
8353 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8354 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8355 cat >>confdefs.h
<<_ACEOF
8356 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8360 echo "$as_me:$LINENO: checking for double" >&5
8361 echo $ECHO_N "checking for double... $ECHO_C" >&6
8362 if test "${ac_cv_type_double+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.
$ac_ext <<_ACEOF
8368 cat confdefs.h
>>conftest.
$ac_ext
8369 cat >>conftest.
$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8377 if (sizeof (double))
8383 rm -f conftest.
$ac_objext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385 (eval $ac_compile) 2>conftest.er1
8387 grep -v '^ *+' conftest.er1
>conftest.err
8389 cat conftest.err
>&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try
='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try
='test -s conftest.$ac_objext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_type_double
=yes
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.
$ac_ext >&5
8410 ac_cv_type_double
=no
8412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8415 echo "${ECHO_T}$ac_cv_type_double" >&6
8417 echo "$as_me:$LINENO: checking size of double" >&5
8418 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8419 if test "${ac_cv_sizeof_double+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 if test "$ac_cv_type_double" = yes; then
8423 # The cast to unsigned long works around a bug in the HP C Compiler
8424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8426 # This bug is HP SR number 8606223364.
8427 if test "$cross_compiling" = yes; then
8428 # Depending upon the size, compute the lo and hi bounds.
8429 cat >conftest.
$ac_ext <<_ACEOF
8432 cat confdefs.h
>>conftest.
$ac_ext
8433 cat >>conftest.
$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8439 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8446 rm -f conftest.
$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>conftest.er1
8450 grep -v '^ *+' conftest.er1
>conftest.err
8452 cat conftest.err
>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try
='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try
='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8480 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8487 rm -f conftest.
$ac_objext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1
>conftest.err
8493 cat conftest.err
>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try
='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try
='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_hi
=$ac_mid; break
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.
$ac_ext >&5
8514 ac_lo
=`expr $ac_mid + 1`
8515 if test $ac_lo -le $ac_mid; then
8519 ac_mid
=`expr 2 '*' $ac_mid + 1`
8521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.
$ac_ext >&5
8527 cat >conftest.
$ac_ext <<_ACEOF
8530 cat confdefs.h
>>conftest.
$ac_ext
8531 cat >>conftest.
$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8537 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8544 rm -f conftest.
$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>conftest.er1
8548 grep -v '^ *+' conftest.er1
>conftest.err
8550 cat conftest.err
>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try
='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try
='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8568 cat >conftest.
$ac_ext <<_ACEOF
8571 cat confdefs.h
>>conftest.
$ac_ext
8572 cat >>conftest.
$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8578 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8585 rm -f conftest.
$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8589 grep -v '^ *+' conftest.er1
>conftest.err
8591 cat conftest.err
>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try
='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try
='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_lo
=$ac_mid; break
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.
$ac_ext >&5
8612 ac_hi
=`expr '(' $ac_mid ')' - 1`
8613 if test $ac_mid -le $ac_hi; then
8617 ac_mid
=`expr 2 '*' $ac_mid`
8619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.
$ac_ext >&5
8627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 # Binary search between lo and hi bounds.
8631 while test "x$ac_lo" != "x$ac_hi"; do
8632 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8633 cat >conftest.
$ac_ext <<_ACEOF
8636 cat confdefs.h
>>conftest.
$ac_ext
8637 cat >>conftest.
$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8643 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8650 rm -f conftest.
$ac_objext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>conftest.er1
8654 grep -v '^ *+' conftest.er1
>conftest.err
8656 cat conftest.err
>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try
='test -z "$ac_c_werror_flag"
8660 || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try
='test -s conftest.$ac_objext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.
$ac_ext >&5
8677 ac_lo
=`expr '(' $ac_mid ')' + 1`
8679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8682 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8683 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8684 See \`config.log' for more details." >&5
8685 echo "$as_me: error: cannot compute sizeof (double), 77
8686 See \`config.log' for more details." >&2;}
8687 { (exit 1); exit 1; }; } ;;
8690 if test "$cross_compiling" = yes; then
8691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8692 See \`config.log' for more details." >&5
8693 echo "$as_me: error: cannot run test program while cross compiling
8694 See \`config.log' for more details." >&2;}
8695 { (exit 1); exit 1; }; }
8697 cat >conftest.
$ac_ext <<_ACEOF
8700 cat confdefs.h
>>conftest.
$ac_ext
8701 cat >>conftest.
$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 long longval () { return (long) (sizeof (double)); }
8705 unsigned long ulongval () { return (long) (sizeof (double)); }
8712 FILE *f = fopen ("conftest.val", "w");
8715 if (((long) (sizeof (double))) < 0)
8717 long i = longval ();
8718 if (i != ((long) (sizeof (double))))
8720 fprintf (f, "%ld\n", i);
8724 unsigned long i = ulongval ();
8725 if (i != ((long) (sizeof (double))))
8727 fprintf (f, "%lu\n", i);
8729 exit (ferror (f) || fclose (f) != 0);
8735 rm -f conftest
$ac_exeext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_sizeof_double
=`cat conftest.val`
8748 echo "$as_me: program exited with status $ac_status" >&5
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.
$ac_ext >&5
8753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8754 See \`config.log' for more details." >&5
8755 echo "$as_me: error: cannot compute sizeof (double), 77
8756 See \`config.log' for more details." >&2;}
8757 { (exit 1); exit 1; }; }
8759 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8764 ac_cv_sizeof_double
=0
8767 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8768 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8769 cat >>confdefs.h
<<_ACEOF
8770 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8774 echo "$as_me:$LINENO: checking for fpos_t" >&5
8775 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8776 if test "${ac_cv_type_fpos_t+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 cat >conftest.
$ac_ext <<_ACEOF
8782 cat confdefs.h
>>conftest.
$ac_ext
8783 cat >>conftest.
$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8791 if (sizeof (fpos_t))
8797 rm -f conftest.
$ac_objext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8799 (eval $ac_compile) 2>conftest.er1
8801 grep -v '^ *+' conftest.er1
>conftest.err
8803 cat conftest.err
>&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try
='test -z "$ac_c_werror_flag"
8807 || test ! -s conftest.err'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try
='test -s conftest.$ac_objext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 ac_cv_type_fpos_t
=yes
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.
$ac_ext >&5
8824 ac_cv_type_fpos_t
=no
8826 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8829 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8831 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8832 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8833 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 if test "$ac_cv_type_fpos_t" = yes; then
8837 # The cast to unsigned long works around a bug in the HP C Compiler
8838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8840 # This bug is HP SR number 8606223364.
8841 if test "$cross_compiling" = yes; then
8842 # Depending upon the size, compute the lo and hi bounds.
8843 cat >conftest.
$ac_ext <<_ACEOF
8846 cat confdefs.h
>>conftest.
$ac_ext
8847 cat >>conftest.
$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8853 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8860 rm -f conftest.
$ac_objext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>conftest.er1
8864 grep -v '^ *+' conftest.er1
>conftest.err
8866 cat conftest.err
>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try
='test -z "$ac_c_werror_flag"
8870 || test ! -s conftest.err'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try
='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8894 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8901 rm -f conftest.
$ac_objext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8903 (eval $ac_compile) 2>conftest.er1
8905 grep -v '^ *+' conftest.er1
>conftest.err
8907 cat conftest.err
>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try
='test -z "$ac_c_werror_flag"
8911 || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try
='test -s conftest.$ac_objext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_hi
=$ac_mid; break
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.
$ac_ext >&5
8928 ac_lo
=`expr $ac_mid + 1`
8929 if test $ac_lo -le $ac_mid; then
8933 ac_mid
=`expr 2 '*' $ac_mid + 1`
8935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.
$ac_ext >&5
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 $ac_includes_default
8951 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8958 rm -f conftest.
$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8962 grep -v '^ *+' conftest.er1
>conftest.err
8964 cat conftest.err
>&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try
='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try
='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8982 cat >conftest.
$ac_ext <<_ACEOF
8985 cat confdefs.h
>>conftest.
$ac_ext
8986 cat >>conftest.
$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8992 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8999 rm -f conftest.
$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>conftest.er1
9003 grep -v '^ *+' conftest.er1
>conftest.err
9005 cat conftest.err
>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try
='test -z "$ac_c_werror_flag"
9009 || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try
='test -s conftest.$ac_objext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_lo
=$ac_mid; break
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.
$ac_ext >&5
9026 ac_hi
=`expr '(' $ac_mid ')' - 1`
9027 if test $ac_mid -le $ac_hi; then
9031 ac_mid
=`expr 2 '*' $ac_mid`
9033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.
$ac_ext >&5
9041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9044 # Binary search between lo and hi bounds.
9045 while test "x$ac_lo" != "x$ac_hi"; do
9046 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9047 cat >conftest.
$ac_ext <<_ACEOF
9050 cat confdefs.h
>>conftest.
$ac_ext
9051 cat >>conftest.
$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 $ac_includes_default
9057 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9064 rm -f conftest.
$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>conftest.er1
9068 grep -v '^ *+' conftest.er1
>conftest.err
9070 cat conftest.err
>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try
='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try
='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.
$ac_ext >&5
9091 ac_lo
=`expr '(' $ac_mid ')' + 1`
9093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9096 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9097 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9098 See \`config.log' for more details." >&5
9099 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9100 See \`config.log' for more details." >&2;}
9101 { (exit 1); exit 1; }; } ;;
9104 if test "$cross_compiling" = yes; then
9105 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9106 See \`config.log' for more details." >&5
9107 echo "$as_me: error: cannot run test program while cross compiling
9108 See \`config.log' for more details." >&2;}
9109 { (exit 1); exit 1; }; }
9111 cat >conftest.
$ac_ext <<_ACEOF
9114 cat confdefs.h
>>conftest.
$ac_ext
9115 cat >>conftest.
$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 long longval () { return (long) (sizeof (fpos_t)); }
9119 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9126 FILE *f = fopen ("conftest.val", "w");
9129 if (((long) (sizeof (fpos_t))) < 0)
9131 long i = longval ();
9132 if (i != ((long) (sizeof (fpos_t))))
9134 fprintf (f, "%ld\n", i);
9138 unsigned long i = ulongval ();
9139 if (i != ((long) (sizeof (fpos_t))))
9141 fprintf (f, "%lu\n", i);
9143 exit (ferror (f) || fclose (f) != 0);
9149 rm -f conftest
$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9162 echo "$as_me: program exited with status $ac_status" >&5
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.
$ac_ext >&5
9167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9168 See \`config.log' for more details." >&5
9169 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9170 See \`config.log' for more details." >&2;}
9171 { (exit 1); exit 1; }; }
9173 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9178 ac_cv_sizeof_fpos_t
=0
9181 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9182 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9183 cat >>confdefs.h
<<_ACEOF
9184 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9188 echo "$as_me:$LINENO: checking for size_t" >&5
9189 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9190 if test "${ac_cv_type_size_t+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 cat >conftest.
$ac_ext <<_ACEOF
9196 cat confdefs.h
>>conftest.
$ac_ext
9197 cat >>conftest.
$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9205 if (sizeof (size_t))
9211 rm -f conftest.
$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1
>conftest.err
9217 cat conftest.err
>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try
='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try
='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_type_size_t
=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.
$ac_ext >&5
9238 ac_cv_type_size_t
=no
9240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9242 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9243 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9245 echo "$as_me:$LINENO: checking size of size_t" >&5
9246 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9247 if test "${ac_cv_sizeof_size_t+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 if test "$ac_cv_type_size_t" = yes; then
9251 # The cast to unsigned long works around a bug in the HP C Compiler
9252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9254 # This bug is HP SR number 8606223364.
9255 if test "$cross_compiling" = yes; then
9256 # Depending upon the size, compute the lo and hi bounds.
9257 cat >conftest.
$ac_ext <<_ACEOF
9260 cat confdefs.h
>>conftest.
$ac_ext
9261 cat >>conftest.
$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9267 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9274 rm -f conftest.
$ac_objext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9276 (eval $ac_compile) 2>conftest.er1
9278 grep -v '^ *+' conftest.er1
>conftest.err
9280 cat conftest.err
>&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try
='test -z "$ac_c_werror_flag"
9284 || test ! -s conftest.err'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try
='test -s conftest.$ac_objext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9308 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9315 rm -f conftest.
$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>conftest.er1
9319 grep -v '^ *+' conftest.er1
>conftest.err
9321 cat conftest.err
>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try
='test -z "$ac_c_werror_flag"
9325 || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try
='test -s conftest.$ac_objext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_hi
=$ac_mid; break
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.
$ac_ext >&5
9342 ac_lo
=`expr $ac_mid + 1`
9343 if test $ac_lo -le $ac_mid; then
9347 ac_mid
=`expr 2 '*' $ac_mid + 1`
9349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.
$ac_ext >&5
9355 cat >conftest.
$ac_ext <<_ACEOF
9358 cat confdefs.h
>>conftest.
$ac_ext
9359 cat >>conftest.
$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 $ac_includes_default
9365 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9372 rm -f conftest.
$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>conftest.er1
9376 grep -v '^ *+' conftest.er1
>conftest.err
9378 cat conftest.err
>&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try
='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try
='test -s conftest.$ac_objext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9396 cat >conftest.
$ac_ext <<_ACEOF
9399 cat confdefs.h
>>conftest.
$ac_ext
9400 cat >>conftest.
$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 $ac_includes_default
9406 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9413 rm -f conftest.
$ac_objext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>conftest.er1
9417 grep -v '^ *+' conftest.er1
>conftest.err
9419 cat conftest.err
>&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try
='test -z "$ac_c_werror_flag"
9423 || test ! -s conftest.err'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try
='test -s conftest.$ac_objext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 ac_lo
=$ac_mid; break
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.
$ac_ext >&5
9440 ac_hi
=`expr '(' $ac_mid ')' - 1`
9441 if test $ac_mid -le $ac_hi; then
9445 ac_mid
=`expr 2 '*' $ac_mid`
9447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.
$ac_ext >&5
9455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9458 # Binary search between lo and hi bounds.
9459 while test "x$ac_lo" != "x$ac_hi"; do
9460 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9461 cat >conftest.
$ac_ext <<_ACEOF
9464 cat confdefs.h
>>conftest.
$ac_ext
9465 cat >>conftest.
$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9471 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9478 rm -f conftest.
$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try
='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try
='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.
$ac_ext >&5
9505 ac_lo
=`expr '(' $ac_mid ')' + 1`
9507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9510 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9511 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9512 See \`config.log' for more details." >&5
9513 echo "$as_me: error: cannot compute sizeof (size_t), 77
9514 See \`config.log' for more details." >&2;}
9515 { (exit 1); exit 1; }; } ;;
9518 if test "$cross_compiling" = yes; then
9519 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9520 See \`config.log' for more details." >&5
9521 echo "$as_me: error: cannot run test program while cross compiling
9522 See \`config.log' for more details." >&2;}
9523 { (exit 1); exit 1; }; }
9525 cat >conftest.
$ac_ext <<_ACEOF
9528 cat confdefs.h
>>conftest.
$ac_ext
9529 cat >>conftest.
$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 $ac_includes_default
9532 long longval () { return (long) (sizeof (size_t)); }
9533 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9540 FILE *f = fopen ("conftest.val", "w");
9543 if (((long) (sizeof (size_t))) < 0)
9545 long i = longval ();
9546 if (i != ((long) (sizeof (size_t))))
9548 fprintf (f, "%ld\n", i);
9552 unsigned long i = ulongval ();
9553 if (i != ((long) (sizeof (size_t))))
9555 fprintf (f, "%lu\n", i);
9557 exit (ferror (f) || fclose (f) != 0);
9563 rm -f conftest
$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_cv_sizeof_size_t
=`cat conftest.val`
9576 echo "$as_me: program exited with status $ac_status" >&5
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.
$ac_ext >&5
9581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9582 See \`config.log' for more details." >&5
9583 echo "$as_me: error: cannot compute sizeof (size_t), 77
9584 See \`config.log' for more details." >&2;}
9585 { (exit 1); exit 1; }; }
9587 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9592 ac_cv_sizeof_size_t
=0
9595 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9596 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9597 cat >>confdefs.h
<<_ACEOF
9598 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9603 echo "$as_me:$LINENO: checking for long long support" >&5
9604 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9606 cat >conftest.
$ac_ext <<_ACEOF
9609 cat confdefs.h
>>conftest.
$ac_ext
9610 cat >>conftest.
$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9616 long long x; x = (long long)0;
9621 rm -f conftest.
$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>conftest.er1
9625 grep -v '^ *+' conftest.er1
>conftest.err
9627 cat conftest.err
>&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try
='test -z "$ac_c_werror_flag"
9631 || test ! -s conftest.err'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try
='test -s conftest.$ac_objext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9645 cat >>confdefs.h
<<\_ACEOF
9646 #define HAVE_LONG_LONG 1
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.
$ac_ext >&5
9656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9657 echo "$as_me:$LINENO: result: $have_long_long" >&5
9658 echo "${ECHO_T}$have_long_long" >&6
9659 if test "$have_long_long" = yes ; then
9660 echo "$as_me:$LINENO: checking for long long" >&5
9661 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9662 if test "${ac_cv_type_long_long+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 cat >conftest.
$ac_ext <<_ACEOF
9668 cat confdefs.h
>>conftest.
$ac_ext
9669 cat >>conftest.
$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 $ac_includes_default
9675 if ((long long *) 0)
9677 if (sizeof (long long))
9683 rm -f conftest.
$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1
>conftest.err
9689 cat conftest.err
>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try
='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try
='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_type_long_long
=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.
$ac_ext >&5
9710 ac_cv_type_long_long
=no
9712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9714 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9715 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9717 echo "$as_me:$LINENO: checking size of long long" >&5
9718 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9719 if test "${ac_cv_sizeof_long_long+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 if test "$ac_cv_type_long_long" = yes; then
9723 # The cast to unsigned long works around a bug in the HP C Compiler
9724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9726 # This bug is HP SR number 8606223364.
9727 if test "$cross_compiling" = yes; then
9728 # Depending upon the size, compute the lo and hi bounds.
9729 cat >conftest.
$ac_ext <<_ACEOF
9732 cat confdefs.h
>>conftest.
$ac_ext
9733 cat >>conftest.
$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 $ac_includes_default
9739 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9746 rm -f conftest.
$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>conftest.er1
9750 grep -v '^ *+' conftest.er1
>conftest.err
9752 cat conftest.err
>&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try
='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try
='test -s conftest.$ac_objext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9770 cat >conftest.
$ac_ext <<_ACEOF
9773 cat confdefs.h
>>conftest.
$ac_ext
9774 cat >>conftest.
$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 $ac_includes_default
9780 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9787 rm -f conftest.
$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1
>conftest.err
9793 cat conftest.err
>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try
='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try
='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_hi
=$ac_mid; break
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9814 ac_lo
=`expr $ac_mid + 1`
9815 if test $ac_lo -le $ac_mid; then
9819 ac_mid
=`expr 2 '*' $ac_mid + 1`
9821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.
$ac_ext >&5
9827 cat >conftest.
$ac_ext <<_ACEOF
9830 cat confdefs.h
>>conftest.
$ac_ext
9831 cat >>conftest.
$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9837 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9844 rm -f conftest.
$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846 (eval $ac_compile) 2>conftest.er1
9848 grep -v '^ *+' conftest.er1
>conftest.err
9850 cat conftest.err
>&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try
='test -z "$ac_c_werror_flag"
9854 || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try
='test -s conftest.$ac_objext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9868 cat >conftest.
$ac_ext <<_ACEOF
9871 cat confdefs.h
>>conftest.
$ac_ext
9872 cat >>conftest.
$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9878 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9885 rm -f conftest.
$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887 (eval $ac_compile) 2>conftest.er1
9889 grep -v '^ *+' conftest.er1
>conftest.err
9891 cat conftest.err
>&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try
='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try
='test -s conftest.$ac_objext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_lo
=$ac_mid; break
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.
$ac_ext >&5
9912 ac_hi
=`expr '(' $ac_mid ')' - 1`
9913 if test $ac_mid -le $ac_hi; then
9917 ac_mid
=`expr 2 '*' $ac_mid`
9919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.
$ac_ext >&5
9927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9930 # Binary search between lo and hi bounds.
9931 while test "x$ac_lo" != "x$ac_hi"; do
9932 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9933 cat >conftest.
$ac_ext <<_ACEOF
9936 cat confdefs.h
>>conftest.
$ac_ext
9937 cat >>conftest.
$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 $ac_includes_default
9943 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9950 rm -f conftest.
$ac_objext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9952 (eval $ac_compile) 2>conftest.er1
9954 grep -v '^ *+' conftest.er1
>conftest.err
9956 cat conftest.err
>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try
='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try
='test -s conftest.$ac_objext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.
$ac_ext >&5
9977 ac_lo
=`expr '(' $ac_mid ')' + 1`
9979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9982 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9983 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9984 See \`config.log' for more details." >&5
9985 echo "$as_me: error: cannot compute sizeof (long long), 77
9986 See \`config.log' for more details." >&2;}
9987 { (exit 1); exit 1; }; } ;;
9990 if test "$cross_compiling" = yes; then
9991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9992 See \`config.log' for more details." >&5
9993 echo "$as_me: error: cannot run test program while cross compiling
9994 See \`config.log' for more details." >&2;}
9995 { (exit 1); exit 1; }; }
9997 cat >conftest.
$ac_ext <<_ACEOF
10000 cat confdefs.h
>>conftest.
$ac_ext
10001 cat >>conftest.
$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 $ac_includes_default
10004 long longval () { return (long) (sizeof (long long)); }
10005 unsigned long ulongval () { return (long) (sizeof (long long)); }
10007 #include <stdlib.h>
10012 FILE *f = fopen ("conftest.val", "w");
10015 if (((long) (sizeof (long long))) < 0)
10017 long i = longval ();
10018 if (i != ((long) (sizeof (long long))))
10020 fprintf (f, "%ld\n", i);
10024 unsigned long i = ulongval ();
10025 if (i != ((long) (sizeof (long long))))
10027 fprintf (f, "%lu\n", i);
10029 exit (ferror (f) || fclose (f) != 0);
10035 rm -f conftest
$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037 (eval $ac_link) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_sizeof_long_long
=`cat conftest.val`
10048 echo "$as_me: program exited with status $ac_status" >&5
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.
$ac_ext >&5
10052 ( exit $ac_status )
10053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10054 See \`config.log' for more details." >&5
10055 echo "$as_me: error: cannot compute sizeof (long long), 77
10056 See \`config.log' for more details." >&2;}
10057 { (exit 1); exit 1; }; }
10059 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10064 ac_cv_sizeof_long_long
=0
10067 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10068 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10069 cat >>confdefs.h
<<_ACEOF
10070 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10076 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10077 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10079 cat >conftest.
$ac_ext <<_ACEOF
10082 cat confdefs.h
>>conftest.
$ac_ext
10083 cat >>conftest.
$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10089 uintptr_t x; x = (uintptr_t)0;
10094 rm -f conftest.
$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>conftest.er1
10098 grep -v '^ *+' conftest.er1
>conftest.err
10100 cat conftest.err
>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try
='test -z "$ac_c_werror_flag"
10104 || test ! -s conftest.err'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try
='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10118 cat >>confdefs.h
<<\_ACEOF
10119 #define HAVE_UINTPTR_T 1
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.
$ac_ext >&5
10129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10130 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10131 echo "${ECHO_T}$have_uintptr_t" >&6
10132 if test "$have_uintptr_t" = yes ; then
10133 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10134 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10135 if test "${ac_cv_type_uintptr_t+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 cat >conftest.
$ac_ext <<_ACEOF
10141 cat confdefs.h
>>conftest.
$ac_ext
10142 cat >>conftest.
$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10148 if ((uintptr_t *) 0)
10150 if (sizeof (uintptr_t))
10156 rm -f conftest.
$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1
>conftest.err
10162 cat conftest.err
>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try
='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try
='test -s conftest.$ac_objext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_type_uintptr_t
=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.
$ac_ext >&5
10183 ac_cv_type_uintptr_t
=no
10185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10187 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10188 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10190 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10191 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10192 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 if test "$ac_cv_type_uintptr_t" = yes; then
10196 # The cast to unsigned long works around a bug in the HP C Compiler
10197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10199 # This bug is HP SR number 8606223364.
10200 if test "$cross_compiling" = yes; then
10201 # Depending upon the size, compute the lo and hi bounds.
10202 cat >conftest.
$ac_ext <<_ACEOF
10205 cat confdefs.h
>>conftest.
$ac_ext
10206 cat >>conftest.
$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 $ac_includes_default
10212 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10219 rm -f conftest.
$ac_objext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>conftest.er1
10223 grep -v '^ *+' conftest.er1
>conftest.err
10225 cat conftest.err
>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
10228 { ac_try
='test -z "$ac_c_werror_flag"
10229 || test ! -s conftest.err'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try
='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10243 cat >conftest.
$ac_ext <<_ACEOF
10246 cat confdefs.h
>>conftest.
$ac_ext
10247 cat >>conftest.
$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 $ac_includes_default
10253 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10260 rm -f conftest.
$ac_objext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>conftest.er1
10264 grep -v '^ *+' conftest.er1
>conftest.err
10266 cat conftest.err
>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try
='test -z "$ac_c_werror_flag"
10270 || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try
='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_hi
=$ac_mid; break
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ac_lo
=`expr $ac_mid + 1`
10288 if test $ac_lo -le $ac_mid; then
10292 ac_mid
=`expr 2 '*' $ac_mid + 1`
10294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.
$ac_ext >&5
10300 cat >conftest.
$ac_ext <<_ACEOF
10303 cat confdefs.h
>>conftest.
$ac_ext
10304 cat >>conftest.
$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 $ac_includes_default
10310 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10317 rm -f conftest.
$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>conftest.er1
10321 grep -v '^ *+' conftest.er1
>conftest.err
10323 cat conftest.err
>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try
='test -z "$ac_c_werror_flag"
10327 || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try
='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10341 cat >conftest.
$ac_ext <<_ACEOF
10344 cat confdefs.h
>>conftest.
$ac_ext
10345 cat >>conftest.
$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 $ac_includes_default
10351 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10358 rm -f conftest.
$ac_objext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>conftest.er1
10362 grep -v '^ *+' conftest.er1
>conftest.err
10364 cat conftest.err
>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try
='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try
='test -s conftest.$ac_objext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_lo
=$ac_mid; break
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.
$ac_ext >&5
10385 ac_hi
=`expr '(' $ac_mid ')' - 1`
10386 if test $ac_mid -le $ac_hi; then
10390 ac_mid
=`expr 2 '*' $ac_mid`
10392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.
$ac_ext >&5
10400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10403 # Binary search between lo and hi bounds.
10404 while test "x$ac_lo" != "x$ac_hi"; do
10405 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10406 cat >conftest.
$ac_ext <<_ACEOF
10409 cat confdefs.h
>>conftest.
$ac_ext
10410 cat >>conftest.
$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 $ac_includes_default
10416 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10423 rm -f conftest.
$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>conftest.er1
10427 grep -v '^ *+' conftest.er1
>conftest.err
10429 cat conftest.err
>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try
='test -z "$ac_c_werror_flag"
10433 || test ! -s conftest.err'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.
$ac_ext >&5
10450 ac_lo
=`expr '(' $ac_mid ')' + 1`
10452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10455 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10457 See \`config.log' for more details." >&5
10458 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10459 See \`config.log' for more details." >&2;}
10460 { (exit 1); exit 1; }; } ;;
10463 if test "$cross_compiling" = yes; then
10464 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10465 See \`config.log' for more details." >&5
10466 echo "$as_me: error: cannot run test program while cross compiling
10467 See \`config.log' for more details." >&2;}
10468 { (exit 1); exit 1; }; }
10470 cat >conftest.
$ac_ext <<_ACEOF
10473 cat confdefs.h
>>conftest.
$ac_ext
10474 cat >>conftest.
$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 $ac_includes_default
10477 long longval () { return (long) (sizeof (uintptr_t)); }
10478 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10480 #include <stdlib.h>
10485 FILE *f = fopen ("conftest.val", "w");
10488 if (((long) (sizeof (uintptr_t))) < 0)
10490 long i = longval ();
10491 if (i != ((long) (sizeof (uintptr_t))))
10493 fprintf (f, "%ld\n", i);
10497 unsigned long i = ulongval ();
10498 if (i != ((long) (sizeof (uintptr_t))))
10500 fprintf (f, "%lu\n", i);
10502 exit (ferror (f) || fclose (f) != 0);
10508 rm -f conftest
$ac_exeext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510 (eval $ac_link) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10521 echo "$as_me: program exited with status $ac_status" >&5
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.
$ac_ext >&5
10525 ( exit $ac_status )
10526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10527 See \`config.log' for more details." >&5
10528 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10529 See \`config.log' for more details." >&2;}
10530 { (exit 1); exit 1; }; }
10532 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10537 ac_cv_sizeof_uintptr_t
=0
10540 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10541 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10542 cat >>confdefs.h
<<_ACEOF
10543 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10549 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10550 echo "$as_me:$LINENO: checking size of off_t" >&5
10551 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10552 if test "${ac_cv_sizeof_off_t+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 if test "$cross_compiling" = yes; then
10556 ac_cv_sizeof_off_t
=4
10558 cat >conftest.
$ac_ext <<_ACEOF
10561 cat confdefs.h
>>conftest.
$ac_ext
10562 cat >>conftest.
$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10565 #include <sys/types.h>
10568 FILE *f=fopen("conftestval", "w");
10570 fprintf(f, "%d\n", sizeof(off_t));
10574 rm -f conftest
$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_sizeof_off_t
=`cat conftestval`
10587 echo "$as_me: program exited with status $ac_status" >&5
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.
$ac_ext >&5
10591 ( exit $ac_status )
10592 ac_cv_sizeof_off_t
=0
10594 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10600 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10602 cat >>confdefs.h
<<_ACEOF
10603 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10607 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10608 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10609 if test "$have_long_long" = yes -a \
10610 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10611 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10613 cat >>confdefs.h
<<\_ACEOF
10614 #define HAVE_LARGEFILE_SUPPORT 1
10617 echo "$as_me:$LINENO: result: yes" >&5
10618 echo "${ECHO_T}yes" >&6
10620 echo "$as_me:$LINENO: result: no" >&5
10621 echo "${ECHO_T}no" >&6
10624 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10625 echo "$as_me:$LINENO: checking size of time_t" >&5
10626 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10627 if test "${ac_cv_sizeof_time_t+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 if test "$cross_compiling" = yes; then
10631 ac_cv_sizeof_time_t
=4
10633 cat >conftest.
$ac_ext <<_ACEOF
10636 cat confdefs.h
>>conftest.
$ac_ext
10637 cat >>conftest.
$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10643 FILE *f=fopen("conftestval", "w");
10645 fprintf(f, "%d\n", sizeof(time_t));
10649 rm -f conftest
$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_sizeof_time_t
=`cat conftestval`
10662 echo "$as_me: program exited with status $ac_status" >&5
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.
$ac_ext >&5
10666 ( exit $ac_status )
10667 ac_cv_sizeof_time_t
=0
10669 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10675 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10677 cat >>confdefs.h
<<_ACEOF
10678 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10683 # if have pthread_t then define SIZEOF_PTHREAD_T
10685 if test "$ac_cv_kpthread" = "yes"
10686 then CC
="$CC -Kpthread"
10687 elif test "$ac_cv_kthread" = "yes"
10688 then CC
="$CC -Kthread"
10689 elif test "$ac_cv_pthread" = "yes"
10690 then CC
="$CC -pthread"
10692 echo "$as_me:$LINENO: checking for pthread_t" >&5
10693 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10695 cat >conftest.
$ac_ext <<_ACEOF
10698 cat confdefs.h
>>conftest.
$ac_ext
10699 cat >>conftest.
$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 #include <pthread.h>
10705 pthread_t x; x = *(pthread_t*)0;
10710 rm -f conftest.
$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10714 grep -v '^ *+' conftest.er1
>conftest.err
10716 cat conftest.err
>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try
='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try
='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.
$ac_ext >&5
10738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10739 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10740 echo "${ECHO_T}$have_pthread_t" >&6
10741 if test "$have_pthread_t" = yes ; then
10742 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10743 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10744 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10745 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 if test "$cross_compiling" = yes; then
10749 ac_cv_sizeof_pthread_t
=4
10751 cat >conftest.
$ac_ext <<_ACEOF
10754 cat confdefs.h
>>conftest.
$ac_ext
10755 cat >>conftest.
$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10758 #include <pthread.h>
10761 FILE *f=fopen("conftestval", "w");
10763 fprintf(f, "%d\n", sizeof(pthread_t));
10767 rm -f conftest
$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_sizeof_pthread_t
=`cat conftestval`
10780 echo "$as_me: program exited with status $ac_status" >&5
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.
$ac_ext >&5
10784 ( exit $ac_status )
10785 ac_cv_sizeof_pthread_t
=0
10787 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10793 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10795 cat >>confdefs.h
<<_ACEOF
10796 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10802 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10803 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10804 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10805 if test "${enable_toolbox_glue+set}" = set; then
10806 enableval
="$enable_toolbox_glue"
10810 if test -z "$enable_toolbox_glue"
10812 case $ac_sys_system/$ac_sys_release in
10814 enable_toolbox_glue
="yes";;
10816 enable_toolbox_glue
="no";;
10819 case "$enable_toolbox_glue" in
10821 extra_machdep_objs
="Python/mactoolboxglue.o"
10822 extra_undefs
="-u _PyMac_Error"
10824 cat >>confdefs.h
<<\_ACEOF
10825 #define USE_TOOLBOX_OBJECT_GLUE 1
10830 extra_machdep_objs
=""
10834 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10835 echo "${ECHO_T}$enable_toolbox_glue" >&6
10838 case $ac_sys_system/$ac_sys_release in
10839 Darwin
/[01567]\..
*)
10840 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10843 OTHER_LIBTOOL_OPT
=""
10848 case $ac_sys_system/$ac_sys_release in
10849 Darwin
/[01567]\..
*)
10850 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
10851 if test "${enable_universalsdk}"; then
10854 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
10856 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10857 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10859 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10860 if test ${gcc_version} '<' 4.0
10862 LIBTOOL_CRUFT
="-lcc_dynamic"
10866 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10867 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10868 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10871 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10872 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10873 if test "$enable_framework"
10875 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10876 # -F. is needed to allow linking to the framework while
10877 # in the build location.
10879 cat >>confdefs.h
<<\_ACEOF
10880 #define WITH_NEXT_FRAMEWORK 1
10883 echo "$as_me:$LINENO: result: yes" >&5
10884 echo "${ECHO_T}yes" >&6
10886 echo "$as_me:$LINENO: result: no" >&5
10887 echo "${ECHO_T}no" >&6
10890 echo "$as_me:$LINENO: checking for dyld" >&5
10891 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10892 case $ac_sys_system/$ac_sys_release in
10895 cat >>confdefs.h
<<\_ACEOF
10896 #define WITH_DYLD 1
10899 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10900 echo "${ECHO_T}always on for Darwin" >&6
10903 echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10908 # Set info about shared libraries.
10914 # SO is the extension of shared libraries `(including the dot!)
10915 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10916 echo "$as_me:$LINENO: checking SO" >&5
10917 echo $ECHO_N "checking SO... $ECHO_C" >&6
10920 case $ac_sys_system in
10931 # this might also be a termcap variable, see #610332
10933 echo '====================================================================='
10935 echo '+ WARNING: You have set SO in your environment. +'
10936 echo '+ Do you really mean to change the extension for shared libraries? +'
10937 echo '+ Continuing in 10 seconds to let you to ponder. +'
10939 echo '====================================================================='
10942 echo "$as_me:$LINENO: result: $SO" >&5
10943 echo "${ECHO_T}$SO" >&6
10945 cat >>confdefs.h
<<_ACEOF
10946 #define SHLIB_EXT "$SO"
10949 # LDSHARED is the ld *command* used to create shared library
10950 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10951 # (Shared libraries in this instance are shared modules to be loaded into
10952 # Python, as opposed to building Python itself as a shared library.)
10953 echo "$as_me:$LINENO: checking LDSHARED" >&5
10954 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10955 if test -z "$LDSHARED"
10957 case $ac_sys_system/$ac_sys_release in
10959 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10960 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10963 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10964 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10966 IRIX
/5*) LDSHARED
="ld -shared";;
10967 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10969 if test "$GCC" = "yes"
10970 then LDSHARED
='$(CC) -shared'
10971 else LDSHARED
='$(CC) -G';
10973 hp
*|HP
*) LDSHARED
="ld -b";;
10974 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10976 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10977 if test "$enable_framework" ; then
10978 # Link against the framework. All externals should be defined.
10979 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10980 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10982 # No framework. Ignore undefined symbols, assuming they come from Python
10983 LDSHARED
="$LDSHARED -undefined suppress"
10985 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10986 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10987 if test "$enable_framework" ; then
10988 # Link against the framework. All externals should be defined.
10989 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10990 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10992 # No framework, use the Python app as bundle-loader
10993 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10994 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10997 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10998 # This allows an extension to be used in any Python
10999 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11000 if test ${cur_target} '>' 10.2; then
11003 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11004 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
11005 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11007 if test "${enable_universalsdk}"; then
11008 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11010 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11011 BLDSHARED
="$LDSHARED"
11013 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11014 if test "$enable_framework" ; then
11015 # Link against the framework. All externals should be defined.
11016 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11017 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11019 # No framework, use the Python app as bundle-loader
11020 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11021 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11025 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11026 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11028 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11030 LDSHARED
="$CC -shared ${LDFLAGS}"
11032 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11035 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11037 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11040 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11041 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11044 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11048 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11049 OpenUNIX
*|UnixWare
*)
11050 if test "$GCC" = "yes"
11051 then LDSHARED
='$(CC) -shared'
11052 else LDSHARED
='$(CC) -G'
11054 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11055 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11056 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11057 atheos
*) LDSHARED
="gcc -shared";;
11061 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11062 echo "${ECHO_T}$LDSHARED" >&6
11063 BLDSHARED
=${BLDSHARED-$LDSHARED}
11064 # CCSHARED are the C *flags* used to create objects to go into a shared
11065 # library (module) -- this is only needed for a few systems
11066 echo "$as_me:$LINENO: checking CCSHARED" >&5
11067 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11068 if test -z "$CCSHARED"
11070 case $ac_sys_system/$ac_sys_release in
11071 SunOS
*) if test "$GCC" = yes;
11072 then CCSHARED
="-fPIC";
11073 else CCSHARED
="-xcode=pic32";
11075 hp
*|HP
*) if test "$GCC" = yes;
11076 then CCSHARED
="-fPIC";
11077 else CCSHARED
="+z";
11079 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11080 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11081 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11082 OpenUNIX
*|UnixWare
*)
11083 if test "$GCC" = "yes"
11084 then CCSHARED
="-fPIC"
11085 else CCSHARED
="-KPIC"
11088 if test "$GCC" = "yes"
11089 then CCSHARED
="-fPIC"
11090 else CCSHARED
="-Kpic -belf"
11092 Monterey
*) CCSHARED
="-G";;
11093 IRIX
*/6*) case $CC in
11094 *gcc
*) CCSHARED
="-shared";;
11097 atheos
*) CCSHARED
="-fPIC";;
11100 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11101 echo "${ECHO_T}$CCSHARED" >&6
11102 # LINKFORSHARED are the flags passed to the $(CC) command that links
11103 # the python executable -- this is only needed for a few systems
11104 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11105 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11106 if test -z "$LINKFORSHARED"
11108 case $ac_sys_system/$ac_sys_release in
11109 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11111 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11112 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11113 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11114 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11115 # -u libsys_s pulls in all symbols in libsys
11117 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11119 # not used by the core itself but which needs to be in the core so
11120 # that dynamically loaded extension modules have access to it.
11121 # -prebind is no longer used, because it actually seems to give a
11122 # slowdown in stead of a speedup, maybe due to the large number of
11123 # dynamic loads Python does.
11125 LINKFORSHARED
="$extra_undefs"
11126 if test "$enable_framework"
11128 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11130 LINKFORSHARED
="$LINKFORSHARED";;
11131 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11132 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11133 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11134 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11135 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11137 LINKFORSHARED
="-Wl,--export-dynamic"
11139 SunOS
/5*) case $CC in
11141 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11143 LINKFORSHARED
="-Xlinker --export-dynamic"
11147 if test $enable_shared = "no"
11149 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11153 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11154 echo "${ECHO_T}$LINKFORSHARED" >&6
11157 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11158 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11159 if test ! "$LIBRARY" = "$LDLIBRARY"
11161 case $ac_sys_system in
11163 # Cygwin needs CCSHARED when building extension DLLs
11164 # but not when building the interpreter DLL.
11165 CFLAGSFORSHARED
='';;
11167 CFLAGSFORSHARED
='$(CCSHARED)'
11170 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11171 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11173 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11174 # library (with --enable-shared).
11175 # For platforms on which shared libraries are not allowed to have unresolved
11176 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11177 # if it is not required, since it creates a dependency of the shared library
11178 # to LIBS. This, in turn, means that applications linking the shared libpython
11179 # don't need to link LIBS explicitly. The default should be only changed
11180 # on systems where this approach causes problems.
11182 echo "$as_me:$LINENO: checking SHLIBS" >&5
11183 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11184 case "$ac_sys_system" in
11188 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11189 echo "${ECHO_T}$SHLIBS" >&6
11192 # checks for libraries
11194 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 ac_check_lib_save_LIBS
=$LIBS
11201 cat >conftest.
$ac_ext <<_ACEOF
11204 cat confdefs.h
>>conftest.
$ac_ext
11205 cat >>conftest.
$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11208 /* Override any gcc2 internal prototype to avoid an error. */
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11223 rm -f conftest.
$ac_objext conftest
$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11227 grep -v '^ *+' conftest.er1
>conftest.err
11229 cat conftest.err
>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try
='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try
='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_cv_lib_dl_dlopen
=yes
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.
$ac_ext >&5
11250 ac_cv_lib_dl_dlopen
=no
11252 rm -f conftest.err conftest.
$ac_objext \
11253 conftest
$ac_exeext conftest.
$ac_ext
11254 LIBS
=$ac_check_lib_save_LIBS
11256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11258 if test $ac_cv_lib_dl_dlopen = yes; then
11259 cat >>confdefs.h
<<_ACEOF
11260 #define HAVE_LIBDL 1
11266 # Dynamic linking for SunOS/Solaris and SYSV
11268 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11269 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11270 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 ac_check_lib_save_LIBS
=$LIBS
11275 cat >conftest.
$ac_ext <<_ACEOF
11278 cat confdefs.h
>>conftest.
$ac_ext
11279 cat >>conftest.
$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11282 /* Override any gcc2 internal prototype to avoid an error. */
11286 /* We use char because int might match the return type of a gcc2
11287 builtin and then its argument prototype would still apply. */
11297 rm -f conftest.
$ac_objext conftest
$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11301 grep -v '^ *+' conftest.er1
>conftest.err
11303 cat conftest.err
>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try
='test -z "$ac_c_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try
='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_cv_lib_dld_shl_load
=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.
$ac_ext >&5
11324 ac_cv_lib_dld_shl_load
=no
11326 rm -f conftest.err conftest.
$ac_objext \
11327 conftest
$ac_exeext conftest.
$ac_ext
11328 LIBS
=$ac_check_lib_save_LIBS
11330 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11331 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11332 if test $ac_cv_lib_dld_shl_load = yes; then
11333 cat >>confdefs.h
<<_ACEOF
11334 #define HAVE_LIBDLD 1
11340 # Dynamic linking for HP-UX
11342 # only check for sem_ini if thread support is requested
11343 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11344 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11345 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11346 if test "${ac_cv_search_sem_init+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 ac_func_search_save_LIBS
=$LIBS
11350 ac_cv_search_sem_init
=no
11351 cat >conftest.
$ac_ext <<_ACEOF
11354 cat confdefs.h
>>conftest.
$ac_ext
11355 cat >>conftest.
$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11358 /* Override any gcc2 internal prototype to avoid an error. */
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11373 rm -f conftest.
$ac_objext conftest
$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11377 grep -v '^ *+' conftest.er1
>conftest.err
11379 cat conftest.err
>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try
='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try
='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_search_sem_init
="none required"
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.
$ac_ext >&5
11401 rm -f conftest.err conftest.
$ac_objext \
11402 conftest
$ac_exeext conftest.
$ac_ext
11403 if test "$ac_cv_search_sem_init" = no
; then
11404 for ac_lib
in pthread rt posix4
; do
11405 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11406 cat >conftest.
$ac_ext <<_ACEOF
11409 cat confdefs.h
>>conftest.
$ac_ext
11410 cat >>conftest.
$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 /* Override any gcc2 internal prototype to avoid an error. */
11417 /* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11428 rm -f conftest.
$ac_objext conftest
$ac_exeext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>conftest.er1
11432 grep -v '^ *+' conftest.er1
>conftest.err
11434 cat conftest.err
>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try
='test -z "$ac_c_werror_flag"
11438 || test ! -s conftest.err'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try
='test -s conftest$ac_exeext'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_cv_search_sem_init
="-l$ac_lib"
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.
$ac_ext >&5
11457 rm -f conftest.err conftest.
$ac_objext \
11458 conftest
$ac_exeext conftest.
$ac_ext
11461 LIBS
=$ac_func_search_save_LIBS
11463 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11464 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11465 if test "$ac_cv_search_sem_init" != no
; then
11466 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11469 # 'Real Time' functions on Solaris
11470 # posix4 on Solaris 2.6
11471 # pthread (first!) on Linux
11474 # check if we need libintl for locale functions
11475 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11476 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11477 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 ac_check_lib_save_LIBS
=$LIBS
11481 LIBS
="-lintl $LIBS"
11482 cat >conftest.
$ac_ext <<_ACEOF
11485 cat confdefs.h
>>conftest.
$ac_ext
11486 cat >>conftest.
$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11489 /* Override any gcc2 internal prototype to avoid an error. */
11493 /* We use char because int might match the return type of a gcc2
11494 builtin and then its argument prototype would still apply. */
11495 char textdomain ();
11504 rm -f conftest.
$ac_objext conftest
$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>conftest.er1
11508 grep -v '^ *+' conftest.er1
>conftest.err
11510 cat conftest.err
>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try
='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try
='test -s conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_cv_lib_intl_textdomain
=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.
$ac_ext >&5
11531 ac_cv_lib_intl_textdomain
=no
11533 rm -f conftest.err conftest.
$ac_objext \
11534 conftest
$ac_exeext conftest.
$ac_ext
11535 LIBS
=$ac_check_lib_save_LIBS
11537 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11538 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11539 if test $ac_cv_lib_intl_textdomain = yes; then
11541 cat >>confdefs.h
<<\_ACEOF
11542 #define WITH_LIBINTL 1
11548 # checks for system dependent C++ extensions support
11549 case "$ac_sys_system" in
11550 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11551 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11552 cat >conftest.
$ac_ext <<_ACEOF
11555 cat confdefs.h
>>conftest.
$ac_ext
11556 cat >>conftest.
$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 #include "/usr/lpp/xlC/include/load.h"
11562 loadAndInit("", 0, "")
11567 rm -f conftest.
$ac_objext conftest
$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569 (eval $ac_link) 2>conftest.er1
11571 grep -v '^ *+' conftest.er1
>conftest.err
11573 cat conftest.err
>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try
='test -z "$ac_c_werror_flag"
11577 || test ! -s conftest.err'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; } &&
11583 { ac_try
='test -s conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11590 cat >>confdefs.h
<<\_ACEOF
11591 #define AIX_GENUINE_CPLUSPLUS 1
11594 echo "$as_me:$LINENO: result: yes" >&5
11595 echo "${ECHO_T}yes" >&6
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.
$ac_ext >&5
11600 echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11603 rm -f conftest.err conftest.
$ac_objext \
11604 conftest
$ac_exeext conftest.
$ac_ext;;
11608 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11609 # BeOS' sockets are stashed in libnet.
11610 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11611 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11612 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 ac_check_lib_save_LIBS
=$LIBS
11617 cat >conftest.
$ac_ext <<_ACEOF
11620 cat confdefs.h
>>conftest.
$ac_ext
11621 cat >>conftest.
$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11624 /* Override any gcc2 internal prototype to avoid an error. */
11628 /* We use char because int might match the return type of a gcc2
11629 builtin and then its argument prototype would still apply. */
11639 rm -f conftest.
$ac_objext conftest
$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>conftest.er1
11643 grep -v '^ *+' conftest.er1
>conftest.err
11645 cat conftest.err
>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try
='test -z "$ac_c_werror_flag"
11649 || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try
='test -s conftest$ac_exeext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 ac_cv_lib_nsl_t_open
=yes
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.
$ac_ext >&5
11666 ac_cv_lib_nsl_t_open
=no
11668 rm -f conftest.err conftest.
$ac_objext \
11669 conftest
$ac_exeext conftest.
$ac_ext
11670 LIBS
=$ac_check_lib_save_LIBS
11672 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11673 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11674 if test $ac_cv_lib_nsl_t_open = yes; then
11678 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11679 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11680 if test "${ac_cv_lib_socket_socket+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 ac_check_lib_save_LIBS
=$LIBS
11684 LIBS
="-lsocket $LIBS $LIBS"
11685 cat >conftest.
$ac_ext <<_ACEOF
11688 cat confdefs.h
>>conftest.
$ac_ext
11689 cat >>conftest.
$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11707 rm -f conftest.
$ac_objext conftest
$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try
='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try
='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_socket_socket
=yes
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.
$ac_ext >&5
11734 ac_cv_lib_socket_socket
=no
11736 rm -f conftest.err conftest.
$ac_objext \
11737 conftest
$ac_exeext conftest.
$ac_ext
11738 LIBS
=$ac_check_lib_save_LIBS
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11741 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11742 if test $ac_cv_lib_socket_socket = yes; then
11743 LIBS
="-lsocket $LIBS"
11747 case "$ac_sys_system" in
11749 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11750 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11751 if test "${ac_cv_lib_net_socket+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_check_lib_save_LIBS
=$LIBS
11755 LIBS
="-lnet $LIBS $LIBS"
11756 cat >conftest.
$ac_ext <<_ACEOF
11759 cat confdefs.h
>>conftest.
$ac_ext
11760 cat >>conftest.
$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 /* Override any gcc2 internal prototype to avoid an error. */
11767 /* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11778 rm -f conftest.
$ac_objext conftest
$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11782 grep -v '^ *+' conftest.er1
>conftest.err
11784 cat conftest.err
>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try
='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try
='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_lib_net_socket
=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.
$ac_ext >&5
11805 ac_cv_lib_net_socket
=no
11807 rm -f conftest.err conftest.
$ac_objext \
11808 conftest
$ac_exeext conftest.
$ac_ext
11809 LIBS
=$ac_check_lib_save_LIBS
11811 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11812 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11813 if test $ac_cv_lib_net_socket = yes; then
11820 echo "$as_me:$LINENO: checking for --with-libs" >&5
11821 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11823 # Check whether --with-libs or --without-libs was given.
11824 if test "${with_libs+set}" = set; then
11825 withval
="$with_libs"
11827 echo "$as_me:$LINENO: result: $withval" >&5
11828 echo "${ECHO_T}$withval" >&6
11829 LIBS
="$withval $LIBS"
11832 echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6
11836 # Check for use of the system libffi library
11837 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11838 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11840 # Check whether --with-system_ffi or --without-system_ffi was given.
11841 if test "${with_system_ffi+set}" = set; then
11842 withval
="$with_system_ffi"
11846 if test -z "$with_system_ffi"
11847 then with_system_ffi
="no"
11849 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11850 echo "${ECHO_T}$with_system_ffi" >&6
11852 # Determine if signalmodule should be used.
11855 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11856 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11858 # Check whether --with-signal-module or --without-signal-module was given.
11859 if test "${with_signal_module+set}" = set; then
11860 withval
="$with_signal_module"
11864 if test -z "$with_signal_module"
11865 then with_signal_module
="yes"
11867 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11868 echo "${ECHO_T}$with_signal_module" >&6
11870 if test "${with_signal_module}" = "yes"; then
11871 USE_SIGNAL_MODULE
=""
11874 USE_SIGNAL_MODULE
="#"
11875 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11878 # This is used to generate Setup.config
11880 USE_THREAD_MODULE
=""
11882 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11883 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11886 # Check whether --with-dec-threads or --without-dec-threads was given.
11887 if test "${with_dec_threads+set}" = set; then
11888 withval
="$with_dec_threads"
11890 echo "$as_me:$LINENO: result: $withval" >&5
11891 echo "${ECHO_T}$withval" >&6
11893 if test "${with_thread+set}" != set; then
11894 with_thread
="$withval";
11897 echo "$as_me:$LINENO: result: no" >&5
11898 echo "${ECHO_T}no" >&6
11901 # Templates for things AC_DEFINEd more than once.
11902 # For a single AC_DEFINE, no template is needed.
11910 echo "$as_me:$LINENO: checking for --with-threads" >&5
11911 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11913 # Check whether --with-threads or --without-threads was given.
11914 if test "${with_threads+set}" = set; then
11915 withval
="$with_threads"
11919 # --with-thread is deprecated, but check for it anyway
11921 # Check whether --with-thread or --without-thread was given.
11922 if test "${with_thread+set}" = set; then
11923 withval
="$with_thread"
11924 with_threads
=$with_thread
11927 if test -z "$with_threads"
11928 then with_threads
="yes"
11930 echo "$as_me:$LINENO: result: $with_threads" >&5
11931 echo "${ECHO_T}$with_threads" >&6
11934 if test "$with_threads" = "no"
11936 USE_THREAD_MODULE
="#"
11937 elif test "$ac_cv_pthread_is_default" = yes
11939 cat >>confdefs.h
<<\_ACEOF
11940 #define WITH_THREAD 1
11943 # Defining _REENTRANT on system with POSIX threads should not hurt.
11944 cat >>confdefs.h
<<\_ACEOF
11945 #define _REENTRANT 1
11949 THREADOBJ
="Python/thread.o"
11950 elif test "$ac_cv_kpthread" = "yes"
11953 if test "$ac_cv_cxx_thread" = "yes"; then
11954 CXX
="$CXX -Kpthread"
11956 cat >>confdefs.h
<<\_ACEOF
11957 #define WITH_THREAD 1
11961 THREADOBJ
="Python/thread.o"
11962 elif test "$ac_cv_kthread" = "yes"
11965 if test "$ac_cv_cxx_thread" = "yes"; then
11966 CXX
="$CXX -Kthread"
11968 cat >>confdefs.h
<<\_ACEOF
11969 #define WITH_THREAD 1
11973 THREADOBJ
="Python/thread.o"
11974 elif test "$ac_cv_pthread" = "yes"
11977 if test "$ac_cv_cxx_thread" = "yes"; then
11978 CXX
="$CXX -pthread"
11980 cat >>confdefs.h
<<\_ACEOF
11981 #define WITH_THREAD 1
11985 THREADOBJ
="Python/thread.o"
11987 if test ! -z "$with_threads" -a -d "$with_threads"
11988 then LDFLAGS
="$LDFLAGS -L$with_threads"
11990 if test ! -z "$withval" -a -d "$withval"
11991 then LDFLAGS
="$LDFLAGS -L$withval"
11994 # According to the POSIX spec, a pthreads implementation must
11995 # define _POSIX_THREADS in unistd.h. Some apparently don't
11996 # (e.g. gnu pth with pthread emulation)
11997 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11998 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11999 cat >conftest.
$ac_ext <<_ACEOF
12002 cat confdefs.h
>>conftest.
$ac_ext
12003 cat >>conftest.
$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 #include <unistd.h>
12007 #ifdef _POSIX_THREADS
12012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12013 $EGREP "yes" >/dev
/null
2>&1; then
12014 unistd_defines_pthreads
=yes
12016 unistd_defines_pthreads
=no
12020 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12021 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12023 cat >>confdefs.h
<<\_ACEOF
12024 #define _REENTRANT 1
12027 if test "${ac_cv_header_cthreads_h+set}" = set; then
12028 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12029 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12030 if test "${ac_cv_header_cthreads_h+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12034 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12036 # Is the header compilable?
12037 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12038 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12039 cat >conftest.
$ac_ext <<_ACEOF
12042 cat confdefs.h
>>conftest.
$ac_ext
12043 cat >>conftest.
$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 $ac_includes_default
12046 #include <cthreads.h>
12048 rm -f conftest.
$ac_objext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>conftest.er1
12052 grep -v '^ *+' conftest.er1
>conftest.err
12054 cat conftest.err
>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try
='test -z "$ac_c_werror_flag"
12058 || test ! -s conftest.err'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; } &&
12064 { ac_try
='test -s conftest.$ac_objext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_header_compiler
=yes
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.
$ac_ext >&5
12075 ac_header_compiler
=no
12077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12079 echo "${ECHO_T}$ac_header_compiler" >&6
12081 # Is the header present?
12082 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12083 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12084 cat >conftest.
$ac_ext <<_ACEOF
12087 cat confdefs.h
>>conftest.
$ac_ext
12088 cat >>conftest.
$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include <cthreads.h>
12092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12093 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12095 grep -v '^ *+' conftest.er1
>conftest.err
12097 cat conftest.err
>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } >/dev
/null
; then
12100 if test -s conftest.err
; then
12101 ac_cpp_err
=$ac_c_preproc_warn_flag
12102 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12109 if test -z "$ac_cpp_err"; then
12110 ac_header_preproc
=yes
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.
$ac_ext >&5
12115 ac_header_preproc
=no
12117 rm -f conftest.err conftest.
$ac_ext
12118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12119 echo "${ECHO_T}$ac_header_preproc" >&6
12121 # So? What about this header?
12122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12124 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12125 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12127 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12128 ac_header_preproc
=yes
12131 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12132 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12134 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12136 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12138 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12140 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12142 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12145 ## ------------------------------------------------ ##
12146 ## Report this to http://www.python.org/python-bugs ##
12147 ## ------------------------------------------------ ##
12150 sed "s/^/$as_me: WARNING: /" >&2
12153 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12154 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12155 if test "${ac_cv_header_cthreads_h+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 ac_cv_header_cthreads_h
=$ac_header_preproc
12160 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12161 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12164 if test $ac_cv_header_cthreads_h = yes; then
12165 cat >>confdefs.h
<<\_ACEOF
12166 #define WITH_THREAD 1
12169 cat >>confdefs.h
<<\_ACEOF
12170 #define C_THREADS 1
12174 cat >>confdefs.h
<<\_ACEOF
12175 #define HURD_C_THREADS 1
12178 LIBS
="$LIBS -lthreads"
12179 THREADOBJ
="Python/thread.o"
12182 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12183 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12184 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12185 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12189 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12191 # Is the header compilable?
12192 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12193 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12194 cat >conftest.
$ac_ext <<_ACEOF
12197 cat confdefs.h
>>conftest.
$ac_ext
12198 cat >>conftest.
$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 $ac_includes_default
12201 #include <mach/cthreads.h>
12203 rm -f conftest.
$ac_objext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12205 (eval $ac_compile) 2>conftest.er1
12207 grep -v '^ *+' conftest.er1
>conftest.err
12209 cat conftest.err
>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try
='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try
='test -s conftest.$ac_objext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_header_compiler
=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.
$ac_ext >&5
12230 ac_header_compiler
=no
12232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12234 echo "${ECHO_T}$ac_header_compiler" >&6
12236 # Is the header present?
12237 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12238 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12239 cat >conftest.
$ac_ext <<_ACEOF
12242 cat confdefs.h
>>conftest.
$ac_ext
12243 cat >>conftest.
$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <mach/cthreads.h>
12247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12250 grep -v '^ *+' conftest.er1
>conftest.err
12252 cat conftest.err
>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev
/null
; then
12255 if test -s conftest.err
; then
12256 ac_cpp_err
=$ac_c_preproc_warn_flag
12257 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12264 if test -z "$ac_cpp_err"; then
12265 ac_header_preproc
=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.
$ac_ext >&5
12270 ac_header_preproc
=no
12272 rm -f conftest.err conftest.
$ac_ext
12273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12274 echo "${ECHO_T}$ac_header_preproc" >&6
12276 # So? What about this header?
12277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12280 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12282 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12283 ac_header_preproc
=yes
12286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12287 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12289 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12291 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12293 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12295 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12297 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12300 ## ------------------------------------------------ ##
12301 ## Report this to http://www.python.org/python-bugs ##
12302 ## ------------------------------------------------ ##
12305 sed "s/^/$as_me: WARNING: /" >&2
12308 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12309 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12310 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12315 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12316 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12319 if test $ac_cv_header_mach_cthreads_h = yes; then
12320 cat >>confdefs.h
<<\_ACEOF
12321 #define WITH_THREAD 1
12324 cat >>confdefs.h
<<\_ACEOF
12325 #define C_THREADS 1
12329 cat >>confdefs.h
<<\_ACEOF
12330 #define MACH_C_THREADS 1
12333 THREADOBJ
="Python/thread.o"
12336 echo "$as_me:$LINENO: checking for --with-pth" >&5
12337 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12339 # Check whether --with-pth or --without-pth was given.
12340 if test "${with_pth+set}" = set; then
12341 withval
="$with_pth"
12342 echo "$as_me:$LINENO: result: $withval" >&5
12343 echo "${ECHO_T}$withval" >&6
12344 cat >>confdefs.h
<<\_ACEOF
12345 #define WITH_THREAD 1
12349 cat >>confdefs.h
<<\_ACEOF
12354 THREADOBJ
="Python/thread.o"
12356 echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6
12359 # Just looking for pthread_create in libpthread is not enough:
12360 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12361 # So we really have to include pthread.h, and then link.
12363 LIBS
="$LIBS -lpthread"
12364 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12365 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12366 cat >conftest.
$ac_ext <<_ACEOF
12369 cat confdefs.h
>>conftest.
$ac_ext
12370 cat >>conftest.
$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <pthread.h>
12374 void * start_routine (void *arg) { exit (0); }
12379 pthread_create (NULL, NULL, start_routine, NULL)
12384 rm -f conftest.
$ac_objext conftest
$ac_exeext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386 (eval $ac_link) 2>conftest.er1
12388 grep -v '^ *+' conftest.er1
>conftest.err
12390 cat conftest.err
>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try
='test -z "$ac_c_werror_flag"
12394 || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try
='test -s conftest$ac_exeext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12407 echo "$as_me:$LINENO: result: yes" >&5
12408 echo "${ECHO_T}yes" >&6
12409 cat >>confdefs.h
<<\_ACEOF
12410 #define WITH_THREAD 1
12414 THREADOBJ
="Python/thread.o"
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.
$ac_ext >&5
12421 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12422 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12423 if test "${ac_cv_func_pthread_detach+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 cat >conftest.
$ac_ext <<_ACEOF
12429 cat confdefs.h
>>conftest.
$ac_ext
12430 cat >>conftest.
$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12434 #define pthread_detach innocuous_pthread_detach
12436 /* System header to define __stub macros and hopefully few prototypes,
12437 which can conflict with char pthread_detach (); below.
12438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12439 <limits.h> exists even on freestanding compilers. */
12442 # include <limits.h>
12444 # include <assert.h>
12447 #undef pthread_detach
12449 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char pthread_detach ();
12457 /* The GNU C library defines this for functions which it implements
12458 to always fail with ENOSYS. Some functions are actually named
12459 something starting with __ and the normal name is an alias. */
12460 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12463 char (*f) () = pthread_detach;
12472 return f != pthread_detach;
12477 rm -f conftest.
$ac_objext conftest
$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>conftest.er1
12481 grep -v '^ *+' conftest.er1
>conftest.err
12483 cat conftest.err
>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try
='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try
='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_func_pthread_detach
=yes
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.
$ac_ext >&5
12504 ac_cv_func_pthread_detach
=no
12506 rm -f conftest.err conftest.
$ac_objext \
12507 conftest
$ac_exeext conftest.
$ac_ext
12509 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12510 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12511 if test $ac_cv_func_pthread_detach = yes; then
12512 cat >>confdefs.h
<<\_ACEOF
12513 #define WITH_THREAD 1
12517 THREADOBJ
="Python/thread.o"
12520 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12521 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12522 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12523 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12527 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12529 # Is the header compilable?
12530 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12531 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12532 cat >conftest.
$ac_ext <<_ACEOF
12535 cat confdefs.h
>>conftest.
$ac_ext
12536 cat >>conftest.
$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 $ac_includes_default
12539 #include <atheos/threads.h>
12541 rm -f conftest.
$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1
>conftest.err
12547 cat conftest.err
>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try
='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try
='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_header_compiler
=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.
$ac_ext >&5
12568 ac_header_compiler
=no
12570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572 echo "${ECHO_T}$ac_header_compiler" >&6
12574 # Is the header present?
12575 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12576 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12577 cat >conftest.
$ac_ext <<_ACEOF
12580 cat confdefs.h
>>conftest.
$ac_ext
12581 cat >>conftest.
$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 #include <atheos/threads.h>
12585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12586 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1
>conftest.err
12590 cat conftest.err
>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } >/dev
/null
; then
12593 if test -s conftest.err
; then
12594 ac_cpp_err
=$ac_c_preproc_warn_flag
12595 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12602 if test -z "$ac_cpp_err"; then
12603 ac_header_preproc
=yes
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.
$ac_ext >&5
12608 ac_header_preproc
=no
12610 rm -f conftest.err conftest.
$ac_ext
12611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612 echo "${ECHO_T}$ac_header_preproc" >&6
12614 # So? What about this header?
12615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12617 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12618 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12620 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc
=yes
12624 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12629 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12631 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12633 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12635 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12638 ## ------------------------------------------------ ##
12639 ## Report this to http://www.python.org/python-bugs ##
12640 ## ------------------------------------------------ ##
12643 sed "s/^/$as_me: WARNING: /" >&2
12646 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12647 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12648 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12653 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12654 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12657 if test $ac_cv_header_atheos_threads_h = yes; then
12658 cat >>confdefs.h
<<\_ACEOF
12659 #define WITH_THREAD 1
12663 cat >>confdefs.h
<<\_ACEOF
12664 #define ATHEOS_THREADS 1
12667 THREADOBJ
="Python/thread.o"
12670 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12671 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12672 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12673 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12677 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12679 # Is the header compilable?
12680 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12681 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12682 cat >conftest.
$ac_ext <<_ACEOF
12685 cat confdefs.h
>>conftest.
$ac_ext
12686 cat >>conftest.
$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #include <kernel/OS.h>
12691 rm -f conftest.
$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>conftest.er1
12695 grep -v '^ *+' conftest.er1
>conftest.err
12697 cat conftest.err
>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try
='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try
='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_header_compiler
=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.
$ac_ext >&5
12718 ac_header_compiler
=no
12720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12722 echo "${ECHO_T}$ac_header_compiler" >&6
12724 # Is the header present?
12725 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12726 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12727 cat >conftest.
$ac_ext <<_ACEOF
12730 cat confdefs.h
>>conftest.
$ac_ext
12731 cat >>conftest.
$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 #include <kernel/OS.h>
12735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12738 grep -v '^ *+' conftest.er1
>conftest.err
12740 cat conftest.err
>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } >/dev
/null
; then
12743 if test -s conftest.err
; then
12744 ac_cpp_err
=$ac_c_preproc_warn_flag
12745 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12752 if test -z "$ac_cpp_err"; then
12753 ac_header_preproc
=yes
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.
$ac_ext >&5
12758 ac_header_preproc
=no
12760 rm -f conftest.err conftest.
$ac_ext
12761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12762 echo "${ECHO_T}$ac_header_preproc" >&6
12764 # So? What about this header?
12765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12767 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12768 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12770 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12771 ac_header_preproc
=yes
12774 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12775 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12776 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12777 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12778 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12779 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12781 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12783 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12785 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12788 ## ------------------------------------------------ ##
12789 ## Report this to http://www.python.org/python-bugs ##
12790 ## ------------------------------------------------ ##
12793 sed "s/^/$as_me: WARNING: /" >&2
12796 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12797 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12798 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12803 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12804 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12807 if test $ac_cv_header_kernel_OS_h = yes; then
12808 cat >>confdefs.h
<<\_ACEOF
12809 #define WITH_THREAD 1
12813 cat >>confdefs.h
<<\_ACEOF
12814 #define BEOS_THREADS 1
12817 THREADOBJ
="Python/thread.o"
12820 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12821 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12822 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 ac_check_lib_save_LIBS
=$LIBS
12826 LIBS
="-lpthreads $LIBS"
12827 cat >conftest.
$ac_ext <<_ACEOF
12830 cat confdefs.h
>>conftest.
$ac_ext
12831 cat >>conftest.
$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12834 /* Override any gcc2 internal prototype to avoid an error. */
12838 /* We use char because int might match the return type of a gcc2
12839 builtin and then its argument prototype would still apply. */
12840 char pthread_create ();
12849 rm -f conftest.
$ac_objext conftest
$ac_exeext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>conftest.er1
12853 grep -v '^ *+' conftest.er1
>conftest.err
12855 cat conftest.err
>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try
='test -z "$ac_c_werror_flag"
12859 || test ! -s conftest.err'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try
='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_lib_pthreads_pthread_create
=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ac_cv_lib_pthreads_pthread_create
=no
12878 rm -f conftest.err conftest.
$ac_objext \
12879 conftest
$ac_exeext conftest.
$ac_ext
12880 LIBS
=$ac_check_lib_save_LIBS
12882 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12883 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12884 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12885 cat >>confdefs.h
<<\_ACEOF
12886 #define WITH_THREAD 1
12890 LIBS
="$LIBS -lpthreads"
12891 THREADOBJ
="Python/thread.o"
12894 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12895 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12896 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 ac_check_lib_save_LIBS
=$LIBS
12901 cat >conftest.
$ac_ext <<_ACEOF
12904 cat confdefs.h
>>conftest.
$ac_ext
12905 cat >>conftest.
$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 /* Override any gcc2 internal prototype to avoid an error. */
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12914 char pthread_create ();
12923 rm -f conftest.
$ac_objext conftest
$ac_exeext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925 (eval $ac_link) 2>conftest.er1
12927 grep -v '^ *+' conftest.er1
>conftest.err
12929 cat conftest.err
>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try
='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try
='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_lib_c_r_pthread_create
=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.
$ac_ext >&5
12950 ac_cv_lib_c_r_pthread_create
=no
12952 rm -f conftest.err conftest.
$ac_objext \
12953 conftest
$ac_exeext conftest.
$ac_ext
12954 LIBS
=$ac_check_lib_save_LIBS
12956 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12957 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12958 if test $ac_cv_lib_c_r_pthread_create = yes; then
12959 cat >>confdefs.h
<<\_ACEOF
12960 #define WITH_THREAD 1
12965 THREADOBJ
="Python/thread.o"
12968 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12969 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12970 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 ac_check_lib_save_LIBS
=$LIBS
12974 LIBS
="-lpthread $LIBS"
12975 cat >conftest.
$ac_ext <<_ACEOF
12978 cat confdefs.h
>>conftest.
$ac_ext
12979 cat >>conftest.
$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12982 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12988 char __pthread_create_system ();
12992 __pthread_create_system ();
12997 rm -f conftest.
$ac_objext conftest
$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>conftest.er1
13001 grep -v '^ *+' conftest.er1
>conftest.err
13003 cat conftest.err
>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try
='test -z "$ac_c_werror_flag"
13007 || test ! -s conftest.err'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } &&
13013 { ac_try
='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_lib_pthread___pthread_create_system
=yes
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.
$ac_ext >&5
13024 ac_cv_lib_pthread___pthread_create_system
=no
13026 rm -f conftest.err conftest.
$ac_objext \
13027 conftest
$ac_exeext conftest.
$ac_ext
13028 LIBS
=$ac_check_lib_save_LIBS
13030 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13031 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13032 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13033 cat >>confdefs.h
<<\_ACEOF
13034 #define WITH_THREAD 1
13038 LIBS
="$LIBS -lpthread"
13039 THREADOBJ
="Python/thread.o"
13042 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13043 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13044 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 ac_check_lib_save_LIBS
=$LIBS
13049 cat >conftest.
$ac_ext <<_ACEOF
13052 cat confdefs.h
>>conftest.
$ac_ext
13053 cat >>conftest.
$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13056 /* Override any gcc2 internal prototype to avoid an error. */
13060 /* We use char because int might match the return type of a gcc2
13061 builtin and then its argument prototype would still apply. */
13062 char pthread_create ();
13071 rm -f conftest.
$ac_objext conftest
$ac_exeext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13073 (eval $ac_link) 2>conftest.er1
13075 grep -v '^ *+' conftest.er1
>conftest.err
13077 cat conftest.err
>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try
='test -z "$ac_c_werror_flag"
13081 || test ! -s conftest.err'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try
='test -s conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_lib_cma_pthread_create
=yes
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.
$ac_ext >&5
13098 ac_cv_lib_cma_pthread_create
=no
13100 rm -f conftest.err conftest.
$ac_objext \
13101 conftest
$ac_exeext conftest.
$ac_ext
13102 LIBS
=$ac_check_lib_save_LIBS
13104 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13105 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13106 if test $ac_cv_lib_cma_pthread_create = yes; then
13107 cat >>confdefs.h
<<\_ACEOF
13108 #define WITH_THREAD 1
13113 THREADOBJ
="Python/thread.o"
13116 USE_THREAD_MODULE
="#"
13135 rm -f conftest.err conftest.
$ac_objext \
13136 conftest
$ac_exeext conftest.
$ac_ext
13145 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13146 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13147 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 ac_check_lib_save_LIBS
=$LIBS
13152 cat >conftest.
$ac_ext <<_ACEOF
13155 cat confdefs.h
>>conftest.
$ac_ext
13156 cat >>conftest.
$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13159 /* Override any gcc2 internal prototype to avoid an error. */
13163 /* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
13174 rm -f conftest.
$ac_objext conftest
$ac_exeext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13176 (eval $ac_link) 2>conftest.er1
13178 grep -v '^ *+' conftest.er1
>conftest.err
13180 cat conftest.err
>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try
='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try
='test -s conftest$ac_exeext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_lib_mpc_usconfig
=yes
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 ac_cv_lib_mpc_usconfig
=no
13203 rm -f conftest.err conftest.
$ac_objext \
13204 conftest
$ac_exeext conftest.
$ac_ext
13205 LIBS
=$ac_check_lib_save_LIBS
13207 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13208 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13209 if test $ac_cv_lib_mpc_usconfig = yes; then
13210 cat >>confdefs.h
<<\_ACEOF
13211 #define WITH_THREAD 1
13215 THREADOBJ
="Python/thread.o"
13216 USE_THREAD_MODULE
=""
13220 if test "$posix_threads" != "yes"; then
13221 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13222 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13223 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 ac_check_lib_save_LIBS
=$LIBS
13227 LIBS
="-lthread $LIBS"
13228 cat >conftest.
$ac_ext <<_ACEOF
13231 cat confdefs.h
>>conftest.
$ac_ext
13232 cat >>conftest.
$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 /* Override any gcc2 internal prototype to avoid an error. */
13239 /* We use char because int might match the return type of a gcc2
13240 builtin and then its argument prototype would still apply. */
13241 char thr_create ();
13250 rm -f conftest.
$ac_objext conftest
$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>conftest.er1
13254 grep -v '^ *+' conftest.er1
>conftest.err
13256 cat conftest.err
>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try
='test -z "$ac_c_werror_flag"
13260 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try
='test -s conftest$ac_exeext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_cv_lib_thread_thr_create
=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.
$ac_ext >&5
13277 ac_cv_lib_thread_thr_create
=no
13279 rm -f conftest.err conftest.
$ac_objext \
13280 conftest
$ac_exeext conftest.
$ac_ext
13281 LIBS
=$ac_check_lib_save_LIBS
13283 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13284 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13285 if test $ac_cv_lib_thread_thr_create = yes; then
13286 cat >>confdefs.h
<<\_ACEOF
13287 #define WITH_THREAD 1
13290 LIBS
="$LIBS -lthread"
13291 THREADOBJ
="Python/thread.o"
13292 USE_THREAD_MODULE
=""
13297 if test "$USE_THREAD_MODULE" != "#"
13299 # If the above checks didn't disable threads, (at least) OSF1
13300 # needs this '-threads' argument during linking.
13301 case $ac_sys_system in
13302 OSF1
) LDLAST
=-threads;;
13307 if test "$posix_threads" = "yes"; then
13308 if test "$unistd_defines_pthreads" = "no"; then
13310 cat >>confdefs.h
<<\_ACEOF
13311 #define _POSIX_THREADS 1
13316 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13317 case $ac_sys_system/$ac_sys_release in
13319 cat >>confdefs.h
<<\_ACEOF
13320 #define HAVE_PTHREAD_DESTRUCTOR 1
13325 cat >>confdefs.h
<<\_ACEOF
13326 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13332 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13333 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13334 if test "${ac_cv_pthread_system_supported+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 if test "$cross_compiling" = yes; then
13338 ac_cv_pthread_system_supported
=no
13340 cat >conftest.
$ac_ext <<_ACEOF
13343 cat confdefs.h
>>conftest.
$ac_ext
13344 cat >>conftest.
$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #include <pthread.h>
13347 void *foo(void *parm) {
13351 pthread_attr_t attr;
13353 if (pthread_attr_init(&attr)) exit(-1);
13354 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13355 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13359 rm -f conftest
$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_pthread_system_supported
=yes
13372 echo "$as_me: program exited with status $ac_status" >&5
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.
$ac_ext >&5
13376 ( exit $ac_status )
13377 ac_cv_pthread_system_supported
=no
13379 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13385 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13386 if test "$ac_cv_pthread_system_supported" = "yes"; then
13388 cat >>confdefs.h
<<\_ACEOF
13389 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13394 for ac_func
in pthread_sigmask
13396 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13397 echo "$as_me:$LINENO: checking for $ac_func" >&5
13398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13399 if eval "test \"\${$as_ac_var+set}\" = set"; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 cat >conftest.
$ac_ext <<_ACEOF
13405 cat confdefs.h
>>conftest.
$ac_ext
13406 cat >>conftest.
$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13410 #define $ac_func innocuous_$ac_func
13412 /* System header to define __stub macros and hopefully few prototypes,
13413 which can conflict with char $ac_func (); below.
13414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13415 <limits.h> exists even on freestanding compilers. */
13418 # include <limits.h>
13420 # include <assert.h>
13425 /* Override any gcc2 internal prototype to avoid an error. */
13430 /* We use char because int might match the return type of a gcc2
13431 builtin and then its argument prototype would still apply. */
13433 /* The GNU C library defines this for functions which it implements
13434 to always fail with ENOSYS. Some functions are actually named
13435 something starting with __ and the normal name is an alias. */
13436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13439 char (*f) () = $ac_func;
13448 return f != $ac_func;
13453 rm -f conftest.
$ac_objext conftest
$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13457 grep -v '^ *+' conftest.er1
>conftest.err
13459 cat conftest.err
>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try
='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try
='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 eval "$as_ac_var=yes"
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.
$ac_ext >&5
13480 eval "$as_ac_var=no"
13482 rm -f conftest.err conftest.
$ac_objext \
13483 conftest
$ac_exeext conftest.
$ac_ext
13485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13487 if test `eval echo '${'$as_ac_var'}'` = yes; then
13488 cat >>confdefs.h
<<_ACEOF
13489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13491 case $ac_sys_system in
13494 cat >>confdefs.h
<<\_ACEOF
13495 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13506 # Check for enable-ipv6
13509 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13510 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13511 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13512 if test "${enable_ipv6+set}" = set; then
13513 enableval
="$enable_ipv6"
13514 case "$enableval" in
13516 echo "$as_me:$LINENO: result: no" >&5
13517 echo "${ECHO_T}no" >&6
13520 *) echo "$as_me:$LINENO: result: yes" >&5
13521 echo "${ECHO_T}yes" >&6
13522 cat >>confdefs.h
<<\_ACEOF
13523 #define ENABLE_IPV6 1
13531 if test "$cross_compiling" = yes; then
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13537 cat >conftest.
$ac_ext <<_ACEOF
13540 cat confdefs.h
>>conftest.
$ac_ext
13541 cat >>conftest.
$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 /* AF_INET6 available check */
13544 #include <sys/types.h>
13545 #include <sys/socket.h>
13548 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13555 rm -f conftest
$ac_exeext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 echo "$as_me:$LINENO: result: yes" >&5
13567 echo "${ECHO_T}yes" >&6
13570 echo "$as_me: program exited with status $ac_status" >&5
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.
$ac_ext >&5
13574 ( exit $ac_status )
13575 echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13579 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13582 if test "$ipv6" = "yes"; then
13583 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13584 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13585 cat >conftest.
$ac_ext <<_ACEOF
13588 cat confdefs.h
>>conftest.
$ac_ext
13589 cat >>conftest.
$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 #include <netinet/in.h>
13596 struct sockaddr_in6 x;
13602 rm -f conftest.
$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1
>conftest.err
13608 cat conftest.err
>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try
='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try
='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 echo "$as_me:$LINENO: result: yes" >&5
13625 echo "${ECHO_T}yes" >&6
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.
$ac_ext >&5
13631 echo "$as_me:$LINENO: result: no" >&5
13632 echo "${ECHO_T}no" >&6
13635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13638 if test "$ipv6" = "yes"; then
13639 cat >>confdefs.h
<<\_ACEOF
13640 #define ENABLE_IPV6 1
13651 if test "$ipv6" = "yes"; then
13652 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13653 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13654 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13658 cat >conftest.
$ac_ext <<_ACEOF
13661 cat confdefs.h
>>conftest.
$ac_ext
13662 cat >>conftest.
$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13665 #include <netinet/in.h>
13666 #ifdef IPV6_INRIA_VERSION
13670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13671 $EGREP "yes" >/dev
/null
2>&1; then
13678 cat >conftest.
$ac_ext <<_ACEOF
13681 cat confdefs.h
>>conftest.
$ac_ext
13682 cat >>conftest.
$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13685 #include <netinet/in.h>
13690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13691 $EGREP "yes" >/dev
/null
2>&1; then
13694 ipv6libdir
=/usr
/local
/v
6/lib
13701 cat >conftest.
$ac_ext <<_ACEOF
13704 cat confdefs.h
>>conftest.
$ac_ext
13705 cat >>conftest.
$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 #include <features.h>
13709 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714 $EGREP "yes" >/dev
/null
2>&1; then
13722 if test -d /usr
/inet6
; then
13725 ipv6libdir
=/usr
/inet
6/lib
13726 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13730 if test -f /etc
/netconfig
; then
13731 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13738 cat >conftest.
$ac_ext <<_ACEOF
13741 cat confdefs.h
>>conftest.
$ac_ext
13742 cat >>conftest.
$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 #include <sys/param.h>
13746 #ifdef _TOSHIBA_INET6
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 $EGREP "yes" >/dev
/null
2>&1; then
13754 ipv6libdir
=/usr
/local
/v
6/lib
13760 cat >conftest.
$ac_ext <<_ACEOF
13763 cat confdefs.h
>>conftest.
$ac_ext
13764 cat >>conftest.
$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 #include </usr/local/v6/include/sys/v6config.h>
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "yes" >/dev
/null
2>&1; then
13776 ipv6libdir
=/usr
/local
/v
6/lib
;
13777 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13783 cat >conftest.
$ac_ext <<_ACEOF
13786 cat confdefs.h
>>conftest.
$ac_ext
13787 cat >>conftest.
$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13790 #include <sys/param.h>
13791 #ifdef _ZETA_MINAMI_INET6
13795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13796 $EGREP "yes" >/dev
/null
2>&1; then
13799 ipv6libdir
=/usr
/local
/v
6/lib
13805 if test "$ipv6type" != "unknown"; then
13809 echo "$as_me:$LINENO: result: $ipv6type" >&5
13810 echo "${ECHO_T}$ipv6type" >&6
13813 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13814 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13815 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13816 echo "using lib$ipv6lib"
13818 if test $ipv6trylibc = "yes"; then
13821 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13822 echo "You need to fetch lib$ipv6lib.a from appropriate"
13823 echo 'ipv6 kit and compile beforehand.'
13829 # Check for --with-doc-strings
13830 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13831 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13833 # Check whether --with-doc-strings or --without-doc-strings was given.
13834 if test "${with_doc_strings+set}" = set; then
13835 withval
="$with_doc_strings"
13839 if test -z "$with_doc_strings"
13840 then with_doc_strings
="yes"
13842 if test "$with_doc_strings" != "no"
13845 cat >>confdefs.h
<<\_ACEOF
13846 #define WITH_DOC_STRINGS 1
13850 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13851 echo "${ECHO_T}$with_doc_strings" >&6
13853 # Check for Python-specific malloc support
13854 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13855 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13857 # Check whether --with-tsc or --without-tsc was given.
13858 if test "${with_tsc+set}" = set; then
13859 withval
="$with_tsc"
13861 if test "$withval" != no
13864 cat >>confdefs.h
<<\_ACEOF
13868 echo "$as_me:$LINENO: result: yes" >&5
13869 echo "${ECHO_T}yes" >&6
13870 else echo "$as_me:$LINENO: result: no" >&5
13871 echo "${ECHO_T}no" >&6
13874 echo "$as_me:$LINENO: result: no" >&5
13875 echo "${ECHO_T}no" >&6
13878 # Check for Python-specific malloc support
13879 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13880 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13882 # Check whether --with-pymalloc or --without-pymalloc was given.
13883 if test "${with_pymalloc+set}" = set; then
13884 withval
="$with_pymalloc"
13888 if test -z "$with_pymalloc"
13889 then with_pymalloc
="yes"
13891 if test "$with_pymalloc" != "no"
13894 cat >>confdefs.h
<<\_ACEOF
13895 #define WITH_PYMALLOC 1
13899 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13900 echo "${ECHO_T}$with_pymalloc" >&6
13902 # Check for --with-wctype-functions
13903 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13904 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13906 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13907 if test "${with_wctype_functions+set}" = set; then
13908 withval
="$with_wctype_functions"
13910 if test "$withval" != no
13913 cat >>confdefs.h
<<\_ACEOF
13914 #define WANT_WCTYPE_FUNCTIONS 1
13917 echo "$as_me:$LINENO: result: yes" >&5
13918 echo "${ECHO_T}yes" >&6
13919 else echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6
13923 echo "$as_me:$LINENO: result: no" >&5
13924 echo "${ECHO_T}no" >&6
13927 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13931 # the dlopen() function means we might want to use dynload_shlib.o. some
13932 # platforms, such as AIX, have dlopen(), but don't want to use it.
13934 for ac_func
in dlopen
13936 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13939 if eval "test \"\${$as_ac_var+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 cat >conftest.
$ac_ext <<_ACEOF
13945 cat confdefs.h
>>conftest.
$ac_ext
13946 cat >>conftest.
$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define $ac_func innocuous_$ac_func
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char $ac_func (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13958 # include <limits.h>
13960 # include <assert.h>
13965 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13979 char (*f) () = $ac_func;
13988 return f != $ac_func;
13993 rm -f conftest.
$ac_objext conftest
$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995 (eval $ac_link) 2>conftest.er1
13997 grep -v '^ *+' conftest.er1
>conftest.err
13999 cat conftest.err
>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try
='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try
='test -s conftest$ac_exeext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 eval "$as_ac_var=yes"
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.
$ac_ext >&5
14020 eval "$as_ac_var=no"
14022 rm -f conftest.err conftest.
$ac_objext \
14023 conftest
$ac_exeext conftest.
$ac_ext
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14027 if test `eval echo '${'$as_ac_var'}'` = yes; then
14028 cat >>confdefs.h
<<_ACEOF
14029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14036 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14037 # loading of modules.
14039 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14040 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14041 if test -z "$DYNLOADFILE"
14043 case $ac_sys_system/$ac_sys_release in
14044 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14045 if test "$ac_cv_func_dlopen" = yes
14046 then DYNLOADFILE
="dynload_shlib.o"
14047 else DYNLOADFILE
="dynload_aix.o"
14050 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14051 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14052 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14053 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14054 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14056 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14057 # out any dynamic loading
14058 if test "$ac_cv_func_dlopen" = yes
14059 then DYNLOADFILE
="dynload_shlib.o"
14060 else DYNLOADFILE
="dynload_stub.o"
14065 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14066 echo "${ECHO_T}$DYNLOADFILE" >&6
14067 if test "$DYNLOADFILE" != "dynload_stub.o"
14070 cat >>confdefs.h
<<\_ACEOF
14071 #define HAVE_DYNAMIC_LOADING 1
14076 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14079 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14080 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14081 if test -z "$MACHDEP_OBJS"
14083 MACHDEP_OBJS
=$extra_machdep_objs
14085 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14087 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14088 echo "${ECHO_T}MACHDEP_OBJS" >&6
14090 # checks for library functions
14167 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14168 execv fork fpathconf ftime ftruncate \
14169 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14170 getpriority getpwent getspnam getspent getsid getwd \
14171 kill killpg lchown lstat
mkfifo mknod mktime \
14172 mremap nice pathconf pause plock poll pthread_init \
14173 putenv readlink realpath \
14174 select setegid seteuid setgid \
14175 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14176 sigaction siginterrupt sigrelse strftime \
14177 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14178 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14181 echo "$as_me:$LINENO: checking for $ac_func" >&5
14182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14183 if eval "test \"\${$as_ac_var+set}\" = set"; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 cat >conftest.
$ac_ext <<_ACEOF
14189 cat confdefs.h
>>conftest.
$ac_ext
14190 cat >>conftest.
$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14194 #define $ac_func innocuous_$ac_func
14196 /* System header to define __stub macros and hopefully few prototypes,
14197 which can conflict with char $ac_func (); below.
14198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14199 <limits.h> exists even on freestanding compilers. */
14202 # include <limits.h>
14204 # include <assert.h>
14209 /* Override any gcc2 internal prototype to avoid an error. */
14214 /* We use char because int might match the return type of a gcc2
14215 builtin and then its argument prototype would still apply. */
14217 /* The GNU C library defines this for functions which it implements
14218 to always fail with ENOSYS. Some functions are actually named
14219 something starting with __ and the normal name is an alias. */
14220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14223 char (*f) () = $ac_func;
14232 return f != $ac_func;
14237 rm -f conftest.
$ac_objext conftest
$ac_exeext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14239 (eval $ac_link) 2>conftest.er1
14241 grep -v '^ *+' conftest.er1
>conftest.err
14243 cat conftest.err
>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try
='test -z "$ac_c_werror_flag"
14247 || test ! -s conftest.err'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; } &&
14253 { ac_try
='test -s conftest$ac_exeext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 eval "$as_ac_var=yes"
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.
$ac_ext >&5
14264 eval "$as_ac_var=no"
14266 rm -f conftest.err conftest.
$ac_objext \
14267 conftest
$ac_exeext conftest.
$ac_ext
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14271 if test `eval echo '${'$as_ac_var'}'` = yes; then
14272 cat >>confdefs.h
<<_ACEOF
14273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14280 # For some functions, having a definition is not sufficient, since
14281 # we want to take their address.
14282 echo "$as_me:$LINENO: checking for chroot" >&5
14283 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14284 cat >conftest.
$ac_ext <<_ACEOF
14287 cat confdefs.h
>>conftest.
$ac_ext
14288 cat >>conftest.
$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 #include <unistd.h>
14299 rm -f conftest.
$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301 (eval $ac_compile) 2>conftest.er1
14303 grep -v '^ *+' conftest.er1
>conftest.err
14305 cat conftest.err
>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try
='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try
='test -s conftest.$ac_objext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14322 cat >>confdefs.h
<<\_ACEOF
14323 #define HAVE_CHROOT 1
14326 echo "$as_me:$LINENO: result: yes" >&5
14327 echo "${ECHO_T}yes" >&6
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.
$ac_ext >&5
14332 echo "$as_me:$LINENO: result: no" >&5
14333 echo "${ECHO_T}no" >&6
14336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14337 echo "$as_me:$LINENO: checking for link" >&5
14338 echo $ECHO_N "checking for link... $ECHO_C" >&6
14339 cat >conftest.
$ac_ext <<_ACEOF
14342 cat confdefs.h
>>conftest.
$ac_ext
14343 cat >>conftest.
$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <unistd.h>
14354 rm -f conftest.
$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 (eval $ac_compile) 2>conftest.er1
14358 grep -v '^ *+' conftest.er1
>conftest.err
14360 cat conftest.err
>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } &&
14363 { ac_try
='test -z "$ac_c_werror_flag"
14364 || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try
='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14377 cat >>confdefs.h
<<\_ACEOF
14378 #define HAVE_LINK 1
14381 echo "$as_me:$LINENO: result: yes" >&5
14382 echo "${ECHO_T}yes" >&6
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.
$ac_ext >&5
14387 echo "$as_me:$LINENO: result: no" >&5
14388 echo "${ECHO_T}no" >&6
14391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14392 echo "$as_me:$LINENO: checking for symlink" >&5
14393 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14394 cat >conftest.
$ac_ext <<_ACEOF
14397 cat confdefs.h
>>conftest.
$ac_ext
14398 cat >>conftest.
$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <unistd.h>
14409 rm -f conftest.
$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1
>conftest.err
14415 cat conftest.err
>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try
='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try
='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14432 cat >>confdefs.h
<<\_ACEOF
14433 #define HAVE_SYMLINK 1
14436 echo "$as_me:$LINENO: result: yes" >&5
14437 echo "${ECHO_T}yes" >&6
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.
$ac_ext >&5
14442 echo "$as_me:$LINENO: result: no" >&5
14443 echo "${ECHO_T}no" >&6
14446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14447 echo "$as_me:$LINENO: checking for fchdir" >&5
14448 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14449 cat >conftest.
$ac_ext <<_ACEOF
14452 cat confdefs.h
>>conftest.
$ac_ext
14453 cat >>conftest.
$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <unistd.h>
14464 rm -f conftest.
$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>conftest.er1
14468 grep -v '^ *+' conftest.er1
>conftest.err
14470 cat conftest.err
>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try
='test -z "$ac_c_werror_flag"
14474 || test ! -s conftest.err'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try
='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14487 cat >>confdefs.h
<<\_ACEOF
14488 #define HAVE_FCHDIR 1
14491 echo "$as_me:$LINENO: result: yes" >&5
14492 echo "${ECHO_T}yes" >&6
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.
$ac_ext >&5
14497 echo "$as_me:$LINENO: result: no" >&5
14498 echo "${ECHO_T}no" >&6
14501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14502 echo "$as_me:$LINENO: checking for fsync" >&5
14503 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14504 cat >conftest.
$ac_ext <<_ACEOF
14507 cat confdefs.h
>>conftest.
$ac_ext
14508 cat >>conftest.
$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <unistd.h>
14519 rm -f conftest.
$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14523 grep -v '^ *+' conftest.er1
>conftest.err
14525 cat conftest.err
>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try
='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try
='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14542 cat >>confdefs.h
<<\_ACEOF
14543 #define HAVE_FSYNC 1
14546 echo "$as_me:$LINENO: result: yes" >&5
14547 echo "${ECHO_T}yes" >&6
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.
$ac_ext >&5
14552 echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6
14556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14557 echo "$as_me:$LINENO: checking for fdatasync" >&5
14558 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14559 cat >conftest.
$ac_ext <<_ACEOF
14562 cat confdefs.h
>>conftest.
$ac_ext
14563 cat >>conftest.
$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include <unistd.h>
14574 rm -f conftest.
$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>conftest.er1
14578 grep -v '^ *+' conftest.er1
>conftest.err
14580 cat conftest.err
>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try
='test -z "$ac_c_werror_flag"
14584 || test ! -s conftest.err'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try
='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14597 cat >>confdefs.h
<<\_ACEOF
14598 #define HAVE_FDATASYNC 1
14601 echo "$as_me:$LINENO: result: yes" >&5
14602 echo "${ECHO_T}yes" >&6
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.
$ac_ext >&5
14607 echo "$as_me:$LINENO: result: no" >&5
14608 echo "${ECHO_T}no" >&6
14611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14613 # On some systems (eg. FreeBSD 5), we would find a definition of the
14614 # functions ctermid_r, setgroups in the library, but no prototype
14615 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14616 # address to avoid compiler warnings and potential miscompilations
14617 # because of the missing prototypes.
14619 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14620 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14621 cat >conftest.
$ac_ext <<_ACEOF
14624 cat confdefs.h
>>conftest.
$ac_ext
14625 cat >>conftest.
$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14628 #include "confdefs.h"
14634 void* p = ctermid_r
14639 rm -f conftest.
$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>conftest.er1
14643 grep -v '^ *+' conftest.er1
>conftest.err
14645 cat conftest.err
>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try
='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try
='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14662 cat >>confdefs.h
<<\_ACEOF
14663 #define HAVE_CTERMID_R 1
14666 echo "$as_me:$LINENO: result: yes" >&5
14667 echo "${ECHO_T}yes" >&6
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.
$ac_ext >&5
14672 echo "$as_me:$LINENO: result: no" >&5
14673 echo "${ECHO_T}no" >&6
14676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14678 echo "$as_me:$LINENO: checking for flock" >&5
14679 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14680 cat >conftest.
$ac_ext <<_ACEOF
14683 cat confdefs.h
>>conftest.
$ac_ext
14684 cat >>conftest.
$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 #include "confdefs.h"
14688 #include <sys/file.h>
14698 rm -f conftest.
$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700 (eval $ac_compile) 2>conftest.er1
14702 grep -v '^ *+' conftest.er1
>conftest.err
14704 cat conftest.err
>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try
='test -z "$ac_c_werror_flag"
14708 || test ! -s conftest.err'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try
='test -s conftest.$ac_objext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14721 cat >>confdefs.h
<<\_ACEOF
14722 #define HAVE_FLOCK 1
14725 echo "$as_me:$LINENO: result: yes" >&5
14726 echo "${ECHO_T}yes" >&6
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.
$ac_ext >&5
14731 echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6
14735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14737 echo "$as_me:$LINENO: checking for getpagesize" >&5
14738 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14739 cat >conftest.
$ac_ext <<_ACEOF
14742 cat confdefs.h
>>conftest.
$ac_ext
14743 cat >>conftest.
$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14746 #include "confdefs.h"
14747 #include <unistd.h>
14752 void* p = getpagesize
14757 rm -f conftest.
$ac_objext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759 (eval $ac_compile) 2>conftest.er1
14761 grep -v '^ *+' conftest.er1
>conftest.err
14763 cat conftest.err
>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try
='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try
='test -s conftest.$ac_objext'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14780 cat >>confdefs.h
<<\_ACEOF
14781 #define HAVE_GETPAGESIZE 1
14784 echo "$as_me:$LINENO: result: yes" >&5
14785 echo "${ECHO_T}yes" >&6
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.
$ac_ext >&5
14790 echo "$as_me:$LINENO: result: no" >&5
14791 echo "${ECHO_T}no" >&6
14794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14796 for ac_prog
in true
14798 # Extract the first word of "$ac_prog", so it can be a program name with args.
14799 set dummy
$ac_prog; ac_word
=$2
14800 echo "$as_me:$LINENO: checking for $ac_word" >&5
14801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14802 if test "${ac_cv_prog_TRUE+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 if test -n "$TRUE"; then
14806 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14809 for as_dir
in $PATH
14812 test -z "$as_dir" && as_dir
=.
14813 for ac_exec_ext
in '' $ac_executable_extensions; do
14814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14815 ac_cv_prog_TRUE
="$ac_prog"
14816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 TRUE
=$ac_cv_prog_TRUE
14825 if test -n "$TRUE"; then
14826 echo "$as_me:$LINENO: result: $TRUE" >&5
14827 echo "${ECHO_T}$TRUE" >&6
14829 echo "$as_me:$LINENO: result: no" >&5
14830 echo "${ECHO_T}no" >&6
14833 test -n "$TRUE" && break
14835 test -n "$TRUE" || TRUE
="/bin/true"
14838 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14839 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14840 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 ac_check_lib_save_LIBS
=$LIBS
14845 cat >conftest.
$ac_ext <<_ACEOF
14848 cat confdefs.h
>>conftest.
$ac_ext
14849 cat >>conftest.
$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14852 /* Override any gcc2 internal prototype to avoid an error. */
14856 /* We use char because int might match the return type of a gcc2
14857 builtin and then its argument prototype would still apply. */
14867 rm -f conftest.
$ac_objext conftest
$ac_exeext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>conftest.er1
14871 grep -v '^ *+' conftest.er1
>conftest.err
14873 cat conftest.err
>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try
='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try
='test -s conftest$ac_exeext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_lib_c_inet_aton
=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.
$ac_ext >&5
14894 ac_cv_lib_c_inet_aton
=no
14896 rm -f conftest.err conftest.
$ac_objext \
14897 conftest
$ac_exeext conftest.
$ac_ext
14898 LIBS
=$ac_check_lib_save_LIBS
14900 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14901 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14902 if test $ac_cv_lib_c_inet_aton = yes; then
14906 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14907 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14908 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 ac_check_lib_save_LIBS
=$LIBS
14912 LIBS
="-lresolv $LIBS"
14913 cat >conftest.
$ac_ext <<_ACEOF
14916 cat confdefs.h
>>conftest.
$ac_ext
14917 cat >>conftest.
$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 /* Override any gcc2 internal prototype to avoid an error. */
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14935 rm -f conftest.
$ac_objext conftest
$ac_exeext
14936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937 (eval $ac_link) 2>conftest.er1
14939 grep -v '^ *+' conftest.er1
>conftest.err
14941 cat conftest.err
>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try
='test -z "$ac_c_werror_flag"
14945 || test ! -s conftest.err'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; } &&
14951 { ac_try
='test -s conftest$ac_exeext'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ac_cv_lib_resolv_inet_aton
=yes
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.
$ac_ext >&5
14962 ac_cv_lib_resolv_inet_aton
=no
14964 rm -f conftest.err conftest.
$ac_objext \
14965 conftest
$ac_exeext conftest.
$ac_ext
14966 LIBS
=$ac_check_lib_save_LIBS
14968 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14969 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14970 if test $ac_cv_lib_resolv_inet_aton = yes; then
14971 cat >>confdefs.h
<<_ACEOF
14972 #define HAVE_LIBRESOLV 1
14975 LIBS
="-lresolv $LIBS"
14983 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
14984 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
14985 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 ac_check_lib_save_LIBS
=$LIBS
14990 cat >conftest.
$ac_ext <<_ACEOF
14993 cat confdefs.h
>>conftest.
$ac_ext
14994 cat >>conftest.
$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14997 /* Override any gcc2 internal prototype to avoid an error. */
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15003 char inflateCopy ();
15012 rm -f conftest.
$ac_objext conftest
$ac_exeext
15013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15014 (eval $ac_link) 2>conftest.er1
15016 grep -v '^ *+' conftest.er1
>conftest.err
15018 cat conftest.err
>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
15021 { ac_try
='test -z "$ac_c_werror_flag"
15022 || test ! -s conftest.err'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try
='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_lib_z_inflateCopy
=yes
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.
$ac_ext >&5
15039 ac_cv_lib_z_inflateCopy
=no
15041 rm -f conftest.err conftest.
$ac_objext \
15042 conftest
$ac_exeext conftest.
$ac_ext
15043 LIBS
=$ac_check_lib_save_LIBS
15045 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15046 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15047 if test $ac_cv_lib_z_inflateCopy = yes; then
15049 cat >>confdefs.h
<<\_ACEOF
15050 #define HAVE_ZLIB_COPY 1
15056 echo "$as_me:$LINENO: checking for hstrerror" >&5
15057 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15058 cat >conftest.
$ac_ext <<_ACEOF
15061 cat confdefs.h
>>conftest.
$ac_ext
15062 cat >>conftest.
$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15065 #include "confdefs.h"
15071 void* p = hstrerror; hstrerror(0)
15076 rm -f conftest.
$ac_objext conftest
$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078 (eval $ac_link) 2>conftest.er1
15080 grep -v '^ *+' conftest.er1
>conftest.err
15082 cat conftest.err
>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try
='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try
='test -s conftest$ac_exeext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15099 cat >>confdefs.h
<<\_ACEOF
15100 #define HAVE_HSTRERROR 1
15103 echo "$as_me:$LINENO: result: yes" >&5
15104 echo "${ECHO_T}yes" >&6
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.
$ac_ext >&5
15109 echo "$as_me:$LINENO: result: no" >&5
15110 echo "${ECHO_T}no" >&6
15113 rm -f conftest.err conftest.
$ac_objext \
15114 conftest
$ac_exeext conftest.
$ac_ext
15116 echo "$as_me:$LINENO: checking for inet_aton" >&5
15117 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15118 cat >conftest.
$ac_ext <<_ACEOF
15121 cat confdefs.h
>>conftest.
$ac_ext
15122 cat >>conftest.
$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 #include "confdefs.h"
15126 #include <sys/types.h>
15127 #include <sys/socket.h>
15128 #include <netinet/in.h>
15129 #include <arpa/inet.h>
15134 void* p = inet_aton;inet_aton(0,0)
15139 rm -f conftest.
$ac_objext conftest
$ac_exeext
15140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15141 (eval $ac_link) 2>conftest.er1
15143 grep -v '^ *+' conftest.er1
>conftest.err
15145 cat conftest.err
>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try
='test -z "$ac_c_werror_flag"
15149 || test ! -s conftest.err'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try
='test -s conftest$ac_exeext'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15162 cat >>confdefs.h
<<\_ACEOF
15163 #define HAVE_INET_ATON 1
15166 echo "$as_me:$LINENO: result: yes" >&5
15167 echo "${ECHO_T}yes" >&6
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.
$ac_ext >&5
15172 echo "$as_me:$LINENO: result: no" >&5
15173 echo "${ECHO_T}no" >&6
15176 rm -f conftest.err conftest.
$ac_objext \
15177 conftest
$ac_exeext conftest.
$ac_ext
15179 echo "$as_me:$LINENO: checking for inet_pton" >&5
15180 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15181 cat >conftest.
$ac_ext <<_ACEOF
15184 cat confdefs.h
>>conftest.
$ac_ext
15185 cat >>conftest.
$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15188 #include "confdefs.h"
15189 #include <sys/types.h>
15190 #include <sys/socket.h>
15191 #include <netinet/in.h>
15192 #include <arpa/inet.h>
15197 void* p = inet_pton
15202 rm -f conftest.
$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>conftest.er1
15206 grep -v '^ *+' conftest.er1
>conftest.err
15208 cat conftest.err
>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } &&
15211 { ac_try
='test -z "$ac_c_werror_flag"
15212 || test ! -s conftest.err'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try
='test -s conftest.$ac_objext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15225 cat >>confdefs.h
<<\_ACEOF
15226 #define HAVE_INET_PTON 1
15229 echo "$as_me:$LINENO: result: yes" >&5
15230 echo "${ECHO_T}yes" >&6
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.
$ac_ext >&5
15235 echo "$as_me:$LINENO: result: no" >&5
15236 echo "${ECHO_T}no" >&6
15239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15241 # On some systems, setgroups is in unistd.h, on others, in grp.h
15242 echo "$as_me:$LINENO: checking for setgroups" >&5
15243 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15244 cat >conftest.
$ac_ext <<_ACEOF
15247 cat confdefs.h
>>conftest.
$ac_ext
15248 cat >>conftest.
$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15251 #include "confdefs.h"
15252 #include <unistd.h>
15260 void* p = setgroups
15265 rm -f conftest.
$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>conftest.er1
15269 grep -v '^ *+' conftest.er1
>conftest.err
15271 cat conftest.err
>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try
='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try
='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15288 cat >>confdefs.h
<<\_ACEOF
15289 #define HAVE_SETGROUPS 1
15292 echo "$as_me:$LINENO: result: yes" >&5
15293 echo "${ECHO_T}yes" >&6
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.
$ac_ext >&5
15298 echo "$as_me:$LINENO: result: no" >&5
15299 echo "${ECHO_T}no" >&6
15302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15304 # check for openpty and forkpty
15307 for ac_func
in openpty
15309 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15310 echo "$as_me:$LINENO: checking for $ac_func" >&5
15311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15312 if eval "test \"\${$as_ac_var+set}\" = set"; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 cat >conftest.
$ac_ext <<_ACEOF
15318 cat confdefs.h
>>conftest.
$ac_ext
15319 cat >>conftest.
$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15323 #define $ac_func innocuous_$ac_func
15325 /* System header to define __stub macros and hopefully few prototypes,
15326 which can conflict with char $ac_func (); below.
15327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15328 <limits.h> exists even on freestanding compilers. */
15331 # include <limits.h>
15333 # include <assert.h>
15338 /* Override any gcc2 internal prototype to avoid an error. */
15343 /* We use char because int might match the return type of a gcc2
15344 builtin and then its argument prototype would still apply. */
15346 /* The GNU C library defines this for functions which it implements
15347 to always fail with ENOSYS. Some functions are actually named
15348 something starting with __ and the normal name is an alias. */
15349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15352 char (*f) () = $ac_func;
15361 return f != $ac_func;
15366 rm -f conftest.
$ac_objext conftest
$ac_exeext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15368 (eval $ac_link) 2>conftest.er1
15370 grep -v '^ *+' conftest.er1
>conftest.err
15372 cat conftest.err
>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try
='test -z "$ac_c_werror_flag"
15376 || test ! -s conftest.err'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; } &&
15382 { ac_try
='test -s conftest$ac_exeext'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15388 eval "$as_ac_var=yes"
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.
$ac_ext >&5
15393 eval "$as_ac_var=no"
15395 rm -f conftest.err conftest.
$ac_objext \
15396 conftest
$ac_exeext conftest.
$ac_ext
15398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15400 if test `eval echo '${'$as_ac_var'}'` = yes; then
15401 cat >>confdefs.h
<<_ACEOF
15402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15406 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15407 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15408 if test "${ac_cv_lib_util_openpty+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 ac_check_lib_save_LIBS
=$LIBS
15412 LIBS
="-lutil $LIBS"
15413 cat >conftest.
$ac_ext <<_ACEOF
15416 cat confdefs.h
>>conftest.
$ac_ext
15417 cat >>conftest.
$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15420 /* Override any gcc2 internal prototype to avoid an error. */
15424 /* We use char because int might match the return type of a gcc2
15425 builtin and then its argument prototype would still apply. */
15435 rm -f conftest.
$ac_objext conftest
$ac_exeext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15437 (eval $ac_link) 2>conftest.er1
15439 grep -v '^ *+' conftest.er1
>conftest.err
15441 cat conftest.err
>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try
='test -z "$ac_c_werror_flag"
15445 || test ! -s conftest.err'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } &&
15451 { ac_try
='test -s conftest$ac_exeext'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 ac_cv_lib_util_openpty
=yes
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.
$ac_ext >&5
15462 ac_cv_lib_util_openpty
=no
15464 rm -f conftest.err conftest.
$ac_objext \
15465 conftest
$ac_exeext conftest.
$ac_ext
15466 LIBS
=$ac_check_lib_save_LIBS
15468 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15469 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15470 if test $ac_cv_lib_util_openpty = yes; then
15471 cat >>confdefs.h
<<\_ACEOF
15472 #define HAVE_OPENPTY 1
15474 LIBS
="$LIBS -lutil"
15476 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15477 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15478 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 ac_check_lib_save_LIBS
=$LIBS
15483 cat >conftest.
$ac_ext <<_ACEOF
15486 cat confdefs.h
>>conftest.
$ac_ext
15487 cat >>conftest.
$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15490 /* Override any gcc2 internal prototype to avoid an error. */
15494 /* We use char because int might match the return type of a gcc2
15495 builtin and then its argument prototype would still apply. */
15505 rm -f conftest.
$ac_objext conftest
$ac_exeext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507 (eval $ac_link) 2>conftest.er1
15509 grep -v '^ *+' conftest.er1
>conftest.err
15511 cat conftest.err
>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try
='test -z "$ac_c_werror_flag"
15515 || test ! -s conftest.err'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try
='test -s conftest$ac_exeext'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_cv_lib_bsd_openpty
=yes
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.
$ac_ext >&5
15532 ac_cv_lib_bsd_openpty
=no
15534 rm -f conftest.err conftest.
$ac_objext \
15535 conftest
$ac_exeext conftest.
$ac_ext
15536 LIBS
=$ac_check_lib_save_LIBS
15538 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15539 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15540 if test $ac_cv_lib_bsd_openpty = yes; then
15541 cat >>confdefs.h
<<\_ACEOF
15542 #define HAVE_OPENPTY 1
15555 for ac_func
in forkpty
15557 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15558 echo "$as_me:$LINENO: checking for $ac_func" >&5
15559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15560 if eval "test \"\${$as_ac_var+set}\" = set"; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 cat >conftest.
$ac_ext <<_ACEOF
15566 cat confdefs.h
>>conftest.
$ac_ext
15567 cat >>conftest.
$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15571 #define $ac_func innocuous_$ac_func
15573 /* System header to define __stub macros and hopefully few prototypes,
15574 which can conflict with char $ac_func (); below.
15575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15576 <limits.h> exists even on freestanding compilers. */
15579 # include <limits.h>
15581 # include <assert.h>
15586 /* Override any gcc2 internal prototype to avoid an error. */
15591 /* We use char because int might match the return type of a gcc2
15592 builtin and then its argument prototype would still apply. */
15594 /* The GNU C library defines this for functions which it implements
15595 to always fail with ENOSYS. Some functions are actually named
15596 something starting with __ and the normal name is an alias. */
15597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15600 char (*f) () = $ac_func;
15609 return f != $ac_func;
15614 rm -f conftest.
$ac_objext conftest
$ac_exeext
15615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15616 (eval $ac_link) 2>conftest.er1
15618 grep -v '^ *+' conftest.er1
>conftest.err
15620 cat conftest.err
>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try
='test -z "$ac_c_werror_flag"
15624 || test ! -s conftest.err'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try
='test -s conftest$ac_exeext'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 eval "$as_ac_var=yes"
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.
$ac_ext >&5
15641 eval "$as_ac_var=no"
15643 rm -f conftest.err conftest.
$ac_objext \
15644 conftest
$ac_exeext conftest.
$ac_ext
15646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15648 if test `eval echo '${'$as_ac_var'}'` = yes; then
15649 cat >>confdefs.h
<<_ACEOF
15650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15654 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15655 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15656 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 ac_check_lib_save_LIBS
=$LIBS
15660 LIBS
="-lutil $LIBS"
15661 cat >conftest.
$ac_ext <<_ACEOF
15664 cat confdefs.h
>>conftest.
$ac_ext
15665 cat >>conftest.
$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15668 /* Override any gcc2 internal prototype to avoid an error. */
15672 /* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15683 rm -f conftest.
$ac_objext conftest
$ac_exeext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>conftest.er1
15687 grep -v '^ *+' conftest.er1
>conftest.err
15689 cat conftest.err
>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try
='test -z "$ac_c_werror_flag"
15693 || test ! -s conftest.err'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; } &&
15699 { ac_try
='test -s conftest$ac_exeext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 ac_cv_lib_util_forkpty
=yes
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.
$ac_ext >&5
15710 ac_cv_lib_util_forkpty
=no
15712 rm -f conftest.err conftest.
$ac_objext \
15713 conftest
$ac_exeext conftest.
$ac_ext
15714 LIBS
=$ac_check_lib_save_LIBS
15716 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15717 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15718 if test $ac_cv_lib_util_forkpty = yes; then
15719 cat >>confdefs.h
<<\_ACEOF
15720 #define HAVE_FORKPTY 1
15722 LIBS
="$LIBS -lutil"
15724 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15725 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15726 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 ac_check_lib_save_LIBS
=$LIBS
15731 cat >conftest.
$ac_ext <<_ACEOF
15734 cat confdefs.h
>>conftest.
$ac_ext
15735 cat >>conftest.
$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15738 /* Override any gcc2 internal prototype to avoid an error. */
15742 /* We use char because int might match the return type of a gcc2
15743 builtin and then its argument prototype would still apply. */
15753 rm -f conftest.
$ac_objext conftest
$ac_exeext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15755 (eval $ac_link) 2>conftest.er1
15757 grep -v '^ *+' conftest.er1
>conftest.err
15759 cat conftest.err
>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try
='test -z "$ac_c_werror_flag"
15763 || test ! -s conftest.err'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try
='test -s conftest$ac_exeext'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 ac_cv_lib_bsd_forkpty
=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.
$ac_ext >&5
15780 ac_cv_lib_bsd_forkpty
=no
15782 rm -f conftest.err conftest.
$ac_objext \
15783 conftest
$ac_exeext conftest.
$ac_ext
15784 LIBS
=$ac_check_lib_save_LIBS
15786 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15787 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15788 if test $ac_cv_lib_bsd_forkpty = yes; then
15789 cat >>confdefs.h
<<\_ACEOF
15790 #define HAVE_FORKPTY 1
15803 # check for long file support functions
15810 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15812 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15815 if eval "test \"\${$as_ac_var+set}\" = set"; then
15816 echo $ECHO_N "(cached) $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. */
15824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826 #define $ac_func innocuous_$ac_func
15828 /* System header to define __stub macros and hopefully few prototypes,
15829 which can conflict with char $ac_func (); below.
15830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831 <limits.h> exists even on freestanding compilers. */
15834 # include <limits.h>
15836 # include <assert.h>
15841 /* Override any gcc2 internal prototype to avoid an error. */
15846 /* We use char because int might match the return type of a gcc2
15847 builtin and then its argument prototype would still apply. */
15849 /* The GNU C library defines this for functions which it implements
15850 to always fail with ENOSYS. Some functions are actually named
15851 something starting with __ and the normal name is an alias. */
15852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855 char (*f) () = $ac_func;
15864 return f != $ac_func;
15869 rm -f conftest.
$ac_objext conftest
$ac_exeext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871 (eval $ac_link) 2>conftest.er1
15873 grep -v '^ *+' conftest.er1
>conftest.err
15875 cat conftest.err
>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try
='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try
='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 eval "$as_ac_var=yes"
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.
$ac_ext >&5
15896 eval "$as_ac_var=no"
15898 rm -f conftest.err conftest.
$ac_objext \
15899 conftest
$ac_exeext conftest.
$ac_ext
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15903 if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h
<<_ACEOF
15905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15917 for ac_func
in dup2 getcwd strdup strerror memmove
15919 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15920 echo "$as_me:$LINENO: checking for $ac_func" >&5
15921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15922 if eval "test \"\${$as_ac_var+set}\" = set"; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 cat >conftest.
$ac_ext <<_ACEOF
15928 cat confdefs.h
>>conftest.
$ac_ext
15929 cat >>conftest.
$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15933 #define $ac_func innocuous_$ac_func
15935 /* System header to define __stub macros and hopefully few prototypes,
15936 which can conflict with char $ac_func (); below.
15937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15938 <limits.h> exists even on freestanding compilers. */
15941 # include <limits.h>
15943 # include <assert.h>
15948 /* Override any gcc2 internal prototype to avoid an error. */
15953 /* We use char because int might match the return type of a gcc2
15954 builtin and then its argument prototype would still apply. */
15956 /* The GNU C library defines this for functions which it implements
15957 to always fail with ENOSYS. Some functions are actually named
15958 something starting with __ and the normal name is an alias. */
15959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15962 char (*f) () = $ac_func;
15971 return f != $ac_func;
15976 rm -f conftest.
$ac_objext conftest
$ac_exeext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15978 (eval $ac_link) 2>conftest.er1
15980 grep -v '^ *+' conftest.er1
>conftest.err
15982 cat conftest.err
>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try
='test -z "$ac_c_werror_flag"
15986 || test ! -s conftest.err'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try
='test -s conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 eval "$as_ac_var=yes"
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.
$ac_ext >&5
16003 eval "$as_ac_var=no"
16005 rm -f conftest.err conftest.
$ac_objext \
16006 conftest
$ac_exeext conftest.
$ac_ext
16008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16010 if test `eval echo '${'$as_ac_var'}'` = yes; then
16011 cat >>confdefs.h
<<_ACEOF
16012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16017 "$ac_func.$ac_objext" | \
16018 *" $ac_func.$ac_objext" | \
16019 "$ac_func.$ac_objext "* | \
16020 *" $ac_func.$ac_objext "* ) ;;
16021 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16029 for ac_func
in getpgrp
16031 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16032 echo "$as_me:$LINENO: checking for $ac_func" >&5
16033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16034 if eval "test \"\${$as_ac_var+set}\" = set"; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 cat >conftest.
$ac_ext <<_ACEOF
16040 cat confdefs.h
>>conftest.
$ac_ext
16041 cat >>conftest.
$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16045 #define $ac_func innocuous_$ac_func
16047 /* System header to define __stub macros and hopefully few prototypes,
16048 which can conflict with char $ac_func (); below.
16049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16050 <limits.h> exists even on freestanding compilers. */
16053 # include <limits.h>
16055 # include <assert.h>
16060 /* Override any gcc2 internal prototype to avoid an error. */
16065 /* We use char because int might match the return type of a gcc2
16066 builtin and then its argument prototype would still apply. */
16068 /* The GNU C library defines this for functions which it implements
16069 to always fail with ENOSYS. Some functions are actually named
16070 something starting with __ and the normal name is an alias. */
16071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16074 char (*f) () = $ac_func;
16083 return f != $ac_func;
16088 rm -f conftest.
$ac_objext conftest
$ac_exeext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16090 (eval $ac_link) 2>conftest.er1
16092 grep -v '^ *+' conftest.er1
>conftest.err
16094 cat conftest.err
>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try
='test -z "$ac_c_werror_flag"
16098 || test ! -s conftest.err'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try
='test -s conftest$ac_exeext'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 eval "$as_ac_var=yes"
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.
$ac_ext >&5
16115 eval "$as_ac_var=no"
16117 rm -f conftest.err conftest.
$ac_objext \
16118 conftest
$ac_exeext conftest.
$ac_ext
16120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16122 if test `eval echo '${'$as_ac_var'}'` = yes; then
16123 cat >>confdefs.h
<<_ACEOF
16124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16126 cat >conftest.
$ac_ext <<_ACEOF
16129 cat confdefs.h
>>conftest.
$ac_ext
16130 cat >>conftest.
$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <unistd.h>
16141 rm -f conftest.
$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143 (eval $ac_compile) 2>conftest.er1
16145 grep -v '^ *+' conftest.er1
>conftest.err
16147 cat conftest.err
>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try
='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try
='test -s conftest.$ac_objext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16164 cat >>confdefs.h
<<\_ACEOF
16165 #define GETPGRP_HAVE_ARG 1
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.
$ac_ext >&5
16174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16180 for ac_func
in setpgrp
16182 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16183 echo "$as_me:$LINENO: checking for $ac_func" >&5
16184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16185 if eval "test \"\${$as_ac_var+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 cat >conftest.
$ac_ext <<_ACEOF
16191 cat confdefs.h
>>conftest.
$ac_ext
16192 cat >>conftest.
$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16196 #define $ac_func innocuous_$ac_func
16198 /* System header to define __stub macros and hopefully few prototypes,
16199 which can conflict with char $ac_func (); below.
16200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16201 <limits.h> exists even on freestanding compilers. */
16204 # include <limits.h>
16206 # include <assert.h>
16211 /* Override any gcc2 internal prototype to avoid an error. */
16216 /* We use char because int might match the return type of a gcc2
16217 builtin and then its argument prototype would still apply. */
16219 /* The GNU C library defines this for functions which it implements
16220 to always fail with ENOSYS. Some functions are actually named
16221 something starting with __ and the normal name is an alias. */
16222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16225 char (*f) () = $ac_func;
16234 return f != $ac_func;
16239 rm -f conftest.
$ac_objext conftest
$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241 (eval $ac_link) 2>conftest.er1
16243 grep -v '^ *+' conftest.er1
>conftest.err
16245 cat conftest.err
>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try
='test -z "$ac_c_werror_flag"
16249 || test ! -s conftest.err'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } &&
16255 { ac_try
='test -s conftest$ac_exeext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 eval "$as_ac_var=yes"
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.
$ac_ext >&5
16266 eval "$as_ac_var=no"
16268 rm -f conftest.err conftest.
$ac_objext \
16269 conftest
$ac_exeext conftest.
$ac_ext
16271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16273 if test `eval echo '${'$as_ac_var'}'` = yes; then
16274 cat >>confdefs.h
<<_ACEOF
16275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16277 cat >conftest.
$ac_ext <<_ACEOF
16280 cat confdefs.h
>>conftest.
$ac_ext
16281 cat >>conftest.
$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <unistd.h>
16292 rm -f conftest.
$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>conftest.er1
16296 grep -v '^ *+' conftest.er1
>conftest.err
16298 cat conftest.err
>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try
='test -z "$ac_c_werror_flag"
16302 || test ! -s conftest.err'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try
='test -s conftest.$ac_objext'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16315 cat >>confdefs.h
<<\_ACEOF
16316 #define SETPGRP_HAVE_ARG 1
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.
$ac_ext >&5
16325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16331 for ac_func
in gettimeofday
16333 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16334 echo "$as_me:$LINENO: checking for $ac_func" >&5
16335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16336 if eval "test \"\${$as_ac_var+set}\" = set"; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 cat >conftest.
$ac_ext <<_ACEOF
16342 cat confdefs.h
>>conftest.
$ac_ext
16343 cat >>conftest.
$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16347 #define $ac_func innocuous_$ac_func
16349 /* System header to define __stub macros and hopefully few prototypes,
16350 which can conflict with char $ac_func (); below.
16351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352 <limits.h> exists even on freestanding compilers. */
16355 # include <limits.h>
16357 # include <assert.h>
16362 /* Override any gcc2 internal prototype to avoid an error. */
16367 /* We use char because int might match the return type of a gcc2
16368 builtin and then its argument prototype would still apply. */
16370 /* The GNU C library defines this for functions which it implements
16371 to always fail with ENOSYS. Some functions are actually named
16372 something starting with __ and the normal name is an alias. */
16373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16376 char (*f) () = $ac_func;
16385 return f != $ac_func;
16390 rm -f conftest.
$ac_objext conftest
$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>conftest.er1
16394 grep -v '^ *+' conftest.er1
>conftest.err
16396 cat conftest.err
>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try
='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try
='test -s conftest$ac_exeext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 eval "$as_ac_var=yes"
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.
$ac_ext >&5
16417 eval "$as_ac_var=no"
16419 rm -f conftest.err conftest.
$ac_objext \
16420 conftest
$ac_exeext conftest.
$ac_ext
16422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16424 if test `eval echo '${'$as_ac_var'}'` = yes; then
16425 cat >>confdefs.h
<<_ACEOF
16426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16428 cat >conftest.
$ac_ext <<_ACEOF
16431 cat confdefs.h
>>conftest.
$ac_ext
16432 cat >>conftest.
$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 #include <sys/time.h>
16438 gettimeofday((struct timeval*)0,(struct timezone*)0);
16443 rm -f conftest.
$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 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_objext'
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
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.
$ac_ext >&5
16471 cat >>confdefs.h
<<\_ACEOF
16472 #define GETTIMEOFDAY_NO_TZ 1
16477 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16483 echo "$as_me:$LINENO: checking for major" >&5
16484 echo $ECHO_N "checking for major... $ECHO_C" >&6
16485 cat >conftest.
$ac_ext <<_ACEOF
16488 cat confdefs.h
>>conftest.
$ac_ext
16489 cat >>conftest.
$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16492 #if defined(MAJOR_IN_MKDEV)
16493 #include <sys/mkdev.h>
16494 #elif defined(MAJOR_IN_SYSMACROS)
16495 #include <sys/sysmacros.h>
16497 #include <sys/types.h>
16504 makedev(major(0),minor(0));
16510 rm -f conftest.
$ac_objext conftest
$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16514 grep -v '^ *+' conftest.er1
>conftest.err
16516 cat conftest.err
>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try
='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try
='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16534 cat >>confdefs.h
<<\_ACEOF
16535 #define HAVE_DEVICE_MACROS 1
16538 echo "$as_me:$LINENO: result: yes" >&5
16539 echo "${ECHO_T}yes" >&6
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.
$ac_ext >&5
16546 echo "$as_me:$LINENO: result: no" >&5
16547 echo "${ECHO_T}no" >&6
16550 rm -f conftest.err conftest.
$ac_objext \
16551 conftest
$ac_exeext conftest.
$ac_ext
16553 # On OSF/1 V5.1, getaddrinfo is available, but a define
16554 # for [no]getaddrinfo in netdb.h.
16555 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16556 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16557 cat >conftest.
$ac_ext <<_ACEOF
16560 cat confdefs.h
>>conftest.
$ac_ext
16561 cat >>conftest.
$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16564 #include <sys/types.h>
16565 #include <sys/socket.h>
16573 getaddrinfo(NULL, NULL, NULL, NULL);
16579 rm -f conftest.
$ac_objext conftest
$ac_exeext
16580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16581 (eval $ac_link) 2>conftest.er1
16583 grep -v '^ *+' conftest.er1
>conftest.err
16585 cat conftest.err
>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try
='test -z "$ac_c_werror_flag"
16589 || test ! -s conftest.err'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try
='test -s conftest$ac_exeext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16602 echo "$as_me:$LINENO: result: yes" >&5
16603 echo "${ECHO_T}yes" >&6
16604 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16605 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16606 if test "$cross_compiling" = yes; then
16607 echo "$as_me:$LINENO: result: buggy" >&5
16608 echo "${ECHO_T}buggy" >&6
16609 buggygetaddrinfo
=yes
16611 cat >conftest.
$ac_ext <<_ACEOF
16614 cat confdefs.h
>>conftest.
$ac_ext
16615 cat >>conftest.
$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16618 #include <sys/types.h>
16620 #include <string.h>
16621 #include <sys/socket.h>
16622 #include <netinet/in.h>
16626 int passive, gaierr, inet4 = 0, inet6 = 0;
16627 struct addrinfo hints, *ai, *aitop;
16628 char straddr[INET6_ADDRSTRLEN], strport[16];
16630 for (passive = 0; passive <= 1; passive++) {
16631 memset(&hints, 0, sizeof(hints));
16632 hints.ai_family = AF_UNSPEC;
16633 hints.ai_flags = passive ? AI_PASSIVE : 0;
16634 hints.ai_socktype = SOCK_STREAM;
16635 hints.ai_protocol = IPPROTO_TCP;
16636 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16637 (void)gai_strerror(gaierr);
16640 for (ai = aitop; ai; ai = ai->ai_next) {
16641 if (ai->ai_addr == NULL ||
16642 ai->ai_addrlen == 0 ||
16643 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16644 straddr, sizeof(straddr), strport, sizeof(strport),
16645 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16648 switch (ai->ai_family) {
16650 if (strcmp(strport, "54321") != 0) {
16654 if (strcmp(straddr, "0.0.0.0") != 0) {
16658 if (strcmp(straddr, "127.0.0.1") != 0) {
16665 if (strcmp(strport, "54321") != 0) {
16669 if (strcmp(straddr, "::") != 0) {
16673 if (strcmp(straddr, "::1") != 0) {
16683 /* another family support? */
16689 if (!(inet4 == 0 || inet4 == 2))
16691 if (!(inet6 == 0 || inet6 == 2))
16695 freeaddrinfo(aitop);
16700 freeaddrinfo(aitop);
16705 rm -f conftest
$ac_exeext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16707 (eval $ac_link) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 echo "$as_me:$LINENO: result: good" >&5
16717 echo "${ECHO_T}good" >&6
16718 buggygetaddrinfo
=no
16720 echo "$as_me: program exited with status $ac_status" >&5
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.
$ac_ext >&5
16724 ( exit $ac_status )
16725 echo "$as_me:$LINENO: result: buggy" >&5
16726 echo "${ECHO_T}buggy" >&6
16727 buggygetaddrinfo
=yes
16729 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.
$ac_ext >&5
16736 echo "$as_me:$LINENO: result: no" >&5
16737 echo "${ECHO_T}no" >&6
16738 buggygetaddrinfo
=yes
16741 rm -f conftest.err conftest.
$ac_objext \
16742 conftest
$ac_exeext conftest.
$ac_ext
16744 if test "$buggygetaddrinfo" = "yes"; then
16745 if test "$ipv6" = "yes"; then
16746 echo 'Fatal: You must get working getaddrinfo() function.'
16747 echo ' or you can specify "--disable-ipv6"'.
16752 cat >>confdefs.h
<<\_ACEOF
16753 #define HAVE_GETADDRINFO 1
16758 for ac_func
in getnameinfo
16760 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16761 echo "$as_me:$LINENO: checking for $ac_func" >&5
16762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16763 if eval "test \"\${$as_ac_var+set}\" = set"; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 cat >conftest.
$ac_ext <<_ACEOF
16769 cat confdefs.h
>>conftest.
$ac_ext
16770 cat >>conftest.
$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16774 #define $ac_func innocuous_$ac_func
16776 /* System header to define __stub macros and hopefully few prototypes,
16777 which can conflict with char $ac_func (); below.
16778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16779 <limits.h> exists even on freestanding compilers. */
16782 # include <limits.h>
16784 # include <assert.h>
16789 /* Override any gcc2 internal prototype to avoid an error. */
16794 /* We use char because int might match the return type of a gcc2
16795 builtin and then its argument prototype would still apply. */
16797 /* The GNU C library defines this for functions which it implements
16798 to always fail with ENOSYS. Some functions are actually named
16799 something starting with __ and the normal name is an alias. */
16800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16803 char (*f) () = $ac_func;
16812 return f != $ac_func;
16817 rm -f conftest.
$ac_objext conftest
$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819 (eval $ac_link) 2>conftest.er1
16821 grep -v '^ *+' conftest.er1
>conftest.err
16823 cat conftest.err
>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try
='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try
='test -s conftest$ac_exeext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 eval "$as_ac_var=yes"
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.
$ac_ext >&5
16844 eval "$as_ac_var=no"
16846 rm -f conftest.err conftest.
$ac_objext \
16847 conftest
$ac_exeext conftest.
$ac_ext
16849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16851 if test `eval echo '${'$as_ac_var'}'` = yes; then
16852 cat >>confdefs.h
<<_ACEOF
16853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16860 # checks for structures
16861 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16862 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16863 if test "${ac_cv_header_time+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 cat >conftest.
$ac_ext <<_ACEOF
16869 cat confdefs.h
>>conftest.
$ac_ext
16870 cat >>conftest.
$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 #include <sys/types.h>
16873 #include <sys/time.h>
16879 if ((struct tm *) 0)
16885 rm -f conftest.
$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>conftest.er1
16889 grep -v '^ *+' conftest.er1
>conftest.err
16891 cat conftest.err
>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try
='test -z "$ac_c_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try
='test -s conftest.$ac_objext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_header_time
=yes
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.
$ac_ext >&5
16912 ac_cv_header_time
=no
16914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16916 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16917 echo "${ECHO_T}$ac_cv_header_time" >&6
16918 if test $ac_cv_header_time = yes; then
16920 cat >>confdefs.h
<<\_ACEOF
16921 #define TIME_WITH_SYS_TIME 1
16926 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16927 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16928 if test "${ac_cv_struct_tm+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 cat >conftest.
$ac_ext <<_ACEOF
16934 cat confdefs.h
>>conftest.
$ac_ext
16935 cat >>conftest.
$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 #include <sys/types.h>
16943 struct tm *tp; tp->tm_sec;
16948 rm -f conftest.
$ac_objext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>conftest.er1
16952 grep -v '^ *+' conftest.er1
>conftest.err
16954 cat conftest.err
>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
16957 { ac_try
='test -z "$ac_c_werror_flag"
16958 || test ! -s conftest.err'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try
='test -s conftest.$ac_objext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_cv_struct_tm
=time.h
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.
$ac_ext >&5
16975 ac_cv_struct_tm
=sys
/time.h
16977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16979 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16980 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16981 if test $ac_cv_struct_tm = sys
/time.h
; then
16983 cat >>confdefs.h
<<\_ACEOF
16984 #define TM_IN_SYS_TIME 1
16989 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16990 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16991 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 cat >conftest.
$ac_ext <<_ACEOF
16997 cat confdefs.h
>>conftest.
$ac_ext
16998 cat >>conftest.
$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 #include <sys/types.h>
17001 #include <$ac_cv_struct_tm>
17007 static struct tm ac_aggr;
17008 if (ac_aggr.tm_zone)
17014 rm -f conftest.
$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>conftest.er1
17018 grep -v '^ *+' conftest.er1
>conftest.err
17020 cat conftest.err
>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try
='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try
='test -s conftest.$ac_objext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_member_struct_tm_tm_zone
=yes
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.
$ac_ext >&5
17041 cat >conftest.
$ac_ext <<_ACEOF
17044 cat confdefs.h
>>conftest.
$ac_ext
17045 cat >>conftest.
$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <sys/types.h>
17048 #include <$ac_cv_struct_tm>
17054 static struct tm ac_aggr;
17055 if (sizeof ac_aggr.tm_zone)
17061 rm -f conftest.
$ac_objext
17062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17063 (eval $ac_compile) 2>conftest.er1
17065 grep -v '^ *+' conftest.er1
>conftest.err
17067 cat conftest.err
>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try
='test -z "$ac_c_werror_flag"
17071 || test ! -s conftest.err'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; } &&
17077 { ac_try
='test -s conftest.$ac_objext'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_member_struct_tm_tm_zone
=yes
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.
$ac_ext >&5
17088 ac_cv_member_struct_tm_tm_zone
=no
17090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17094 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17095 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17096 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17098 cat >>confdefs.h
<<_ACEOF
17099 #define HAVE_STRUCT_TM_TM_ZONE 1
17105 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17107 cat >>confdefs.h
<<\_ACEOF
17108 #define HAVE_TM_ZONE 1
17112 echo "$as_me:$LINENO: checking for tzname" >&5
17113 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17114 if test "${ac_cv_var_tzname+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 cat >conftest.
$ac_ext <<_ACEOF
17120 cat confdefs.h
>>conftest.
$ac_ext
17121 cat >>conftest.
$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17124 #ifndef tzname /* For SGI. */
17125 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17136 rm -f conftest.
$ac_objext conftest
$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>conftest.er1
17140 grep -v '^ *+' conftest.er1
>conftest.err
17142 cat conftest.err
>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try
='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try
='test -s conftest$ac_exeext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_cv_var_tzname
=yes
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.
$ac_ext >&5
17163 ac_cv_var_tzname
=no
17165 rm -f conftest.err conftest.
$ac_objext \
17166 conftest
$ac_exeext conftest.
$ac_ext
17168 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17169 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17170 if test $ac_cv_var_tzname = yes; then
17172 cat >>confdefs.h
<<\_ACEOF
17173 #define HAVE_TZNAME 1
17179 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17180 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17181 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 cat >conftest.
$ac_ext <<_ACEOF
17187 cat confdefs.h
>>conftest.
$ac_ext
17188 cat >>conftest.
$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17194 static struct stat ac_aggr;
17195 if (ac_aggr.st_rdev)
17201 rm -f conftest.
$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17205 grep -v '^ *+' conftest.er1
>conftest.err
17207 cat conftest.err
>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try
='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try
='test -s conftest.$ac_objext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_member_struct_stat_st_rdev
=yes
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.
$ac_ext >&5
17228 cat >conftest.
$ac_ext <<_ACEOF
17231 cat confdefs.h
>>conftest.
$ac_ext
17232 cat >>conftest.
$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 $ac_includes_default
17238 static struct stat ac_aggr;
17239 if (sizeof ac_aggr.st_rdev)
17245 rm -f conftest.
$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>conftest.er1
17249 grep -v '^ *+' conftest.er1
>conftest.err
17251 cat conftest.err
>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try
='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try
='test -s conftest.$ac_objext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_cv_member_struct_stat_st_rdev
=yes
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.
$ac_ext >&5
17272 ac_cv_member_struct_stat_st_rdev
=no
17274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17278 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17279 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17280 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17282 cat >>confdefs.h
<<_ACEOF
17283 #define HAVE_STRUCT_STAT_ST_RDEV 1
17289 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17290 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17291 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 cat >conftest.
$ac_ext <<_ACEOF
17297 cat confdefs.h
>>conftest.
$ac_ext
17298 cat >>conftest.
$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 $ac_includes_default
17304 static struct stat ac_aggr;
17305 if (ac_aggr.st_blksize)
17311 rm -f conftest.
$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>conftest.er1
17315 grep -v '^ *+' conftest.er1
>conftest.err
17317 cat conftest.err
>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try
='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try
='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_member_struct_stat_st_blksize
=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.
$ac_ext >&5
17338 cat >conftest.
$ac_ext <<_ACEOF
17341 cat confdefs.h
>>conftest.
$ac_ext
17342 cat >>conftest.
$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 $ac_includes_default
17348 static struct stat ac_aggr;
17349 if (sizeof ac_aggr.st_blksize)
17355 rm -f conftest.
$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357 (eval $ac_compile) 2>conftest.er1
17359 grep -v '^ *+' conftest.er1
>conftest.err
17361 cat conftest.err
>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try
='test -z "$ac_c_werror_flag"
17365 || test ! -s conftest.err'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try
='test -s conftest.$ac_objext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_member_struct_stat_st_blksize
=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.
$ac_ext >&5
17382 ac_cv_member_struct_stat_st_blksize
=no
17384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17388 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17389 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17390 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17392 cat >>confdefs.h
<<_ACEOF
17393 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17399 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17400 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17401 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 cat >conftest.
$ac_ext <<_ACEOF
17407 cat confdefs.h
>>conftest.
$ac_ext
17408 cat >>conftest.
$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 $ac_includes_default
17414 static struct stat ac_aggr;
17415 if (ac_aggr.st_flags)
17421 rm -f conftest.
$ac_objext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423 (eval $ac_compile) 2>conftest.er1
17425 grep -v '^ *+' conftest.er1
>conftest.err
17427 cat conftest.err
>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try
='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try
='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_member_struct_stat_st_flags
=yes
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.
$ac_ext >&5
17448 cat >conftest.
$ac_ext <<_ACEOF
17451 cat confdefs.h
>>conftest.
$ac_ext
17452 cat >>conftest.
$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 $ac_includes_default
17458 static struct stat ac_aggr;
17459 if (sizeof ac_aggr.st_flags)
17465 rm -f conftest.
$ac_objext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17467 (eval $ac_compile) 2>conftest.er1
17469 grep -v '^ *+' conftest.er1
>conftest.err
17471 cat conftest.err
>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try
='test -z "$ac_c_werror_flag"
17475 || test ! -s conftest.err'
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); }; } &&
17481 { ac_try
='test -s conftest.$ac_objext'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_member_struct_stat_st_flags
=yes
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.
$ac_ext >&5
17492 ac_cv_member_struct_stat_st_flags
=no
17494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17496 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17498 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17499 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17500 if test $ac_cv_member_struct_stat_st_flags = yes; then
17502 cat >>confdefs.h
<<_ACEOF
17503 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17509 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17510 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17511 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 cat >conftest.
$ac_ext <<_ACEOF
17517 cat confdefs.h
>>conftest.
$ac_ext
17518 cat >>conftest.
$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 $ac_includes_default
17524 static struct stat ac_aggr;
17525 if (ac_aggr.st_gen)
17531 rm -f conftest.
$ac_objext
17532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17533 (eval $ac_compile) 2>conftest.er1
17535 grep -v '^ *+' conftest.er1
>conftest.err
17537 cat conftest.err
>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } &&
17540 { ac_try
='test -z "$ac_c_werror_flag"
17541 || test ! -s conftest.err'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; } &&
17547 { ac_try
='test -s conftest.$ac_objext'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 ac_cv_member_struct_stat_st_gen
=yes
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.
$ac_ext >&5
17558 cat >conftest.
$ac_ext <<_ACEOF
17561 cat confdefs.h
>>conftest.
$ac_ext
17562 cat >>conftest.
$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 $ac_includes_default
17568 static struct stat ac_aggr;
17569 if (sizeof ac_aggr.st_gen)
17575 rm -f conftest.
$ac_objext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17577 (eval $ac_compile) 2>conftest.er1
17579 grep -v '^ *+' conftest.er1
>conftest.err
17581 cat conftest.err
>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try
='test -z "$ac_c_werror_flag"
17585 || test ! -s conftest.err'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try
='test -s conftest.$ac_objext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_member_struct_stat_st_gen
=yes
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.
$ac_ext >&5
17602 ac_cv_member_struct_stat_st_gen
=no
17604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17609 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17610 if test $ac_cv_member_struct_stat_st_gen = yes; then
17612 cat >>confdefs.h
<<_ACEOF
17613 #define HAVE_STRUCT_STAT_ST_GEN 1
17619 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17620 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17621 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.
$ac_ext <<_ACEOF
17627 cat confdefs.h
>>conftest.
$ac_ext
17628 cat >>conftest.
$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17634 static struct stat ac_aggr;
17635 if (ac_aggr.st_birthtime)
17641 rm -f conftest.
$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>conftest.er1
17645 grep -v '^ *+' conftest.er1
>conftest.err
17647 cat conftest.err
>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try
='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
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); }; } &&
17657 { ac_try
='test -s conftest.$ac_objext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_member_struct_stat_st_birthtime
=yes
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.
$ac_ext >&5
17668 cat >conftest.
$ac_ext <<_ACEOF
17671 cat confdefs.h
>>conftest.
$ac_ext
17672 cat >>conftest.
$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 $ac_includes_default
17678 static struct stat ac_aggr;
17679 if (sizeof ac_aggr.st_birthtime)
17685 rm -f conftest.
$ac_objext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687 (eval $ac_compile) 2>conftest.er1
17689 grep -v '^ *+' conftest.er1
>conftest.err
17691 cat conftest.err
>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try
='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try
='test -s conftest.$ac_objext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_member_struct_stat_st_birthtime
=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.
$ac_ext >&5
17712 ac_cv_member_struct_stat_st_birthtime
=no
17714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17718 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17719 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17720 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17722 cat >>confdefs.h
<<_ACEOF
17723 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17729 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17730 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17731 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 cat >conftest.
$ac_ext <<_ACEOF
17737 cat confdefs.h
>>conftest.
$ac_ext
17738 cat >>conftest.
$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 $ac_includes_default
17744 static struct stat ac_aggr;
17745 if (ac_aggr.st_blocks)
17751 rm -f conftest.
$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753 (eval $ac_compile) 2>conftest.er1
17755 grep -v '^ *+' conftest.er1
>conftest.err
17757 cat conftest.err
>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try
='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try
='test -s conftest.$ac_objext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_member_struct_stat_st_blocks
=yes
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.
$ac_ext >&5
17778 cat >conftest.
$ac_ext <<_ACEOF
17781 cat confdefs.h
>>conftest.
$ac_ext
17782 cat >>conftest.
$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 $ac_includes_default
17788 static struct stat ac_aggr;
17789 if (sizeof ac_aggr.st_blocks)
17795 rm -f conftest.
$ac_objext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>conftest.er1
17799 grep -v '^ *+' conftest.er1
>conftest.err
17801 cat conftest.err
>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try
='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try
='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817 ac_cv_member_struct_stat_st_blocks
=yes
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.
$ac_ext >&5
17822 ac_cv_member_struct_stat_st_blocks
=no
17824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17826 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17828 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17829 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17830 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17832 cat >>confdefs.h
<<_ACEOF
17833 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17837 cat >>confdefs.h
<<\_ACEOF
17838 #define HAVE_ST_BLOCKS 1
17843 "fileblocks.$ac_objext" | \
17844 *" fileblocks.$ac_objext" | \
17845 "fileblocks.$ac_objext "* | \
17846 *" fileblocks.$ac_objext "* ) ;;
17847 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17854 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17855 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17856 if test "${ac_cv_header_time_altzone+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 cat >conftest.
$ac_ext <<_ACEOF
17862 cat confdefs.h
>>conftest.
$ac_ext
17863 cat >>conftest.
$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17874 rm -f conftest.
$ac_objext
17875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17876 (eval $ac_compile) 2>conftest.er1
17878 grep -v '^ *+' conftest.er1
>conftest.err
17880 cat conftest.err
>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try
='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try
='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_header_time_altzone
=yes
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.
$ac_ext >&5
17901 ac_cv_header_time_altzone
=no
17903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17906 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17907 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17908 if test $ac_cv_header_time_altzone = yes; then
17910 cat >>confdefs.h
<<\_ACEOF
17911 #define HAVE_ALTZONE 1
17917 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17918 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17919 cat >conftest.
$ac_ext <<_ACEOF
17922 cat confdefs.h
>>conftest.
$ac_ext
17923 cat >>conftest.
$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17926 #include <sys/types.h>
17927 #include <sys/select.h>
17928 #include <sys/time.h>
17938 rm -f conftest.
$ac_objext
17939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17940 (eval $ac_compile) 2>conftest.er1
17942 grep -v '^ *+' conftest.er1
>conftest.err
17944 cat conftest.err
>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try
='test -z "$ac_c_werror_flag"
17948 || test ! -s conftest.err'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try
='test -s conftest.$ac_objext'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17962 cat >>confdefs.h
<<\_ACEOF
17963 #define SYS_SELECT_WITH_SYS_TIME 1
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.
$ac_ext >&5
17973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17974 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17975 echo "${ECHO_T}$was_it_defined" >&6
17977 echo "$as_me:$LINENO: checking for addrinfo" >&5
17978 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17979 if test "${ac_cv_struct_addrinfo+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 cat >conftest.
$ac_ext <<_ACEOF
17985 cat confdefs.h
>>conftest.
$ac_ext
17986 cat >>conftest.
$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17989 # include <netdb.h>
17998 rm -f conftest.
$ac_objext
17999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18000 (eval $ac_compile) 2>conftest.er1
18002 grep -v '^ *+' conftest.er1
>conftest.err
18004 cat conftest.err
>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try
='test -z "$ac_c_werror_flag"
18008 || test ! -s conftest.err'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; } &&
18014 { ac_try
='test -s conftest.$ac_objext'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 ac_cv_struct_addrinfo
=yes
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.
$ac_ext >&5
18025 ac_cv_struct_addrinfo
=no
18027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18030 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18031 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18032 if test $ac_cv_struct_addrinfo = yes; then
18034 cat >>confdefs.h
<<\_ACEOF
18035 #define HAVE_ADDRINFO 1
18040 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18041 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18042 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 cat >conftest.
$ac_ext <<_ACEOF
18048 cat confdefs.h
>>conftest.
$ac_ext
18049 cat >>conftest.
$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18052 # include <sys/types.h>
18053 # include <sys/socket.h>
18057 struct sockaddr_storage s
18062 rm -f conftest.
$ac_objext
18063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064 (eval $ac_compile) 2>conftest.er1
18066 grep -v '^ *+' conftest.er1
>conftest.err
18068 cat conftest.err
>&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try
='test -z "$ac_c_werror_flag"
18072 || test ! -s conftest.err'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try
='test -s conftest.$ac_objext'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 ac_cv_struct_sockaddr_storage
=yes
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.
$ac_ext >&5
18089 ac_cv_struct_sockaddr_storage
=no
18091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18094 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18095 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18096 if test $ac_cv_struct_sockaddr_storage = yes; then
18098 cat >>confdefs.h
<<\_ACEOF
18099 #define HAVE_SOCKADDR_STORAGE 1
18104 # checks for compiler characteristics
18107 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18108 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18109 if test "${ac_cv_c_char_unsigned+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 cat >conftest.
$ac_ext <<_ACEOF
18115 cat confdefs.h
>>conftest.
$ac_ext
18116 cat >>conftest.
$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 $ac_includes_default
18122 static int test_array [1 - 2 * !(((char) -1) < 0)];
18129 rm -f conftest.
$ac_objext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18133 grep -v '^ *+' conftest.er1
>conftest.err
18135 cat conftest.err
>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try
='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try
='test -s conftest.$ac_objext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_c_char_unsigned
=no
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.
$ac_ext >&5
18156 ac_cv_c_char_unsigned
=yes
18158 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18160 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18161 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18162 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18163 cat >>confdefs.h
<<\_ACEOF
18164 #define __CHAR_UNSIGNED__ 1
18169 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18170 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18171 if test "${ac_cv_c_const+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 cat >conftest.
$ac_ext <<_ACEOF
18177 cat confdefs.h
>>conftest.
$ac_ext
18178 cat >>conftest.
$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18184 /* FIXME: Include the comments suggested by Paul. */
18185 #ifndef __cplusplus
18186 /* Ultrix mips cc rejects this. */
18187 typedef int charset[2];
18189 /* SunOS 4.1.1 cc rejects this. */
18190 char const *const *ccp;
18192 /* NEC SVR4.0.2 mips cc rejects this. */
18193 struct point {int x, y;};
18194 static struct point const zero = {0,0};
18195 /* AIX XL C 1.02.0.0 rejects this.
18196 It does not let you subtract one const X* pointer from another in
18197 an arm of an if-expression whose if-part is not a constant
18199 const char *g = "string";
18200 ccp = &g + (g ? g-g : 0);
18201 /* HPUX 7.0 cc rejects these. */
18204 ccp = (char const *const *) p;
18205 { /* SCO 3.2v4 cc rejects this. */
18207 char const *s = 0 ? (char *) 0 : (char const *) 0;
18211 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18212 int x[] = {25, 17};
18213 const int *foo = &x[0];
18216 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18217 typedef const int *iptr;
18221 { /* AIX XL C 1.02.0.0 rejects this saying
18222 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18223 struct s { int j; const int *ap[3]; };
18224 struct s *b; b->j = 5;
18226 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18227 const int foo = 10;
18235 rm -f conftest.
$ac_objext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18237 (eval $ac_compile) 2>conftest.er1
18239 grep -v '^ *+' conftest.er1
>conftest.err
18241 cat conftest.err
>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } &&
18244 { ac_try
='test -z "$ac_c_werror_flag"
18245 || test ! -s conftest.err'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try
='test -s conftest.$ac_objext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.
$ac_ext >&5
18264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18266 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18267 echo "${ECHO_T}$ac_cv_c_const" >&6
18268 if test $ac_cv_c_const = no
; then
18270 cat >>confdefs.h
<<\_ACEOF
18278 echo "$as_me:$LINENO: checking for working volatile" >&5
18279 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18280 cat >conftest.
$ac_ext <<_ACEOF
18283 cat confdefs.h
>>conftest.
$ac_ext
18284 cat >>conftest.
$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18290 volatile int x; x = 0;
18295 rm -f conftest.
$ac_objext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18297 (eval $ac_compile) 2>conftest.er1
18299 grep -v '^ *+' conftest.er1
>conftest.err
18301 cat conftest.err
>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 { ac_try
='test -z "$ac_c_werror_flag"
18305 || test ! -s conftest.err'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try
='test -s conftest.$ac_objext'
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.
$ac_ext >&5
18323 cat >>confdefs.h
<<\_ACEOF
18329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18330 echo "$as_me:$LINENO: result: $works" >&5
18331 echo "${ECHO_T}$works" >&6
18334 echo "$as_me:$LINENO: checking for working signed char" >&5
18335 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18336 cat >conftest.
$ac_ext <<_ACEOF
18339 cat confdefs.h
>>conftest.
$ac_ext
18340 cat >>conftest.
$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18351 rm -f conftest.
$ac_objext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 (eval $ac_compile) 2>conftest.er1
18355 grep -v '^ *+' conftest.er1
>conftest.err
18357 cat conftest.err
>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try
='test -z "$ac_c_werror_flag"
18361 || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try
='test -s conftest.$ac_objext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.
$ac_ext >&5
18379 cat >>confdefs.h
<<\_ACEOF
18385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18386 echo "$as_me:$LINENO: result: $works" >&5
18387 echo "${ECHO_T}$works" >&6
18390 echo "$as_me:$LINENO: checking for prototypes" >&5
18391 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18392 cat >conftest.
$ac_ext <<_ACEOF
18395 cat confdefs.h
>>conftest.
$ac_ext
18396 cat >>conftest.
$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 int foo(int x) { return 0; }
18407 rm -f conftest.
$ac_objext
18408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18409 (eval $ac_compile) 2>conftest.er1
18411 grep -v '^ *+' conftest.er1
>conftest.err
18413 cat conftest.err
>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try
='test -z "$ac_c_werror_flag"
18417 || test ! -s conftest.err'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } &&
18423 { ac_try
='test -s conftest.$ac_objext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18431 cat >>confdefs.h
<<\_ACEOF
18432 #define HAVE_PROTOTYPES 1
18435 have_prototypes
=yes
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.
$ac_ext >&5
18442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18443 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18444 echo "${ECHO_T}$have_prototypes" >&6
18447 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18448 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18449 cat >conftest.
$ac_ext <<_ACEOF
18452 cat confdefs.h
>>conftest.
$ac_ext
18453 cat >>conftest.
$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18456 #include <stdarg.h>
18457 int foo(int x, ...) {
18461 va_arg(va, char *);
18462 va_arg(va, double);
18469 return foo(10, "", 3.14);
18474 rm -f conftest.
$ac_objext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18476 (eval $ac_compile) 2>conftest.er1
18478 grep -v '^ *+' conftest.er1
>conftest.err
18480 cat conftest.err
>&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
18483 { ac_try
='test -z "$ac_c_werror_flag"
18484 || test ! -s conftest.err'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; } &&
18490 { ac_try
='test -s conftest.$ac_objext'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18498 cat >>confdefs.h
<<\_ACEOF
18499 #define HAVE_STDARG_PROTOTYPES 1
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.
$ac_ext >&5
18509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18510 echo "$as_me:$LINENO: result: $works" >&5
18511 echo "${ECHO_T}$works" >&6
18513 # check for socketpair
18514 echo "$as_me:$LINENO: checking for socketpair" >&5
18515 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18516 cat >conftest.
$ac_ext <<_ACEOF
18519 cat confdefs.h
>>conftest.
$ac_ext
18520 cat >>conftest.
$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18523 #include <sys/types.h>
18524 #include <sys/socket.h>
18534 rm -f conftest.
$ac_objext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18538 grep -v '^ *+' conftest.er1
>conftest.err
18540 cat conftest.err
>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try
='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try
='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18557 cat >>confdefs.h
<<\_ACEOF
18558 #define HAVE_SOCKETPAIR 1
18561 echo "$as_me:$LINENO: result: yes" >&5
18562 echo "${ECHO_T}yes" >&6
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.
$ac_ext >&5
18567 echo "$as_me:$LINENO: result: no" >&5
18568 echo "${ECHO_T}no" >&6
18571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18573 # check if sockaddr has sa_len member
18574 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18575 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18576 cat >conftest.
$ac_ext <<_ACEOF
18579 cat confdefs.h
>>conftest.
$ac_ext
18580 cat >>conftest.
$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 #include <sys/types.h>
18583 #include <sys/socket.h>
18593 rm -f conftest.
$ac_objext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595 (eval $ac_compile) 2>conftest.er1
18597 grep -v '^ *+' conftest.er1
>conftest.err
18599 cat conftest.err
>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try
='test -z "$ac_c_werror_flag"
18603 || test ! -s conftest.err'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try
='test -s conftest.$ac_objext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 echo "$as_me:$LINENO: result: yes" >&5
18616 echo "${ECHO_T}yes" >&6
18618 cat >>confdefs.h
<<\_ACEOF
18619 #define HAVE_SOCKADDR_SA_LEN 1
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.
$ac_ext >&5
18626 echo "$as_me:$LINENO: result: no" >&5
18627 echo "${ECHO_T}no" >&6
18629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18631 va_list_is_array
=no
18632 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18633 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18634 cat >conftest.
$ac_ext <<_ACEOF
18637 cat confdefs.h
>>conftest.
$ac_ext
18638 cat >>conftest.
$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18641 #ifdef HAVE_STDARG_PROTOTYPES
18642 #include <stdarg.h>
18644 #include <varargs.h>
18650 va_list list1, list2; list1 = list2;
18655 rm -f conftest.
$ac_objext
18656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18657 (eval $ac_compile) 2>conftest.er1
18659 grep -v '^ *+' conftest.er1
>conftest.err
18661 cat conftest.err
>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try
='test -z "$ac_c_werror_flag"
18665 || test ! -s conftest.err'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try
='test -s conftest.$ac_objext'
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.
$ac_ext >&5
18684 cat >>confdefs.h
<<\_ACEOF
18685 #define VA_LIST_IS_ARRAY 1
18688 va_list_is_array
=yes
18691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18692 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18693 echo "${ECHO_T}$va_list_is_array" >&6
18695 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18699 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18700 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18701 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18704 cat >conftest.
$ac_ext <<_ACEOF
18707 cat confdefs.h
>>conftest.
$ac_ext
18708 cat >>conftest.
$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18710 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18712 #define gethostbyname_r innocuous_gethostbyname_r
18714 /* System header to define __stub macros and hopefully few prototypes,
18715 which can conflict with char gethostbyname_r (); below.
18716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18717 <limits.h> exists even on freestanding compilers. */
18720 # include <limits.h>
18722 # include <assert.h>
18725 #undef gethostbyname_r
18727 /* Override any gcc2 internal prototype to avoid an error. */
18732 /* We use char because int might match the return type of a gcc2
18733 builtin and then its argument prototype would still apply. */
18734 char gethostbyname_r ();
18735 /* The GNU C library defines this for functions which it implements
18736 to always fail with ENOSYS. Some functions are actually named
18737 something starting with __ and the normal name is an alias. */
18738 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18741 char (*f) () = gethostbyname_r;
18750 return f != gethostbyname_r;
18755 rm -f conftest.
$ac_objext conftest
$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>conftest.er1
18759 grep -v '^ *+' conftest.er1
>conftest.err
18761 cat conftest.err
>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
18764 { ac_try
='test -z "$ac_c_werror_flag"
18765 || test ! -s conftest.err'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try
='test -s conftest$ac_exeext'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_cv_func_gethostbyname_r
=yes
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.
$ac_ext >&5
18782 ac_cv_func_gethostbyname_r
=no
18784 rm -f conftest.err conftest.
$ac_objext \
18785 conftest
$ac_exeext conftest.
$ac_ext
18787 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18788 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18789 if test $ac_cv_func_gethostbyname_r = yes; then
18791 cat >>confdefs.h
<<\_ACEOF
18792 #define HAVE_GETHOSTBYNAME_R 1
18795 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18796 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18798 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18799 cat >conftest.
$ac_ext <<_ACEOF
18802 cat confdefs.h
>>conftest.
$ac_ext
18803 cat >>conftest.
$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18806 # include <netdb.h>
18813 struct hostent *he, *res;
18818 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18824 rm -f conftest.
$ac_objext
18825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18826 (eval $ac_compile) 2>conftest.er1
18828 grep -v '^ *+' conftest.er1
>conftest.err
18830 cat conftest.err
>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } &&
18833 { ac_try
='test -z "$ac_c_werror_flag"
18834 || test ! -s conftest.err'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; } &&
18840 { ac_try
='test -s conftest.$ac_objext'
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; }; then
18847 cat >>confdefs.h
<<\_ACEOF
18848 #define HAVE_GETHOSTBYNAME_R 1
18852 cat >>confdefs.h
<<\_ACEOF
18853 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18856 echo "$as_me:$LINENO: result: yes" >&5
18857 echo "${ECHO_T}yes" >&6
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.
$ac_ext >&5
18864 echo "$as_me:$LINENO: result: no" >&5
18865 echo "${ECHO_T}no" >&6
18866 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18867 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18868 cat >conftest.
$ac_ext <<_ACEOF
18871 cat confdefs.h
>>conftest.
$ac_ext
18872 cat >>conftest.
$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18875 # include <netdb.h>
18882 struct hostent *he;
18887 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18893 rm -f conftest.
$ac_objext
18894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18895 (eval $ac_compile) 2>conftest.er1
18897 grep -v '^ *+' conftest.er1
>conftest.err
18899 cat conftest.err
>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
18902 { ac_try
='test -z "$ac_c_werror_flag"
18903 || test ! -s conftest.err'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try
='test -s conftest.$ac_objext'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18916 cat >>confdefs.h
<<\_ACEOF
18917 #define HAVE_GETHOSTBYNAME_R 1
18921 cat >>confdefs.h
<<\_ACEOF
18922 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18925 echo "$as_me:$LINENO: result: yes" >&5
18926 echo "${ECHO_T}yes" >&6
18929 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.
$ac_ext >&5
18933 echo "$as_me:$LINENO: result: no" >&5
18934 echo "${ECHO_T}no" >&6
18935 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18936 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18937 cat >conftest.
$ac_ext <<_ACEOF
18940 cat confdefs.h
>>conftest.
$ac_ext
18941 cat >>conftest.
$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18944 # include <netdb.h>
18951 struct hostent *he;
18952 struct hostent_data data;
18954 (void) gethostbyname_r(name, he, &data);
18960 rm -f conftest.
$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>conftest.er1
18964 grep -v '^ *+' conftest.er1
>conftest.err
18966 cat conftest.err
>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try
='test -z "$ac_c_werror_flag"
18970 || test ! -s conftest.err'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; } &&
18976 { ac_try
='test -s conftest.$ac_objext'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18983 cat >>confdefs.h
<<\_ACEOF
18984 #define HAVE_GETHOSTBYNAME_R 1
18988 cat >>confdefs.h
<<\_ACEOF
18989 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18992 echo "$as_me:$LINENO: result: yes" >&5
18993 echo "${ECHO_T}yes" >&6
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.
$ac_ext >&5
19000 echo "$as_me:$LINENO: result: no" >&5
19001 echo "${ECHO_T}no" >&6
19004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19016 for ac_func
in gethostbyname
19018 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19019 echo "$as_me:$LINENO: checking for $ac_func" >&5
19020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19021 if eval "test \"\${$as_ac_var+set}\" = set"; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 cat >conftest.
$ac_ext <<_ACEOF
19027 cat confdefs.h
>>conftest.
$ac_ext
19028 cat >>conftest.
$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19032 #define $ac_func innocuous_$ac_func
19034 /* System header to define __stub macros and hopefully few prototypes,
19035 which can conflict with char $ac_func (); below.
19036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19037 <limits.h> exists even on freestanding compilers. */
19040 # include <limits.h>
19042 # include <assert.h>
19047 /* Override any gcc2 internal prototype to avoid an error. */
19052 /* We use char because int might match the return type of a gcc2
19053 builtin and then its argument prototype would still apply. */
19055 /* The GNU C library defines this for functions which it implements
19056 to always fail with ENOSYS. Some functions are actually named
19057 something starting with __ and the normal name is an alias. */
19058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19061 char (*f) () = $ac_func;
19070 return f != $ac_func;
19075 rm -f conftest.
$ac_objext conftest
$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 (eval $ac_link) 2>conftest.er1
19079 grep -v '^ *+' conftest.er1
>conftest.err
19081 cat conftest.err
>&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try
='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try
='test -s conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 eval "$as_ac_var=yes"
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.
$ac_ext >&5
19102 eval "$as_ac_var=no"
19104 rm -f conftest.err conftest.
$ac_objext \
19105 conftest
$ac_exeext conftest.
$ac_ext
19107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19109 if test `eval echo '${'$as_ac_var'}'` = yes; then
19110 cat >>confdefs.h
<<_ACEOF
19111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19126 # checks for system services
19129 # Linux requires this for correct f.p. operations
19130 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19131 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19132 if test "${ac_cv_func___fpu_control+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 cat >conftest.
$ac_ext <<_ACEOF
19138 cat confdefs.h
>>conftest.
$ac_ext
19139 cat >>conftest.
$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19143 #define __fpu_control innocuous___fpu_control
19145 /* System header to define __stub macros and hopefully few prototypes,
19146 which can conflict with char __fpu_control (); below.
19147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19148 <limits.h> exists even on freestanding compilers. */
19151 # include <limits.h>
19153 # include <assert.h>
19156 #undef __fpu_control
19158 /* Override any gcc2 internal prototype to avoid an error. */
19163 /* We use char because int might match the return type of a gcc2
19164 builtin and then its argument prototype would still apply. */
19165 char __fpu_control ();
19166 /* The GNU C library defines this for functions which it implements
19167 to always fail with ENOSYS. Some functions are actually named
19168 something starting with __ and the normal name is an alias. */
19169 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19172 char (*f) () = __fpu_control;
19181 return f != __fpu_control;
19186 rm -f conftest.
$ac_objext conftest
$ac_exeext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188 (eval $ac_link) 2>conftest.er1
19190 grep -v '^ *+' conftest.er1
>conftest.err
19192 cat conftest.err
>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } &&
19195 { ac_try
='test -z "$ac_c_werror_flag"
19196 || test ! -s conftest.err'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try
='test -s conftest$ac_exeext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_func___fpu_control
=yes
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.
$ac_ext >&5
19213 ac_cv_func___fpu_control
=no
19215 rm -f conftest.err conftest.
$ac_objext \
19216 conftest
$ac_exeext conftest.
$ac_ext
19218 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19219 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19220 if test $ac_cv_func___fpu_control = yes; then
19224 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19225 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19226 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 ac_check_lib_save_LIBS
=$LIBS
19230 LIBS
="-lieee $LIBS"
19231 cat >conftest.
$ac_ext <<_ACEOF
19234 cat confdefs.h
>>conftest.
$ac_ext
19235 cat >>conftest.
$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19238 /* Override any gcc2 internal prototype to avoid an error. */
19242 /* We use char because int might match the return type of a gcc2
19243 builtin and then its argument prototype would still apply. */
19244 char __fpu_control ();
19253 rm -f conftest.
$ac_objext conftest
$ac_exeext
19254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19255 (eval $ac_link) 2>conftest.er1
19257 grep -v '^ *+' conftest.er1
>conftest.err
19259 cat conftest.err
>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } &&
19262 { ac_try
='test -z "$ac_c_werror_flag"
19263 || test ! -s conftest.err'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; } &&
19269 { ac_try
='test -s conftest$ac_exeext'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275 ac_cv_lib_ieee___fpu_control
=yes
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.
$ac_ext >&5
19280 ac_cv_lib_ieee___fpu_control
=no
19282 rm -f conftest.err conftest.
$ac_objext \
19283 conftest
$ac_exeext conftest.
$ac_ext
19284 LIBS
=$ac_check_lib_save_LIBS
19286 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19287 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19288 if test $ac_cv_lib_ieee___fpu_control = yes; then
19289 cat >>confdefs.h
<<_ACEOF
19290 #define HAVE_LIBIEEE 1
19293 LIBS
="-lieee $LIBS"
19301 # Check for --with-fpectl
19302 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19303 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19305 # Check whether --with-fpectl or --without-fpectl was given.
19306 if test "${with_fpectl+set}" = set; then
19307 withval
="$with_fpectl"
19309 if test "$withval" != no
19312 cat >>confdefs.h
<<\_ACEOF
19313 #define WANT_SIGFPE_HANDLER 1
19316 echo "$as_me:$LINENO: result: yes" >&5
19317 echo "${ECHO_T}yes" >&6
19318 else echo "$as_me:$LINENO: result: no" >&5
19319 echo "${ECHO_T}no" >&6
19322 echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6
19326 # check for --with-libm=...
19328 case $ac_sys_system in
19333 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19334 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19336 # Check whether --with-libm or --without-libm was given.
19337 if test "${with_libm+set}" = set; then
19338 withval
="$with_libm"
19340 if test "$withval" = no
19342 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19343 echo "${ECHO_T}force LIBM empty" >&6
19344 elif test "$withval" != yes
19346 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19347 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19348 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19349 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19350 { (exit 1); exit 1; }; }
19353 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19354 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19357 # check for --with-libc=...
19359 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19360 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19362 # Check whether --with-libc or --without-libc was given.
19363 if test "${with_libc+set}" = set; then
19364 withval
="$with_libc"
19366 if test "$withval" = no
19368 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19369 echo "${ECHO_T}force LIBC empty" >&6
19370 elif test "$withval" != yes
19372 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19373 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19374 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19375 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19376 { (exit 1); exit 1; }; }
19379 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19380 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19383 # check for hypot() in math library
19387 for ac_func
in hypot
19389 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19390 echo "$as_me:$LINENO: checking for $ac_func" >&5
19391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19392 if eval "test \"\${$as_ac_var+set}\" = set"; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 cat >conftest.
$ac_ext <<_ACEOF
19398 cat confdefs.h
>>conftest.
$ac_ext
19399 cat >>conftest.
$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19403 #define $ac_func innocuous_$ac_func
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char $ac_func (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19411 # include <limits.h>
19413 # include <assert.h>
19418 /* Override any gcc2 internal prototype to avoid an error. */
19423 /* We use char because int might match the return type of a gcc2
19424 builtin and then its argument prototype would still apply. */
19426 /* The GNU C library defines this for functions which it implements
19427 to always fail with ENOSYS. Some functions are actually named
19428 something starting with __ and the normal name is an alias. */
19429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19432 char (*f) () = $ac_func;
19441 return f != $ac_func;
19446 rm -f conftest.
$ac_objext conftest
$ac_exeext
19447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19448 (eval $ac_link) 2>conftest.er1
19450 grep -v '^ *+' conftest.er1
>conftest.err
19452 cat conftest.err
>&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } &&
19455 { ac_try
='test -z "$ac_c_werror_flag"
19456 || test ! -s conftest.err'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try
='test -s conftest$ac_exeext'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 eval "$as_ac_var=yes"
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.
$ac_ext >&5
19473 eval "$as_ac_var=no"
19475 rm -f conftest.err conftest.
$ac_objext \
19476 conftest
$ac_exeext conftest.
$ac_ext
19478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19480 if test `eval echo '${'$as_ac_var'}'` = yes; then
19481 cat >>confdefs.h
<<_ACEOF
19482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19487 "$ac_func.$ac_objext" | \
19488 *" $ac_func.$ac_objext" | \
19489 "$ac_func.$ac_objext "* | \
19490 *" $ac_func.$ac_objext "* ) ;;
19491 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19500 # check for wchar.h
19501 if test "${ac_cv_header_wchar_h+set}" = set; then
19502 echo "$as_me:$LINENO: checking for wchar.h" >&5
19503 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19504 if test "${ac_cv_header_wchar_h+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19508 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19510 # Is the header compilable?
19511 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19512 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19513 cat >conftest.
$ac_ext <<_ACEOF
19516 cat confdefs.h
>>conftest.
$ac_ext
19517 cat >>conftest.
$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19519 $ac_includes_default
19522 rm -f conftest.
$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524 (eval $ac_compile) 2>conftest.er1
19526 grep -v '^ *+' conftest.er1
>conftest.err
19528 cat conftest.err
>&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try
='test -z "$ac_c_werror_flag"
19532 || test ! -s conftest.err'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try
='test -s conftest.$ac_objext'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_header_compiler
=yes
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.
$ac_ext >&5
19549 ac_header_compiler
=no
19551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19553 echo "${ECHO_T}$ac_header_compiler" >&6
19555 # Is the header present?
19556 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19557 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19558 cat >conftest.
$ac_ext <<_ACEOF
19561 cat confdefs.h
>>conftest.
$ac_ext
19562 cat >>conftest.
$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19569 grep -v '^ *+' conftest.er1
>conftest.err
19571 cat conftest.err
>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } >/dev
/null
; then
19574 if test -s conftest.err
; then
19575 ac_cpp_err
=$ac_c_preproc_warn_flag
19576 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19583 if test -z "$ac_cpp_err"; then
19584 ac_header_preproc
=yes
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.
$ac_ext >&5
19589 ac_header_preproc
=no
19591 rm -f conftest.err conftest.
$ac_ext
19592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19593 echo "${ECHO_T}$ac_header_preproc" >&6
19595 # So? What about this header?
19596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19598 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19599 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19600 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19601 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19602 ac_header_preproc
=yes
19605 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19606 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19607 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19608 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19609 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19610 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19611 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19612 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19613 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19614 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19615 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19616 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19619 ## ------------------------------------------------ ##
19620 ## Report this to http://www.python.org/python-bugs ##
19621 ## ------------------------------------------------ ##
19624 sed "s/^/$as_me: WARNING: /" >&2
19627 echo "$as_me:$LINENO: checking for wchar.h" >&5
19628 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19629 if test "${ac_cv_header_wchar_h+set}" = set; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 ac_cv_header_wchar_h
=$ac_header_preproc
19634 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19635 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19638 if test $ac_cv_header_wchar_h = yes; then
19641 cat >>confdefs.h
<<\_ACEOF
19642 #define HAVE_WCHAR_H 1
19654 # determine wchar_t size
19655 if test "$wchar_h" = yes
19657 echo "$as_me:$LINENO: checking for wchar_t" >&5
19658 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19659 if test "${ac_cv_type_wchar_t+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 cat >conftest.
$ac_ext <<_ACEOF
19665 cat confdefs.h
>>conftest.
$ac_ext
19666 cat >>conftest.
$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19675 if (sizeof (wchar_t))
19681 rm -f conftest.
$ac_objext
19682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19683 (eval $ac_compile) 2>conftest.er1
19685 grep -v '^ *+' conftest.er1
>conftest.err
19687 cat conftest.err
>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
19690 { ac_try
='test -z "$ac_c_werror_flag"
19691 || test ! -s conftest.err'
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try
='test -s conftest.$ac_objext'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_cv_type_wchar_t
=yes
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.
$ac_ext >&5
19708 ac_cv_type_wchar_t
=no
19710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19712 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19713 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19715 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19716 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19717 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 if test "$ac_cv_type_wchar_t" = yes; then
19721 # The cast to unsigned long works around a bug in the HP C Compiler
19722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19724 # This bug is HP SR number 8606223364.
19725 if test "$cross_compiling" = yes; then
19726 # Depending upon the size, compute the lo and hi bounds.
19727 cat >conftest.
$ac_ext <<_ACEOF
19730 cat confdefs.h
>>conftest.
$ac_ext
19731 cat >>conftest.
$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19738 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19745 rm -f conftest.
$ac_objext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19747 (eval $ac_compile) 2>conftest.er1
19749 grep -v '^ *+' conftest.er1
>conftest.err
19751 cat conftest.err
>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } &&
19754 { ac_try
='test -z "$ac_c_werror_flag"
19755 || test ! -s conftest.err'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; } &&
19761 { ac_try
='test -s conftest.$ac_objext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19769 cat >conftest.
$ac_ext <<_ACEOF
19772 cat confdefs.h
>>conftest.
$ac_ext
19773 cat >>conftest.
$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19780 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19787 rm -f conftest.
$ac_objext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19789 (eval $ac_compile) 2>conftest.er1
19791 grep -v '^ *+' conftest.er1
>conftest.err
19793 cat conftest.err
>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try
='test -z "$ac_c_werror_flag"
19797 || test ! -s conftest.err'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try
='test -s conftest.$ac_objext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_hi
=$ac_mid; break
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.
$ac_ext >&5
19814 ac_lo
=`expr $ac_mid + 1`
19815 if test $ac_lo -le $ac_mid; then
19819 ac_mid
=`expr 2 '*' $ac_mid + 1`
19821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.
$ac_ext >&5
19827 cat >conftest.
$ac_ext <<_ACEOF
19830 cat confdefs.h
>>conftest.
$ac_ext
19831 cat >>conftest.
$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19838 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19845 rm -f conftest.
$ac_objext
19846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19847 (eval $ac_compile) 2>conftest.er1
19849 grep -v '^ *+' conftest.er1
>conftest.err
19851 cat conftest.err
>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
19854 { ac_try
='test -z "$ac_c_werror_flag"
19855 || test ! -s conftest.err'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; } &&
19861 { ac_try
='test -s conftest.$ac_objext'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19869 cat >conftest.
$ac_ext <<_ACEOF
19872 cat confdefs.h
>>conftest.
$ac_ext
19873 cat >>conftest.
$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19880 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19887 rm -f conftest.
$ac_objext
19888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19889 (eval $ac_compile) 2>conftest.er1
19891 grep -v '^ *+' conftest.er1
>conftest.err
19893 cat conftest.err
>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try
='test -z "$ac_c_werror_flag"
19897 || test ! -s conftest.err'
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try
='test -s conftest.$ac_objext'
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 ac_lo
=$ac_mid; break
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.
$ac_ext >&5
19914 ac_hi
=`expr '(' $ac_mid ')' - 1`
19915 if test $ac_mid -le $ac_hi; then
19919 ac_mid
=`expr 2 '*' $ac_mid`
19921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.
$ac_ext >&5
19929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19932 # Binary search between lo and hi bounds.
19933 while test "x$ac_lo" != "x$ac_hi"; do
19934 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19935 cat >conftest.
$ac_ext <<_ACEOF
19938 cat confdefs.h
>>conftest.
$ac_ext
19939 cat >>conftest.
$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19946 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19953 rm -f conftest.
$ac_objext
19954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19955 (eval $ac_compile) 2>conftest.er1
19957 grep -v '^ *+' conftest.er1
>conftest.err
19959 cat conftest.err
>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try
='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try
='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.
$ac_ext >&5
19980 ac_lo
=`expr '(' $ac_mid ')' + 1`
19982 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19985 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19986 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19987 See \`config.log' for more details." >&5
19988 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19989 See \`config.log' for more details." >&2;}
19990 { (exit 1); exit 1; }; } ;;
19993 if test "$cross_compiling" = yes; then
19994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19995 See \`config.log' for more details." >&5
19996 echo "$as_me: error: cannot run test program while cross compiling
19997 See \`config.log' for more details." >&2;}
19998 { (exit 1); exit 1; }; }
20000 cat >conftest.
$ac_ext <<_ACEOF
20003 cat confdefs.h
>>conftest.
$ac_ext
20004 cat >>conftest.
$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20008 long longval () { return (long) (sizeof (wchar_t)); }
20009 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20011 #include <stdlib.h>
20016 FILE *f = fopen ("conftest.val", "w");
20019 if (((long) (sizeof (wchar_t))) < 0)
20021 long i = longval ();
20022 if (i != ((long) (sizeof (wchar_t))))
20024 fprintf (f, "%ld\n", i);
20028 unsigned long i = ulongval ();
20029 if (i != ((long) (sizeof (wchar_t))))
20031 fprintf (f, "%lu\n", i);
20033 exit (ferror (f) || fclose (f) != 0);
20039 rm -f conftest
$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041 (eval $ac_link) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_cv_sizeof_wchar_t
=`cat conftest.val`
20052 echo "$as_me: program exited with status $ac_status" >&5
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.
$ac_ext >&5
20056 ( exit $ac_status )
20057 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20058 See \`config.log' for more details." >&5
20059 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20060 See \`config.log' for more details." >&2;}
20061 { (exit 1); exit 1; }; }
20063 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20068 ac_cv_sizeof_wchar_t
=0
20071 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20072 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20073 cat >>confdefs.h
<<_ACEOF
20074 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20080 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20081 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20083 cat >conftest.
$ac_ext <<_ACEOF
20086 cat confdefs.h
>>conftest.
$ac_ext
20087 cat >>conftest.
$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20091 #if TCL_UTF_MAX != 6
20092 # error "NOT UCS4_TCL"
20102 rm -f conftest.
$ac_objext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104 (eval $ac_compile) 2>conftest.er1
20106 grep -v '^ *+' conftest.er1
>conftest.err
20108 cat conftest.err
>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
20111 { ac_try
='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
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); }; } &&
20118 { ac_try
='test -s conftest.$ac_objext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20126 cat >>confdefs.h
<<\_ACEOF
20127 #define HAVE_UCS4_TCL 1
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.
$ac_ext >&5
20137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20138 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20139 echo "${ECHO_T}$have_ucs4_tcl" >&6
20141 # check whether wchar_t is signed or not
20142 if test "$wchar_h" = yes
20144 # check whether wchar_t is signed or not
20145 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20146 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20147 if test "${ac_cv_wchar_t_signed+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 if test "$cross_compiling" = yes; then
20152 ac_cv_wchar_t_signed
=yes
20154 cat >conftest.
$ac_ext <<_ACEOF
20157 cat confdefs.h
>>conftest.
$ac_ext
20158 cat >>conftest.
$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20164 /* Success: exit code 0 */
20165 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20169 rm -f conftest
$ac_exeext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20171 (eval $ac_link) 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; }; then
20180 ac_cv_wchar_t_signed
=yes
20182 echo "$as_me: program exited with status $ac_status" >&5
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.
$ac_ext >&5
20186 ( exit $ac_status )
20187 ac_cv_wchar_t_signed
=no
20189 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20193 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20194 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20197 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20198 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20199 # Check whether --enable-unicode or --disable-unicode was given.
20200 if test "${enable_unicode+set}" = set; then
20201 enableval
="$enable_unicode"
20207 if test $enable_unicode = yes
20209 # Without any arguments, Py_UNICODE defaults to two-byte mode
20210 case "$have_ucs4_tcl" in
20211 yes) enable_unicode
="ucs4"
20213 *) enable_unicode
="ucs2"
20220 case "$enable_unicode" in
20221 ucs2
) unicode_size
="2"
20222 cat >>confdefs.h
<<\_ACEOF
20223 #define Py_UNICODE_SIZE 2
20227 ucs4
) unicode_size
="4"
20228 cat >>confdefs.h
<<\_ACEOF
20229 #define Py_UNICODE_SIZE 4
20239 if test "$enable_unicode" = "no"
20242 echo "$as_me:$LINENO: result: not used" >&5
20243 echo "${ECHO_T}not used" >&6
20245 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20247 cat >>confdefs.h
<<\_ACEOF
20248 #define Py_USING_UNICODE 1
20252 # wchar_t is only usable if it maps to an unsigned type
20253 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20254 -a "$ac_cv_wchar_t_signed" = "no"
20256 PY_UNICODE_TYPE
="wchar_t"
20258 cat >>confdefs.h
<<\_ACEOF
20259 #define HAVE_USABLE_WCHAR_T 1
20262 cat >>confdefs.h
<<\_ACEOF
20263 #define PY_UNICODE_TYPE wchar_t
20266 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20268 PY_UNICODE_TYPE
="unsigned short"
20269 cat >>confdefs.h
<<\_ACEOF
20270 #define PY_UNICODE_TYPE unsigned short
20273 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20275 PY_UNICODE_TYPE
="unsigned long"
20276 cat >>confdefs.h
<<\_ACEOF
20277 #define PY_UNICODE_TYPE unsigned long
20281 PY_UNICODE_TYPE
="no type found"
20283 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20284 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20287 # check for endianness
20288 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20289 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20290 if test "${ac_cv_c_bigendian+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 # See if sys/param.h defines the BYTE_ORDER macro.
20294 cat >conftest.
$ac_ext <<_ACEOF
20297 cat confdefs.h
>>conftest.
$ac_ext
20298 cat >>conftest.
$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 #include <sys/types.h>
20301 #include <sys/param.h>
20306 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20307 bogus endian macros
20314 rm -f conftest.
$ac_objext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>conftest.er1
20318 grep -v '^ *+' conftest.er1
>conftest.err
20320 cat conftest.err
>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try
='test -z "$ac_c_werror_flag"
20324 || test ! -s conftest.err'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try
='test -s conftest.$ac_objext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 # It does; now see whether it defined to BIG_ENDIAN or not.
20337 cat >conftest.
$ac_ext <<_ACEOF
20340 cat confdefs.h
>>conftest.
$ac_ext
20341 cat >>conftest.
$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 #include <sys/types.h>
20344 #include <sys/param.h>
20349 #if BYTE_ORDER != BIG_ENDIAN
20357 rm -f conftest.
$ac_objext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>conftest.er1
20361 grep -v '^ *+' conftest.er1
>conftest.err
20363 cat conftest.err
>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try
='test -z "$ac_c_werror_flag"
20367 || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try
='test -s conftest.$ac_objext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_cv_c_bigendian
=yes
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.
$ac_ext >&5
20384 ac_cv_c_bigendian
=no
20386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.
$ac_ext >&5
20391 # It does not; compile a test program.
20392 if test "$cross_compiling" = yes; then
20393 # try to guess the endianness by grepping values into an object file
20394 ac_cv_c_bigendian
=unknown
20395 cat >conftest.
$ac_ext <<_ACEOF
20398 cat confdefs.h
>>conftest.
$ac_ext
20399 cat >>conftest.
$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20402 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20403 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20404 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20405 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20406 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20410 _ascii (); _ebcdic ();
20415 rm -f conftest.
$ac_objext
20416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20417 (eval $ac_compile) 2>conftest.er1
20419 grep -v '^ *+' conftest.er1
>conftest.err
20421 cat conftest.err
>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } &&
20424 { ac_try
='test -z "$ac_c_werror_flag"
20425 || test ! -s conftest.err'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; } &&
20431 { ac_try
='test -s conftest.$ac_objext'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20438 ac_cv_c_bigendian
=yes
20440 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20441 if test "$ac_cv_c_bigendian" = unknown
; then
20442 ac_cv_c_bigendian
=no
20444 # finding both strings is unlikely to happen, but who knows?
20445 ac_cv_c_bigendian
=unknown
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.
$ac_ext >&5
20453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20455 cat >conftest.
$ac_ext <<_ACEOF
20458 cat confdefs.h
>>conftest.
$ac_ext
20459 cat >>conftest.
$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20464 /* Are we little or big endian? From Harbison&Steele. */
20468 char c[sizeof (long)];
20471 exit (u.c[sizeof (long) - 1] == 1);
20474 rm -f conftest
$ac_exeext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20476 (eval $ac_link) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_c_bigendian
=no
20487 echo "$as_me: program exited with status $ac_status" >&5
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.
$ac_ext >&5
20491 ( exit $ac_status )
20492 ac_cv_c_bigendian
=yes
20494 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20499 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20500 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20501 case $ac_cv_c_bigendian in
20504 cat >>confdefs.h
<<\_ACEOF
20505 #define WORDS_BIGENDIAN 1
20511 { { echo "$as_me:$LINENO: error: unknown endianness
20512 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20513 echo "$as_me: error: unknown endianness
20514 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20515 { (exit 1); exit 1; }; } ;;
20521 # Check whether right shifting a negative integer extends the sign bit
20522 # or fills with zeros (like the Cray J90, according to Tim Peters).
20523 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20524 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20525 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 if test "$cross_compiling" = yes; then
20530 ac_cv_rshift_extends_sign
=yes
20532 cat >conftest.
$ac_ext <<_ACEOF
20535 cat confdefs.h
>>conftest.
$ac_ext
20536 cat >>conftest.
$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20541 exit(((-1)>>3 == -1) ? 0 : 1);
20545 rm -f conftest
$ac_exeext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20547 (eval $ac_link) 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_rshift_extends_sign
=yes
20558 echo "$as_me: program exited with status $ac_status" >&5
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.
$ac_ext >&5
20562 ( exit $ac_status )
20563 ac_cv_rshift_extends_sign
=no
20565 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20570 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20571 if test "$ac_cv_rshift_extends_sign" = no
20574 cat >>confdefs.h
<<\_ACEOF
20575 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20580 # check for getc_unlocked and related locking functions
20581 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20582 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20583 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 cat >conftest.
$ac_ext <<_ACEOF
20590 cat confdefs.h
>>conftest.
$ac_ext
20591 cat >>conftest.
$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20598 FILE *f = fopen("/dev/null", "r");
20607 rm -f conftest.
$ac_objext conftest
$ac_exeext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609 (eval $ac_link) 2>conftest.er1
20611 grep -v '^ *+' conftest.er1
>conftest.err
20613 cat conftest.err
>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try
='test -z "$ac_c_werror_flag"
20617 || test ! -s conftest.err'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try
='test -s conftest$ac_exeext'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 ac_cv_have_getc_unlocked
=yes
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.
$ac_ext >&5
20634 ac_cv_have_getc_unlocked
=no
20636 rm -f conftest.err conftest.
$ac_objext \
20637 conftest
$ac_exeext conftest.
$ac_ext
20640 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20641 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20642 if test "$ac_cv_have_getc_unlocked" = yes
20645 cat >>confdefs.h
<<\_ACEOF
20646 #define HAVE_GETC_UNLOCKED 1
20651 # check where readline lives
20652 # save the value of LIBS so we don't actually link Python with readline
20653 LIBS_no_readline
=$LIBS
20655 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20656 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20657 if test "${ac_cv_lib_readline_readline+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 ac_check_lib_save_LIBS
=$LIBS
20661 LIBS
="-lreadline $LIBS"
20662 cat >conftest.
$ac_ext <<_ACEOF
20665 cat confdefs.h
>>conftest.
$ac_ext
20666 cat >>conftest.
$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 /* Override any gcc2 internal prototype to avoid an error. */
20673 /* We use char because int might match the return type of a gcc2
20674 builtin and then its argument prototype would still apply. */
20684 rm -f conftest.
$ac_objext conftest
$ac_exeext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20686 (eval $ac_link) 2>conftest.er1
20688 grep -v '^ *+' conftest.er1
>conftest.err
20690 cat conftest.err
>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try
='test -z "$ac_c_werror_flag"
20694 || test ! -s conftest.err'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; } &&
20700 { ac_try
='test -s conftest$ac_exeext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ac_cv_lib_readline_readline
=yes
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.
$ac_ext >&5
20711 ac_cv_lib_readline_readline
=no
20713 rm -f conftest.err conftest.
$ac_objext \
20714 conftest
$ac_exeext conftest.
$ac_ext
20715 LIBS
=$ac_check_lib_save_LIBS
20717 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20718 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20719 if test $ac_cv_lib_readline_readline = yes; then
20720 cat >>confdefs.h
<<_ACEOF
20721 #define HAVE_LIBREADLINE 1
20724 LIBS
="-lreadline $LIBS"
20728 if test "$ac_cv_have_readline_readline" = no
20731 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20732 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20733 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 ac_check_lib_save_LIBS
=$LIBS
20737 LIBS
="-ltermcap $LIBS"
20738 cat >conftest.
$ac_ext <<_ACEOF
20741 cat confdefs.h
>>conftest.
$ac_ext
20742 cat >>conftest.
$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 /* Override any gcc2 internal prototype to avoid an error. */
20749 /* We use char because int might match the return type of a gcc2
20750 builtin and then its argument prototype would still apply. */
20760 rm -f conftest.
$ac_objext conftest
$ac_exeext
20761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20762 (eval $ac_link) 2>conftest.er1
20764 grep -v '^ *+' conftest.er1
>conftest.err
20766 cat conftest.err
>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try
='test -z "$ac_c_werror_flag"
20770 || test ! -s conftest.err'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try
='test -s conftest$ac_exeext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_lib_termcap_readline
=yes
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.
$ac_ext >&5
20787 ac_cv_lib_termcap_readline
=no
20789 rm -f conftest.err conftest.
$ac_objext \
20790 conftest
$ac_exeext conftest.
$ac_ext
20791 LIBS
=$ac_check_lib_save_LIBS
20793 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20794 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20795 if test $ac_cv_lib_termcap_readline = yes; then
20796 cat >>confdefs.h
<<_ACEOF
20797 #define HAVE_LIBTERMCAP 1
20800 LIBS
="-ltermcap $LIBS"
20806 # check for readline 2.1
20807 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20808 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20809 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 ac_check_lib_save_LIBS
=$LIBS
20813 LIBS
="-lreadline $LIBS"
20814 cat >conftest.
$ac_ext <<_ACEOF
20817 cat confdefs.h
>>conftest.
$ac_ext
20818 cat >>conftest.
$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20821 /* Override any gcc2 internal prototype to avoid an error. */
20825 /* We use char because int might match the return type of a gcc2
20826 builtin and then its argument prototype would still apply. */
20827 char rl_callback_handler_install ();
20831 rl_callback_handler_install ();
20836 rm -f conftest.
$ac_objext conftest
$ac_exeext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20838 (eval $ac_link) 2>conftest.er1
20840 grep -v '^ *+' conftest.er1
>conftest.err
20842 cat conftest.err
>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try
='test -z "$ac_c_werror_flag"
20846 || test ! -s conftest.err'
20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; } &&
20852 { ac_try
='test -s conftest$ac_exeext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_cv_lib_readline_rl_callback_handler_install
=yes
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.
$ac_ext >&5
20863 ac_cv_lib_readline_rl_callback_handler_install
=no
20865 rm -f conftest.err conftest.
$ac_objext \
20866 conftest
$ac_exeext conftest.
$ac_ext
20867 LIBS
=$ac_check_lib_save_LIBS
20869 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20870 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20871 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20873 cat >>confdefs.h
<<\_ACEOF
20874 #define HAVE_RL_CALLBACK 1
20880 # check for readline 2.2
20881 cat >conftest.
$ac_ext <<_ACEOF
20884 cat confdefs.h
>>conftest.
$ac_ext
20885 cat >>conftest.
$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 #include <readline/readline.h>
20889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20890 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
20897 if test -s conftest.err
; then
20898 ac_cpp_err
=$ac_c_preproc_warn_flag
20899 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20906 if test -z "$ac_cpp_err"; then
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.
$ac_ext >&5
20914 rm -f conftest.err conftest.
$ac_ext
20915 if test $have_readline = yes
20917 cat >conftest.
$ac_ext <<_ACEOF
20920 cat confdefs.h
>>conftest.
$ac_ext
20921 cat >>conftest.
$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20923 #include <readline/readline.h>
20926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20927 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20929 cat >>confdefs.h
<<\_ACEOF
20930 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20938 # check for readline 4.0
20939 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20940 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20941 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 ac_check_lib_save_LIBS
=$LIBS
20945 LIBS
="-lreadline $LIBS"
20946 cat >conftest.
$ac_ext <<_ACEOF
20949 cat confdefs.h
>>conftest.
$ac_ext
20950 cat >>conftest.
$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20953 /* Override any gcc2 internal prototype to avoid an error. */
20957 /* We use char because int might match the return type of a gcc2
20958 builtin and then its argument prototype would still apply. */
20959 char rl_pre_input_hook ();
20963 rl_pre_input_hook ();
20968 rm -f conftest.
$ac_objext conftest
$ac_exeext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970 (eval $ac_link) 2>conftest.er1
20972 grep -v '^ *+' conftest.er1
>conftest.err
20974 cat conftest.err
>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try
='test -z "$ac_c_werror_flag"
20978 || test ! -s conftest.err'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try
='test -s conftest$ac_exeext'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_lib_readline_rl_pre_input_hook
=yes
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.
$ac_ext >&5
20995 ac_cv_lib_readline_rl_pre_input_hook
=no
20997 rm -f conftest.err conftest.
$ac_objext \
20998 conftest
$ac_exeext conftest.
$ac_ext
20999 LIBS
=$ac_check_lib_save_LIBS
21001 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21002 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21003 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21005 cat >>confdefs.h
<<\_ACEOF
21006 #define HAVE_RL_PRE_INPUT_HOOK 1
21012 # check for readline 4.2
21013 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21014 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21015 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 ac_check_lib_save_LIBS
=$LIBS
21019 LIBS
="-lreadline $LIBS"
21020 cat >conftest.
$ac_ext <<_ACEOF
21023 cat confdefs.h
>>conftest.
$ac_ext
21024 cat >>conftest.
$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21027 /* Override any gcc2 internal prototype to avoid an error. */
21031 /* We use char because int might match the return type of a gcc2
21032 builtin and then its argument prototype would still apply. */
21033 char rl_completion_matches ();
21037 rl_completion_matches ();
21042 rm -f conftest.
$ac_objext conftest
$ac_exeext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044 (eval $ac_link) 2>conftest.er1
21046 grep -v '^ *+' conftest.er1
>conftest.err
21048 cat conftest.err
>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try
='test -z "$ac_c_werror_flag"
21052 || test ! -s conftest.err'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; } &&
21058 { ac_try
='test -s conftest$ac_exeext'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 ac_cv_lib_readline_rl_completion_matches
=yes
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.
$ac_ext >&5
21069 ac_cv_lib_readline_rl_completion_matches
=no
21071 rm -f conftest.err conftest.
$ac_objext \
21072 conftest
$ac_exeext conftest.
$ac_ext
21073 LIBS
=$ac_check_lib_save_LIBS
21075 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21076 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21077 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21079 cat >>confdefs.h
<<\_ACEOF
21080 #define HAVE_RL_COMPLETION_MATCHES 1
21086 # also in readline 4.2
21087 cat >conftest.
$ac_ext <<_ACEOF
21090 cat confdefs.h
>>conftest.
$ac_ext
21091 cat >>conftest.
$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 #include <readline/readline.h>
21095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21096 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21098 grep -v '^ *+' conftest.er1
>conftest.err
21100 cat conftest.err
>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } >/dev
/null
; then
21103 if test -s conftest.err
; then
21104 ac_cpp_err
=$ac_c_preproc_warn_flag
21105 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21112 if test -z "$ac_cpp_err"; then
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.
$ac_ext >&5
21120 rm -f conftest.err conftest.
$ac_ext
21121 if test $have_readline = yes
21123 cat >conftest.
$ac_ext <<_ACEOF
21126 cat confdefs.h
>>conftest.
$ac_ext
21127 cat >>conftest.
$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 #include <readline/readline.h>
21132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21133 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21135 cat >>confdefs.h
<<\_ACEOF
21136 #define HAVE_RL_CATCH_SIGNAL 1
21144 # End of readline checks: restore LIBS
21145 LIBS
=$LIBS_no_readline
21147 echo "$as_me:$LINENO: checking for broken nice()" >&5
21148 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21149 if test "${ac_cv_broken_nice+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21153 if test "$cross_compiling" = yes; then
21154 ac_cv_broken_nice
=no
21156 cat >conftest.
$ac_ext <<_ACEOF
21159 cat confdefs.h
>>conftest.
$ac_ext
21160 cat >>conftest.
$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21165 int val1 = nice(1);
21166 if (val1 != -1 && val1 == nice(2))
21172 rm -f conftest
$ac_exeext
21173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21174 (eval $ac_link) 2>&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_broken_nice
=yes
21185 echo "$as_me: program exited with status $ac_status" >&5
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.
$ac_ext >&5
21189 ( exit $ac_status )
21190 ac_cv_broken_nice
=no
21192 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21196 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21197 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21198 if test "$ac_cv_broken_nice" = yes
21201 cat >>confdefs.h
<<\_ACEOF
21202 #define HAVE_BROKEN_NICE 1
21207 echo "$as_me:$LINENO: checking for broken poll()" >&5
21208 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21209 if test "$cross_compiling" = yes; then
21210 ac_cv_broken_poll
=no
21212 cat >conftest.
$ac_ext <<_ACEOF
21215 cat confdefs.h
>>conftest.
$ac_ext
21216 cat >>conftest.
$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21223 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21227 int poll_test = poll (&poll_struct, 1, 0);
21233 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21244 rm -f conftest
$ac_exeext
21245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21246 (eval $ac_link) 2>&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_cv_broken_poll
=yes
21257 echo "$as_me: program exited with status $ac_status" >&5
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.
$ac_ext >&5
21261 ( exit $ac_status )
21262 ac_cv_broken_poll
=no
21264 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21266 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21267 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21268 if test "$ac_cv_broken_poll" = yes
21271 cat >>confdefs.h
<<\_ACEOF
21272 #define HAVE_BROKEN_POLL 1
21277 # Before we can test tzset, we need to check if struct tm has a tm_zone
21278 # (which is not required by ISO C or UNIX spec) and/or if we support
21280 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21281 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21282 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 cat >conftest.
$ac_ext <<_ACEOF
21288 cat confdefs.h
>>conftest.
$ac_ext
21289 cat >>conftest.
$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <sys/types.h>
21292 #include <$ac_cv_struct_tm>
21298 static struct tm ac_aggr;
21299 if (ac_aggr.tm_zone)
21305 rm -f conftest.
$ac_objext
21306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21307 (eval $ac_compile) 2>conftest.er1
21309 grep -v '^ *+' conftest.er1
>conftest.err
21311 cat conftest.err
>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try
='test -z "$ac_c_werror_flag"
21315 || test ! -s conftest.err'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; } &&
21321 { ac_try
='test -s conftest.$ac_objext'
21322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323 (eval $ac_try) 2>&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; }; then
21327 ac_cv_member_struct_tm_tm_zone
=yes
21329 echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.
$ac_ext >&5
21332 cat >conftest.
$ac_ext <<_ACEOF
21335 cat confdefs.h
>>conftest.
$ac_ext
21336 cat >>conftest.
$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21338 #include <sys/types.h>
21339 #include <$ac_cv_struct_tm>
21345 static struct tm ac_aggr;
21346 if (sizeof ac_aggr.tm_zone)
21352 rm -f conftest.
$ac_objext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21354 (eval $ac_compile) 2>conftest.er1
21356 grep -v '^ *+' conftest.er1
>conftest.err
21358 cat conftest.err
>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
21361 { ac_try
='test -z "$ac_c_werror_flag"
21362 || test ! -s conftest.err'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; } &&
21368 { ac_try
='test -s conftest.$ac_objext'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374 ac_cv_member_struct_tm_tm_zone
=yes
21376 echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.
$ac_ext >&5
21379 ac_cv_member_struct_tm_tm_zone
=no
21381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21385 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21386 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21387 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21389 cat >>confdefs.h
<<_ACEOF
21390 #define HAVE_STRUCT_TM_TM_ZONE 1
21396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21398 cat >>confdefs.h
<<\_ACEOF
21399 #define HAVE_TM_ZONE 1
21403 echo "$as_me:$LINENO: checking for tzname" >&5
21404 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21405 if test "${ac_cv_var_tzname+set}" = set; then
21406 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 cat >conftest.
$ac_ext <<_ACEOF
21411 cat confdefs.h
>>conftest.
$ac_ext
21412 cat >>conftest.
$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21415 #ifndef tzname /* For SGI. */
21416 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21427 rm -f conftest.
$ac_objext conftest
$ac_exeext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429 (eval $ac_link) 2>conftest.er1
21431 grep -v '^ *+' conftest.er1
>conftest.err
21433 cat conftest.err
>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try
='test -z "$ac_c_werror_flag"
21437 || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try
='test -s conftest$ac_exeext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_cv_var_tzname
=yes
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.
$ac_ext >&5
21454 ac_cv_var_tzname
=no
21456 rm -f conftest.err conftest.
$ac_objext \
21457 conftest
$ac_exeext conftest.
$ac_ext
21459 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21460 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21461 if test $ac_cv_var_tzname = yes; then
21463 cat >>confdefs.h
<<\_ACEOF
21464 #define HAVE_TZNAME 1
21471 # check tzset(3) exists and works like we expect it to
21472 echo "$as_me:$LINENO: checking for working tzset()" >&5
21473 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21474 if test "${ac_cv_working_tzset+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 if test "$cross_compiling" = yes; then
21479 ac_cv_working_tzset
=no
21481 cat >conftest.
$ac_ext <<_ACEOF
21484 cat confdefs.h
>>conftest.
$ac_ext
21485 cat >>conftest.
$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21488 #include <stdlib.h>
21490 #include <string.h>
21493 extern char *tzname[];
21498 /* Note that we need to ensure that not only does tzset(3)
21499 do 'something' with localtime, but it works as documented
21500 in the library reference and as expected by the test suite.
21501 This includes making sure that tzname is set properly if
21502 tm->tm_zone does not exist since it is the alternative way
21503 of getting timezone info.
21505 Red Hat 6.2 doesn't understand the southern hemisphere
21506 after New Year's Day.
21509 time_t groundhogday = 1044144000; /* GMT-based */
21510 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21512 putenv("TZ=UTC+0");
21514 if (localtime(&groundhogday)->tm_hour != 0)
21517 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21518 if (strcmp(tzname[0], "UTC") ||
21519 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21523 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21525 if (localtime(&groundhogday)->tm_hour != 19)
21528 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21532 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21534 if (localtime(&groundhogday)->tm_hour != 11)
21537 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21541 #if HAVE_STRUCT_TM_TM_ZONE
21542 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21544 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21552 rm -f conftest
$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_cv_working_tzset
=yes
21565 echo "$as_me: program exited with status $ac_status" >&5
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.
$ac_ext >&5
21569 ( exit $ac_status )
21570 ac_cv_working_tzset
=no
21572 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21576 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21577 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21578 if test "$ac_cv_working_tzset" = yes
21581 cat >>confdefs.h
<<\_ACEOF
21582 #define HAVE_WORKING_TZSET 1
21587 # Look for subsecond timestamps in struct stat
21588 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21589 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21590 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 cat >conftest.
$ac_ext <<_ACEOF
21596 cat confdefs.h
>>conftest.
$ac_ext
21597 cat >>conftest.
$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 #include <sys/stat.h>
21605 st.st_mtim.tv_nsec = 1;
21611 rm -f conftest.
$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613 (eval $ac_compile) 2>conftest.er1
21615 grep -v '^ *+' conftest.er1
>conftest.err
21617 cat conftest.err
>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try
='test -z "$ac_c_werror_flag"
21621 || test ! -s conftest.err'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try
='test -s conftest.$ac_objext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_cv_stat_tv_nsec
=yes
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.
$ac_ext >&5
21638 ac_cv_stat_tv_nsec
=no
21640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21643 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21644 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21645 if test "$ac_cv_stat_tv_nsec" = yes
21648 cat >>confdefs.h
<<\_ACEOF
21649 #define HAVE_STAT_TV_NSEC 1
21654 # Look for BSD style subsecond timestamps in struct stat
21655 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21656 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21657 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 cat >conftest.
$ac_ext <<_ACEOF
21663 cat confdefs.h
>>conftest.
$ac_ext
21664 cat >>conftest.
$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21666 #include <sys/stat.h>
21672 st.st_mtimespec.tv_nsec = 1;
21678 rm -f conftest.
$ac_objext
21679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21680 (eval $ac_compile) 2>conftest.er1
21682 grep -v '^ *+' conftest.er1
>conftest.err
21684 cat conftest.err
>&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try
='test -z "$ac_c_werror_flag"
21688 || test ! -s conftest.err'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try
='test -s conftest.$ac_objext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 ac_cv_stat_tv_nsec2
=yes
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.
$ac_ext >&5
21705 ac_cv_stat_tv_nsec2
=no
21707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21710 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21711 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21712 if test "$ac_cv_stat_tv_nsec2" = yes
21715 cat >>confdefs.h
<<\_ACEOF
21716 #define HAVE_STAT_TV_NSEC2 1
21721 # On HP/UX 11.0, mvwdelch is a block with a return statement
21722 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21723 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21724 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 cat >conftest.
$ac_ext <<_ACEOF
21730 cat confdefs.h
>>conftest.
$ac_ext
21731 cat >>conftest.
$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21733 #include <curses.h>
21739 rtn = mvwdelch(0,0,0);
21745 rm -f conftest.
$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747 (eval $ac_compile) 2>conftest.er1
21749 grep -v '^ *+' conftest.er1
>conftest.err
21751 cat conftest.err
>&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
21754 { ac_try
='test -z "$ac_c_werror_flag"
21755 || test ! -s conftest.err'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; } &&
21761 { ac_try
='test -s conftest.$ac_objext'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; }; then
21767 ac_cv_mvwdelch_is_expression
=yes
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.
$ac_ext >&5
21772 ac_cv_mvwdelch_is_expression
=no
21774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21777 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21778 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21780 if test "$ac_cv_mvwdelch_is_expression" = yes
21783 cat >>confdefs.h
<<\_ACEOF
21784 #define MVWDELCH_IS_EXPRESSION 1
21789 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21790 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21791 if test "${ac_cv_window_has_flags+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 cat >conftest.
$ac_ext <<_ACEOF
21797 cat confdefs.h
>>conftest.
$ac_ext
21798 cat >>conftest.
$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 #include <curses.h>
21812 rm -f conftest.
$ac_objext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21814 (eval $ac_compile) 2>conftest.er1
21816 grep -v '^ *+' conftest.er1
>conftest.err
21818 cat conftest.err
>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
21821 { ac_try
='test -z "$ac_c_werror_flag"
21822 || test ! -s conftest.err'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try
='test -s conftest.$ac_objext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_window_has_flags
=yes
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.
$ac_ext >&5
21839 ac_cv_window_has_flags
=no
21841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21844 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21845 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21848 if test "$ac_cv_window_has_flags" = yes
21851 cat >>confdefs.h
<<\_ACEOF
21852 #define WINDOW_HAS_FLAGS 1
21857 echo "$as_me:$LINENO: checking for is_term_resized" >&5
21858 echo $ECHO_N "checking for is_term_resized... $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 <curses.h>
21869 void *x=is_term_resized
21874 rm -f conftest.
$ac_objext
21875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21876 (eval $ac_compile) 2>conftest.er1
21878 grep -v '^ *+' conftest.er1
>conftest.err
21880 cat conftest.err
>&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } &&
21883 { ac_try
='test -z "$ac_c_werror_flag"
21884 || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try
='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21897 cat >>confdefs.h
<<\_ACEOF
21898 #define HAVE_CURSES_IS_TERM_RESIZED 1
21901 echo "$as_me:$LINENO: result: yes" >&5
21902 echo "${ECHO_T}yes" >&6
21904 echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.
$ac_ext >&5
21907 echo "$as_me:$LINENO: result: no" >&5
21908 echo "${ECHO_T}no" >&6
21911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21913 echo "$as_me:$LINENO: checking for resize_term" >&5
21914 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
21915 cat >conftest.
$ac_ext <<_ACEOF
21918 cat confdefs.h
>>conftest.
$ac_ext
21919 cat >>conftest.
$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 #include <curses.h>
21925 void *x=resize_term
21930 rm -f conftest.
$ac_objext
21931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21932 (eval $ac_compile) 2>conftest.er1
21934 grep -v '^ *+' conftest.er1
>conftest.err
21936 cat conftest.err
>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } &&
21939 { ac_try
='test -z "$ac_c_werror_flag"
21940 || test ! -s conftest.err'
21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942 (eval $ac_try) 2>&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; } &&
21946 { ac_try
='test -s conftest.$ac_objext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21953 cat >>confdefs.h
<<\_ACEOF
21954 #define HAVE_CURSES_RESIZE_TERM 1
21957 echo "$as_me:$LINENO: result: yes" >&5
21958 echo "${ECHO_T}yes" >&6
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.
$ac_ext >&5
21963 echo "$as_me:$LINENO: result: no" >&5
21964 echo "${ECHO_T}no" >&6
21967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21969 echo "$as_me:$LINENO: checking for resizeterm" >&5
21970 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
21971 cat >conftest.
$ac_ext <<_ACEOF
21974 cat confdefs.h
>>conftest.
$ac_ext
21975 cat >>conftest.
$ac_ext <<_ACEOF
21976 /* end confdefs.h. */
21977 #include <curses.h>
21986 rm -f conftest.
$ac_objext
21987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21988 (eval $ac_compile) 2>conftest.er1
21990 grep -v '^ *+' conftest.er1
>conftest.err
21992 cat conftest.err
>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } &&
21995 { ac_try
='test -z "$ac_c_werror_flag"
21996 || test ! -s conftest.err'
21997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998 (eval $ac_try) 2>&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; } &&
22002 { ac_try
='test -s conftest.$ac_objext'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; }; then
22009 cat >>confdefs.h
<<\_ACEOF
22010 #define HAVE_CURSES_RESIZETERM 1
22013 echo "$as_me:$LINENO: result: yes" >&5
22014 echo "${ECHO_T}yes" >&6
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.
$ac_ext >&5
22019 echo "$as_me:$LINENO: result: no" >&5
22020 echo "${ECHO_T}no" >&6
22023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22025 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22026 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22028 if test -e /dev
/ptmx
22030 echo "$as_me:$LINENO: result: yes" >&5
22031 echo "${ECHO_T}yes" >&6
22033 cat >>confdefs.h
<<\_ACEOF
22034 #define HAVE_DEV_PTMX 1
22038 echo "$as_me:$LINENO: result: no" >&5
22039 echo "${ECHO_T}no" >&6
22042 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22043 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22045 if test -e /dev
/ptc
22047 echo "$as_me:$LINENO: result: yes" >&5
22048 echo "${ECHO_T}yes" >&6
22050 cat >>confdefs.h
<<\_ACEOF
22051 #define HAVE_DEV_PTC 1
22055 echo "$as_me:$LINENO: result: no" >&5
22056 echo "${ECHO_T}no" >&6
22059 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22060 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22061 if test "$cross_compiling" = yes; then
22062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22063 See \`config.log' for more details." >&5
22064 echo "$as_me: error: cannot run test program while cross compiling
22065 See \`config.log' for more details." >&2;}
22066 { (exit 1); exit 1; }; }
22068 cat >conftest.
$ac_ext <<_ACEOF
22071 cat confdefs.h
>>conftest.
$ac_ext
22072 cat >>conftest.
$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22075 #include <stddef.h>
22076 #include <string.h>
22082 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22085 if (strncmp(buffer, "123", 3))
22091 rm -f conftest
$ac_exeext
22092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22093 (eval $ac_link) 2>&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; }; then
22102 echo "$as_me:$LINENO: result: yes" >&5
22103 echo "${ECHO_T}yes" >&6
22105 cat >>confdefs.h
<<\_ACEOF
22106 #define PY_FORMAT_SIZE_T "z"
22110 echo "$as_me: program exited with status $ac_status" >&5
22111 echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.
$ac_ext >&5
22114 ( exit $ac_status )
22115 echo "$as_me:$LINENO: result: no" >&5
22116 echo "${ECHO_T}no" >&6
22118 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22121 echo "$as_me:$LINENO: checking for socklen_t" >&5
22122 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22123 if test "${ac_cv_type_socklen_t+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 cat >conftest.
$ac_ext <<_ACEOF
22129 cat confdefs.h
>>conftest.
$ac_ext
22130 cat >>conftest.
$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22133 #ifdef HAVE_SYS_TYPES_H
22134 #include <sys/types.h>
22136 #ifdef HAVE_SYS_SOCKET_H
22137 #include <sys/socket.h>
22144 if ((socklen_t *) 0)
22146 if (sizeof (socklen_t))
22152 rm -f conftest.
$ac_objext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154 (eval $ac_compile) 2>conftest.er1
22156 grep -v '^ *+' conftest.er1
>conftest.err
22158 cat conftest.err
>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
22161 { ac_try
='test -z "$ac_c_werror_flag"
22162 || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try
='test -s conftest.$ac_objext'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_type_socklen_t
=yes
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.
$ac_ext >&5
22179 ac_cv_type_socklen_t
=no
22181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22183 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22184 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22185 if test $ac_cv_type_socklen_t = yes; then
22189 cat >>confdefs.h
<<\_ACEOF
22190 #define socklen_t int
22198 for h
in `(cd $srcdir;echo Python/thread_*.h)`
22200 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
22204 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
22205 echo "$as_me:$LINENO: checking for build directories" >&5
22206 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22207 for dir
in $SRCDIRS; do
22208 if test ! -d $dir; then
22212 echo "$as_me:$LINENO: result: done" >&5
22213 echo "${ECHO_T}done" >&6
22215 # generate output files
22216 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
22218 cat >confcache
<<\_ACEOF
22219 # This file is a shell script that caches the results of configure
22220 # tests run on this system so they can be shared between configure
22221 # scripts and configure runs, see configure's option --config-cache.
22222 # It is not useful on other systems. If it contains results you don't
22223 # want to keep, you may remove or edit it.
22225 # config.status only pays attention to the cache file if you give it
22226 # the --recheck option to rerun configure.
22228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22230 # following values.
22234 # The following way of writing the cache mishandles newlines in values,
22235 # but we know of no workaround that is simple, portable, and efficient.
22236 # So, don't put newlines in cache variables' values.
22237 # Ultrix sh set writes to stderr and can't be redirected directly,
22238 # and sets the high bit in the cache file unless we assign to the vars.
22241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22243 # `set' does not quote correctly, so add quotes (double-quote
22244 # substitution turns \\\\ into \\, and sed turns \\ into \).
22247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22250 # `set' quotes correctly as required by POSIX, so do not add quotes.
22252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22261 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22263 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22264 if test -w $cache_file; then
22265 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22266 cat confcache
>$cache_file
22268 echo "not updating unwritable cache $cache_file"
22273 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22274 # Let make expand exec_prefix.
22275 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22277 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22278 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22279 # trailing colons and then remove the whole line if VPATH becomes empty
22280 # (actually we leave an empty line to preserve line numbers).
22281 if test "x$srcdir" = x.
; then
22282 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22283 s/:*\$(srcdir):*/:/;
22284 s/:*\${srcdir}:*/:/;
22286 s/^\([^=]*=[ ]*\):*/\1/;
22292 DEFS
=-DHAVE_CONFIG_H
22296 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22297 # 1. Remove the extension, and $U if already installed.
22298 ac_i
=`echo "$ac_i" |
22299 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22301 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22302 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22304 LIBOBJS
=$ac_libobjs
22306 LTLIBOBJS
=$ac_ltlibobjs
22310 : ${CONFIG_STATUS=./config.status}
22311 ac_clean_files_save
=$ac_clean_files
22312 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22313 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22314 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22315 cat >$CONFIG_STATUS <<_ACEOF
22317 # Generated by $as_me.
22318 # Run this file to recreate the current configuration.
22319 # Compiler output produced by configure, useful for debugging
22320 # configure, is in config.log if it exists.
22323 ac_cs_recheck=false
22325 SHELL=\${CONFIG_SHELL-$SHELL}
22328 cat >>$CONFIG_STATUS <<\_ACEOF
22329 ## --------------------- ##
22330 ## M4sh Initialization. ##
22331 ## --------------------- ##
22333 # Be Bourne compatible
22334 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22337 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22338 # is contrary to our usage. Disable this feature.
22339 alias -g '${1+"$@"}'='"$@"'
22340 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22343 DUALCASE
=1; export DUALCASE
# for MKS sh
22345 # Support unset when possible.
22346 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22353 # Work around bugs in pre-3.0 UWIN ksh.
22354 $as_unset ENV MAIL MAILPATH
22361 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22362 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22363 LC_TELEPHONE LC_TIME
22365 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22366 eval $as_var=C
; export $as_var
22372 # Required to use basename.
22373 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22379 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22380 as_basename
=basename
22386 # Name of the executable.
22387 as_me
=`$as_basename "$0" ||
22388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22389 X"$0" : 'X\(//\)$' \| \
22390 X"$0" : 'X\(/\)$' \| \
22391 . : '\(.\)' 2>/dev/null ||
22393 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22394 /^X\/\(\/\/\)$/{ s//\1/; q; }
22395 /^X\/\(\/\).*/{ s//\1/; q; }
22399 # PATH needs CR, and LINENO needs CR and PATH.
22400 # Avoid depending upon Character Ranges.
22401 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22402 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22403 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22404 as_cr_digits
='0123456789'
22405 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22407 # The user is always right.
22408 if test "${PATH_SEPARATOR+set}" != set; then
22409 echo "#! /bin/sh" >conf$$.sh
22410 echo "exit 0" >>conf$$.sh
22412 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22421 as_lineno_1
=$LINENO
22422 as_lineno_2
=$LINENO
22423 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22424 test "x$as_lineno_1" != "x$as_lineno_2" &&
22425 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22426 # Find who we are. Look in the path if we contain no path at all
22429 *[\\/]* ) as_myself
=$0 ;;
22430 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22431 for as_dir
in $PATH
22434 test -z "$as_dir" && as_dir
=.
22435 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22440 # We did not find ourselves, most probably we were run as `sh COMMAND'
22441 # in which case we are not to be found in the path.
22442 if test "x$as_myself" = x
; then
22445 if test ! -f "$as_myself"; then
22446 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22447 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22448 { (exit 1); exit 1; }; }
22450 case $CONFIG_SHELL in
22452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22453 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22456 test -z "$as_dir" && as_dir
=.
22457 for as_base
in sh bash ksh sh5
; do
22460 if ("$as_dir/$as_base" -c '
22461 as_lineno_1=$LINENO
22462 as_lineno_2=$LINENO
22463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22464 test "x$as_lineno_1" != "x$as_lineno_2" &&
22465 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22466 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22467 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22468 CONFIG_SHELL
=$as_dir/$as_base
22469 export CONFIG_SHELL
22470 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22479 # uniformly replaced by the line number. The first 'sed' inserts a
22480 # line-number line before each line; the second 'sed' does the real
22481 # work. The second script uses 'N' to pair each line-number line
22482 # with the numbered line, and appends trailing '-' during
22483 # substitution so that $LINENO is not a special case at line end.
22484 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22485 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22486 sed '=' <$as_myself |
22491 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22494 s,^['$as_cr_digits']*\n,,
22495 ' >$as_me.lineno
&&
22496 chmod +x
$as_me.lineno ||
22497 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22498 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22499 { (exit 1); exit 1; }; }
22501 # Don't try to exec as it changes $[0], causing all sort of problems
22502 # (the dirname of $[0] is not the place where we might find the
22503 # original and so on. Autoconf is especially sensible to this).
22505 # Exit status is that of the last command.
22510 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22511 *c
*,-n*) ECHO_N
= ECHO_C
='
22513 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22514 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22517 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22523 rm -f conf$$ conf$$.exe conf$$.
file
22525 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22526 # We could just check for DJGPP; but this test a) works b) is more generic
22527 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22528 if test -f conf$$.exe
; then
22529 # Don't use ln at all; we don't have any links
22534 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22539 rm -f conf$$ conf$$.exe conf$$.
file
22541 if mkdir
-p .
2>/dev
/null
; then
22544 test -d .
/-p && rmdir .
/-p
22548 as_executable_p
="test -f"
22550 # Sed expression to map a string onto a valid CPP name.
22551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22553 # Sed expression to map a string onto a valid variable name.
22554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22558 # We need space, tab and new line, in precisely that order.
22568 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22569 # report actual input values of CONFIG_FILES etc. instead of their
22570 # values after options handling. Logging --version etc. is OK.
22574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22575 ## Running $as_me. ##
22580 This file was extended by python $as_me 2.5, which was
22581 generated by GNU Autoconf 2.59. Invocation command line was
22583 CONFIG_FILES = $CONFIG_FILES
22584 CONFIG_HEADERS = $CONFIG_HEADERS
22585 CONFIG_LINKS = $CONFIG_LINKS
22586 CONFIG_COMMANDS = $CONFIG_COMMANDS
22590 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22594 # Files that config.status was made for.
22595 if test -n "$ac_config_files"; then
22596 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22599 if test -n "$ac_config_headers"; then
22600 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22603 if test -n "$ac_config_links"; then
22604 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22607 if test -n "$ac_config_commands"; then
22608 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22611 cat >>$CONFIG_STATUS <<\_ACEOF
22614 \`$as_me' instantiates files from templates according to the
22615 current configuration.
22617 Usage: $0 [OPTIONS] [FILE]...
22619 -h, --help print this help, then exit
22620 -V, --version print version number, then exit
22621 -q, --quiet do not print progress messages
22622 -d, --debug don't remove temporary files
22623 --recheck update $as_me by reconfiguring in the same conditions
22624 --file=FILE[:TEMPLATE]
22625 instantiate the configuration file FILE
22626 --header=FILE[:TEMPLATE]
22627 instantiate the configuration header FILE
22629 Configuration files:
22632 Configuration headers:
22635 Report bugs to <bug-autoconf@gnu.org>."
22638 cat >>$CONFIG_STATUS <<_ACEOF
22640 python config.status 2.5
22641 configured by $0, generated by GNU Autoconf 2.59,
22642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22644 Copyright (C) 2003 Free Software Foundation, Inc.
22645 This config.status script is free software; the Free Software Foundation
22646 gives unlimited permission to copy, distribute and modify it."
22651 cat >>$CONFIG_STATUS <<\_ACEOF
22652 # If no file are specified by the user, then we need to provide default
22653 # value. By we need to know if files were specified by the user.
22659 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22660 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22668 *) # This is not an option, so the user has probably given explicit
22671 ac_need_defaults
=false
;;
22675 # Handling of the options.
22677 cat >>$CONFIG_STATUS <<\_ACEOF
22678 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22680 --version |
--vers* |
-V )
22681 echo "$ac_cs_version"; exit 0 ;;
22683 # Conflict between --help and --header
22684 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22685 Try \`$0 --help' for more information." >&5
22686 echo "$as_me: error: ambiguous option: $1
22687 Try \`$0 --help' for more information." >&2;}
22688 { (exit 1); exit 1; }; };;
22689 --help |
--hel |
-h )
22690 echo "$ac_cs_usage"; exit 0 ;;
22691 --debug |
--d* |
-d )
22693 --file |
--fil |
--fi |
--f )
22695 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22696 ac_need_defaults
=false
;;
22697 --header |
--heade |
--head |
--hea )
22699 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22700 ac_need_defaults
=false
;;
22701 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22702 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22705 # This is an error.
22706 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22707 Try \`$0 --help' for more information." >&5
22708 echo "$as_me: error: unrecognized option: $1
22709 Try \`$0 --help' for more information." >&2;}
22710 { (exit 1); exit 1; }; } ;;
22712 *) ac_config_targets
="$ac_config_targets $1" ;;
22718 ac_configure_extra_args
=
22720 if $ac_cs_silent; then
22722 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22726 cat >>$CONFIG_STATUS <<_ACEOF
22727 if \$ac_cs_recheck; then
22728 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22729 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22738 cat >>$CONFIG_STATUS <<\_ACEOF
22739 for ac_config_target
in $ac_config_targets
22741 case "$ac_config_target" in
22742 # Handling of arguments.
22743 "Mac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
22744 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22745 "Mac/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22746 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22747 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22748 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22749 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22750 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22751 { (exit 1); exit 1; }; };;
22755 # If the user did not use the arguments to specify the items to instantiate,
22756 # then the envvar interface is used. Set only those that are not.
22757 # We use the long form for the default assignment because of an extremely
22758 # bizarre bug on SunOS 4.1.3.
22759 if $ac_need_defaults; then
22760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22764 # Have a temporary directory for convenience. Make it in the build tree
22765 # simply because there is no reason to put it here, and in addition,
22766 # creating and moving files from /tmp can sometimes cause problems.
22767 # Create a temporary directory, and hook for its removal unless debugging.
22770 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22771 trap '{ (exit 1); exit 1; }' 1 2 13 15
22774 # Create a (secure) tmp directory for tmp files.
22777 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22778 test -n "$tmp" && test -d "$tmp"
22781 tmp
=.
/confstat$$
-$RANDOM
22782 (umask 077 && mkdir
$tmp)
22785 echo "$me: cannot create a temporary directory in ." >&2
22786 { (exit 1); exit 1; }
22791 cat >>$CONFIG_STATUS <<_ACEOF
22794 # CONFIG_FILES section.
22797 # No need to generate the scripts if there are no CONFIG_FILES.
22798 # This happens for instance when ./config.status config.h
22799 if test -n "\$CONFIG_FILES"; then
22800 # Protect against being on the right side of a sed subst in config.status.
22801 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22802 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22803 s,@SHELL@,$SHELL,;t t
22804 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22805 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22806 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22807 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22808 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22809 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22810 s,@exec_prefix@,$exec_prefix,;t t
22811 s,@prefix@,$prefix,;t t
22812 s,@program_transform_name@,$program_transform_name,;t t
22813 s,@bindir@,$bindir,;t t
22814 s,@sbindir@,$sbindir,;t t
22815 s,@libexecdir@,$libexecdir,;t t
22816 s,@datadir@,$datadir,;t t
22817 s,@sysconfdir@,$sysconfdir,;t t
22818 s,@sharedstatedir@,$sharedstatedir,;t t
22819 s,@localstatedir@,$localstatedir,;t t
22820 s,@libdir@,$libdir,;t t
22821 s,@includedir@,$includedir,;t t
22822 s,@oldincludedir@,$oldincludedir,;t t
22823 s,@infodir@,$infodir,;t t
22824 s,@mandir@,$mandir,;t t
22825 s,@build_alias@,$build_alias,;t t
22826 s,@host_alias@,$host_alias,;t t
22827 s,@target_alias@,$target_alias,;t t
22828 s,@DEFS@,$DEFS,;t t
22829 s,@ECHO_C@,$ECHO_C,;t t
22830 s,@ECHO_N@,$ECHO_N,;t t
22831 s,@ECHO_T@,$ECHO_T,;t t
22832 s,@LIBS@,$LIBS,;t t
22833 s,@VERSION@,$VERSION,;t t
22834 s,@SOVERSION@,$SOVERSION,;t t
22835 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22836 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22837 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22838 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22839 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22840 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22841 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22842 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22843 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22844 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22845 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22846 s,@MACHDEP@,$MACHDEP,;t t
22847 s,@SGI_ABI@,$SGI_ABI,;t t
22848 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22849 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22850 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22851 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22853 s,@CFLAGS@,$CFLAGS,;t t
22854 s,@LDFLAGS@,$LDFLAGS,;t t
22855 s,@CPPFLAGS@,$CPPFLAGS,;t t
22856 s,@ac_ct_CC@,$ac_ct_CC,;t t
22857 s,@EXEEXT@,$EXEEXT,;t t
22858 s,@OBJEXT@,$OBJEXT,;t t
22860 s,@MAINCC@,$MAINCC,;t t
22862 s,@EGREP@,$EGREP,;t t
22863 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22864 s,@LIBRARY@,$LIBRARY,;t t
22865 s,@LDLIBRARY@,$LDLIBRARY,;t t
22866 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22867 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22868 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22869 s,@INSTSONAME@,$INSTSONAME,;t t
22870 s,@RUNSHARED@,$RUNSHARED,;t t
22871 s,@LINKCC@,$LINKCC,;t t
22872 s,@RANLIB@,$RANLIB,;t t
22873 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22875 s,@SVNVERSION@,$SVNVERSION,;t t
22876 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22877 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22878 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22881 s,@BASECFLAGS@,$BASECFLAGS,;t t
22882 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22883 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22885 s,@LDSHARED@,$LDSHARED,;t t
22886 s,@BLDSHARED@,$BLDSHARED,;t t
22887 s,@CCSHARED@,$CCSHARED,;t t
22888 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22889 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22890 s,@SHLIBS@,$SHLIBS,;t t
22891 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22892 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22893 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22894 s,@LDLAST@,$LDLAST,;t t
22895 s,@THREADOBJ@,$THREADOBJ,;t t
22896 s,@DLINCLDIR@,$DLINCLDIR,;t t
22897 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22898 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22899 s,@TRUE@,$TRUE,;t t
22900 s,@LIBOBJS@,$LIBOBJS,;t t
22901 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22902 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22903 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22904 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22905 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22906 s,@LIBM@,$LIBM,;t t
22907 s,@LIBC@,$LIBC,;t t
22908 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22909 s,@THREADHEADERS@,$THREADHEADERS,;t t
22910 s,@SRCDIRS@,$SRCDIRS,;t t
22911 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22917 # Split the substitutions into bite-sized pieces for seds with
22918 # small command number limits, like on Digital OSF/1 and HP-UX.
22919 ac_max_sed_lines
=48
22920 ac_sed_frag
=1 # Number of current file.
22921 ac_beg
=1 # First line for current file.
22922 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22925 while $ac_more_lines; do
22926 if test $ac_beg -gt 1; then
22927 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22929 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22931 if test ! -s $tmp/subs.frag
; then
22932 ac_more_lines
=false
22934 # The purpose of the label and of the branching condition is to
22935 # speed up the sed processing (if there are no `@' at all, there
22936 # is no need to browse any of the substitutions).
22937 # These are the two extra sed commands mentioned above.
22939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22940 if test -z "$ac_sed_cmds"; then
22941 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22943 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22945 ac_sed_frag
=`expr $ac_sed_frag + 1`
22947 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22950 if test -z "$ac_sed_cmds"; then
22953 fi # test -n "$CONFIG_FILES"
22956 cat >>$CONFIG_STATUS <<\_ACEOF
22957 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22960 - |
*:- |
*:-:* ) # input from stdin
22962 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22963 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22964 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22965 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22966 * ) ac_file_in
=$ac_file.
in ;;
22969 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22970 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22972 X"$ac_file" : 'X\(//\)[^/]' \| \
22973 X"$ac_file" : 'X\(//\)$' \| \
22974 X"$ac_file" : 'X\(/\)' \| \
22975 . : '\(.\)' 2>/dev/null ||
22977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22979 /^X\(\/\/\)$/{ s//\1/; q; }
22980 /^X\(\/\).*/{ s//\1/; q; }
22982 { if $as_mkdir_p; then
22987 while test ! -d "$as_dir"; do
22988 as_dirs
="$as_dir $as_dirs"
22989 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22991 X"$as_dir" : 'X\(//\)[^/]' \| \
22992 X"$as_dir" : 'X\(//\)$' \| \
22993 X"$as_dir" : 'X\(/\)' \| \
22994 . : '\(.\)' 2>/dev/null ||
22996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22998 /^X\(\/\/\)$/{ s//\1/; q; }
22999 /^X\(\/\).*/{ s//\1/; q; }
23002 test ! -n "$as_dirs" || mkdir
$as_dirs
23003 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23004 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23005 { (exit 1); exit 1; }; }; }
23009 if test "$ac_dir" != .
; then
23010 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23011 # A "../" for each directory in $ac_dir_suffix.
23012 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23014 ac_dir_suffix
= ac_top_builddir
=
23018 .
) # No --srcdir option. We are building in place.
23020 if test -z "$ac_top_builddir"; then
23023 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23025 [\\/]* | ?
:[\\/]* ) # Absolute path.
23026 ac_srcdir
=$srcdir$ac_dir_suffix;
23027 ac_top_srcdir
=$srcdir ;;
23028 *) # Relative path.
23029 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23030 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23033 # Do not use `cd foo && pwd` to compute absolute paths, because
23034 # the directories may not exist.
23036 .
) ac_abs_builddir
="$ac_dir";;
23039 .
) ac_abs_builddir
=`pwd`;;
23040 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23041 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23044 case $ac_abs_builddir in
23045 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23047 case ${ac_top_builddir}.
in
23048 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23049 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23050 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23053 case $ac_abs_builddir in
23054 .
) ac_abs_srcdir
=$ac_srcdir;;
23057 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23058 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23059 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23062 case $ac_abs_builddir in
23063 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23065 case $ac_top_srcdir in
23066 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23067 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23068 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23074 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23075 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23078 if test x
"$ac_file" != x-
; then
23079 { echo "$as_me:$LINENO: creating $ac_file" >&5
23080 echo "$as_me: creating $ac_file" >&6;}
23083 # Let's still pretend it is `configure' which instantiates (i.e., don't
23084 # use $as_me), people would be surprised to read:
23085 # /* config.h. Generated by config.status. */
23086 if test x
"$ac_file" = x-
; then
23089 configure_input
="$ac_file. "
23091 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23092 sed 's,.*/,,'` by configure."
23094 # First look for the input files in the build tree, otherwise in the
23096 ac_file_inputs
=`IFS=:
23097 for f in $ac_file_in; do
23099 -) echo $tmp/stdin ;;
23101 # Absolute (can't be DOS-style, as IFS=:)
23102 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23103 echo "$as_me: error: cannot find input file: $f" >&2;}
23104 { (exit 1); exit 1; }; }
23107 if test -f "$f"; then
23110 elif test -f "$srcdir/$f"; then
23115 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23116 echo "$as_me: error: cannot find input file: $f" >&2;}
23117 { (exit 1); exit 1; }; }
23120 done` ||
{ (exit 1); exit 1; }
23122 cat >>$CONFIG_STATUS <<_ACEOF
23126 cat >>$CONFIG_STATUS <<\_ACEOF
23128 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23129 s
,@configure_input@
,$configure_input,;t t
23130 s
,@srcdir@
,$ac_srcdir,;t t
23131 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23132 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23133 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23134 s
,@builddir@
,$ac_builddir,;t t
23135 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23136 s
,@top_builddir@
,$ac_top_builddir,;t t
23137 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23138 s
,@INSTALL@
,$ac_INSTALL,;t t
23139 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23141 if test x"$ac_file" != x-; then
23142 mv $tmp/out $ac_file
23150 cat >>$CONFIG_STATUS <<\_ACEOF
23153 # CONFIG_HEADER section.
23156 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23157 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23159 # ac_d sets the value in "#define NAME VALUE" lines.
23160 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23161 ac_dB
='[ ].*$,\1#\2'
23164 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23165 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23166 ac_uB
='$,\1#\2define\3'
23170 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23173 - |
*:- |
*:-:* ) # input from stdin
23175 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23176 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23177 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23178 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23179 * ) ac_file_in
=$ac_file.
in ;;
23182 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23183 echo "$as_me: creating $ac_file" >&6;}
23185 # First look for the input files in the build tree, otherwise in the
23187 ac_file_inputs
=`IFS=:
23188 for f in $ac_file_in; do
23190 -) echo $tmp/stdin ;;
23192 # Absolute (can't be DOS-style, as IFS=:)
23193 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23194 echo "$as_me: error: cannot find input file: $f" >&2;}
23195 { (exit 1); exit 1; }; }
23196 # Do quote $f, to prevent DOS paths from being IFS'd.
23199 if test -f "$f"; then
23202 elif test -f "$srcdir/$f"; then
23207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23208 echo "$as_me: error: cannot find input file: $f" >&2;}
23209 { (exit 1); exit 1; }; }
23212 done` ||
{ (exit 1); exit 1; }
23213 # Remove the trailing spaces.
23214 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23218 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23219 # `conftest.undefs', that substitutes the proper values into
23220 # config.h.in to produce config.h. The first handles `#define'
23221 # templates, and the second `#undef' templates.
23222 # And first: Protect against being on the right side of a sed subst in
23223 # config.status. Protect against being in an unquoted here document
23224 # in config.status.
23225 rm -f conftest.defines conftest.undefs
23226 # Using a here document instead of a string reduces the quoting nightmare.
23227 # Putting comments in sed scripts is not portable.
23229 # `end' is used to avoid that the second main sed command (meant for
23230 # 0-ary CPP macros) applies to n-ary macro definitions.
23231 # See the Autoconf documentation for `clear'.
23232 cat >confdef2sed.
sed <<\_ACEOF
23237 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23239 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23242 # If some macros were called several times there might be several times
23243 # the same #defines, which is useless. Nevertheless, we may not want to
23244 # sort them, since we want the *last* AC-DEFINE to be honored.
23245 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23246 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23247 rm -f confdef2sed.sed
23249 # This sed command replaces #undef with comments. This is necessary, for
23250 # example, in the case of _POSIX_SOURCE, which is predefined and required
23251 # on some systems where configure will not decide to define it.
23252 cat >>conftest.undefs <<\_ACEOF
23253 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23256 # Break up conftest.defines because some shells have a limit on the size
23257 # of here documents, and old seds have small limits too (100 cmds).
23258 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23259 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23260 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23261 echo ' :' >>$CONFIG_STATUS
23262 rm -f conftest.tail
23263 while grep . conftest.defines >/dev/null
23265 # Write a limited-size here document to $tmp/defines.sed.
23266 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23267 # Speed up: don't consider the non `#define' lines.
23268 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23269 # Work around the forget-to-reset-the-flag bug.
23270 echo 't clr' >>$CONFIG_STATUS
23271 echo ': clr' >>$CONFIG_STATUS
23272 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23274 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23276 mv $tmp/out $tmp/in
23278 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23279 rm -f conftest.defines
23280 mv conftest.
tail conftest.defines
23282 rm -f conftest.defines
23283 echo ' fi # grep' >>$CONFIG_STATUS
23284 echo >>$CONFIG_STATUS
23286 # Break up conftest.undefs because some shells have a limit on the size
23287 # of here documents, and old seds have small limits too (100 cmds).
23288 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23289 rm -f conftest.
tail
23290 while grep . conftest.undefs
>/dev
/null
23292 # Write a limited-size here document to $tmp/undefs.sed.
23293 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23294 # Speed up: don't consider the non
`#undef'
23295 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23296 # Work around the forget-to-reset-the-flag bug.
23297 echo 't clr' >>$CONFIG_STATUS
23298 echo ': clr' >>$CONFIG_STATUS
23299 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23301 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23303 mv $tmp/out $tmp/in
23305 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23306 rm -f conftest.undefs
23307 mv conftest.tail conftest.undefs
23309 rm -f conftest.undefs
23311 cat >>$CONFIG_STATUS <<\_ACEOF
23312 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23313 # use $as_me), people would be surprised to read:
23314 # /* config.h. Generated by config.status. */
23315 if test x
"$ac_file" = x-
; then
23316 echo "/* Generated by configure. */" >$tmp/config.h
23318 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23320 cat $tmp/in >>$tmp/config.h
23322 if test x
"$ac_file" != x-
; then
23323 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23324 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23325 echo "$as_me: $ac_file is unchanged" >&6;}
23327 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23329 X"$ac_file" : 'X\(//\)[^/]' \| \
23330 X"$ac_file" : 'X\(//\)$' \| \
23331 X"$ac_file" : 'X\(/\)' \| \
23332 . : '\(.\)' 2>/dev/null ||
23334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23336 /^X\(\/\/\)$/{ s//\1/; q; }
23337 /^X\(\/\).*/{ s//\1/; q; }
23339 { if $as_mkdir_p; then
23344 while test ! -d "$as_dir"; do
23345 as_dirs
="$as_dir $as_dirs"
23346 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23348 X"$as_dir" : 'X\(//\)[^/]' \| \
23349 X"$as_dir" : 'X\(//\)$' \| \
23350 X"$as_dir" : 'X\(/\)' \| \
23351 . : '\(.\)' 2>/dev/null ||
23353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23355 /^X\(\/\/\)$/{ s//\1/; q; }
23356 /^X\(\/\).*/{ s//\1/; q; }
23359 test ! -n "$as_dirs" || mkdir
$as_dirs
23360 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23361 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23362 { (exit 1); exit 1; }; }; }
23365 mv $tmp/config.h
$ac_file
23369 rm -f $tmp/config.h
23374 cat >>$CONFIG_STATUS <<\_ACEOF
23376 { (exit 0); exit 0; }
23378 chmod +x
$CONFIG_STATUS
23379 ac_clean_files
=$ac_clean_files_save
23382 # configure is writing to config.log, and then calls config.status.
23383 # config.status does its own redirection, appending to config.log.
23384 # Unfortunately, on DOS this fails, as config.log is still kept open
23385 # by configure, so config.status won't be able to write to it; its
23386 # output is simply discarded. So we exec the FD to /dev/null,
23387 # effectively closing config.log, so it can be properly (re)opened and
23388 # appended to by config.status. When coming back to configure, we
23389 # need to make the FD available again.
23390 if test "$no_create" != yes; then
23392 ac_config_status_args
=
23393 test "$silent" = yes &&
23394 ac_config_status_args
="$ac_config_status_args --quiet"
23396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23399 # would make configure fail if this is the last instruction.
23400 $ac_cs_success ||
{ (exit 1); exit 1; }
23404 echo "creating Modules/Setup"
23405 if test ! -f Modules
/Setup
23407 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23410 echo "creating Modules/Setup.local"
23411 if test ! -f Modules
/Setup.
local
23413 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23416 echo "creating Makefile"
23417 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23418 -s Modules Modules
/Setup.config \
23419 Modules
/Setup.
local Modules
/Setup
23420 mv config.c Modules