2 # From configure.in Revision: 52457 .
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] | OpenBSD
/4.
[0])
1557 define_xopen_source
=no
;;
1558 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1559 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1561 NetBSD
/1.5 | NetBSD
/1.5.
* | NetBSD
/1.6 | NetBSD
/1.6.
* | NetBSD
/1.6A-S
)
1562 define_xopen_source
=no
;;
1563 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1564 # of union __?sigval. Reported by Stuart Bishop.
1566 define_xopen_source
=no
;;
1567 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1568 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1569 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1570 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1571 define_xopen_source
=no
;;
1572 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1573 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1575 define_xopen_source
=no
;;
1576 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1577 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1578 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1579 # This should hopefully be fixed in FreeBSD 4.9
1580 FreeBSD
/4.8* | Darwin
/6* )
1581 define_xopen_source
=no
;;
1582 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1583 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1584 # or has another value. By not (re)defining it, the defaults come in place.
1586 define_xopen_source
=no
;;
1588 if test `uname -r` -eq 1; then
1589 define_xopen_source
=no
1592 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1593 # disables platform specific features beyond repair.
1594 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1595 # has no effect, don't bother defining them
1597 define_xopen_source
=no
1602 if test $define_xopen_source = yes
1604 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1605 # defined precisely as g++ defines it
1606 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1608 case $ac_sys_system/$ac_sys_release in
1609 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1611 cat >>confdefs.h
<<\_ACEOF
1612 #define _XOPEN_SOURCE 500
1618 cat >>confdefs.h
<<\_ACEOF
1619 #define _XOPEN_SOURCE 600
1625 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1626 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1627 # several APIs are not declared. Since this is also needed in some
1628 # cases for HP-UX, we define it globally.
1629 # except for Solaris 10, where it must not be defined,
1630 # as it implies XPG4.2
1631 case $ac_sys_system/$ac_sys_release in
1636 cat >>confdefs.h
<<\_ACEOF
1637 #define _XOPEN_SOURCE_EXTENDED 1
1644 cat >>confdefs.h
<<\_ACEOF
1645 #define _POSIX_C_SOURCE 200112L
1652 # SGI compilers allow the specification of the both the ABI and the
1653 # ISA on the command line. Depending on the values of these switches,
1654 # different and often incompatable code will be generated.
1656 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1657 # thus supply support for various ABI/ISA combinations. The MACHDEP
1658 # variable is also adjusted.
1661 if test ! -z "$SGI_ABI"
1664 LDFLAGS
="$SGI_ABI $LDFLAGS"
1665 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1667 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1668 echo "${ECHO_T}$MACHDEP" >&6
1670 # And add extra plat-mac for darwin
1673 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1674 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1675 if test -z "$EXTRAPLATDIR"
1679 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1680 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1688 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1689 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1691 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1692 # it may influence the way we can build extensions, so distutils
1696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1697 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1699 # checks for alternative programs
1701 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1702 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1703 # just to get things to compile and link. Users are free to override OPT
1704 # when running configure or make. The build should not break if they do.
1705 # BASECFLAGS should generally not be messed with, however.
1707 # XXX shouldn't some/most/all of this code be merged with the stuff later
1708 # on that fiddles with OPT and BASECFLAGS?
1709 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1710 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1712 # Check whether --with-gcc or --without-gcc was given.
1713 if test "${with_gcc+set}" = set; then
1722 without_gcc
=$withval;;
1726 case $ac_sys_system in
1730 case $BE_HOST_CPU in
1734 BASECFLAGS
="$BASECFLAGS -export pragma"
1736 LDFLAGS
="$LDFLAGS -nodup"
1744 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1745 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1746 { (exit 1); exit 1; }; }
1749 AR
="\$(srcdir)/Modules/ar_beos"
1758 echo "$as_me:$LINENO: result: $without_gcc" >&5
1759 echo "${ECHO_T}$without_gcc" >&6
1761 # If the user switches compilers, we can't believe the cache
1762 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1764 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1765 (it is also a good idea to do 'make clean' before compiling)" >&5
1766 echo "$as_me: error: cached CC is different -- throw away $cache_file
1767 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1768 { (exit 1); exit 1; }; }
1772 ac_cpp
='$CPP $CPPFLAGS'
1773 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC
="$CC" # Let the user override the test.
1787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1791 test -z "$as_dir" && as_dir
=.
1792 for ac_exec_ext
in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc
; ac_word
=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir
=.
1830 for ac_exec_ext
in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC
="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC
="$CC" # Let the user override the test.
1867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir
=.
1872 for ac_exec_ext
in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc
; ac_word
=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir
=.
1910 for ac_exec_ext
in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC
="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc
; ac_word
=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir
=.
1953 for ac_exec_ext
in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected
=yes
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy
$ac_cv_prog_CC
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1975 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC
="$CC" # Let the user override the test.
2004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir
=.
2009 for ac_exec_ext
in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2032 if test -z "$CC"; then
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy
$ac_prog; ac_word
=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir
=.
2051 for ac_exec_ext
in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC
="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089 ac_compiler
=`set X $ac_compile; echo $2`
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2106 cat >conftest.
$ac_ext <<_ACEOF
2109 cat confdefs.h
>>conftest.
$ac_ext
2110 cat >>conftest.
$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2121 ac_clean_files_save
=$ac_clean_files
2122 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2141 # b.out is created by i960 compilers.
2142 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2144 test -f "$ac_file" ||
continue
2146 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2149 # This is the source file.
2152 # We found the default executable, but exeext='' is most
2156 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.
$ac_ext >&5
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2177 ac_exeext
=$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_file" >&5
2179 echo "${ECHO_T}$ac_file" >&6
2181 # Check the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try
='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2196 if test "$cross_compiling" = maybe
; then
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2213 ac_clean_files
=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2232 for ac_file
in conftest.exe conftest conftest.
*; do
2233 test -f "$ac_file" ||
continue
2235 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2236 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest
$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252 echo "${ECHO_T}$ac_cv_exeext" >&6
2254 rm -f conftest.
$ac_ext
2255 EXEEXT
=$ac_cv_exeext
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.
$ac_ext <<_ACEOF
2265 cat confdefs.h
>>conftest.
$ac_ext
2266 cat >>conftest.
$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2285 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2286 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT
=$ac_cv_objext
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.
$ac_ext <<_ACEOF
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2330 rm -f conftest.
$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2334 grep -v '^ *+' conftest.er1
>conftest.err
2336 cat conftest.err
>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try
='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try
='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.
$ac_ext >&5
2359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2360 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS
=${CFLAGS+set}
2367 ac_save_CFLAGS
=$CFLAGS
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2377 cat confdefs.h
>>conftest.
$ac_ext
2378 cat >>conftest.
$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.
$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2393 grep -v '^ *+' conftest.er1
>conftest.err
2395 cat conftest.err
>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try
='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try
='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.
$ac_ext >&5
2418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS
=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2431 if test "$GCC" = yes; then
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_cv_prog_cc_stdc
=no
2444 cat >conftest.
$ac_ext <<_ACEOF
2447 cat confdefs.h
>>conftest.
$ac_ext
2448 cat >>conftest.
$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2468 s = g (p, va_arg (v,int));
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC
="$ac_save_CC $ac_arg"
2506 rm -f conftest.
$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2510 grep -v '^ *+' conftest.er1
>conftest.err
2512 cat conftest.err
>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try
='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try
='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc
=$ac_arg
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.
$ac_ext >&5
2535 rm -f conftest.err conftest.
$ac_objext
2537 rm -f conftest.
$ac_ext conftest.
$ac_objext
2542 case "x$ac_cv_prog_cc_stdc" in
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.
$ac_ext <<_ACEOF
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try
='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try
='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration
in \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2591 cat >conftest.
$ac_ext <<_ACEOF
2594 cat confdefs.h
>>conftest.
$ac_ext
2595 cat >>conftest.
$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2607 rm -f conftest.
$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try
='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try
='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2637 cat >conftest.
$ac_ext <<_ACEOF
2640 cat confdefs.h
>>conftest.
$ac_ext
2641 cat >>conftest.
$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.
$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2656 grep -v '^ *+' conftest.er1
>conftest.err
2658 cat conftest.err
>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try
='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try
='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.
$ac_ext >&5
2680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2696 ac_cpp
='$CPP $CPPFLAGS'
2697 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2704 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2705 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2707 # Check whether --with-cxx_main or --without-cxx_main was given.
2708 if test "${with_cxx_main+set}" = set; then
2709 withval
="$with_cxx_main"
2713 no
) with_cxx_main
=no
2715 yes) with_cxx_main
=yes
2717 *) with_cxx_main
=yes
2730 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2731 echo "${ECHO_T}$with_cxx_main" >&6
2737 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2738 set dummy g
++; ac_word
=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_path_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2750 for as_dir
in notfound
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2769 if test -n "$CXX"; then
2770 echo "$as_me:$LINENO: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 cc
) # Extract the first word of "c++", so it can be a program name with args.
2778 set dummy c
++; ac_word
=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_path_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2790 for as_dir
in notfound
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2809 if test -n "$CXX"; then
2810 echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2818 if test "$CXX" = "notfound"
2825 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy
$ac_prog; ac_word
=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX
="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CXX"; then
2855 echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CXX" && break
2864 test -n "$CXX" || CXX
="notfound"
2866 if test "$CXX" = "notfound"
2871 if test "$preset_cxx" != "$CXX"
2873 { echo "$as_me:$LINENO: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2878 echo "$as_me: WARNING:
2880 By default, distutils will build C++ extension modules with \"$CXX\".
2881 If this is not intended, then set CXX on the configure command line.
2886 # checks for UNIX variants that set C preprocessor variables
2889 ac_cpp
='$CPP $CPPFLAGS'
2890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 # Double quotes because CPP needs to be expanded
2904 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2907 for ac_c_preproc_warn_flag
in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.
$ac_ext <<_ACEOF
2918 cat confdefs.h
>>conftest.
$ac_ext
2919 cat >>conftest.
$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2922 # include <limits.h>
2924 # include <assert.h>
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev
/null
; then
2936 if test -s conftest.err
; then
2937 ac_cpp_err
=$ac_c_preproc_warn_flag
2938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2945 if test -z "$ac_cpp_err"; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2951 # Broken: fails on valid input.
2954 rm -f conftest.err conftest.
$ac_ext
2956 # OK, works on sane cases. Now check whether non-existent headers
2957 # can be detected and how.
2958 cat >conftest.
$ac_ext <<_ACEOF
2961 cat confdefs.h
>>conftest.
$ac_ext
2962 cat >>conftest.
$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1
>conftest.err
2971 cat conftest.err
>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev
/null
; then
2974 if test -s conftest.err
; then
2975 ac_cpp_err
=$ac_c_preproc_warn_flag
2976 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.
$ac_ext >&5
2990 # Passes both tests.
2994 rm -f conftest.err conftest.
$ac_ext
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.
$ac_ext
2999 if $ac_preproc_ok; then
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3014 for ac_c_preproc_warn_flag
in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.
$ac_ext <<_ACEOF
3025 cat confdefs.h
>>conftest.
$ac_ext
3026 cat >>conftest.
$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3029 # include <limits.h>
3031 # include <assert.h>
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3038 grep -v '^ *+' conftest.er1
>conftest.err
3040 cat conftest.err
>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev
/null
; then
3043 if test -s conftest.err
; then
3044 ac_cpp_err
=$ac_c_preproc_warn_flag
3045 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3052 if test -z "$ac_cpp_err"; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.
$ac_ext >&5
3058 # Broken: fails on valid input.
3061 rm -f conftest.err conftest.
$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.
$ac_ext <<_ACEOF
3068 cat confdefs.h
>>conftest.
$ac_ext
3069 cat >>conftest.
$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1
>conftest.err
3078 cat conftest.err
>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev
/null
; then
3081 if test -s conftest.err
; then
3082 ac_cpp_err
=$ac_c_preproc_warn_flag
3083 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.
$ac_ext >&5
3097 # Passes both tests.
3101 rm -f conftest.err conftest.
$ac_ext
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.
$ac_ext
3106 if $ac_preproc_ok; then
3109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3117 ac_cpp
='$CPP $CPPFLAGS'
3118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3129 then ac_cv_prog_egrep
='grep -E'
3130 else ac_cv_prog_egrep
='egrep'
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP
=$ac_cv_prog_egrep
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.
$ac_ext <<_ACEOF
3144 cat confdefs.h
>>conftest.
$ac_ext
3145 cat >>conftest.
$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "yes" >/dev
/null
2>&1; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 cat >>confdefs.h
<<\_ACEOF
3157 #define _ALL_SOURCE 1
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3168 # Check for unsupported systems
3169 case $ac_sys_system/$ac_sys_release in
3171 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3172 echo See README
for details.
3177 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3178 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3180 # Check whether --with-suffix or --without-suffix was given.
3181 if test "${with_suffix+set}" = set; then
3182 withval
="$with_suffix"
3187 *) EXEEXT
=$withval;;
3190 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3191 echo "${ECHO_T}$EXEEXT" >&6
3193 # Test whether we're running on a non-case-sensitive system, in which
3194 # case we give a warning if no ext is given
3196 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3197 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3198 if test ! -d CaseSensitiveTestDir
; then
3199 mkdir CaseSensitiveTestDir
3202 if test -d casesensitivetestdir
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3212 rmdir CaseSensitiveTestDir
3217 gcc
) CC
="$CC -D_HAVE_BSDI";;
3221 case $ac_sys_system in
3224 cc|
*/cc
) CC
="$CC -Ae";;
3228 cc
) CC
="$CC -Wl,-Bexport";;
3231 # Some functions have a prototype only with that define, e.g. confstr
3233 cat >>confdefs.h
<<\_ACEOF
3234 #define __EXTENSIONS__ 1
3242 echo "$as_me:$LINENO: checking LIBRARY" >&5
3243 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3244 if test -z "$LIBRARY"
3246 LIBRARY
='libpython$(VERSION).a'
3248 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3249 echo "${ECHO_T}$LIBRARY" >&6
3251 # LDLIBRARY is the name of the library to link against (as opposed to the
3252 # name of the library into which to insert object files). BLDLIBRARY is also
3253 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3254 # is blank as the main program is not linked directly against LDLIBRARY.
3255 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3256 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3257 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3258 # DLLLIBRARY is the shared (i.e., DLL) library.
3260 # RUNSHARED is used to run shared python without installed libraries
3262 # INSTSONAME is the name of the shared library that will be use to install
3263 # on the system - some systems like version suffix, others don't
3270 LDLIBRARY
="$LIBRARY"
3271 BLDLIBRARY
='$(LDLIBRARY)'
3272 INSTSONAME
='$(LDLIBRARY)'
3277 # LINKCC is the command that links the python executable -- default is $(CC).
3278 # If CXX is set, and if it is needed to link a main function that was
3279 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3280 # python might then depend on the C++ runtime
3281 # This is altered for AIX in order to build the export list before
3284 echo "$as_me:$LINENO: checking LINKCC" >&5
3285 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3286 if test -z "$LINKCC"
3288 LINKCC
='$(PURIFY) $(MAINCC)'
3289 case $ac_sys_system in
3292 if test $ac_sys_release -ge 5 -o \
3293 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3296 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3298 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3301 echo "$as_me:$LINENO: result: $LINKCC" >&5
3302 echo "${ECHO_T}$LINKCC" >&6
3304 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3305 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3306 # Check whether --enable-shared or --disable-shared was given.
3307 if test "${enable_shared+set}" = set; then
3308 enableval
="$enable_shared"
3312 if test -z "$enable_shared"
3314 case $ac_sys_system in
3316 enable_shared
="yes";;
3318 enable_shared
="no";;
3321 echo "$as_me:$LINENO: result: $enable_shared" >&5
3322 echo "${ECHO_T}$enable_shared" >&6
3324 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3325 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3326 # Check whether --enable-profiling or --disable-profiling was given.
3327 if test "${enable_profiling+set}" = set; then
3328 enableval
="$enable_profiling"
3331 if test "$cross_compiling" = yes; then
3332 ac_enable_profiling
="no"
3334 cat >conftest.
$ac_ext <<_ACEOF
3337 cat confdefs.h
>>conftest.
$ac_ext
3338 cat >>conftest.
$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 int main() { return 0; }
3342 rm -f conftest
$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_enable_profiling
="yes"
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3360 ac_enable_profiling
="no"
3362 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3366 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3367 echo "${ECHO_T}$ac_enable_profiling" >&6
3369 case "$ac_enable_profiling" in
3371 BASECFLAGS
="-pg $BASECFLAGS"
3372 LDFLAGS
="-pg $LDFLAGS"
3376 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3377 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3379 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3380 # library that we build, but we do not want to link against it (we
3381 # will find it with a -framework option). For this reason there is an
3382 # extra variable BLDLIBRARY against which Python and the extension
3383 # modules are linked, BLDLIBRARY. This is normally the same as
3384 # LDLIBRARY, but empty for MacOSX framework builds.
3385 if test "$enable_framework"
3387 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3388 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3391 BLDLIBRARY
='$(LDLIBRARY)'
3394 # Other platforms follow
3395 if test $enable_shared = "yes"; then
3397 cat >>confdefs.h
<<\_ACEOF
3398 #define Py_ENABLE_SHARED 1
3401 case $ac_sys_system in
3403 LDLIBRARY
='libpython$(VERSION).so'
3406 LDLIBRARY
='libpython$(VERSION).dll.a'
3407 DLLLIBRARY
='libpython$(VERSION).dll'
3410 LDLIBRARY
='libpython$(VERSION).so'
3411 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3413 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3415 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3416 LDLIBRARY
='libpython$(VERSION).so'
3417 BLDLIBRARY
='-L. -lpython$(VERSION)'
3418 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3419 case $ac_sys_system in
3421 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3424 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3429 LDLIBRARY
='libpython$(VERSION).so'
3432 LDLIBRARY
='libpython$(VERSION).sl'
3435 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3439 LDLIBRARY
='libpython$(VERSION).so'
3440 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3441 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3444 LDLIBRARY
='libpython$(VERSION).so'
3445 BLDLIBRARY
='-L. -lpython$(VERSION)'
3446 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3449 else # shared is disabled
3450 case $ac_sys_system in
3452 BLDLIBRARY
='$(LIBRARY)'
3453 LDLIBRARY
='libpython$(VERSION).dll.a'
3458 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3459 echo "${ECHO_T}$LDLIBRARY" >&6
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_RANLIB+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test -n "$RANLIB"; then
3470 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir
=.
3477 for ac_exec_ext
in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 RANLIB
=$ac_cv_prog_RANLIB
3489 if test -n "$RANLIB"; then
3490 echo "$as_me:$LINENO: result: $RANLIB" >&5
3491 echo "${ECHO_T}$RANLIB" >&6
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_prog_RANLIB"; then
3499 ac_ct_RANLIB
=$RANLIB
3500 # Extract the first word of "ranlib", so it can be a program name with args.
3501 set dummy ranlib
; ac_word
=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 if test -n "$ac_ct_RANLIB"; then
3508 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_exec_ext
in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3527 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3528 if test -n "$ac_ct_RANLIB"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 RANLIB
=$ac_ct_RANLIB
3538 RANLIB
="$ac_cv_prog_RANLIB"
3542 for ac_prog
in ar aal
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy
$ac_prog; ac_word
=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 if test -n "$AR"; then
3552 ac_cv_prog_AR
="$AR" # Let the user override the test.
3554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir
=.
3559 for ac_exec_ext
in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AR
="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test -n "$AR"; then
3572 echo "$as_me:$LINENO: result: $AR" >&5
3573 echo "${ECHO_T}$AR" >&6
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AR" && break
3581 test -n "$AR" || AR
="ar"
3585 # Extract the first word of "svnversion", so it can be a program name with args.
3586 set dummy svnversion
; ac_word
=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test -n "$SVNVERSION"; then
3593 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SVNVERSION
="found"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3612 SVNVERSION
=$ac_cv_prog_SVNVERSION
3613 if test -n "$SVNVERSION"; then
3614 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3615 echo "${ECHO_T}$SVNVERSION" >&6
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3621 if test $SVNVERSION = found
3623 SVNVERSION
="svnversion \$(srcdir)"
3625 SVNVERSION
="echo exported"
3630 # install -d does not work on BSDI or HP-UX
3631 if test -z "$INSTALL"
3633 INSTALL
="${srcdir}/install-sh -c"
3637 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3638 if test -f $ac_dir/install-sh
; then
3640 ac_install_sh
="$ac_aux_dir/install-sh -c"
3642 elif test -f $ac_dir/install.sh
; then
3644 ac_install_sh
="$ac_aux_dir/install.sh -c"
3646 elif test -f $ac_dir/shtool
; then
3648 ac_install_sh
="$ac_aux_dir/shtool install -c"
3652 if test -z "$ac_aux_dir"; then
3653 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3654 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3655 { (exit 1); exit 1; }; }
3657 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3658 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3659 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir
=.
3685 # Account for people who put trailing slashes in PATH elements.
3687 .
/ | .
// |
/cC
/* | \
3688 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3689 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3695 for ac_prog
in ginstall scoinst
install; do
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3698 if test $ac_prog = install &&
3699 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3707 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL
=$ac_cv_path_install
3722 # As a last resort, use the slow shell script. We don't cache a
3723 # path for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the path is relative.
3726 INSTALL
=$ac_install_sh
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5
3730 echo "${ECHO_T}$INSTALL" >&6
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3741 # Not every filesystem supports hard links
3743 if test -z "$LN" ; then
3744 case $ac_sys_system in
3746 CYGWIN
*) LN
="ln -s";;
3747 atheos
*) LN
="ln -s";;
3752 # Check for --with-pydebug
3753 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3754 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3756 # Check whether --with-pydebug or --without-pydebug was given.
3757 if test "${with_pydebug+set}" = set; then
3758 withval
="$with_pydebug"
3760 if test "$withval" != no
3763 cat >>confdefs.h
<<\_ACEOF
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6;
3770 else echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3779 # merged with this chunk of code?
3781 # Optimizer/debugger flags
3782 # ------------------------
3783 # (The following bit of code is complicated enough - please keep things
3784 # indented properly. Just pretend you're editing Python code. ;-)
3786 # There are two parallel sets of case statements below, one that checks to
3787 # see if OPT was set and one that does BASECFLAGS setting based upon
3788 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3791 # tweak OPT based on compiler and platform, only if the user didn't set
3792 # it on the command line
3798 if test "$CC" != 'g++' ; then
3799 STRICT_PROTO
="-Wstrict-prototypes"
3801 case $ac_cv_prog_cc_g in
3803 if test "$Py_DEBUG" = 'true' ; then
3804 # Optimization messes up debuggers, so turn it off for
3806 OPT
="-g -Wall $STRICT_PROTO"
3808 OPT
="-g -O3 -Wall $STRICT_PROTO"
3812 OPT
="-O3 -Wall $STRICT_PROTO"
3815 case $ac_sys_system in
3816 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3826 # The current (beta) Monterey compiler dies with optimizations
3827 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3828 case $ac_sys_system in
3837 # tweak BASECFLAGS based on compiler and platform
3840 # Python violates C99 rules, by casting between incompatible
3841 # pointer types. GCC may generate bad code as a result of that,
3842 # so use -fno-strict-aliasing if supported.
3843 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3844 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3846 CC
="$CC -fno-strict-aliasing"
3847 if test "$cross_compiling" = yes; then
3848 ac_cv_no_strict_aliasing_ok
=no
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 int main() { return 0; }
3858 rm -f conftest
$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_no_strict_aliasing_ok
=yes
3871 echo "$as_me: program exited with status $ac_status" >&5
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3876 ac_cv_no_strict_aliasing_ok
=no
3878 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3881 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3882 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3883 if test $ac_cv_no_strict_aliasing_ok = yes
3885 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3887 case $ac_sys_system in
3889 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3891 # is there any other compiler on Darwin besides gcc?
3893 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3894 if test "${enable_universalsdk}"; then
3895 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3900 BASECFLAGS
="$BASECFLAGS -mieee"
3906 case $ac_sys_system in
3907 OpenUNIX
*|UnixWare
*)
3908 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3911 BASECFLAGS
="$BASECFLAGS -ieee -std"
3914 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3920 if test "$Py_DEBUG" = 'true'; then
3926 if test "$ac_arch_flags"
3928 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3931 # disable check for icc since it seems to pass, but generates a warning
3934 ac_cv_opt_olimit_ok
=no
3937 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3938 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3939 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 CC
="$CC -OPT:Olimit=0"
3944 if test "$cross_compiling" = yes; then
3945 ac_cv_opt_olimit_ok
=no
3947 cat >conftest.
$ac_ext <<_ACEOF
3950 cat confdefs.h
>>conftest.
$ac_ext
3951 cat >>conftest.
$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 int main() { return 0; }
3955 rm -f conftest
$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_opt_olimit_ok
=yes
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.
$ac_ext >&5
3973 ac_cv_opt_olimit_ok
=no
3975 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3980 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3981 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3982 if test $ac_cv_opt_olimit_ok = yes; then
3983 case $ac_sys_system in
3984 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3985 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3990 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3994 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3995 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3996 if test "${ac_cv_olimit_ok+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 CC
="$CC -Olimit 1500"
4001 if test "$cross_compiling" = yes; then
4004 cat >conftest.
$ac_ext <<_ACEOF
4007 cat confdefs.h
>>conftest.
$ac_ext
4008 cat >>conftest.
$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 int main() { return 0; }
4012 rm -f conftest
$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.
$ac_ext >&5
4032 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4038 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4039 if test $ac_cv_olimit_ok = yes; then
4040 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4044 # On some compilers, pthreads are available without further options
4045 # (e.g. MacOS X). On some of these systems, the compiler will not
4046 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4047 # So we have to see first whether pthreads are available without
4048 # options before we can check whether -Kpthread improves anything.
4049 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4050 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4051 if test "${ac_cv_pthread_is_default+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 if test "$cross_compiling" = yes; then
4055 ac_cv_pthread_is_default
=no
4057 cat >conftest.
$ac_ext <<_ACEOF
4060 cat confdefs.h
>>conftest.
$ac_ext
4061 cat >>conftest.
$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4064 #include <pthread.h>
4066 void* routine(void* p){return NULL;}
4070 if(pthread_create(&p,NULL,routine,NULL)!=0)
4072 (void)pthread_detach(p);
4077 rm -f conftest
$ac_exeext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079 (eval $ac_link) 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4089 ac_cv_pthread_is_default
=yes
4094 echo "$as_me: program exited with status $ac_status" >&5
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.
$ac_ext >&5
4099 ac_cv_pthread_is_default
=no
4101 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4106 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4107 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4110 if test $ac_cv_pthread_is_default = yes
4114 # -Kpthread, if available, provides the right #defines
4115 # and linker options to make pthread_create available
4116 # Some compilers won't report that they do not support -Kpthread,
4117 # so we need to run a program to see whether it really made the
4118 # function available.
4119 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4120 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4121 if test "${ac_cv_kpthread+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test "$cross_compiling" = yes; then
4129 cat >conftest.
$ac_ext <<_ACEOF
4132 cat confdefs.h
>>conftest.
$ac_ext
4133 cat >>conftest.
$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4136 #include <pthread.h>
4138 void* routine(void* p){return NULL;}
4142 if(pthread_create(&p,NULL,routine,NULL)!=0)
4144 (void)pthread_detach(p);
4149 rm -f conftest
$ac_exeext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4151 (eval $ac_link) 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4162 echo "$as_me: program exited with status $ac_status" >&5
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.
$ac_ext >&5
4169 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4175 echo "${ECHO_T}$ac_cv_kpthread" >&6
4178 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4180 # -Kthread, if available, provides the right #defines
4181 # and linker options to make pthread_create available
4182 # Some compilers won't report that they do not support -Kthread,
4183 # so we need to run a program to see whether it really made the
4184 # function available.
4185 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4186 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4187 if test "${ac_cv_kthread+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test "$cross_compiling" = yes; then
4195 cat >conftest.
$ac_ext <<_ACEOF
4198 cat confdefs.h
>>conftest.
$ac_ext
4199 cat >>conftest.
$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4202 #include <pthread.h>
4204 void* routine(void* p){return NULL;}
4208 if(pthread_create(&p,NULL,routine,NULL)!=0)
4210 (void)pthread_detach(p);
4215 rm -f conftest
$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4228 echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.
$ac_ext >&5
4235 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4240 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4241 echo "${ECHO_T}$ac_cv_kthread" >&6
4244 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4246 # -pthread, if available, provides the right #defines
4247 # and linker options to make pthread_create available
4248 # Some compilers won't report that they do not support -pthread,
4249 # so we need to run a program to see whether it really made the
4250 # function available.
4251 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4252 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4253 if test "${ac_cv_thread+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test "$cross_compiling" = yes; then
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4268 #include <pthread.h>
4270 void* routine(void* p){return NULL;}
4274 if(pthread_create(&p,NULL,routine,NULL)!=0)
4276 (void)pthread_detach(p);
4281 rm -f conftest
$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4294 echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.
$ac_ext >&5
4301 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4306 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4307 echo "${ECHO_T}$ac_cv_pthread" >&6
4310 # If we have set a CC compiler flag for thread support then
4311 # check if it works for CXX, too.
4315 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4316 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4319 if test "$ac_cv_kpthread" = "yes"
4321 CXX
="$CXX -Kpthread"
4322 ac_cv_cxx_thread
=yes
4323 elif test "$ac_cv_kthread" = "yes"
4326 ac_cv_cxx_thread
=yes
4327 elif test "$ac_cv_pthread" = "yes"
4330 ac_cv_cxx_thread
=yes
4333 if test $ac_cv_cxx_thread = yes
4335 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4336 $CXX -c conftest.
$ac_ext 2>&5
4337 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4338 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4340 ac_cv_cxx_thread
=yes
4346 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4347 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4352 # checks for header files
4353 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4355 if test "${ac_cv_header_stdc+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 cat >conftest.
$ac_ext <<_ACEOF
4361 cat confdefs.h
>>conftest.
$ac_ext
4362 cat >>conftest.
$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4377 rm -f conftest.
$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4381 grep -v '^ *+' conftest.er1
>conftest.err
4383 cat conftest.err
>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try
='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try
='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_header_stdc
=yes
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.
$ac_ext >&5
4404 ac_cv_header_stdc
=no
4406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4408 if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat >conftest.
$ac_ext <<_ACEOF
4413 cat confdefs.h
>>conftest.
$ac_ext
4414 cat >>conftest.
$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev
/null
2>&1; then
4423 ac_cv_header_stdc
=no
4429 if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.
$ac_ext <<_ACEOF
4434 cat confdefs.h
>>conftest.
$ac_ext
4435 cat >>conftest.
$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "free" >/dev
/null
2>&1; then
4444 ac_cv_header_stdc
=no
4450 if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4455 cat >conftest.
$ac_ext <<_ACEOF
4458 cat confdefs.h
>>conftest.
$ac_ext
4459 cat >>conftest.
$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4462 #if ((' ' & 0x0FF) == 0x020)
4463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4466 # define ISLOWER(c) \
4467 (('a' <= (c) && (c) <= 'i') \
4468 || ('j' <= (c) && (c) <= 'r') \
4469 || ('s' <= (c) && (c) <= 'z'))
4470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4478 for (i = 0; i < 256; i++)
4479 if (XOR (islower (i), ISLOWER (i))
4480 || toupper (i) != TOUPPER (i))
4485 rm -f conftest
$ac_exeext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4498 echo "$as_me: program exited with status $ac_status" >&5
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.
$ac_ext >&5
4503 ac_cv_header_stdc
=no
4505 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4510 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4511 if test $ac_cv_header_stdc = yes; then
4513 cat >>confdefs.h
<<\_ACEOF
4514 #define STDC_HEADERS 1
4519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4529 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4530 inttypes.h stdint.h unistd.h
4532 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 cat >conftest.
$ac_ext <<_ACEOF
4541 cat confdefs.h
>>conftest.
$ac_ext
4542 cat >>conftest.
$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 $ac_includes_default
4546 #include <$ac_header>
4548 rm -f conftest.
$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1
>conftest.err
4554 cat conftest.err
>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try
='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try
='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 eval "$as_ac_Header=yes"
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.
$ac_ext >&5
4575 eval "$as_ac_Header=no"
4577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h
<<_ACEOF
4583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4640 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4642 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4643 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4645 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4647 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
4649 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4650 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4651 bluetooth
/bluetooth.h
4653 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4655 echo "$as_me:$LINENO: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4663 # Is the header compilable?
4664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4666 cat >conftest.
$ac_ext <<_ACEOF
4669 cat confdefs.h
>>conftest.
$ac_ext
4670 cat >>conftest.
$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4673 #include <$ac_header>
4675 rm -f conftest.
$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>conftest.er1
4679 grep -v '^ *+' conftest.er1
>conftest.err
4681 cat conftest.err
>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try
='test -z "$ac_c_werror_flag"
4685 || test ! -s conftest.err'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; } &&
4691 { ac_try
='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_header_compiler
=yes
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.
$ac_ext >&5
4702 ac_header_compiler
=no
4704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4706 echo "${ECHO_T}$ac_header_compiler" >&6
4708 # Is the header present?
4709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4711 cat >conftest.
$ac_ext <<_ACEOF
4714 cat confdefs.h
>>conftest.
$ac_ext
4715 cat >>conftest.
$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 #include <$ac_header>
4719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4722 grep -v '^ *+' conftest.er1
>conftest.err
4724 cat conftest.err
>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev
/null
; then
4727 if test -s conftest.err
; then
4728 ac_cpp_err
=$ac_c_preproc_warn_flag
4729 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4736 if test -z "$ac_cpp_err"; then
4737 ac_header_preproc
=yes
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.
$ac_ext >&5
4742 ac_header_preproc
=no
4744 rm -f conftest.err conftest.
$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4746 echo "${ECHO_T}$ac_header_preproc" >&6
4748 # So? What about this header?
4749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4755 ac_header_preproc
=yes
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4772 ## ------------------------------------------------ ##
4773 ## Report this to http://www.python.org/python-bugs ##
4774 ## ------------------------------------------------ ##
4777 sed "s/^/$as_me: WARNING: /" >&2
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 eval "$as_ac_Header=\$ac_header_preproc"
4787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792 cat >>confdefs.h
<<_ACEOF
4793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4806 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4807 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4808 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4809 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 cat >conftest.
$ac_ext <<_ACEOF
4816 cat confdefs.h
>>conftest.
$ac_ext
4817 cat >>conftest.
$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4831 rm -f conftest.
$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1
>conftest.err
4837 cat conftest.err
>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try
='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try
='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 eval "$as_ac_Header=yes"
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.
$ac_ext >&5
4858 eval "$as_ac_Header=no"
4860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865 cat >>confdefs.h
<<_ACEOF
4866 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4869 ac_header_dirent
=$ac_hdr; break
4873 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4874 if test $ac_header_dirent = dirent.h
; then
4875 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4876 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4877 if test "${ac_cv_search_opendir+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 ac_func_search_save_LIBS
=$LIBS
4881 ac_cv_search_opendir
=no
4882 cat >conftest.
$ac_ext <<_ACEOF
4885 cat confdefs.h
>>conftest.
$ac_ext
4886 cat >>conftest.
$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4889 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4904 rm -f conftest.
$ac_objext conftest
$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>conftest.er1
4908 grep -v '^ *+' conftest.er1
>conftest.err
4910 cat conftest.err
>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try
='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try
='test -s conftest$ac_exeext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_search_opendir
="none required"
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.
$ac_ext >&5
4932 rm -f conftest.err conftest.
$ac_objext \
4933 conftest
$ac_exeext conftest.
$ac_ext
4934 if test "$ac_cv_search_opendir" = no
; then
4935 for ac_lib
in dir
; do
4936 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4937 cat >conftest.
$ac_ext <<_ACEOF
4940 cat confdefs.h
>>conftest.
$ac_ext
4941 cat >>conftest.
$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4944 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4959 rm -f conftest.
$ac_objext conftest
$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1
>conftest.err
4965 cat conftest.err
>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try
='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try
='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_search_opendir
="-l$ac_lib"
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.
$ac_ext >&5
4988 rm -f conftest.err conftest.
$ac_objext \
4989 conftest
$ac_exeext conftest.
$ac_ext
4992 LIBS
=$ac_func_search_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4995 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4996 if test "$ac_cv_search_opendir" != no
; then
4997 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5002 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5004 if test "${ac_cv_search_opendir+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_func_search_save_LIBS
=$LIBS
5008 ac_cv_search_opendir
=no
5009 cat >conftest.
$ac_ext <<_ACEOF
5012 cat confdefs.h
>>conftest.
$ac_ext
5013 cat >>conftest.
$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5031 rm -f conftest.
$ac_objext conftest
$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5035 grep -v '^ *+' conftest.er1
>conftest.err
5037 cat conftest.err
>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try
='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try
='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_search_opendir
="none required"
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.
$ac_ext >&5
5059 rm -f conftest.err conftest.
$ac_objext \
5060 conftest
$ac_exeext conftest.
$ac_ext
5061 if test "$ac_cv_search_opendir" = no
; then
5063 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5064 cat >conftest.
$ac_ext <<_ACEOF
5067 cat confdefs.h
>>conftest.
$ac_ext
5068 cat >>conftest.
$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5071 /* Override any gcc2 internal prototype to avoid an error. */
5075 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */
5086 rm -f conftest.
$ac_objext conftest
$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1
>conftest.err
5092 cat conftest.err
>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try
='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try
='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_search_opendir
="-l$ac_lib"
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.
$ac_ext >&5
5115 rm -f conftest.err conftest.
$ac_objext \
5116 conftest
$ac_exeext conftest.
$ac_ext
5119 LIBS
=$ac_func_search_save_LIBS
5121 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5122 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5123 if test "$ac_cv_search_opendir" != no
; then
5124 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5130 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5131 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5132 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 cat >conftest.
$ac_ext <<_ACEOF
5138 cat confdefs.h
>>conftest.
$ac_ext
5139 cat >>conftest.
$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <sys/types.h>
5145 return makedev(0, 0);
5150 rm -f conftest.
$ac_objext conftest
$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>conftest.er1
5154 grep -v '^ *+' conftest.er1
>conftest.err
5156 cat conftest.err
>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try
='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try
='test -s conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_header_sys_types_h_makedev
=yes
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.
$ac_ext >&5
5177 ac_cv_header_sys_types_h_makedev
=no
5179 rm -f conftest.err conftest.
$ac_objext \
5180 conftest
$ac_exeext conftest.
$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5184 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5186 if test $ac_cv_header_sys_types_h_makedev = no
; then
5187 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5188 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5189 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5194 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5196 # Is the header compilable?
5197 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5198 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5199 cat >conftest.
$ac_ext <<_ACEOF
5202 cat confdefs.h
>>conftest.
$ac_ext
5203 cat >>conftest.
$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 $ac_includes_default
5206 #include <sys/mkdev.h>
5208 rm -f conftest.
$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5212 grep -v '^ *+' conftest.er1
>conftest.err
5214 cat conftest.err
>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try
='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try
='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_header_compiler
=yes
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.
$ac_ext >&5
5235 ac_header_compiler
=no
5237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5239 echo "${ECHO_T}$ac_header_compiler" >&6
5241 # Is the header present?
5242 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5243 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5244 cat >conftest.
$ac_ext <<_ACEOF
5247 cat confdefs.h
>>conftest.
$ac_ext
5248 cat >>conftest.
$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <sys/mkdev.h>
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1
>conftest.err
5257 cat conftest.err
>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev
/null
; then
5260 if test -s conftest.err
; then
5261 ac_cpp_err
=$ac_c_preproc_warn_flag
5262 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5269 if test -z "$ac_cpp_err"; then
5270 ac_header_preproc
=yes
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.
$ac_ext >&5
5275 ac_header_preproc
=no
5277 rm -f conftest.err conftest.
$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5279 echo "${ECHO_T}$ac_header_preproc" >&6
5281 # So? What about this header?
5282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5284 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5285 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5286 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5287 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5288 ac_header_preproc
=yes
5291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5292 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5294 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5296 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5298 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5300 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5302 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5305 ## ------------------------------------------------ ##
5306 ## Report this to http://www.python.org/python-bugs ##
5307 ## ------------------------------------------------ ##
5310 sed "s/^/$as_me: WARNING: /" >&2
5313 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5314 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5324 if test $ac_cv_header_sys_mkdev_h = yes; then
5326 cat >>confdefs.h
<<\_ACEOF
5327 #define MAJOR_IN_MKDEV 1
5334 if test $ac_cv_header_sys_mkdev_h = no
; then
5335 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5336 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5337 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5338 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5342 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5344 # Is the header compilable?
5345 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5346 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5347 cat >conftest.
$ac_ext <<_ACEOF
5350 cat confdefs.h
>>conftest.
$ac_ext
5351 cat >>conftest.
$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5354 #include <sys/sysmacros.h>
5356 rm -f conftest.
$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5360 grep -v '^ *+' conftest.er1
>conftest.err
5362 cat conftest.err
>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try
='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try
='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_header_compiler
=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.
$ac_ext >&5
5383 ac_header_compiler
=no
5385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387 echo "${ECHO_T}$ac_header_compiler" >&6
5389 # Is the header present?
5390 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5391 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5392 cat >conftest.
$ac_ext <<_ACEOF
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/sysmacros.h>
5400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5403 grep -v '^ *+' conftest.er1
>conftest.err
5405 cat conftest.err
>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev
/null
; then
5408 if test -s conftest.err
; then
5409 ac_cpp_err
=$ac_c_preproc_warn_flag
5410 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5417 if test -z "$ac_cpp_err"; then
5418 ac_header_preproc
=yes
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.
$ac_ext >&5
5423 ac_header_preproc
=no
5425 rm -f conftest.err conftest.
$ac_ext
5426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6
5429 # So? What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5432 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc
=yes
5439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5453 ## ------------------------------------------------ ##
5454 ## Report this to http://www.python.org/python-bugs ##
5455 ## ------------------------------------------------ ##
5458 sed "s/^/$as_me: WARNING: /" >&2
5461 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5462 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5463 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5469 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5472 if test $ac_cv_header_sys_sysmacros_h = yes; then
5474 cat >>confdefs.h
<<\_ACEOF
5475 #define MAJOR_IN_SYSMACROS 1
5485 # On Solaris, term.h requires curses.h
5487 for ac_header
in term.h
5489 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5490 echo "$as_me:$LINENO: checking for $ac_header" >&5
5491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat >conftest.
$ac_ext <<_ACEOF
5498 cat confdefs.h
>>conftest.
$ac_ext
5499 cat >>conftest.
$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5502 #ifdef HAVE_CURSES_H
5507 #include <$ac_header>
5509 rm -f conftest.
$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5513 grep -v '^ *+' conftest.er1
>conftest.err
5515 cat conftest.err
>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try
='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try
='test -s conftest.$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 eval "$as_ac_Header=yes"
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.
$ac_ext >&5
5536 eval "$as_ac_Header=no"
5538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5543 cat >>confdefs.h
<<_ACEOF
5544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5552 # On Linux, netlink.h requires asm/types.h
5554 for ac_header
in linux
/netlink.h
5556 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557 echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.
$ac_ext <<_ACEOF
5565 cat confdefs.h
>>conftest.
$ac_ext
5566 cat >>conftest.
$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5569 #ifdef HAVE_ASM_TYPES_H
5570 #include <asm/types.h>
5572 #ifdef HAVE_SYS_SOCKET_H
5573 #include <sys/socket.h>
5577 #include <$ac_header>
5579 rm -f conftest.
$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>conftest.er1
5583 grep -v '^ *+' conftest.er1
>conftest.err
5585 cat conftest.err
>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try
='test -z "$ac_c_werror_flag"
5589 || test ! -s conftest.err'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; } &&
5595 { ac_try
='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 eval "$as_ac_Header=yes"
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.
$ac_ext >&5
5606 eval "$as_ac_Header=no"
5608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5613 cat >>confdefs.h
<<_ACEOF
5614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622 # checks for typedefs
5624 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5625 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5626 cat >conftest.
$ac_ext <<_ACEOF
5629 cat confdefs.h
>>conftest.
$ac_ext
5630 cat >>conftest.
$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "clock_t" >/dev
/null
2>&1; then
5641 cat >>confdefs.h
<<\_ACEOF
5642 #define clock_t long
5649 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5650 echo "${ECHO_T}$was_it_defined" >&6
5652 # Check whether using makedev requires defining _OSF_SOURCE
5653 echo "$as_me:$LINENO: checking for makedev" >&5
5654 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5655 cat >conftest.
$ac_ext <<_ACEOF
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5670 rm -f conftest.
$ac_objext conftest
$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>conftest.er1
5674 grep -v '^ *+' conftest.er1
>conftest.err
5676 cat conftest.err
>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try
='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try
='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_has_makedev
=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.
$ac_ext >&5
5697 ac_cv_has_makedev
=no
5699 rm -f conftest.err conftest.
$ac_objext \
5700 conftest
$ac_exeext conftest.
$ac_ext
5701 if test "$ac_cv_has_makedev" = "no"; then
5702 # we didn't link, try if _OSF_SOURCE will allow us to link
5703 cat >conftest.
$ac_ext <<_ACEOF
5706 cat confdefs.h
>>conftest.
$ac_ext
5707 cat >>conftest.
$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5710 #define _OSF_SOURCE 1
5711 #include <sys/types.h>
5721 rm -f conftest.
$ac_objext conftest
$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1
>conftest.err
5727 cat conftest.err
>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try
='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try
='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_has_makedev
=yes
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.
$ac_ext >&5
5748 ac_cv_has_makedev
=no
5750 rm -f conftest.err conftest.
$ac_objext \
5751 conftest
$ac_exeext conftest.
$ac_ext
5752 if test "$ac_cv_has_makedev" = "yes"; then
5754 cat >>confdefs.h
<<\_ACEOF
5755 #define _OSF_SOURCE 1
5760 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5761 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5762 if test "$ac_cv_has_makedev" = "yes"; then
5764 cat >>confdefs.h
<<\_ACEOF
5765 #define HAVE_MAKEDEV 1
5770 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5771 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5772 # defined, but the compiler does not support pragma redefine_extname,
5773 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5774 # structures (such as rlimit64) without declaring them. As a
5775 # work-around, disable LFS on such configurations
5778 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5779 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5780 cat >conftest.
$ac_ext <<_ACEOF
5783 cat confdefs.h
>>conftest.
$ac_ext
5784 cat >>conftest.
$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5787 #define _LARGEFILE_SOURCE 1
5788 #define _FILE_OFFSET_BITS 64
5789 #include <sys/resource.h>
5799 rm -f conftest.
$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1
>conftest.err
5805 cat conftest.err
>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try
='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try
='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.
$ac_ext >&5
5828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5829 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5830 echo "${ECHO_T}$sol_lfs_bug" >&6
5831 if test "$sol_lfs_bug" = "yes"; then
5835 if test "$use_lfs" = "yes"; then
5836 # Two defines needed to enable largefile support on various platforms
5837 # These may affect some typedefs
5839 cat >>confdefs.h
<<\_ACEOF
5840 #define _LARGEFILE_SOURCE 1
5844 cat >>confdefs.h
<<\_ACEOF
5845 #define _FILE_OFFSET_BITS 64
5850 # Add some code to confdefs.h so that the test for off_t works on SCO
5851 cat >> confdefs.h
<<\EOF
5857 # Type availability checks
5858 echo "$as_me:$LINENO: checking for mode_t" >&5
5859 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5860 if test "${ac_cv_type_mode_t+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 cat >conftest.
$ac_ext <<_ACEOF
5866 cat confdefs.h
>>conftest.
$ac_ext
5867 cat >>conftest.
$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5875 if (sizeof (mode_t))
5881 rm -f conftest.
$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5885 grep -v '^ *+' conftest.er1
>conftest.err
5887 cat conftest.err
>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try
='test -z "$ac_c_werror_flag"
5891 || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try
='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_type_mode_t
=yes
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.
$ac_ext >&5
5908 ac_cv_type_mode_t
=no
5910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5913 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5914 if test $ac_cv_type_mode_t = yes; then
5918 cat >>confdefs.h
<<_ACEOF
5924 echo "$as_me:$LINENO: checking for off_t" >&5
5925 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5926 if test "${ac_cv_type_off_t+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 cat >conftest.
$ac_ext <<_ACEOF
5932 cat confdefs.h
>>conftest.
$ac_ext
5933 cat >>conftest.
$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5947 rm -f conftest.
$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5951 grep -v '^ *+' conftest.er1
>conftest.err
5953 cat conftest.err
>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try
='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try
='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_type_off_t
=yes
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.
$ac_ext >&5
5976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5979 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5980 if test $ac_cv_type_off_t = yes; then
5984 cat >>confdefs.h
<<_ACEOF
5990 echo "$as_me:$LINENO: checking for pid_t" >&5
5991 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5992 if test "${ac_cv_type_pid_t+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6013 rm -f conftest.
$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1
>conftest.err
6019 cat conftest.err
>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try
='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try
='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_type_pid_t
=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.
$ac_ext >&5
6042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6045 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6046 if test $ac_cv_type_pid_t = yes; then
6050 cat >>confdefs.h
<<_ACEOF
6056 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6057 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6058 if test "${ac_cv_type_signal+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 cat >conftest.
$ac_ext <<_ACEOF
6064 cat confdefs.h
>>conftest.
$ac_ext
6065 cat >>conftest.
$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <sys/types.h>
6073 extern "C" void (*signal (int, void (*)(int)))(int);
6075 void (*signal ()) ();
6086 rm -f conftest.
$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6090 grep -v '^ *+' conftest.er1
>conftest.err
6092 cat conftest.err
>&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try
='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try
='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_type_signal
=void
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.
$ac_ext >&5
6113 ac_cv_type_signal
=int
6115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6118 echo "${ECHO_T}$ac_cv_type_signal" >&6
6120 cat >>confdefs.h
<<_ACEOF
6121 #define RETSIGTYPE $ac_cv_type_signal
6125 echo "$as_me:$LINENO: checking for size_t" >&5
6126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6127 if test "${ac_cv_type_size_t+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 cat >conftest.
$ac_ext <<_ACEOF
6133 cat confdefs.h
>>conftest.
$ac_ext
6134 cat >>conftest.
$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 $ac_includes_default
6142 if (sizeof (size_t))
6148 rm -f conftest.
$ac_objext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150 (eval $ac_compile) 2>conftest.er1
6152 grep -v '^ *+' conftest.er1
>conftest.err
6154 cat conftest.err
>&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try
='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try
='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_type_size_t
=yes
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.
$ac_ext >&5
6175 ac_cv_type_size_t
=no
6177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6180 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6181 if test $ac_cv_type_size_t = yes; then
6185 cat >>confdefs.h
<<_ACEOF
6186 #define size_t unsigned
6191 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6192 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6193 if test "${ac_cv_type_uid_t+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 cat >conftest.
$ac_ext <<_ACEOF
6199 cat confdefs.h
>>conftest.
$ac_ext
6200 cat >>conftest.
$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "uid_t" >/dev
/null
2>&1; then
6207 ac_cv_type_uid_t
=yes
6214 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6215 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6216 if test $ac_cv_type_uid_t = no
; then
6218 cat >>confdefs.h
<<\_ACEOF
6223 cat >>confdefs.h
<<\_ACEOF
6229 echo "$as_me:$LINENO: checking for ssize_t" >&5
6230 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6231 if test "${ac_cv_type_ssize_t+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.
$ac_ext <<_ACEOF
6237 cat confdefs.h
>>conftest.
$ac_ext
6238 cat >>conftest.
$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6246 if (sizeof (ssize_t))
6252 rm -f conftest.
$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>conftest.er1
6256 grep -v '^ *+' conftest.er1
>conftest.err
6258 cat conftest.err
>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try
='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try
='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_type_ssize_t
=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.
$ac_ext >&5
6279 ac_cv_type_ssize_t
=no
6281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6284 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6285 if test $ac_cv_type_ssize_t = yes; then
6287 cat >>confdefs.h
<<\_ACEOF
6288 #define HAVE_SSIZE_T 1
6294 # Sizes of various common basic types
6295 # ANSI C requires sizeof(char) == 1, so no need to check it
6296 echo "$as_me:$LINENO: checking for int" >&5
6297 echo $ECHO_N "checking for int... $ECHO_C" >&6
6298 if test "${ac_cv_type_int+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 cat >conftest.
$ac_ext <<_ACEOF
6304 cat confdefs.h
>>conftest.
$ac_ext
6305 cat >>conftest.
$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 $ac_includes_default
6319 rm -f conftest.
$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1
>conftest.err
6325 cat conftest.err
>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try
='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try
='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.
$ac_ext >&5
6348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6351 echo "${ECHO_T}$ac_cv_type_int" >&6
6353 echo "$as_me:$LINENO: checking size of int" >&5
6354 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6355 if test "${ac_cv_sizeof_int+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 if test "$ac_cv_type_int" = yes; then
6359 # The cast to unsigned long works around a bug in the HP C Compiler
6360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6362 # This bug is HP SR number 8606223364.
6363 if test "$cross_compiling" = yes; then
6364 # Depending upon the size, compute the lo and hi bounds.
6365 cat >conftest.
$ac_ext <<_ACEOF
6368 cat confdefs.h
>>conftest.
$ac_ext
6369 cat >>conftest.
$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6375 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6382 rm -f conftest.
$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6386 grep -v '^ *+' conftest.er1
>conftest.err
6388 cat conftest.err
>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try
='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try
='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6406 cat >conftest.
$ac_ext <<_ACEOF
6409 cat confdefs.h
>>conftest.
$ac_ext
6410 cat >>conftest.
$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 $ac_includes_default
6416 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6423 rm -f conftest.
$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1
>conftest.err
6429 cat conftest.err
>&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try
='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try
='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_hi
=$ac_mid; break
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.
$ac_ext >&5
6450 ac_lo
=`expr $ac_mid + 1`
6451 if test $ac_lo -le $ac_mid; then
6455 ac_mid
=`expr 2 '*' $ac_mid + 1`
6457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.
$ac_ext >&5
6463 cat >conftest.
$ac_ext <<_ACEOF
6466 cat confdefs.h
>>conftest.
$ac_ext
6467 cat >>conftest.
$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6473 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6480 rm -f conftest.
$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6484 grep -v '^ *+' conftest.er1
>conftest.err
6486 cat conftest.err
>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try
='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try
='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6504 cat >conftest.
$ac_ext <<_ACEOF
6507 cat confdefs.h
>>conftest.
$ac_ext
6508 cat >>conftest.
$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 $ac_includes_default
6514 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6521 rm -f conftest.
$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1
>conftest.err
6527 cat conftest.err
>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try
='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try
='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_lo
=$ac_mid; break
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.
$ac_ext >&5
6548 ac_hi
=`expr '(' $ac_mid ')' - 1`
6549 if test $ac_mid -le $ac_hi; then
6553 ac_mid
=`expr 2 '*' $ac_mid`
6555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.
$ac_ext >&5
6563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 # Binary search between lo and hi bounds.
6567 while test "x$ac_lo" != "x$ac_hi"; do
6568 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6579 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6586 rm -f conftest.
$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1
>conftest.err
6592 cat conftest.err
>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try
='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try
='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 ac_lo
=`expr '(' $ac_mid ')' + 1`
6615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6619 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6620 See \`config.log' for more details." >&5
6621 echo "$as_me: error: cannot compute sizeof (int), 77
6622 See \`config.log' for more details." >&2;}
6623 { (exit 1); exit 1; }; } ;;
6626 if test "$cross_compiling" = yes; then
6627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6628 See \`config.log' for more details." >&5
6629 echo "$as_me: error: cannot run test program while cross compiling
6630 See \`config.log' for more details." >&2;}
6631 { (exit 1); exit 1; }; }
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 long longval () { return (long) (sizeof (int)); }
6641 unsigned long ulongval () { return (long) (sizeof (int)); }
6648 FILE *f = fopen ("conftest.val", "w");
6651 if (((long) (sizeof (int))) < 0)
6653 long i = longval ();
6654 if (i != ((long) (sizeof (int))))
6656 fprintf (f, "%ld\n", i);
6660 unsigned long i = ulongval ();
6661 if (i != ((long) (sizeof (int))))
6663 fprintf (f, "%lu\n", i);
6665 exit (ferror (f) || fclose (f) != 0);
6671 rm -f conftest
$ac_exeext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673 (eval $ac_link) 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_sizeof_int
=`cat conftest.val`
6684 echo "$as_me: program exited with status $ac_status" >&5
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6689 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6690 See \`config.log' for more details." >&5
6691 echo "$as_me: error: cannot compute sizeof (int), 77
6692 See \`config.log' for more details." >&2;}
6693 { (exit 1); exit 1; }; }
6695 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6703 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6704 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6705 cat >>confdefs.h
<<_ACEOF
6706 #define SIZEOF_INT $ac_cv_sizeof_int
6710 echo "$as_me:$LINENO: checking for long" >&5
6711 echo $ECHO_N "checking for long... $ECHO_C" >&6
6712 if test "${ac_cv_type_long+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 cat >conftest.
$ac_ext <<_ACEOF
6718 cat confdefs.h
>>conftest.
$ac_ext
6719 cat >>conftest.
$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6733 rm -f conftest.
$ac_objext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>conftest.er1
6737 grep -v '^ *+' conftest.er1
>conftest.err
6739 cat conftest.err
>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try
='test -z "$ac_c_werror_flag"
6743 || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try
='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.
$ac_ext >&5
6762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6764 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6765 echo "${ECHO_T}$ac_cv_type_long" >&6
6767 echo "$as_me:$LINENO: checking size of long" >&5
6768 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6769 if test "${ac_cv_sizeof_long+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 if test "$ac_cv_type_long" = yes; then
6773 # The cast to unsigned long works around a bug in the HP C Compiler
6774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6776 # This bug is HP SR number 8606223364.
6777 if test "$cross_compiling" = yes; then
6778 # Depending upon the size, compute the lo and hi bounds.
6779 cat >conftest.
$ac_ext <<_ACEOF
6782 cat confdefs.h
>>conftest.
$ac_ext
6783 cat >>conftest.
$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6789 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6796 rm -f conftest.
$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>conftest.er1
6800 grep -v '^ *+' conftest.er1
>conftest.err
6802 cat conftest.err
>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try
='test -z "$ac_c_werror_flag"
6806 || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try
='test -s conftest.$ac_objext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6820 cat >conftest.
$ac_ext <<_ACEOF
6823 cat confdefs.h
>>conftest.
$ac_ext
6824 cat >>conftest.
$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6830 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6837 rm -f conftest.
$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>conftest.er1
6841 grep -v '^ *+' conftest.er1
>conftest.err
6843 cat conftest.err
>&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try
='test -z "$ac_c_werror_flag"
6847 || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try
='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_hi
=$ac_mid; break
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.
$ac_ext >&5
6864 ac_lo
=`expr $ac_mid + 1`
6865 if test $ac_lo -le $ac_mid; then
6869 ac_mid
=`expr 2 '*' $ac_mid + 1`
6871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.
$ac_ext >&5
6877 cat >conftest.
$ac_ext <<_ACEOF
6880 cat confdefs.h
>>conftest.
$ac_ext
6881 cat >>conftest.
$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 $ac_includes_default
6887 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6894 rm -f conftest.
$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>conftest.er1
6898 grep -v '^ *+' conftest.er1
>conftest.err
6900 cat conftest.err
>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try
='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try
='test -s conftest.$ac_objext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6918 cat >conftest.
$ac_ext <<_ACEOF
6921 cat confdefs.h
>>conftest.
$ac_ext
6922 cat >>conftest.
$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6928 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6935 rm -f conftest.
$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>conftest.er1
6939 grep -v '^ *+' conftest.er1
>conftest.err
6941 cat conftest.err
>&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try
='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try
='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_lo
=$ac_mid; break
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.
$ac_ext >&5
6962 ac_hi
=`expr '(' $ac_mid ')' - 1`
6963 if test $ac_mid -le $ac_hi; then
6967 ac_mid
=`expr 2 '*' $ac_mid`
6969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.
$ac_ext >&5
6977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6980 # Binary search between lo and hi bounds.
6981 while test "x$ac_lo" != "x$ac_hi"; do
6982 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6983 cat >conftest.
$ac_ext <<_ACEOF
6986 cat confdefs.h
>>conftest.
$ac_ext
6987 cat >>conftest.
$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7000 rm -f conftest.
$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1
>conftest.err
7006 cat conftest.err
>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try
='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try
='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.
$ac_ext >&5
7027 ac_lo
=`expr '(' $ac_mid ')' + 1`
7029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7032 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7034 See \`config.log' for more details." >&5
7035 echo "$as_me: error: cannot compute sizeof (long), 77
7036 See \`config.log' for more details." >&2;}
7037 { (exit 1); exit 1; }; } ;;
7040 if test "$cross_compiling" = yes; then
7041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7042 See \`config.log' for more details." >&5
7043 echo "$as_me: error: cannot run test program while cross compiling
7044 See \`config.log' for more details." >&2;}
7045 { (exit 1); exit 1; }; }
7047 cat >conftest.
$ac_ext <<_ACEOF
7050 cat confdefs.h
>>conftest.
$ac_ext
7051 cat >>conftest.
$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 $ac_includes_default
7054 long longval () { return (long) (sizeof (long)); }
7055 unsigned long ulongval () { return (long) (sizeof (long)); }
7062 FILE *f = fopen ("conftest.val", "w");
7065 if (((long) (sizeof (long))) < 0)
7067 long i = longval ();
7068 if (i != ((long) (sizeof (long))))
7070 fprintf (f, "%ld\n", i);
7074 unsigned long i = ulongval ();
7075 if (i != ((long) (sizeof (long))))
7077 fprintf (f, "%lu\n", i);
7079 exit (ferror (f) || fclose (f) != 0);
7085 rm -f conftest
$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_sizeof_long
=`cat conftest.val`
7098 echo "$as_me: program exited with status $ac_status" >&5
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.
$ac_ext >&5
7103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7104 See \`config.log' for more details." >&5
7105 echo "$as_me: error: cannot compute sizeof (long), 77
7106 See \`config.log' for more details." >&2;}
7107 { (exit 1); exit 1; }; }
7109 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7117 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7118 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7119 cat >>confdefs.h
<<_ACEOF
7120 #define SIZEOF_LONG $ac_cv_sizeof_long
7124 echo "$as_me:$LINENO: checking for void *" >&5
7125 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7126 if test "${ac_cv_type_void_p+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 cat >conftest.
$ac_ext <<_ACEOF
7132 cat confdefs.h
>>conftest.
$ac_ext
7133 cat >>conftest.
$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 $ac_includes_default
7141 if (sizeof (void *))
7147 rm -f conftest.
$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>conftest.er1
7151 grep -v '^ *+' conftest.er1
>conftest.err
7153 cat conftest.err
>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try
='test -z "$ac_c_werror_flag"
7157 || test ! -s conftest.err'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; } &&
7163 { ac_try
='test -s conftest.$ac_objext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_cv_type_void_p
=yes
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.
$ac_ext >&5
7174 ac_cv_type_void_p
=no
7176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7179 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7181 echo "$as_me:$LINENO: checking size of void *" >&5
7182 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7183 if test "${ac_cv_sizeof_void_p+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 if test "$ac_cv_type_void_p" = yes; then
7187 # The cast to unsigned long works around a bug in the HP C Compiler
7188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7190 # This bug is HP SR number 8606223364.
7191 if test "$cross_compiling" = yes; then
7192 # Depending upon the size, compute the lo and hi bounds.
7193 cat >conftest.
$ac_ext <<_ACEOF
7196 cat confdefs.h
>>conftest.
$ac_ext
7197 cat >>conftest.
$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7203 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7210 rm -f conftest.
$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1
>conftest.err
7216 cat conftest.err
>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try
='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try
='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7234 cat >conftest.
$ac_ext <<_ACEOF
7237 cat confdefs.h
>>conftest.
$ac_ext
7238 cat >>conftest.
$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7244 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7251 rm -f conftest.
$ac_objext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>conftest.er1
7255 grep -v '^ *+' conftest.er1
>conftest.err
7257 cat conftest.err
>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try
='test -z "$ac_c_werror_flag"
7261 || test ! -s conftest.err'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try
='test -s conftest.$ac_objext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_hi
=$ac_mid; break
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.
$ac_ext >&5
7278 ac_lo
=`expr $ac_mid + 1`
7279 if test $ac_lo -le $ac_mid; then
7283 ac_mid
=`expr 2 '*' $ac_mid + 1`
7285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.
$ac_ext >&5
7291 cat >conftest.
$ac_ext <<_ACEOF
7294 cat confdefs.h
>>conftest.
$ac_ext
7295 cat >>conftest.
$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7301 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7308 rm -f conftest.
$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7312 grep -v '^ *+' conftest.er1
>conftest.err
7314 cat conftest.err
>&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try
='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try
='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7332 cat >conftest.
$ac_ext <<_ACEOF
7335 cat confdefs.h
>>conftest.
$ac_ext
7336 cat >>conftest.
$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7342 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7349 rm -f conftest.
$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>conftest.er1
7353 grep -v '^ *+' conftest.er1
>conftest.err
7355 cat conftest.err
>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try
='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try
='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_lo
=$ac_mid; break
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.
$ac_ext >&5
7376 ac_hi
=`expr '(' $ac_mid ')' - 1`
7377 if test $ac_mid -le $ac_hi; then
7381 ac_mid
=`expr 2 '*' $ac_mid`
7383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.
$ac_ext >&5
7391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7394 # Binary search between lo and hi bounds.
7395 while test "x$ac_lo" != "x$ac_hi"; do
7396 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7397 cat >conftest.
$ac_ext <<_ACEOF
7400 cat confdefs.h
>>conftest.
$ac_ext
7401 cat >>conftest.
$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7407 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7414 rm -f conftest.
$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try
='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try
='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7441 ac_lo
=`expr '(' $ac_mid ')' + 1`
7443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7446 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7447 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7448 See \`config.log' for more details." >&5
7449 echo "$as_me: error: cannot compute sizeof (void *), 77
7450 See \`config.log' for more details." >&2;}
7451 { (exit 1); exit 1; }; } ;;
7454 if test "$cross_compiling" = yes; then
7455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7456 See \`config.log' for more details." >&5
7457 echo "$as_me: error: cannot run test program while cross compiling
7458 See \`config.log' for more details." >&2;}
7459 { (exit 1); exit 1; }; }
7461 cat >conftest.
$ac_ext <<_ACEOF
7464 cat confdefs.h
>>conftest.
$ac_ext
7465 cat >>conftest.
$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 $ac_includes_default
7468 long longval () { return (long) (sizeof (void *)); }
7469 unsigned long ulongval () { return (long) (sizeof (void *)); }
7476 FILE *f = fopen ("conftest.val", "w");
7479 if (((long) (sizeof (void *))) < 0)
7481 long i = longval ();
7482 if (i != ((long) (sizeof (void *))))
7484 fprintf (f, "%ld\n", i);
7488 unsigned long i = ulongval ();
7489 if (i != ((long) (sizeof (void *))))
7491 fprintf (f, "%lu\n", i);
7493 exit (ferror (f) || fclose (f) != 0);
7499 rm -f conftest
$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501 (eval $ac_link) 2>&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_cv_sizeof_void_p
=`cat conftest.val`
7512 echo "$as_me: program exited with status $ac_status" >&5
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.
$ac_ext >&5
7517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7518 See \`config.log' for more details." >&5
7519 echo "$as_me: error: cannot compute sizeof (void *), 77
7520 See \`config.log' for more details." >&2;}
7521 { (exit 1); exit 1; }; }
7523 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7528 ac_cv_sizeof_void_p
=0
7531 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7532 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7533 cat >>confdefs.h
<<_ACEOF
7534 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7538 echo "$as_me:$LINENO: checking for short" >&5
7539 echo $ECHO_N "checking for short... $ECHO_C" >&6
7540 if test "${ac_cv_type_short+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 cat >conftest.
$ac_ext <<_ACEOF
7546 cat confdefs.h
>>conftest.
$ac_ext
7547 cat >>conftest.
$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 $ac_includes_default
7561 rm -f conftest.
$ac_objext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>conftest.er1
7565 grep -v '^ *+' conftest.er1
>conftest.err
7567 cat conftest.err
>&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try
='test -z "$ac_c_werror_flag"
7571 || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try
='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_type_short
=yes
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.
$ac_ext >&5
7590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7592 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7593 echo "${ECHO_T}$ac_cv_type_short" >&6
7595 echo "$as_me:$LINENO: checking size of short" >&5
7596 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7597 if test "${ac_cv_sizeof_short+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 if test "$ac_cv_type_short" = yes; then
7601 # The cast to unsigned long works around a bug in the HP C Compiler
7602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7604 # This bug is HP SR number 8606223364.
7605 if test "$cross_compiling" = yes; then
7606 # Depending upon the size, compute the lo and hi bounds.
7607 cat >conftest.
$ac_ext <<_ACEOF
7610 cat confdefs.h
>>conftest.
$ac_ext
7611 cat >>conftest.
$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7617 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7624 rm -f conftest.
$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1
>conftest.err
7630 cat conftest.err
>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try
='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try
='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7648 cat >conftest.
$ac_ext <<_ACEOF
7651 cat confdefs.h
>>conftest.
$ac_ext
7652 cat >>conftest.
$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7658 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7665 rm -f conftest.
$ac_objext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>conftest.er1
7669 grep -v '^ *+' conftest.er1
>conftest.err
7671 cat conftest.err
>&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try
='test -z "$ac_c_werror_flag"
7675 || test ! -s conftest.err'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try
='test -s conftest.$ac_objext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ac_hi
=$ac_mid; break
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.
$ac_ext >&5
7692 ac_lo
=`expr $ac_mid + 1`
7693 if test $ac_lo -le $ac_mid; then
7697 ac_mid
=`expr 2 '*' $ac_mid + 1`
7699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.
$ac_ext >&5
7705 cat >conftest.
$ac_ext <<_ACEOF
7708 cat confdefs.h
>>conftest.
$ac_ext
7709 cat >>conftest.
$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7715 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7722 rm -f conftest.
$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>conftest.er1
7726 grep -v '^ *+' conftest.er1
>conftest.err
7728 cat conftest.err
>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try
='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try
='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7746 cat >conftest.
$ac_ext <<_ACEOF
7749 cat confdefs.h
>>conftest.
$ac_ext
7750 cat >>conftest.
$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7756 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7763 rm -f conftest.
$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7767 grep -v '^ *+' conftest.er1
>conftest.err
7769 cat conftest.err
>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try
='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try
='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_lo
=$ac_mid; break
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.
$ac_ext >&5
7790 ac_hi
=`expr '(' $ac_mid ')' - 1`
7791 if test $ac_mid -le $ac_hi; then
7795 ac_mid
=`expr 2 '*' $ac_mid`
7797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.
$ac_ext >&5
7805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7808 # Binary search between lo and hi bounds.
7809 while test "x$ac_lo" != "x$ac_hi"; do
7810 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7811 cat >conftest.
$ac_ext <<_ACEOF
7814 cat confdefs.h
>>conftest.
$ac_ext
7815 cat >>conftest.
$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7821 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7828 rm -f conftest.
$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7832 grep -v '^ *+' conftest.er1
>conftest.err
7834 cat conftest.err
>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try
='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try
='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.
$ac_ext >&5
7855 ac_lo
=`expr '(' $ac_mid ')' + 1`
7857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7860 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7861 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7862 See \`config.log' for more details." >&5
7863 echo "$as_me: error: cannot compute sizeof (short), 77
7864 See \`config.log' for more details." >&2;}
7865 { (exit 1); exit 1; }; } ;;
7868 if test "$cross_compiling" = yes; then
7869 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7870 See \`config.log' for more details." >&5
7871 echo "$as_me: error: cannot run test program while cross compiling
7872 See \`config.log' for more details." >&2;}
7873 { (exit 1); exit 1; }; }
7875 cat >conftest.
$ac_ext <<_ACEOF
7878 cat confdefs.h
>>conftest.
$ac_ext
7879 cat >>conftest.
$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 $ac_includes_default
7882 long longval () { return (long) (sizeof (short)); }
7883 unsigned long ulongval () { return (long) (sizeof (short)); }
7890 FILE *f = fopen ("conftest.val", "w");
7893 if (((long) (sizeof (short))) < 0)
7895 long i = longval ();
7896 if (i != ((long) (sizeof (short))))
7898 fprintf (f, "%ld\n", i);
7902 unsigned long i = ulongval ();
7903 if (i != ((long) (sizeof (short))))
7905 fprintf (f, "%lu\n", i);
7907 exit (ferror (f) || fclose (f) != 0);
7913 rm -f conftest
$ac_exeext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7915 (eval $ac_link) 2>&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_sizeof_short
=`cat conftest.val`
7926 echo "$as_me: program exited with status $ac_status" >&5
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.
$ac_ext >&5
7931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7932 See \`config.log' for more details." >&5
7933 echo "$as_me: error: cannot compute sizeof (short), 77
7934 See \`config.log' for more details." >&2;}
7935 { (exit 1); exit 1; }; }
7937 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7942 ac_cv_sizeof_short
=0
7945 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7946 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7947 cat >>confdefs.h
<<_ACEOF
7948 #define SIZEOF_SHORT $ac_cv_sizeof_short
7952 echo "$as_me:$LINENO: checking for float" >&5
7953 echo $ECHO_N "checking for float... $ECHO_C" >&6
7954 if test "${ac_cv_type_float+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.
$ac_ext <<_ACEOF
7960 cat confdefs.h
>>conftest.
$ac_ext
7961 cat >>conftest.
$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 $ac_includes_default
7975 rm -f conftest.
$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>conftest.er1
7979 grep -v '^ *+' conftest.er1
>conftest.err
7981 cat conftest.err
>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try
='test -z "$ac_c_werror_flag"
7985 || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try
='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_type_float
=yes
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.
$ac_ext >&5
8004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8006 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8007 echo "${ECHO_T}$ac_cv_type_float" >&6
8009 echo "$as_me:$LINENO: checking size of float" >&5
8010 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8011 if test "${ac_cv_sizeof_float+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 if test "$ac_cv_type_float" = yes; then
8015 # The cast to unsigned long works around a bug in the HP C Compiler
8016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8018 # This bug is HP SR number 8606223364.
8019 if test "$cross_compiling" = yes; then
8020 # Depending upon the size, compute the lo and hi bounds.
8021 cat >conftest.
$ac_ext <<_ACEOF
8024 cat confdefs.h
>>conftest.
$ac_ext
8025 cat >>conftest.
$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8031 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8038 rm -f conftest.
$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040 (eval $ac_compile) 2>conftest.er1
8042 grep -v '^ *+' conftest.er1
>conftest.err
8044 cat conftest.err
>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try
='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try
='test -s conftest.$ac_objext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8062 cat >conftest.
$ac_ext <<_ACEOF
8065 cat confdefs.h
>>conftest.
$ac_ext
8066 cat >>conftest.
$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8072 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8079 rm -f conftest.
$ac_objext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>conftest.er1
8083 grep -v '^ *+' conftest.er1
>conftest.err
8085 cat conftest.err
>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try
='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try
='test -s conftest.$ac_objext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_hi
=$ac_mid; break
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.
$ac_ext >&5
8106 ac_lo
=`expr $ac_mid + 1`
8107 if test $ac_lo -le $ac_mid; then
8111 ac_mid
=`expr 2 '*' $ac_mid + 1`
8113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.
$ac_ext >&5
8119 cat >conftest.
$ac_ext <<_ACEOF
8122 cat confdefs.h
>>conftest.
$ac_ext
8123 cat >>conftest.
$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8129 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8136 rm -f conftest.
$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>conftest.er1
8140 grep -v '^ *+' conftest.er1
>conftest.err
8142 cat conftest.err
>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try
='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try
='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8160 cat >conftest.
$ac_ext <<_ACEOF
8163 cat confdefs.h
>>conftest.
$ac_ext
8164 cat >>conftest.
$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 $ac_includes_default
8170 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8177 rm -f conftest.
$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8181 grep -v '^ *+' conftest.er1
>conftest.err
8183 cat conftest.err
>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try
='test -z "$ac_c_werror_flag"
8187 || test ! -s conftest.err'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try
='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_lo
=$ac_mid; break
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.
$ac_ext >&5
8204 ac_hi
=`expr '(' $ac_mid ')' - 1`
8205 if test $ac_mid -le $ac_hi; then
8209 ac_mid
=`expr 2 '*' $ac_mid`
8211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.
$ac_ext >&5
8219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8222 # Binary search between lo and hi bounds.
8223 while test "x$ac_lo" != "x$ac_hi"; do
8224 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8225 cat >conftest.
$ac_ext <<_ACEOF
8228 cat confdefs.h
>>conftest.
$ac_ext
8229 cat >>conftest.
$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8235 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8242 rm -f conftest.
$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try
='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 ac_lo
=`expr '(' $ac_mid ')' + 1`
8271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8274 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8275 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8276 See \`config.log' for more details." >&5
8277 echo "$as_me: error: cannot compute sizeof (float), 77
8278 See \`config.log' for more details." >&2;}
8279 { (exit 1); exit 1; }; } ;;
8282 if test "$cross_compiling" = yes; then
8283 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8284 See \`config.log' for more details." >&5
8285 echo "$as_me: error: cannot run test program while cross compiling
8286 See \`config.log' for more details." >&2;}
8287 { (exit 1); exit 1; }; }
8289 cat >conftest.
$ac_ext <<_ACEOF
8292 cat confdefs.h
>>conftest.
$ac_ext
8293 cat >>conftest.
$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 $ac_includes_default
8296 long longval () { return (long) (sizeof (float)); }
8297 unsigned long ulongval () { return (long) (sizeof (float)); }
8304 FILE *f = fopen ("conftest.val", "w");
8307 if (((long) (sizeof (float))) < 0)
8309 long i = longval ();
8310 if (i != ((long) (sizeof (float))))
8312 fprintf (f, "%ld\n", i);
8316 unsigned long i = ulongval ();
8317 if (i != ((long) (sizeof (float))))
8319 fprintf (f, "%lu\n", i);
8321 exit (ferror (f) || fclose (f) != 0);
8327 rm -f conftest
$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_sizeof_float
=`cat conftest.val`
8340 echo "$as_me: program exited with status $ac_status" >&5
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.
$ac_ext >&5
8345 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8346 See \`config.log' for more details." >&5
8347 echo "$as_me: error: cannot compute sizeof (float), 77
8348 See \`config.log' for more details." >&2;}
8349 { (exit 1); exit 1; }; }
8351 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8356 ac_cv_sizeof_float
=0
8359 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8360 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8361 cat >>confdefs.h
<<_ACEOF
8362 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8366 echo "$as_me:$LINENO: checking for double" >&5
8367 echo $ECHO_N "checking for double... $ECHO_C" >&6
8368 if test "${ac_cv_type_double+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 cat >conftest.
$ac_ext <<_ACEOF
8374 cat confdefs.h
>>conftest.
$ac_ext
8375 cat >>conftest.
$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8383 if (sizeof (double))
8389 rm -f conftest.
$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>conftest.er1
8393 grep -v '^ *+' conftest.er1
>conftest.err
8395 cat conftest.err
>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try
='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try
='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_type_double
=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8416 ac_cv_type_double
=no
8418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8420 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8421 echo "${ECHO_T}$ac_cv_type_double" >&6
8423 echo "$as_me:$LINENO: checking size of double" >&5
8424 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8425 if test "${ac_cv_sizeof_double+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 if test "$ac_cv_type_double" = yes; then
8429 # The cast to unsigned long works around a bug in the HP C Compiler
8430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8432 # This bug is HP SR number 8606223364.
8433 if test "$cross_compiling" = yes; then
8434 # Depending upon the size, compute the lo and hi bounds.
8435 cat >conftest.
$ac_ext <<_ACEOF
8438 cat confdefs.h
>>conftest.
$ac_ext
8439 cat >>conftest.
$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8445 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8452 rm -f conftest.
$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>conftest.er1
8456 grep -v '^ *+' conftest.er1
>conftest.err
8458 cat conftest.err
>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try
='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try
='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8476 cat >conftest.
$ac_ext <<_ACEOF
8479 cat confdefs.h
>>conftest.
$ac_ext
8480 cat >>conftest.
$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 $ac_includes_default
8486 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8493 rm -f conftest.
$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>conftest.er1
8497 grep -v '^ *+' conftest.er1
>conftest.err
8499 cat conftest.err
>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try
='test -z "$ac_c_werror_flag"
8503 || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try
='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_hi
=$ac_mid; break
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.
$ac_ext >&5
8520 ac_lo
=`expr $ac_mid + 1`
8521 if test $ac_lo -le $ac_mid; then
8525 ac_mid
=`expr 2 '*' $ac_mid + 1`
8527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.
$ac_ext >&5
8533 cat >conftest.
$ac_ext <<_ACEOF
8536 cat confdefs.h
>>conftest.
$ac_ext
8537 cat >>conftest.
$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8543 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8550 rm -f conftest.
$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>conftest.er1
8554 grep -v '^ *+' conftest.er1
>conftest.err
8556 cat conftest.err
>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try
='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try
='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8574 cat >conftest.
$ac_ext <<_ACEOF
8577 cat confdefs.h
>>conftest.
$ac_ext
8578 cat >>conftest.
$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8584 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8591 rm -f conftest.
$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8595 grep -v '^ *+' conftest.er1
>conftest.err
8597 cat conftest.err
>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try
='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try
='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_lo
=$ac_mid; break
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.
$ac_ext >&5
8618 ac_hi
=`expr '(' $ac_mid ')' - 1`
8619 if test $ac_mid -le $ac_hi; then
8623 ac_mid
=`expr 2 '*' $ac_mid`
8625 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.
$ac_ext >&5
8633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8636 # Binary search between lo and hi bounds.
8637 while test "x$ac_lo" != "x$ac_hi"; do
8638 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8639 cat >conftest.
$ac_ext <<_ACEOF
8642 cat confdefs.h
>>conftest.
$ac_ext
8643 cat >>conftest.
$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8649 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8656 rm -f conftest.
$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1
>conftest.err
8662 cat conftest.err
>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try
='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try
='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.
$ac_ext >&5
8683 ac_lo
=`expr '(' $ac_mid ')' + 1`
8685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8688 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8690 See \`config.log' for more details." >&5
8691 echo "$as_me: error: cannot compute sizeof (double), 77
8692 See \`config.log' for more details." >&2;}
8693 { (exit 1); exit 1; }; } ;;
8696 if test "$cross_compiling" = yes; then
8697 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8698 See \`config.log' for more details." >&5
8699 echo "$as_me: error: cannot run test program while cross compiling
8700 See \`config.log' for more details." >&2;}
8701 { (exit 1); exit 1; }; }
8703 cat >conftest.
$ac_ext <<_ACEOF
8706 cat confdefs.h
>>conftest.
$ac_ext
8707 cat >>conftest.
$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8710 long longval () { return (long) (sizeof (double)); }
8711 unsigned long ulongval () { return (long) (sizeof (double)); }
8718 FILE *f = fopen ("conftest.val", "w");
8721 if (((long) (sizeof (double))) < 0)
8723 long i = longval ();
8724 if (i != ((long) (sizeof (double))))
8726 fprintf (f, "%ld\n", i);
8730 unsigned long i = ulongval ();
8731 if (i != ((long) (sizeof (double))))
8733 fprintf (f, "%lu\n", i);
8735 exit (ferror (f) || fclose (f) != 0);
8741 rm -f conftest
$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_cv_sizeof_double
=`cat conftest.val`
8754 echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.
$ac_ext >&5
8759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8760 See \`config.log' for more details." >&5
8761 echo "$as_me: error: cannot compute sizeof (double), 77
8762 See \`config.log' for more details." >&2;}
8763 { (exit 1); exit 1; }; }
8765 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8770 ac_cv_sizeof_double
=0
8773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8774 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8775 cat >>confdefs.h
<<_ACEOF
8776 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8780 echo "$as_me:$LINENO: checking for fpos_t" >&5
8781 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8782 if test "${ac_cv_type_fpos_t+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 cat >conftest.
$ac_ext <<_ACEOF
8788 cat confdefs.h
>>conftest.
$ac_ext
8789 cat >>conftest.
$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8797 if (sizeof (fpos_t))
8803 rm -f conftest.
$ac_objext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805 (eval $ac_compile) 2>conftest.er1
8807 grep -v '^ *+' conftest.er1
>conftest.err
8809 cat conftest.err
>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try
='test -z "$ac_c_werror_flag"
8813 || test ! -s conftest.err'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try
='test -s conftest.$ac_objext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_type_fpos_t
=yes
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.
$ac_ext >&5
8830 ac_cv_type_fpos_t
=no
8832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8835 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8837 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8838 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8839 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 if test "$ac_cv_type_fpos_t" = yes; then
8843 # The cast to unsigned long works around a bug in the HP C Compiler
8844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8846 # This bug is HP SR number 8606223364.
8847 if test "$cross_compiling" = yes; then
8848 # Depending upon the size, compute the lo and hi bounds.
8849 cat >conftest.
$ac_ext <<_ACEOF
8852 cat confdefs.h
>>conftest.
$ac_ext
8853 cat >>conftest.
$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8859 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8866 rm -f conftest.
$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8870 grep -v '^ *+' conftest.er1
>conftest.err
8872 cat conftest.err
>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try
='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try
='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8890 cat >conftest.
$ac_ext <<_ACEOF
8893 cat confdefs.h
>>conftest.
$ac_ext
8894 cat >>conftest.
$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 $ac_includes_default
8900 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8907 rm -f conftest.
$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>conftest.er1
8911 grep -v '^ *+' conftest.er1
>conftest.err
8913 cat conftest.err
>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try
='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try
='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_hi
=$ac_mid; break
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.
$ac_ext >&5
8934 ac_lo
=`expr $ac_mid + 1`
8935 if test $ac_lo -le $ac_mid; then
8939 ac_mid
=`expr 2 '*' $ac_mid + 1`
8941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.
$ac_ext >&5
8947 cat >conftest.
$ac_ext <<_ACEOF
8950 cat confdefs.h
>>conftest.
$ac_ext
8951 cat >>conftest.
$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 $ac_includes_default
8957 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8964 rm -f conftest.
$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8968 grep -v '^ *+' conftest.er1
>conftest.err
8970 cat conftest.err
>&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try
='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try
='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8988 cat >conftest.
$ac_ext <<_ACEOF
8991 cat confdefs.h
>>conftest.
$ac_ext
8992 cat >>conftest.
$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8998 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
9005 rm -f conftest.
$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9009 grep -v '^ *+' conftest.er1
>conftest.err
9011 cat conftest.err
>&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try
='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try
='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_lo
=$ac_mid; break
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.
$ac_ext >&5
9032 ac_hi
=`expr '(' $ac_mid ')' - 1`
9033 if test $ac_mid -le $ac_hi; then
9037 ac_mid
=`expr 2 '*' $ac_mid`
9039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.
$ac_ext >&5
9047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9050 # Binary search between lo and hi bounds.
9051 while test "x$ac_lo" != "x$ac_hi"; do
9052 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9053 cat >conftest.
$ac_ext <<_ACEOF
9056 cat confdefs.h
>>conftest.
$ac_ext
9057 cat >>conftest.
$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9063 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9070 rm -f conftest.
$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9074 grep -v '^ *+' conftest.er1
>conftest.err
9076 cat conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try
='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try
='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.
$ac_ext >&5
9097 ac_lo
=`expr '(' $ac_mid ')' + 1`
9099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9102 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9104 See \`config.log' for more details." >&5
9105 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9106 See \`config.log' for more details." >&2;}
9107 { (exit 1); exit 1; }; } ;;
9110 if test "$cross_compiling" = yes; then
9111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9112 See \`config.log' for more details." >&5
9113 echo "$as_me: error: cannot run test program while cross compiling
9114 See \`config.log' for more details." >&2;}
9115 { (exit 1); exit 1; }; }
9117 cat >conftest.
$ac_ext <<_ACEOF
9120 cat confdefs.h
>>conftest.
$ac_ext
9121 cat >>conftest.
$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 $ac_includes_default
9124 long longval () { return (long) (sizeof (fpos_t)); }
9125 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9132 FILE *f = fopen ("conftest.val", "w");
9135 if (((long) (sizeof (fpos_t))) < 0)
9137 long i = longval ();
9138 if (i != ((long) (sizeof (fpos_t))))
9140 fprintf (f, "%ld\n", i);
9144 unsigned long i = ulongval ();
9145 if (i != ((long) (sizeof (fpos_t))))
9147 fprintf (f, "%lu\n", i);
9149 exit (ferror (f) || fclose (f) != 0);
9155 rm -f conftest
$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9168 echo "$as_me: program exited with status $ac_status" >&5
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.
$ac_ext >&5
9173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9174 See \`config.log' for more details." >&5
9175 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9176 See \`config.log' for more details." >&2;}
9177 { (exit 1); exit 1; }; }
9179 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9184 ac_cv_sizeof_fpos_t
=0
9187 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9188 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9189 cat >>confdefs.h
<<_ACEOF
9190 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9194 echo "$as_me:$LINENO: checking for size_t" >&5
9195 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9196 if test "${ac_cv_type_size_t+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 cat >conftest.
$ac_ext <<_ACEOF
9202 cat confdefs.h
>>conftest.
$ac_ext
9203 cat >>conftest.
$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9211 if (sizeof (size_t))
9217 rm -f conftest.
$ac_objext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>conftest.er1
9221 grep -v '^ *+' conftest.er1
>conftest.err
9223 cat conftest.err
>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try
='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try
='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_type_size_t
=yes
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.
$ac_ext >&5
9244 ac_cv_type_size_t
=no
9246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9249 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9251 echo "$as_me:$LINENO: checking size of size_t" >&5
9252 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9253 if test "${ac_cv_sizeof_size_t+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 if test "$ac_cv_type_size_t" = yes; then
9257 # The cast to unsigned long works around a bug in the HP C Compiler
9258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9260 # This bug is HP SR number 8606223364.
9261 if test "$cross_compiling" = yes; then
9262 # Depending upon the size, compute the lo and hi bounds.
9263 cat >conftest.
$ac_ext <<_ACEOF
9266 cat confdefs.h
>>conftest.
$ac_ext
9267 cat >>conftest.
$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9273 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9280 rm -f conftest.
$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>conftest.er1
9284 grep -v '^ *+' conftest.er1
>conftest.err
9286 cat conftest.err
>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try
='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try
='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9304 cat >conftest.
$ac_ext <<_ACEOF
9307 cat confdefs.h
>>conftest.
$ac_ext
9308 cat >>conftest.
$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $ac_includes_default
9314 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9321 rm -f conftest.
$ac_objext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9323 (eval $ac_compile) 2>conftest.er1
9325 grep -v '^ *+' conftest.er1
>conftest.err
9327 cat conftest.err
>&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try
='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try
='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_hi
=$ac_mid; break
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.
$ac_ext >&5
9348 ac_lo
=`expr $ac_mid + 1`
9349 if test $ac_lo -le $ac_mid; then
9353 ac_mid
=`expr 2 '*' $ac_mid + 1`
9355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.
$ac_ext >&5
9361 cat >conftest.
$ac_ext <<_ACEOF
9364 cat confdefs.h
>>conftest.
$ac_ext
9365 cat >>conftest.
$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 $ac_includes_default
9371 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9378 rm -f conftest.
$ac_objext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380 (eval $ac_compile) 2>conftest.er1
9382 grep -v '^ *+' conftest.er1
>conftest.err
9384 cat conftest.err
>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try
='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try
='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9402 cat >conftest.
$ac_ext <<_ACEOF
9405 cat confdefs.h
>>conftest.
$ac_ext
9406 cat >>conftest.
$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 $ac_includes_default
9412 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9419 rm -f conftest.
$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9423 grep -v '^ *+' conftest.er1
>conftest.err
9425 cat conftest.err
>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try
='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try
='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_lo
=$ac_mid; break
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.
$ac_ext >&5
9446 ac_hi
=`expr '(' $ac_mid ')' - 1`
9447 if test $ac_mid -le $ac_hi; then
9451 ac_mid
=`expr 2 '*' $ac_mid`
9453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.
$ac_ext >&5
9461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9464 # Binary search between lo and hi bounds.
9465 while test "x$ac_lo" != "x$ac_hi"; do
9466 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9467 cat >conftest.
$ac_ext <<_ACEOF
9470 cat confdefs.h
>>conftest.
$ac_ext
9471 cat >>conftest.
$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9477 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9484 rm -f conftest.
$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9488 grep -v '^ *+' conftest.er1
>conftest.err
9490 cat conftest.err
>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try
='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try
='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.
$ac_ext >&5
9511 ac_lo
=`expr '(' $ac_mid ')' + 1`
9513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9516 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9518 See \`config.log' for more details." >&5
9519 echo "$as_me: error: cannot compute sizeof (size_t), 77
9520 See \`config.log' for more details." >&2;}
9521 { (exit 1); exit 1; }; } ;;
9524 if test "$cross_compiling" = yes; then
9525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9526 See \`config.log' for more details." >&5
9527 echo "$as_me: error: cannot run test program while cross compiling
9528 See \`config.log' for more details." >&2;}
9529 { (exit 1); exit 1; }; }
9531 cat >conftest.
$ac_ext <<_ACEOF
9534 cat confdefs.h
>>conftest.
$ac_ext
9535 cat >>conftest.
$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 long longval () { return (long) (sizeof (size_t)); }
9539 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9546 FILE *f = fopen ("conftest.val", "w");
9549 if (((long) (sizeof (size_t))) < 0)
9551 long i = longval ();
9552 if (i != ((long) (sizeof (size_t))))
9554 fprintf (f, "%ld\n", i);
9558 unsigned long i = ulongval ();
9559 if (i != ((long) (sizeof (size_t))))
9561 fprintf (f, "%lu\n", i);
9563 exit (ferror (f) || fclose (f) != 0);
9569 rm -f conftest
$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_sizeof_size_t
=`cat conftest.val`
9582 echo "$as_me: program exited with status $ac_status" >&5
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.
$ac_ext >&5
9587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9588 See \`config.log' for more details." >&5
9589 echo "$as_me: error: cannot compute sizeof (size_t), 77
9590 See \`config.log' for more details." >&2;}
9591 { (exit 1); exit 1; }; }
9593 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9598 ac_cv_sizeof_size_t
=0
9601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9602 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9603 cat >>confdefs.h
<<_ACEOF
9604 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9609 echo "$as_me:$LINENO: checking for long long support" >&5
9610 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9612 cat >conftest.
$ac_ext <<_ACEOF
9615 cat confdefs.h
>>conftest.
$ac_ext
9616 cat >>conftest.
$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9622 long long x; x = (long long)0;
9627 rm -f conftest.
$ac_objext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629 (eval $ac_compile) 2>conftest.er1
9631 grep -v '^ *+' conftest.er1
>conftest.err
9633 cat conftest.err
>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try
='test -z "$ac_c_werror_flag"
9637 || test ! -s conftest.err'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; } &&
9643 { ac_try
='test -s conftest.$ac_objext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9651 cat >>confdefs.h
<<\_ACEOF
9652 #define HAVE_LONG_LONG 1
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.
$ac_ext >&5
9662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9663 echo "$as_me:$LINENO: result: $have_long_long" >&5
9664 echo "${ECHO_T}$have_long_long" >&6
9665 if test "$have_long_long" = yes ; then
9666 echo "$as_me:$LINENO: checking for long long" >&5
9667 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9668 if test "${ac_cv_type_long_long+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 cat >conftest.
$ac_ext <<_ACEOF
9674 cat confdefs.h
>>conftest.
$ac_ext
9675 cat >>conftest.
$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9681 if ((long long *) 0)
9683 if (sizeof (long long))
9689 rm -f conftest.
$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>conftest.er1
9693 grep -v '^ *+' conftest.er1
>conftest.err
9695 cat conftest.err
>&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try
='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try
='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_cv_type_long_long
=yes
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.
$ac_ext >&5
9716 ac_cv_type_long_long
=no
9718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9721 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9723 echo "$as_me:$LINENO: checking size of long long" >&5
9724 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9725 if test "${ac_cv_sizeof_long_long+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 if test "$ac_cv_type_long_long" = yes; then
9729 # The cast to unsigned long works around a bug in the HP C Compiler
9730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9732 # This bug is HP SR number 8606223364.
9733 if test "$cross_compiling" = yes; then
9734 # Depending upon the size, compute the lo and hi bounds.
9735 cat >conftest.
$ac_ext <<_ACEOF
9738 cat confdefs.h
>>conftest.
$ac_ext
9739 cat >>conftest.
$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 $ac_includes_default
9745 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9752 rm -f conftest.
$ac_objext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754 (eval $ac_compile) 2>conftest.er1
9756 grep -v '^ *+' conftest.er1
>conftest.err
9758 cat conftest.err
>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try
='test -z "$ac_c_werror_flag"
9762 || test ! -s conftest.err'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; } &&
9768 { ac_try
='test -s conftest.$ac_objext'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9776 cat >conftest.
$ac_ext <<_ACEOF
9779 cat confdefs.h
>>conftest.
$ac_ext
9780 cat >>conftest.
$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9786 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9793 rm -f conftest.
$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>conftest.er1
9797 grep -v '^ *+' conftest.er1
>conftest.err
9799 cat conftest.err
>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try
='test -z "$ac_c_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try
='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_hi
=$ac_mid; break
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.
$ac_ext >&5
9820 ac_lo
=`expr $ac_mid + 1`
9821 if test $ac_lo -le $ac_mid; then
9825 ac_mid
=`expr 2 '*' $ac_mid + 1`
9827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.
$ac_ext >&5
9833 cat >conftest.
$ac_ext <<_ACEOF
9836 cat confdefs.h
>>conftest.
$ac_ext
9837 cat >>conftest.
$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 $ac_includes_default
9843 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9850 rm -f conftest.
$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>conftest.er1
9854 grep -v '^ *+' conftest.er1
>conftest.err
9856 cat conftest.err
>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try
='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try
='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9874 cat >conftest.
$ac_ext <<_ACEOF
9877 cat confdefs.h
>>conftest.
$ac_ext
9878 cat >>conftest.
$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9884 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9891 rm -f conftest.
$ac_objext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9893 (eval $ac_compile) 2>conftest.er1
9895 grep -v '^ *+' conftest.er1
>conftest.err
9897 cat conftest.err
>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try
='test -z "$ac_c_werror_flag"
9901 || test ! -s conftest.err'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try
='test -s conftest.$ac_objext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 ac_lo
=$ac_mid; break
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.
$ac_ext >&5
9918 ac_hi
=`expr '(' $ac_mid ')' - 1`
9919 if test $ac_mid -le $ac_hi; then
9923 ac_mid
=`expr 2 '*' $ac_mid`
9925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.
$ac_ext >&5
9933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9936 # Binary search between lo and hi bounds.
9937 while test "x$ac_lo" != "x$ac_hi"; do
9938 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9939 cat >conftest.
$ac_ext <<_ACEOF
9942 cat confdefs.h
>>conftest.
$ac_ext
9943 cat >>conftest.
$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9956 rm -f conftest.
$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1
>conftest.err
9962 cat conftest.err
>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try
='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try
='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.
$ac_ext >&5
9983 ac_lo
=`expr '(' $ac_mid ')' + 1`
9985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9988 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9989 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9990 See \`config.log' for more details." >&5
9991 echo "$as_me: error: cannot compute sizeof (long long), 77
9992 See \`config.log' for more details." >&2;}
9993 { (exit 1); exit 1; }; } ;;
9996 if test "$cross_compiling" = yes; then
9997 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9998 See \`config.log' for more details." >&5
9999 echo "$as_me: error: cannot run test program while cross compiling
10000 See \`config.log' for more details." >&2;}
10001 { (exit 1); exit 1; }; }
10003 cat >conftest.
$ac_ext <<_ACEOF
10006 cat confdefs.h
>>conftest.
$ac_ext
10007 cat >>conftest.
$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 long longval () { return (long) (sizeof (long long)); }
10011 unsigned long ulongval () { return (long) (sizeof (long long)); }
10013 #include <stdlib.h>
10018 FILE *f = fopen ("conftest.val", "w");
10021 if (((long) (sizeof (long long))) < 0)
10023 long i = longval ();
10024 if (i != ((long) (sizeof (long long))))
10026 fprintf (f, "%ld\n", i);
10030 unsigned long i = ulongval ();
10031 if (i != ((long) (sizeof (long long))))
10033 fprintf (f, "%lu\n", i);
10035 exit (ferror (f) || fclose (f) != 0);
10041 rm -f conftest
$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_sizeof_long_long
=`cat conftest.val`
10054 echo "$as_me: program exited with status $ac_status" >&5
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.
$ac_ext >&5
10058 ( exit $ac_status )
10059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10060 See \`config.log' for more details." >&5
10061 echo "$as_me: error: cannot compute sizeof (long long), 77
10062 See \`config.log' for more details." >&2;}
10063 { (exit 1); exit 1; }; }
10065 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10070 ac_cv_sizeof_long_long
=0
10073 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10074 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10075 cat >>confdefs.h
<<_ACEOF
10076 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10082 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10083 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10084 if test "${ac_cv_type_uintptr_t+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.
$ac_ext <<_ACEOF
10090 cat confdefs.h
>>conftest.
$ac_ext
10091 cat >>conftest.
$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 #ifdef HAVE_STDINT_H
10094 #include <stdint.h>
10100 if ((uintptr_t *) 0)
10102 if (sizeof (uintptr_t))
10108 rm -f conftest.
$ac_objext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110 (eval $ac_compile) 2>conftest.er1
10112 grep -v '^ *+' conftest.er1
>conftest.err
10114 cat conftest.err
>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try
='test -z "$ac_c_werror_flag"
10118 || test ! -s conftest.err'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try
='test -s conftest.$ac_objext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_type_uintptr_t
=yes
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.
$ac_ext >&5
10135 ac_cv_type_uintptr_t
=no
10137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10140 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10141 if test $ac_cv_type_uintptr_t = yes; then
10143 cat >>confdefs.h
<<_ACEOF
10144 #define HAVE_UINTPTR_T 1
10147 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10148 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10149 if test "${ac_cv_type_uintptr_t+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 cat >conftest.
$ac_ext <<_ACEOF
10155 cat confdefs.h
>>conftest.
$ac_ext
10156 cat >>conftest.
$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 $ac_includes_default
10162 if ((uintptr_t *) 0)
10164 if (sizeof (uintptr_t))
10170 rm -f conftest.
$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1
>conftest.err
10176 cat conftest.err
>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try
='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try
='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_type_uintptr_t
=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.
$ac_ext >&5
10197 ac_cv_type_uintptr_t
=no
10199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10201 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10202 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10204 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10205 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10206 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 if test "$ac_cv_type_uintptr_t" = yes; then
10210 # The cast to unsigned long works around a bug in the HP C Compiler
10211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10213 # This bug is HP SR number 8606223364.
10214 if test "$cross_compiling" = yes; then
10215 # Depending upon the size, compute the lo and hi bounds.
10216 cat >conftest.
$ac_ext <<_ACEOF
10219 cat confdefs.h
>>conftest.
$ac_ext
10220 cat >>conftest.
$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 $ac_includes_default
10226 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10233 rm -f conftest.
$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1
>conftest.err
10239 cat conftest.err
>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try
='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try
='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10257 cat >conftest.
$ac_ext <<_ACEOF
10260 cat confdefs.h
>>conftest.
$ac_ext
10261 cat >>conftest.
$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 $ac_includes_default
10267 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10274 rm -f conftest.
$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10278 grep -v '^ *+' conftest.er1
>conftest.err
10280 cat conftest.err
>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try
='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try
='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_hi
=$ac_mid; break
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.
$ac_ext >&5
10301 ac_lo
=`expr $ac_mid + 1`
10302 if test $ac_lo -le $ac_mid; then
10306 ac_mid
=`expr 2 '*' $ac_mid + 1`
10308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.
$ac_ext >&5
10314 cat >conftest.
$ac_ext <<_ACEOF
10317 cat confdefs.h
>>conftest.
$ac_ext
10318 cat >>conftest.
$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10324 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10331 rm -f conftest.
$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1
>conftest.err
10337 cat conftest.err
>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try
='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try
='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10355 cat >conftest.
$ac_ext <<_ACEOF
10358 cat confdefs.h
>>conftest.
$ac_ext
10359 cat >>conftest.
$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10365 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10372 rm -f conftest.
$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10376 grep -v '^ *+' conftest.er1
>conftest.err
10378 cat conftest.err
>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try
='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try
='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_lo
=$ac_mid; break
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.
$ac_ext >&5
10399 ac_hi
=`expr '(' $ac_mid ')' - 1`
10400 if test $ac_mid -le $ac_hi; then
10404 ac_mid
=`expr 2 '*' $ac_mid`
10406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.
$ac_ext >&5
10414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10417 # Binary search between lo and hi bounds.
10418 while test "x$ac_lo" != "x$ac_hi"; do
10419 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10420 cat >conftest.
$ac_ext <<_ACEOF
10423 cat confdefs.h
>>conftest.
$ac_ext
10424 cat >>conftest.
$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10430 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10437 rm -f conftest.
$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>conftest.er1
10441 grep -v '^ *+' conftest.er1
>conftest.err
10443 cat conftest.err
>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try
='test -z "$ac_c_werror_flag"
10447 || test ! -s conftest.err'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try
='test -s conftest.$ac_objext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.
$ac_ext >&5
10464 ac_lo
=`expr '(' $ac_mid ')' + 1`
10466 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10469 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10470 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10471 See \`config.log' for more details." >&5
10472 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10473 See \`config.log' for more details." >&2;}
10474 { (exit 1); exit 1; }; } ;;
10477 if test "$cross_compiling" = yes; then
10478 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10479 See \`config.log' for more details." >&5
10480 echo "$as_me: error: cannot run test program while cross compiling
10481 See \`config.log' for more details." >&2;}
10482 { (exit 1); exit 1; }; }
10484 cat >conftest.
$ac_ext <<_ACEOF
10487 cat confdefs.h
>>conftest.
$ac_ext
10488 cat >>conftest.
$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 $ac_includes_default
10491 long longval () { return (long) (sizeof (uintptr_t)); }
10492 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10494 #include <stdlib.h>
10499 FILE *f = fopen ("conftest.val", "w");
10502 if (((long) (sizeof (uintptr_t))) < 0)
10504 long i = longval ();
10505 if (i != ((long) (sizeof (uintptr_t))))
10507 fprintf (f, "%ld\n", i);
10511 unsigned long i = ulongval ();
10512 if (i != ((long) (sizeof (uintptr_t))))
10514 fprintf (f, "%lu\n", i);
10516 exit (ferror (f) || fclose (f) != 0);
10522 rm -f conftest
$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10535 echo "$as_me: program exited with status $ac_status" >&5
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.
$ac_ext >&5
10539 ( exit $ac_status )
10540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10541 See \`config.log' for more details." >&5
10542 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10543 See \`config.log' for more details." >&2;}
10544 { (exit 1); exit 1; }; }
10546 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10551 ac_cv_sizeof_uintptr_t
=0
10554 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10555 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10556 cat >>confdefs.h
<<_ACEOF
10557 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10565 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10566 echo "$as_me:$LINENO: checking size of off_t" >&5
10567 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10568 if test "${ac_cv_sizeof_off_t+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 if test "$cross_compiling" = yes; then
10572 ac_cv_sizeof_off_t
=4
10574 cat >conftest.
$ac_ext <<_ACEOF
10577 cat confdefs.h
>>conftest.
$ac_ext
10578 cat >>conftest.
$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10581 #include <sys/types.h>
10584 FILE *f=fopen("conftestval", "w");
10586 fprintf(f, "%d\n", sizeof(off_t));
10590 rm -f conftest
$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_sizeof_off_t
=`cat conftestval`
10603 echo "$as_me: program exited with status $ac_status" >&5
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.
$ac_ext >&5
10607 ( exit $ac_status )
10608 ac_cv_sizeof_off_t
=0
10610 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10616 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10618 cat >>confdefs.h
<<_ACEOF
10619 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10623 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10624 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10625 if test "$have_long_long" = yes -a \
10626 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10627 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10629 cat >>confdefs.h
<<\_ACEOF
10630 #define HAVE_LARGEFILE_SUPPORT 1
10633 echo "$as_me:$LINENO: result: yes" >&5
10634 echo "${ECHO_T}yes" >&6
10636 echo "$as_me:$LINENO: result: no" >&5
10637 echo "${ECHO_T}no" >&6
10640 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10641 echo "$as_me:$LINENO: checking size of time_t" >&5
10642 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10643 if test "${ac_cv_sizeof_time_t+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 if test "$cross_compiling" = yes; then
10647 ac_cv_sizeof_time_t
=4
10649 cat >conftest.
$ac_ext <<_ACEOF
10652 cat confdefs.h
>>conftest.
$ac_ext
10653 cat >>conftest.
$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10659 FILE *f=fopen("conftestval", "w");
10661 fprintf(f, "%d\n", sizeof(time_t));
10665 rm -f conftest
$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_sizeof_time_t
=`cat conftestval`
10678 echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.
$ac_ext >&5
10682 ( exit $ac_status )
10683 ac_cv_sizeof_time_t
=0
10685 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10691 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10693 cat >>confdefs.h
<<_ACEOF
10694 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10699 # if have pthread_t then define SIZEOF_PTHREAD_T
10701 if test "$ac_cv_kpthread" = "yes"
10702 then CC
="$CC -Kpthread"
10703 elif test "$ac_cv_kthread" = "yes"
10704 then CC
="$CC -Kthread"
10705 elif test "$ac_cv_pthread" = "yes"
10706 then CC
="$CC -pthread"
10708 echo "$as_me:$LINENO: checking for pthread_t" >&5
10709 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10711 cat >conftest.
$ac_ext <<_ACEOF
10714 cat confdefs.h
>>conftest.
$ac_ext
10715 cat >>conftest.
$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <pthread.h>
10721 pthread_t x; x = *(pthread_t*)0;
10726 rm -f conftest.
$ac_objext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>conftest.er1
10730 grep -v '^ *+' conftest.er1
>conftest.err
10732 cat conftest.err
>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try
='test -z "$ac_c_werror_flag"
10736 || test ! -s conftest.err'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try
='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.
$ac_ext >&5
10754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10755 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10756 echo "${ECHO_T}$have_pthread_t" >&6
10757 if test "$have_pthread_t" = yes ; then
10758 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10759 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10760 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10761 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 if test "$cross_compiling" = yes; then
10765 ac_cv_sizeof_pthread_t
=4
10767 cat >conftest.
$ac_ext <<_ACEOF
10770 cat confdefs.h
>>conftest.
$ac_ext
10771 cat >>conftest.
$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10774 #include <pthread.h>
10777 FILE *f=fopen("conftestval", "w");
10779 fprintf(f, "%d\n", sizeof(pthread_t));
10783 rm -f conftest
$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_sizeof_pthread_t
=`cat conftestval`
10796 echo "$as_me: program exited with status $ac_status" >&5
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.
$ac_ext >&5
10800 ( exit $ac_status )
10801 ac_cv_sizeof_pthread_t
=0
10803 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10808 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10809 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10811 cat >>confdefs.h
<<_ACEOF
10812 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10818 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10819 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10820 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10821 if test "${enable_toolbox_glue+set}" = set; then
10822 enableval
="$enable_toolbox_glue"
10826 if test -z "$enable_toolbox_glue"
10828 case $ac_sys_system/$ac_sys_release in
10830 enable_toolbox_glue
="yes";;
10832 enable_toolbox_glue
="no";;
10835 case "$enable_toolbox_glue" in
10837 extra_machdep_objs
="Python/mactoolboxglue.o"
10838 extra_undefs
="-u _PyMac_Error"
10840 cat >>confdefs.h
<<\_ACEOF
10841 #define USE_TOOLBOX_OBJECT_GLUE 1
10846 extra_machdep_objs
=""
10850 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10851 echo "${ECHO_T}$enable_toolbox_glue" >&6
10854 case $ac_sys_system/$ac_sys_release in
10855 Darwin
/[01567]\..
*)
10856 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10859 OTHER_LIBTOOL_OPT
=""
10864 case $ac_sys_system/$ac_sys_release in
10865 Darwin
/[01567]\..
*)
10866 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
10867 if test "${enable_universalsdk}"; then
10870 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
10872 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10873 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10875 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10876 if test ${gcc_version} '<' 4.0
10878 LIBTOOL_CRUFT
="-lcc_dynamic"
10882 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10883 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10884 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10887 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10888 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10889 if test "$enable_framework"
10891 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10892 # -F. is needed to allow linking to the framework while
10893 # in the build location.
10895 cat >>confdefs.h
<<\_ACEOF
10896 #define WITH_NEXT_FRAMEWORK 1
10899 echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6
10902 echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10906 echo "$as_me:$LINENO: checking for dyld" >&5
10907 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10908 case $ac_sys_system/$ac_sys_release in
10911 cat >>confdefs.h
<<\_ACEOF
10912 #define WITH_DYLD 1
10915 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10916 echo "${ECHO_T}always on for Darwin" >&6
10919 echo "$as_me:$LINENO: result: no" >&5
10920 echo "${ECHO_T}no" >&6
10924 # Set info about shared libraries.
10930 # SO is the extension of shared libraries `(including the dot!)
10931 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10932 echo "$as_me:$LINENO: checking SO" >&5
10933 echo $ECHO_N "checking SO... $ECHO_C" >&6
10936 case $ac_sys_system in
10947 # this might also be a termcap variable, see #610332
10949 echo '====================================================================='
10951 echo '+ WARNING: You have set SO in your environment. +'
10952 echo '+ Do you really mean to change the extension for shared libraries? +'
10953 echo '+ Continuing in 10 seconds to let you to ponder. +'
10955 echo '====================================================================='
10958 echo "$as_me:$LINENO: result: $SO" >&5
10959 echo "${ECHO_T}$SO" >&6
10961 cat >>confdefs.h
<<_ACEOF
10962 #define SHLIB_EXT "$SO"
10965 # LDSHARED is the ld *command* used to create shared library
10966 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10967 # (Shared libraries in this instance are shared modules to be loaded into
10968 # Python, as opposed to building Python itself as a shared library.)
10969 echo "$as_me:$LINENO: checking LDSHARED" >&5
10970 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10971 if test -z "$LDSHARED"
10973 case $ac_sys_system/$ac_sys_release in
10975 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10976 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10979 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10980 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10982 IRIX
/5*) LDSHARED
="ld -shared";;
10983 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10985 if test "$GCC" = "yes"
10986 then LDSHARED
='$(CC) -shared'
10987 else LDSHARED
='$(CC) -G';
10989 hp
*|HP
*) LDSHARED
="ld -b";;
10990 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10992 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10993 if test "$enable_framework" ; then
10994 # Link against the framework. All externals should be defined.
10995 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10996 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10998 # No framework. Ignore undefined symbols, assuming they come from Python
10999 LDSHARED
="$LDSHARED -undefined suppress"
11001 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
11002 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11003 if test "$enable_framework" ; then
11004 # Link against the framework. All externals should be defined.
11005 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11006 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11008 # No framework, use the Python app as bundle-loader
11009 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11010 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11013 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11014 # This allows an extension to be used in any Python
11015 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11016 if test ${cur_target} '>' 10.2; then
11019 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11020 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
11021 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11023 if test "${enable_universalsdk}"; then
11024 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11026 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11027 BLDSHARED
="$LDSHARED"
11029 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11030 if test "$enable_framework" ; then
11031 # Link against the framework. All externals should be defined.
11032 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11033 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11035 # No framework, use the Python app as bundle-loader
11036 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11037 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11041 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11042 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11044 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11046 LDSHARED
="$CC -shared ${LDFLAGS}"
11048 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11051 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11053 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11056 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11057 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11060 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11064 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11065 OpenUNIX
*|UnixWare
*)
11066 if test "$GCC" = "yes"
11067 then LDSHARED
='$(CC) -shared'
11068 else LDSHARED
='$(CC) -G'
11070 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11071 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11072 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11073 atheos
*) LDSHARED
="gcc -shared";;
11077 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11078 echo "${ECHO_T}$LDSHARED" >&6
11079 BLDSHARED
=${BLDSHARED-$LDSHARED}
11080 # CCSHARED are the C *flags* used to create objects to go into a shared
11081 # library (module) -- this is only needed for a few systems
11082 echo "$as_me:$LINENO: checking CCSHARED" >&5
11083 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11084 if test -z "$CCSHARED"
11086 case $ac_sys_system/$ac_sys_release in
11087 SunOS
*) if test "$GCC" = yes;
11088 then CCSHARED
="-fPIC";
11089 else CCSHARED
="-xcode=pic32";
11091 hp
*|HP
*) if test "$GCC" = yes;
11092 then CCSHARED
="-fPIC";
11093 else CCSHARED
="+z";
11095 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11096 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11097 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11098 OpenUNIX
*|UnixWare
*)
11099 if test "$GCC" = "yes"
11100 then CCSHARED
="-fPIC"
11101 else CCSHARED
="-KPIC"
11104 if test "$GCC" = "yes"
11105 then CCSHARED
="-fPIC"
11106 else CCSHARED
="-Kpic -belf"
11108 Monterey
*) CCSHARED
="-G";;
11109 IRIX
*/6*) case $CC in
11110 *gcc
*) CCSHARED
="-shared";;
11113 atheos
*) CCSHARED
="-fPIC";;
11116 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11117 echo "${ECHO_T}$CCSHARED" >&6
11118 # LINKFORSHARED are the flags passed to the $(CC) command that links
11119 # the python executable -- this is only needed for a few systems
11120 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11121 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11122 if test -z "$LINKFORSHARED"
11124 case $ac_sys_system/$ac_sys_release in
11125 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11127 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11128 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11129 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11130 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11131 # -u libsys_s pulls in all symbols in libsys
11133 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11135 # not used by the core itself but which needs to be in the core so
11136 # that dynamically loaded extension modules have access to it.
11137 # -prebind is no longer used, because it actually seems to give a
11138 # slowdown in stead of a speedup, maybe due to the large number of
11139 # dynamic loads Python does.
11141 LINKFORSHARED
="$extra_undefs"
11142 if test "$enable_framework"
11144 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11146 LINKFORSHARED
="$LINKFORSHARED";;
11147 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11148 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11149 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11150 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11151 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11153 LINKFORSHARED
="-Wl,--export-dynamic"
11155 SunOS
/5*) case $CC in
11157 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11159 LINKFORSHARED
="-Xlinker --export-dynamic"
11163 if test $enable_shared = "no"
11165 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11169 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11170 echo "${ECHO_T}$LINKFORSHARED" >&6
11173 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11174 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11175 if test ! "$LIBRARY" = "$LDLIBRARY"
11177 case $ac_sys_system in
11179 # Cygwin needs CCSHARED when building extension DLLs
11180 # but not when building the interpreter DLL.
11181 CFLAGSFORSHARED
='';;
11183 CFLAGSFORSHARED
='$(CCSHARED)'
11186 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11187 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11189 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11190 # library (with --enable-shared).
11191 # For platforms on which shared libraries are not allowed to have unresolved
11192 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11193 # if it is not required, since it creates a dependency of the shared library
11194 # to LIBS. This, in turn, means that applications linking the shared libpython
11195 # don't need to link LIBS explicitly. The default should be only changed
11196 # on systems where this approach causes problems.
11198 echo "$as_me:$LINENO: checking SHLIBS" >&5
11199 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11200 case "$ac_sys_system" in
11204 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11205 echo "${ECHO_T}$SHLIBS" >&6
11208 # checks for libraries
11210 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11211 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 ac_check_lib_save_LIBS
=$LIBS
11217 cat >conftest.
$ac_ext <<_ACEOF
11220 cat confdefs.h
>>conftest.
$ac_ext
11221 cat >>conftest.
$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11224 /* Override any gcc2 internal prototype to avoid an error. */
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11239 rm -f conftest.
$ac_objext conftest
$ac_exeext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>conftest.er1
11243 grep -v '^ *+' conftest.er1
>conftest.err
11245 cat conftest.err
>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try
='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try
='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_lib_dl_dlopen
=yes
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.
$ac_ext >&5
11266 ac_cv_lib_dl_dlopen
=no
11268 rm -f conftest.err conftest.
$ac_objext \
11269 conftest
$ac_exeext conftest.
$ac_ext
11270 LIBS
=$ac_check_lib_save_LIBS
11272 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11273 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11274 if test $ac_cv_lib_dl_dlopen = yes; then
11275 cat >>confdefs.h
<<_ACEOF
11276 #define HAVE_LIBDL 1
11282 # Dynamic linking for SunOS/Solaris and SYSV
11284 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11285 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11286 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 ac_check_lib_save_LIBS
=$LIBS
11291 cat >conftest.
$ac_ext <<_ACEOF
11294 cat confdefs.h
>>conftest.
$ac_ext
11295 cat >>conftest.
$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11298 /* Override any gcc2 internal prototype to avoid an error. */
11302 /* We use char because int might match the return type of a gcc2
11303 builtin and then its argument prototype would still apply. */
11313 rm -f conftest.
$ac_objext conftest
$ac_exeext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11315 (eval $ac_link) 2>conftest.er1
11317 grep -v '^ *+' conftest.er1
>conftest.err
11319 cat conftest.err
>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try
='test -z "$ac_c_werror_flag"
11323 || test ! -s conftest.err'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try
='test -s conftest$ac_exeext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_lib_dld_shl_load
=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.
$ac_ext >&5
11340 ac_cv_lib_dld_shl_load
=no
11342 rm -f conftest.err conftest.
$ac_objext \
11343 conftest
$ac_exeext conftest.
$ac_ext
11344 LIBS
=$ac_check_lib_save_LIBS
11346 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11347 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11348 if test $ac_cv_lib_dld_shl_load = yes; then
11349 cat >>confdefs.h
<<_ACEOF
11350 #define HAVE_LIBDLD 1
11356 # Dynamic linking for HP-UX
11358 # only check for sem_ini if thread support is requested
11359 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11360 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11361 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11362 if test "${ac_cv_search_sem_init+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 ac_func_search_save_LIBS
=$LIBS
11366 ac_cv_search_sem_init
=no
11367 cat >conftest.
$ac_ext <<_ACEOF
11370 cat confdefs.h
>>conftest.
$ac_ext
11371 cat >>conftest.
$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11374 /* Override any gcc2 internal prototype to avoid an error. */
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11389 rm -f conftest.
$ac_objext conftest
$ac_exeext
11390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11391 (eval $ac_link) 2>conftest.er1
11393 grep -v '^ *+' conftest.er1
>conftest.err
11395 cat conftest.err
>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try
='test -z "$ac_c_werror_flag"
11399 || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try
='test -s conftest$ac_exeext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_cv_search_sem_init
="none required"
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.
$ac_ext >&5
11417 rm -f conftest.err conftest.
$ac_objext \
11418 conftest
$ac_exeext conftest.
$ac_ext
11419 if test "$ac_cv_search_sem_init" = no
; then
11420 for ac_lib
in pthread rt posix4
; do
11421 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11422 cat >conftest.
$ac_ext <<_ACEOF
11425 cat confdefs.h
>>conftest.
$ac_ext
11426 cat >>conftest.
$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11429 /* Override any gcc2 internal prototype to avoid an error. */
11433 /* We use char because int might match the return type of a gcc2
11434 builtin and then its argument prototype would still apply. */
11444 rm -f conftest.
$ac_objext conftest
$ac_exeext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11446 (eval $ac_link) 2>conftest.er1
11448 grep -v '^ *+' conftest.er1
>conftest.err
11450 cat conftest.err
>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try
='test -z "$ac_c_werror_flag"
11454 || test ! -s conftest.err'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try
='test -s conftest$ac_exeext'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_cv_search_sem_init
="-l$ac_lib"
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.
$ac_ext >&5
11473 rm -f conftest.err conftest.
$ac_objext \
11474 conftest
$ac_exeext conftest.
$ac_ext
11477 LIBS
=$ac_func_search_save_LIBS
11479 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11480 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11481 if test "$ac_cv_search_sem_init" != no
; then
11482 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11485 # 'Real Time' functions on Solaris
11486 # posix4 on Solaris 2.6
11487 # pthread (first!) on Linux
11490 # check if we need libintl for locale functions
11491 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11492 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11493 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 ac_check_lib_save_LIBS
=$LIBS
11497 LIBS
="-lintl $LIBS"
11498 cat >conftest.
$ac_ext <<_ACEOF
11501 cat confdefs.h
>>conftest.
$ac_ext
11502 cat >>conftest.
$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11505 /* Override any gcc2 internal prototype to avoid an error. */
11509 /* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11511 char textdomain ();
11520 rm -f conftest.
$ac_objext conftest
$ac_exeext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11522 (eval $ac_link) 2>conftest.er1
11524 grep -v '^ *+' conftest.er1
>conftest.err
11526 cat conftest.err
>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try
='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try
='test -s conftest$ac_exeext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_cv_lib_intl_textdomain
=yes
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.
$ac_ext >&5
11547 ac_cv_lib_intl_textdomain
=no
11549 rm -f conftest.err conftest.
$ac_objext \
11550 conftest
$ac_exeext conftest.
$ac_ext
11551 LIBS
=$ac_check_lib_save_LIBS
11553 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11554 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11555 if test $ac_cv_lib_intl_textdomain = yes; then
11557 cat >>confdefs.h
<<\_ACEOF
11558 #define WITH_LIBINTL 1
11564 # checks for system dependent C++ extensions support
11565 case "$ac_sys_system" in
11566 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11567 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11568 cat >conftest.
$ac_ext <<_ACEOF
11571 cat confdefs.h
>>conftest.
$ac_ext
11572 cat >>conftest.
$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include "/usr/lpp/xlC/include/load.h"
11578 loadAndInit("", 0, "")
11583 rm -f conftest.
$ac_objext conftest
$ac_exeext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>conftest.er1
11587 grep -v '^ *+' conftest.er1
>conftest.err
11589 cat conftest.err
>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try
='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try
='test -s conftest$ac_exeext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11606 cat >>confdefs.h
<<\_ACEOF
11607 #define AIX_GENUINE_CPLUSPLUS 1
11610 echo "$as_me:$LINENO: result: yes" >&5
11611 echo "${ECHO_T}yes" >&6
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.
$ac_ext >&5
11616 echo "$as_me:$LINENO: result: no" >&5
11617 echo "${ECHO_T}no" >&6
11619 rm -f conftest.err conftest.
$ac_objext \
11620 conftest
$ac_exeext conftest.
$ac_ext;;
11624 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11625 # BeOS' sockets are stashed in libnet.
11626 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11627 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11628 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 ac_check_lib_save_LIBS
=$LIBS
11633 cat >conftest.
$ac_ext <<_ACEOF
11636 cat confdefs.h
>>conftest.
$ac_ext
11637 cat >>conftest.
$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11640 /* Override any gcc2 internal prototype to avoid an error. */
11644 /* We use char because int might match the return type of a gcc2
11645 builtin and then its argument prototype would still apply. */
11655 rm -f conftest.
$ac_objext conftest
$ac_exeext
11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>conftest.er1
11659 grep -v '^ *+' conftest.er1
>conftest.err
11661 cat conftest.err
>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try
='test -z "$ac_c_werror_flag"
11665 || test ! -s conftest.err'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try
='test -s conftest$ac_exeext'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 ac_cv_lib_nsl_t_open
=yes
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.
$ac_ext >&5
11682 ac_cv_lib_nsl_t_open
=no
11684 rm -f conftest.err conftest.
$ac_objext \
11685 conftest
$ac_exeext conftest.
$ac_ext
11686 LIBS
=$ac_check_lib_save_LIBS
11688 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11689 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11690 if test $ac_cv_lib_nsl_t_open = yes; then
11694 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11695 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11696 if test "${ac_cv_lib_socket_socket+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 ac_check_lib_save_LIBS
=$LIBS
11700 LIBS
="-lsocket $LIBS $LIBS"
11701 cat >conftest.
$ac_ext <<_ACEOF
11704 cat confdefs.h
>>conftest.
$ac_ext
11705 cat >>conftest.
$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11708 /* Override any gcc2 internal prototype to avoid an error. */
11712 /* We use char because int might match the return type of a gcc2
11713 builtin and then its argument prototype would still apply. */
11723 rm -f conftest.
$ac_objext conftest
$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725 (eval $ac_link) 2>conftest.er1
11727 grep -v '^ *+' conftest.er1
>conftest.err
11729 cat conftest.err
>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try
='test -z "$ac_c_werror_flag"
11733 || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try
='test -s conftest$ac_exeext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_cv_lib_socket_socket
=yes
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.
$ac_ext >&5
11750 ac_cv_lib_socket_socket
=no
11752 rm -f conftest.err conftest.
$ac_objext \
11753 conftest
$ac_exeext conftest.
$ac_ext
11754 LIBS
=$ac_check_lib_save_LIBS
11756 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11757 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11758 if test $ac_cv_lib_socket_socket = yes; then
11759 LIBS
="-lsocket $LIBS"
11763 case "$ac_sys_system" in
11765 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11766 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11767 if test "${ac_cv_lib_net_socket+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 ac_check_lib_save_LIBS
=$LIBS
11771 LIBS
="-lnet $LIBS $LIBS"
11772 cat >conftest.
$ac_ext <<_ACEOF
11775 cat confdefs.h
>>conftest.
$ac_ext
11776 cat >>conftest.
$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11779 /* Override any gcc2 internal prototype to avoid an error. */
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11794 rm -f conftest.
$ac_objext conftest
$ac_exeext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796 (eval $ac_link) 2>conftest.er1
11798 grep -v '^ *+' conftest.er1
>conftest.err
11800 cat conftest.err
>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try
='test -z "$ac_c_werror_flag"
11804 || test ! -s conftest.err'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try
='test -s conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_cv_lib_net_socket
=yes
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.
$ac_ext >&5
11821 ac_cv_lib_net_socket
=no
11823 rm -f conftest.err conftest.
$ac_objext \
11824 conftest
$ac_exeext conftest.
$ac_ext
11825 LIBS
=$ac_check_lib_save_LIBS
11827 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11828 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11829 if test $ac_cv_lib_net_socket = yes; then
11836 echo "$as_me:$LINENO: checking for --with-libs" >&5
11837 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11839 # Check whether --with-libs or --without-libs was given.
11840 if test "${with_libs+set}" = set; then
11841 withval
="$with_libs"
11843 echo "$as_me:$LINENO: result: $withval" >&5
11844 echo "${ECHO_T}$withval" >&6
11845 LIBS
="$withval $LIBS"
11848 echo "$as_me:$LINENO: result: no" >&5
11849 echo "${ECHO_T}no" >&6
11852 # Check for use of the system libffi library
11853 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11854 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11856 # Check whether --with-system_ffi or --without-system_ffi was given.
11857 if test "${with_system_ffi+set}" = set; then
11858 withval
="$with_system_ffi"
11862 if test -z "$with_system_ffi"
11863 then with_system_ffi
="no"
11865 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11866 echo "${ECHO_T}$with_system_ffi" >&6
11868 # Determine if signalmodule should be used.
11871 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11872 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11874 # Check whether --with-signal-module or --without-signal-module was given.
11875 if test "${with_signal_module+set}" = set; then
11876 withval
="$with_signal_module"
11880 if test -z "$with_signal_module"
11881 then with_signal_module
="yes"
11883 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11884 echo "${ECHO_T}$with_signal_module" >&6
11886 if test "${with_signal_module}" = "yes"; then
11887 USE_SIGNAL_MODULE
=""
11890 USE_SIGNAL_MODULE
="#"
11891 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11894 # This is used to generate Setup.config
11896 USE_THREAD_MODULE
=""
11898 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11899 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11902 # Check whether --with-dec-threads or --without-dec-threads was given.
11903 if test "${with_dec_threads+set}" = set; then
11904 withval
="$with_dec_threads"
11906 echo "$as_me:$LINENO: result: $withval" >&5
11907 echo "${ECHO_T}$withval" >&6
11909 if test "${with_thread+set}" != set; then
11910 with_thread
="$withval";
11913 echo "$as_me:$LINENO: result: no" >&5
11914 echo "${ECHO_T}no" >&6
11917 # Templates for things AC_DEFINEd more than once.
11918 # For a single AC_DEFINE, no template is needed.
11926 echo "$as_me:$LINENO: checking for --with-threads" >&5
11927 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11929 # Check whether --with-threads or --without-threads was given.
11930 if test "${with_threads+set}" = set; then
11931 withval
="$with_threads"
11935 # --with-thread is deprecated, but check for it anyway
11937 # Check whether --with-thread or --without-thread was given.
11938 if test "${with_thread+set}" = set; then
11939 withval
="$with_thread"
11940 with_threads
=$with_thread
11943 if test -z "$with_threads"
11944 then with_threads
="yes"
11946 echo "$as_me:$LINENO: result: $with_threads" >&5
11947 echo "${ECHO_T}$with_threads" >&6
11950 if test "$with_threads" = "no"
11952 USE_THREAD_MODULE
="#"
11953 elif test "$ac_cv_pthread_is_default" = yes
11955 cat >>confdefs.h
<<\_ACEOF
11956 #define WITH_THREAD 1
11959 # Defining _REENTRANT on system with POSIX threads should not hurt.
11960 cat >>confdefs.h
<<\_ACEOF
11961 #define _REENTRANT 1
11965 THREADOBJ
="Python/thread.o"
11966 elif test "$ac_cv_kpthread" = "yes"
11969 if test "$ac_cv_cxx_thread" = "yes"; then
11970 CXX
="$CXX -Kpthread"
11972 cat >>confdefs.h
<<\_ACEOF
11973 #define WITH_THREAD 1
11977 THREADOBJ
="Python/thread.o"
11978 elif test "$ac_cv_kthread" = "yes"
11981 if test "$ac_cv_cxx_thread" = "yes"; then
11982 CXX
="$CXX -Kthread"
11984 cat >>confdefs.h
<<\_ACEOF
11985 #define WITH_THREAD 1
11989 THREADOBJ
="Python/thread.o"
11990 elif test "$ac_cv_pthread" = "yes"
11993 if test "$ac_cv_cxx_thread" = "yes"; then
11994 CXX
="$CXX -pthread"
11996 cat >>confdefs.h
<<\_ACEOF
11997 #define WITH_THREAD 1
12001 THREADOBJ
="Python/thread.o"
12003 if test ! -z "$with_threads" -a -d "$with_threads"
12004 then LDFLAGS
="$LDFLAGS -L$with_threads"
12006 if test ! -z "$withval" -a -d "$withval"
12007 then LDFLAGS
="$LDFLAGS -L$withval"
12010 # According to the POSIX spec, a pthreads implementation must
12011 # define _POSIX_THREADS in unistd.h. Some apparently don't
12012 # (e.g. gnu pth with pthread emulation)
12013 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12014 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12015 cat >conftest.
$ac_ext <<_ACEOF
12018 cat confdefs.h
>>conftest.
$ac_ext
12019 cat >>conftest.
$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12022 #include <unistd.h>
12023 #ifdef _POSIX_THREADS
12028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12029 $EGREP "yes" >/dev
/null
2>&1; then
12030 unistd_defines_pthreads
=yes
12032 unistd_defines_pthreads
=no
12036 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12037 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12039 cat >>confdefs.h
<<\_ACEOF
12040 #define _REENTRANT 1
12043 if test "${ac_cv_header_cthreads_h+set}" = set; then
12044 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12045 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12046 if test "${ac_cv_header_cthreads_h+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12050 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12052 # Is the header compilable?
12053 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12054 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12055 cat >conftest.
$ac_ext <<_ACEOF
12058 cat confdefs.h
>>conftest.
$ac_ext
12059 cat >>conftest.
$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 $ac_includes_default
12062 #include <cthreads.h>
12064 rm -f conftest.
$ac_objext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12066 (eval $ac_compile) 2>conftest.er1
12068 grep -v '^ *+' conftest.er1
>conftest.err
12070 cat conftest.err
>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try
='test -z "$ac_c_werror_flag"
12074 || test ! -s conftest.err'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try
='test -s conftest.$ac_objext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 ac_header_compiler
=yes
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.
$ac_ext >&5
12091 ac_header_compiler
=no
12093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12095 echo "${ECHO_T}$ac_header_compiler" >&6
12097 # Is the header present?
12098 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12099 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12100 cat >conftest.
$ac_ext <<_ACEOF
12103 cat confdefs.h
>>conftest.
$ac_ext
12104 cat >>conftest.
$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <cthreads.h>
12108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12109 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12111 grep -v '^ *+' conftest.er1
>conftest.err
12113 cat conftest.err
>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } >/dev
/null
; then
12116 if test -s conftest.err
; then
12117 ac_cpp_err
=$ac_c_preproc_warn_flag
12118 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12125 if test -z "$ac_cpp_err"; then
12126 ac_header_preproc
=yes
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.
$ac_ext >&5
12131 ac_header_preproc
=no
12133 rm -f conftest.err conftest.
$ac_ext
12134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12135 echo "${ECHO_T}$ac_header_preproc" >&6
12137 # So? What about this header?
12138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12140 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12141 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12143 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12144 ac_header_preproc
=yes
12147 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12148 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12150 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12152 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12154 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12156 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12158 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12161 ## ------------------------------------------------ ##
12162 ## Report this to http://www.python.org/python-bugs ##
12163 ## ------------------------------------------------ ##
12166 sed "s/^/$as_me: WARNING: /" >&2
12169 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12170 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12171 if test "${ac_cv_header_cthreads_h+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 ac_cv_header_cthreads_h
=$ac_header_preproc
12176 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12177 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12180 if test $ac_cv_header_cthreads_h = yes; then
12181 cat >>confdefs.h
<<\_ACEOF
12182 #define WITH_THREAD 1
12185 cat >>confdefs.h
<<\_ACEOF
12186 #define C_THREADS 1
12190 cat >>confdefs.h
<<\_ACEOF
12191 #define HURD_C_THREADS 1
12194 LIBS
="$LIBS -lthreads"
12195 THREADOBJ
="Python/thread.o"
12198 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12199 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12200 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12201 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12207 # Is the header compilable?
12208 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12209 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12210 cat >conftest.
$ac_ext <<_ACEOF
12213 cat confdefs.h
>>conftest.
$ac_ext
12214 cat >>conftest.
$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 $ac_includes_default
12217 #include <mach/cthreads.h>
12219 rm -f conftest.
$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1
>conftest.err
12225 cat conftest.err
>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try
='test -z "$ac_c_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try
='test -s conftest.$ac_objext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_header_compiler
=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.
$ac_ext >&5
12246 ac_header_compiler
=no
12248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12250 echo "${ECHO_T}$ac_header_compiler" >&6
12252 # Is the header present?
12253 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12254 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12255 cat >conftest.
$ac_ext <<_ACEOF
12258 cat confdefs.h
>>conftest.
$ac_ext
12259 cat >>conftest.
$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 #include <mach/cthreads.h>
12263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12264 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12266 grep -v '^ *+' conftest.er1
>conftest.err
12268 cat conftest.err
>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } >/dev
/null
; then
12271 if test -s conftest.err
; then
12272 ac_cpp_err
=$ac_c_preproc_warn_flag
12273 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12280 if test -z "$ac_cpp_err"; then
12281 ac_header_preproc
=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.
$ac_ext >&5
12286 ac_header_preproc
=no
12288 rm -f conftest.err conftest.
$ac_ext
12289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12290 echo "${ECHO_T}$ac_header_preproc" >&6
12292 # So? What about this header?
12293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12295 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12296 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12298 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12299 ac_header_preproc
=yes
12302 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12303 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12305 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12307 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12309 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12311 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12313 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12316 ## ------------------------------------------------ ##
12317 ## Report this to http://www.python.org/python-bugs ##
12318 ## ------------------------------------------------ ##
12321 sed "s/^/$as_me: WARNING: /" >&2
12324 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12325 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12326 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12331 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12332 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12335 if test $ac_cv_header_mach_cthreads_h = yes; then
12336 cat >>confdefs.h
<<\_ACEOF
12337 #define WITH_THREAD 1
12340 cat >>confdefs.h
<<\_ACEOF
12341 #define C_THREADS 1
12345 cat >>confdefs.h
<<\_ACEOF
12346 #define MACH_C_THREADS 1
12349 THREADOBJ
="Python/thread.o"
12352 echo "$as_me:$LINENO: checking for --with-pth" >&5
12353 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12355 # Check whether --with-pth or --without-pth was given.
12356 if test "${with_pth+set}" = set; then
12357 withval
="$with_pth"
12358 echo "$as_me:$LINENO: result: $withval" >&5
12359 echo "${ECHO_T}$withval" >&6
12360 cat >>confdefs.h
<<\_ACEOF
12361 #define WITH_THREAD 1
12365 cat >>confdefs.h
<<\_ACEOF
12370 THREADOBJ
="Python/thread.o"
12372 echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6
12375 # Just looking for pthread_create in libpthread is not enough:
12376 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12377 # So we really have to include pthread.h, and then link.
12379 LIBS
="$LIBS -lpthread"
12380 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12381 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12382 cat >conftest.
$ac_ext <<_ACEOF
12385 cat confdefs.h
>>conftest.
$ac_ext
12386 cat >>conftest.
$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 #include <pthread.h>
12390 void * start_routine (void *arg) { exit (0); }
12395 pthread_create (NULL, NULL, start_routine, NULL)
12400 rm -f conftest.
$ac_objext conftest
$ac_exeext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>conftest.er1
12404 grep -v '^ *+' conftest.er1
>conftest.err
12406 cat conftest.err
>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try
='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try
='test -s conftest$ac_exeext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12423 echo "$as_me:$LINENO: result: yes" >&5
12424 echo "${ECHO_T}yes" >&6
12425 cat >>confdefs.h
<<\_ACEOF
12426 #define WITH_THREAD 1
12430 THREADOBJ
="Python/thread.o"
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.
$ac_ext >&5
12437 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12438 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12439 if test "${ac_cv_func_pthread_detach+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 cat >conftest.
$ac_ext <<_ACEOF
12445 cat confdefs.h
>>conftest.
$ac_ext
12446 cat >>conftest.
$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450 #define pthread_detach innocuous_pthread_detach
12452 /* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char pthread_detach (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12458 # include <limits.h>
12460 # include <assert.h>
12463 #undef pthread_detach
12465 /* Override any gcc2 internal prototype to avoid an error. */
12470 /* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12472 char pthread_detach ();
12473 /* The GNU C library defines this for functions which it implements
12474 to always fail with ENOSYS. Some functions are actually named
12475 something starting with __ and the normal name is an alias. */
12476 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12479 char (*f) () = pthread_detach;
12488 return f != pthread_detach;
12493 rm -f conftest.
$ac_objext conftest
$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>conftest.er1
12497 grep -v '^ *+' conftest.er1
>conftest.err
12499 cat conftest.err
>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try
='test -z "$ac_c_werror_flag"
12503 || test ! -s conftest.err'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try
='test -s conftest$ac_exeext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_cv_func_pthread_detach
=yes
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.
$ac_ext >&5
12520 ac_cv_func_pthread_detach
=no
12522 rm -f conftest.err conftest.
$ac_objext \
12523 conftest
$ac_exeext conftest.
$ac_ext
12525 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12526 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12527 if test $ac_cv_func_pthread_detach = yes; then
12528 cat >>confdefs.h
<<\_ACEOF
12529 #define WITH_THREAD 1
12533 THREADOBJ
="Python/thread.o"
12536 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12537 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12538 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12539 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12543 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12545 # Is the header compilable?
12546 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12547 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12548 cat >conftest.
$ac_ext <<_ACEOF
12551 cat confdefs.h
>>conftest.
$ac_ext
12552 cat >>conftest.
$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 $ac_includes_default
12555 #include <atheos/threads.h>
12557 rm -f conftest.
$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>conftest.er1
12561 grep -v '^ *+' conftest.er1
>conftest.err
12563 cat conftest.err
>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try
='test -z "$ac_c_werror_flag"
12567 || test ! -s conftest.err'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try
='test -s conftest.$ac_objext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 ac_header_compiler
=yes
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.
$ac_ext >&5
12584 ac_header_compiler
=no
12586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12588 echo "${ECHO_T}$ac_header_compiler" >&6
12590 # Is the header present?
12591 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12592 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12593 cat >conftest.
$ac_ext <<_ACEOF
12596 cat confdefs.h
>>conftest.
$ac_ext
12597 cat >>conftest.
$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 #include <atheos/threads.h>
12601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12602 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12604 grep -v '^ *+' conftest.er1
>conftest.err
12606 cat conftest.err
>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } >/dev
/null
; then
12609 if test -s conftest.err
; then
12610 ac_cpp_err
=$ac_c_preproc_warn_flag
12611 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12618 if test -z "$ac_cpp_err"; then
12619 ac_header_preproc
=yes
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.
$ac_ext >&5
12624 ac_header_preproc
=no
12626 rm -f conftest.err conftest.
$ac_ext
12627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12628 echo "${ECHO_T}$ac_header_preproc" >&6
12630 # So? What about this header?
12631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12633 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12634 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12635 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12636 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12637 ac_header_preproc
=yes
12640 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12641 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12643 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12645 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12647 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12649 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12651 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12654 ## ------------------------------------------------ ##
12655 ## Report this to http://www.python.org/python-bugs ##
12656 ## ------------------------------------------------ ##
12659 sed "s/^/$as_me: WARNING: /" >&2
12662 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12663 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12664 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12669 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12670 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12673 if test $ac_cv_header_atheos_threads_h = yes; then
12674 cat >>confdefs.h
<<\_ACEOF
12675 #define WITH_THREAD 1
12679 cat >>confdefs.h
<<\_ACEOF
12680 #define ATHEOS_THREADS 1
12683 THREADOBJ
="Python/thread.o"
12686 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12687 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12688 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12689 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12693 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12695 # Is the header compilable?
12696 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12697 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12698 cat >conftest.
$ac_ext <<_ACEOF
12701 cat confdefs.h
>>conftest.
$ac_ext
12702 cat >>conftest.
$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12704 $ac_includes_default
12705 #include <kernel/OS.h>
12707 rm -f conftest.
$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12711 grep -v '^ *+' conftest.er1
>conftest.err
12713 cat conftest.err
>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try
='test -z "$ac_c_werror_flag"
12717 || test ! -s conftest.err'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try
='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_header_compiler
=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.
$ac_ext >&5
12734 ac_header_compiler
=no
12736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12738 echo "${ECHO_T}$ac_header_compiler" >&6
12740 # Is the header present?
12741 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12742 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12743 cat >conftest.
$ac_ext <<_ACEOF
12746 cat confdefs.h
>>conftest.
$ac_ext
12747 cat >>conftest.
$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12749 #include <kernel/OS.h>
12751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12752 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12754 grep -v '^ *+' conftest.er1
>conftest.err
12756 cat conftest.err
>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } >/dev
/null
; then
12759 if test -s conftest.err
; then
12760 ac_cpp_err
=$ac_c_preproc_warn_flag
12761 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12768 if test -z "$ac_cpp_err"; then
12769 ac_header_preproc
=yes
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.
$ac_ext >&5
12774 ac_header_preproc
=no
12776 rm -f conftest.err conftest.
$ac_ext
12777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12778 echo "${ECHO_T}$ac_header_preproc" >&6
12780 # So? What about this header?
12781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12783 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12784 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12785 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12786 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12787 ac_header_preproc
=yes
12790 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12791 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12793 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12795 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12797 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12799 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12801 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12804 ## ------------------------------------------------ ##
12805 ## Report this to http://www.python.org/python-bugs ##
12806 ## ------------------------------------------------ ##
12809 sed "s/^/$as_me: WARNING: /" >&2
12812 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12813 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12814 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12819 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12820 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12823 if test $ac_cv_header_kernel_OS_h = yes; then
12824 cat >>confdefs.h
<<\_ACEOF
12825 #define WITH_THREAD 1
12829 cat >>confdefs.h
<<\_ACEOF
12830 #define BEOS_THREADS 1
12833 THREADOBJ
="Python/thread.o"
12836 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12837 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12838 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 ac_check_lib_save_LIBS
=$LIBS
12842 LIBS
="-lpthreads $LIBS"
12843 cat >conftest.
$ac_ext <<_ACEOF
12846 cat confdefs.h
>>conftest.
$ac_ext
12847 cat >>conftest.
$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 /* Override any gcc2 internal prototype to avoid an error. */
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char pthread_create ();
12865 rm -f conftest.
$ac_objext conftest
$ac_exeext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12867 (eval $ac_link) 2>conftest.er1
12869 grep -v '^ *+' conftest.er1
>conftest.err
12871 cat conftest.err
>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try
='test -z "$ac_c_werror_flag"
12875 || test ! -s conftest.err'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try
='test -s conftest$ac_exeext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_cv_lib_pthreads_pthread_create
=yes
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.
$ac_ext >&5
12892 ac_cv_lib_pthreads_pthread_create
=no
12894 rm -f conftest.err conftest.
$ac_objext \
12895 conftest
$ac_exeext conftest.
$ac_ext
12896 LIBS
=$ac_check_lib_save_LIBS
12898 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12899 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12900 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12901 cat >>confdefs.h
<<\_ACEOF
12902 #define WITH_THREAD 1
12906 LIBS
="$LIBS -lpthreads"
12907 THREADOBJ
="Python/thread.o"
12910 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12911 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12912 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 ac_check_lib_save_LIBS
=$LIBS
12917 cat >conftest.
$ac_ext <<_ACEOF
12920 cat confdefs.h
>>conftest.
$ac_ext
12921 cat >>conftest.
$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12924 /* Override any gcc2 internal prototype to avoid an error. */
12928 /* We use char because int might match the return type of a gcc2
12929 builtin and then its argument prototype would still apply. */
12930 char pthread_create ();
12939 rm -f conftest.
$ac_objext conftest
$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>conftest.er1
12943 grep -v '^ *+' conftest.er1
>conftest.err
12945 cat conftest.err
>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try
='test -z "$ac_c_werror_flag"
12949 || test ! -s conftest.err'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try
='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_lib_c_r_pthread_create
=yes
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.
$ac_ext >&5
12966 ac_cv_lib_c_r_pthread_create
=no
12968 rm -f conftest.err conftest.
$ac_objext \
12969 conftest
$ac_exeext conftest.
$ac_ext
12970 LIBS
=$ac_check_lib_save_LIBS
12972 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12973 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12974 if test $ac_cv_lib_c_r_pthread_create = yes; then
12975 cat >>confdefs.h
<<\_ACEOF
12976 #define WITH_THREAD 1
12981 THREADOBJ
="Python/thread.o"
12984 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12985 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12986 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 ac_check_lib_save_LIBS
=$LIBS
12990 LIBS
="-lpthread $LIBS"
12991 cat >conftest.
$ac_ext <<_ACEOF
12994 cat confdefs.h
>>conftest.
$ac_ext
12995 cat >>conftest.
$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12998 /* Override any gcc2 internal prototype to avoid an error. */
13002 /* We use char because int might match the return type of a gcc2
13003 builtin and then its argument prototype would still apply. */
13004 char __pthread_create_system ();
13008 __pthread_create_system ();
13013 rm -f conftest.
$ac_objext conftest
$ac_exeext
13014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015 (eval $ac_link) 2>conftest.er1
13017 grep -v '^ *+' conftest.er1
>conftest.err
13019 cat conftest.err
>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try
='test -z "$ac_c_werror_flag"
13023 || test ! -s conftest.err'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try
='test -s conftest$ac_exeext'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 ac_cv_lib_pthread___pthread_create_system
=yes
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.
$ac_ext >&5
13040 ac_cv_lib_pthread___pthread_create_system
=no
13042 rm -f conftest.err conftest.
$ac_objext \
13043 conftest
$ac_exeext conftest.
$ac_ext
13044 LIBS
=$ac_check_lib_save_LIBS
13046 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13047 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13048 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13049 cat >>confdefs.h
<<\_ACEOF
13050 #define WITH_THREAD 1
13054 LIBS
="$LIBS -lpthread"
13055 THREADOBJ
="Python/thread.o"
13058 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13059 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13060 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 ac_check_lib_save_LIBS
=$LIBS
13065 cat >conftest.
$ac_ext <<_ACEOF
13068 cat confdefs.h
>>conftest.
$ac_ext
13069 cat >>conftest.
$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13072 /* Override any gcc2 internal prototype to avoid an error. */
13076 /* We use char because int might match the return type of a gcc2
13077 builtin and then its argument prototype would still apply. */
13078 char pthread_create ();
13087 rm -f conftest.
$ac_objext conftest
$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>conftest.er1
13091 grep -v '^ *+' conftest.er1
>conftest.err
13093 cat conftest.err
>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } &&
13096 { ac_try
='test -z "$ac_c_werror_flag"
13097 || test ! -s conftest.err'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try
='test -s conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_lib_cma_pthread_create
=yes
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.
$ac_ext >&5
13114 ac_cv_lib_cma_pthread_create
=no
13116 rm -f conftest.err conftest.
$ac_objext \
13117 conftest
$ac_exeext conftest.
$ac_ext
13118 LIBS
=$ac_check_lib_save_LIBS
13120 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13121 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13122 if test $ac_cv_lib_cma_pthread_create = yes; then
13123 cat >>confdefs.h
<<\_ACEOF
13124 #define WITH_THREAD 1
13129 THREADOBJ
="Python/thread.o"
13132 USE_THREAD_MODULE
="#"
13151 rm -f conftest.err conftest.
$ac_objext \
13152 conftest
$ac_exeext conftest.
$ac_ext
13161 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13162 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13163 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 ac_check_lib_save_LIBS
=$LIBS
13168 cat >conftest.
$ac_ext <<_ACEOF
13171 cat confdefs.h
>>conftest.
$ac_ext
13172 cat >>conftest.
$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13175 /* Override any gcc2 internal prototype to avoid an error. */
13179 /* We use char because int might match the return type of a gcc2
13180 builtin and then its argument prototype would still apply. */
13190 rm -f conftest.
$ac_objext conftest
$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>conftest.er1
13194 grep -v '^ *+' conftest.er1
>conftest.err
13196 cat conftest.err
>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } &&
13199 { ac_try
='test -z "$ac_c_werror_flag"
13200 || test ! -s conftest.err'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try
='test -s conftest$ac_exeext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 ac_cv_lib_mpc_usconfig
=yes
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.
$ac_ext >&5
13217 ac_cv_lib_mpc_usconfig
=no
13219 rm -f conftest.err conftest.
$ac_objext \
13220 conftest
$ac_exeext conftest.
$ac_ext
13221 LIBS
=$ac_check_lib_save_LIBS
13223 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13224 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13225 if test $ac_cv_lib_mpc_usconfig = yes; then
13226 cat >>confdefs.h
<<\_ACEOF
13227 #define WITH_THREAD 1
13231 THREADOBJ
="Python/thread.o"
13232 USE_THREAD_MODULE
=""
13236 if test "$posix_threads" != "yes"; then
13237 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13238 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13239 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 ac_check_lib_save_LIBS
=$LIBS
13243 LIBS
="-lthread $LIBS"
13244 cat >conftest.
$ac_ext <<_ACEOF
13247 cat confdefs.h
>>conftest.
$ac_ext
13248 cat >>conftest.
$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13251 /* Override any gcc2 internal prototype to avoid an error. */
13255 /* We use char because int might match the return type of a gcc2
13256 builtin and then its argument prototype would still apply. */
13257 char thr_create ();
13266 rm -f conftest.
$ac_objext conftest
$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>conftest.er1
13270 grep -v '^ *+' conftest.er1
>conftest.err
13272 cat conftest.err
>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try
='test -z "$ac_c_werror_flag"
13276 || test ! -s conftest.err'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try
='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_cv_lib_thread_thr_create
=yes
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.
$ac_ext >&5
13293 ac_cv_lib_thread_thr_create
=no
13295 rm -f conftest.err conftest.
$ac_objext \
13296 conftest
$ac_exeext conftest.
$ac_ext
13297 LIBS
=$ac_check_lib_save_LIBS
13299 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13300 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13301 if test $ac_cv_lib_thread_thr_create = yes; then
13302 cat >>confdefs.h
<<\_ACEOF
13303 #define WITH_THREAD 1
13306 LIBS
="$LIBS -lthread"
13307 THREADOBJ
="Python/thread.o"
13308 USE_THREAD_MODULE
=""
13313 if test "$USE_THREAD_MODULE" != "#"
13315 # If the above checks didn't disable threads, (at least) OSF1
13316 # needs this '-threads' argument during linking.
13317 case $ac_sys_system in
13318 OSF1
) LDLAST
=-threads;;
13323 if test "$posix_threads" = "yes"; then
13324 if test "$unistd_defines_pthreads" = "no"; then
13326 cat >>confdefs.h
<<\_ACEOF
13327 #define _POSIX_THREADS 1
13332 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13333 case $ac_sys_system/$ac_sys_release in
13335 cat >>confdefs.h
<<\_ACEOF
13336 #define HAVE_PTHREAD_DESTRUCTOR 1
13341 cat >>confdefs.h
<<\_ACEOF
13342 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13348 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13349 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13350 if test "${ac_cv_pthread_system_supported+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 if test "$cross_compiling" = yes; then
13354 ac_cv_pthread_system_supported
=no
13356 cat >conftest.
$ac_ext <<_ACEOF
13359 cat confdefs.h
>>conftest.
$ac_ext
13360 cat >>conftest.
$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <pthread.h>
13363 void *foo(void *parm) {
13367 pthread_attr_t attr;
13369 if (pthread_attr_init(&attr)) exit(-1);
13370 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13371 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13375 rm -f conftest
$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_pthread_system_supported
=yes
13388 echo "$as_me: program exited with status $ac_status" >&5
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.
$ac_ext >&5
13392 ( exit $ac_status )
13393 ac_cv_pthread_system_supported
=no
13395 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13400 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13401 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13402 if test "$ac_cv_pthread_system_supported" = "yes"; then
13404 cat >>confdefs.h
<<\_ACEOF
13405 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13410 for ac_func
in pthread_sigmask
13412 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13413 echo "$as_me:$LINENO: checking for $ac_func" >&5
13414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13415 if eval "test \"\${$as_ac_var+set}\" = set"; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 cat >conftest.
$ac_ext <<_ACEOF
13421 cat confdefs.h
>>conftest.
$ac_ext
13422 cat >>conftest.
$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13426 #define $ac_func innocuous_$ac_func
13428 /* System header to define __stub macros and hopefully few prototypes,
13429 which can conflict with char $ac_func (); below.
13430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13431 <limits.h> exists even on freestanding compilers. */
13434 # include <limits.h>
13436 # include <assert.h>
13441 /* Override any gcc2 internal prototype to avoid an error. */
13446 /* We use char because int might match the return type of a gcc2
13447 builtin and then its argument prototype would still apply. */
13449 /* The GNU C library defines this for functions which it implements
13450 to always fail with ENOSYS. Some functions are actually named
13451 something starting with __ and the normal name is an alias. */
13452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13455 char (*f) () = $ac_func;
13464 return f != $ac_func;
13469 rm -f conftest.
$ac_objext conftest
$ac_exeext
13470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471 (eval $ac_link) 2>conftest.er1
13473 grep -v '^ *+' conftest.er1
>conftest.err
13475 cat conftest.err
>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try
='test -z "$ac_c_werror_flag"
13479 || test ! -s conftest.err'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try
='test -s conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 eval "$as_ac_var=yes"
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.
$ac_ext >&5
13496 eval "$as_ac_var=no"
13498 rm -f conftest.err conftest.
$ac_objext \
13499 conftest
$ac_exeext conftest.
$ac_ext
13501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13503 if test `eval echo '${'$as_ac_var'}'` = yes; then
13504 cat >>confdefs.h
<<_ACEOF
13505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13507 case $ac_sys_system in
13510 cat >>confdefs.h
<<\_ACEOF
13511 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13522 # Check for enable-ipv6
13525 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13526 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13527 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13528 if test "${enable_ipv6+set}" = set; then
13529 enableval
="$enable_ipv6"
13530 case "$enableval" in
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13536 *) echo "$as_me:$LINENO: result: yes" >&5
13537 echo "${ECHO_T}yes" >&6
13538 cat >>confdefs.h
<<\_ACEOF
13539 #define ENABLE_IPV6 1
13547 if test "$cross_compiling" = yes; then
13548 echo "$as_me:$LINENO: result: no" >&5
13549 echo "${ECHO_T}no" >&6
13553 cat >conftest.
$ac_ext <<_ACEOF
13556 cat confdefs.h
>>conftest.
$ac_ext
13557 cat >>conftest.
$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 /* AF_INET6 available check */
13560 #include <sys/types.h>
13561 #include <sys/socket.h>
13564 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13571 rm -f conftest
$ac_exeext
13572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13573 (eval $ac_link) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 echo "$as_me:$LINENO: result: yes" >&5
13583 echo "${ECHO_T}yes" >&6
13586 echo "$as_me: program exited with status $ac_status" >&5
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.
$ac_ext >&5
13590 ( exit $ac_status )
13591 echo "$as_me:$LINENO: result: no" >&5
13592 echo "${ECHO_T}no" >&6
13595 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13598 if test "$ipv6" = "yes"; then
13599 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13600 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13601 cat >conftest.
$ac_ext <<_ACEOF
13604 cat confdefs.h
>>conftest.
$ac_ext
13605 cat >>conftest.
$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 #include <sys/types.h>
13608 #include <netinet/in.h>
13612 struct sockaddr_in6 x;
13618 rm -f conftest.
$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>conftest.er1
13622 grep -v '^ *+' conftest.er1
>conftest.err
13624 cat conftest.err
>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try
='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try
='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 echo "$as_me:$LINENO: result: yes" >&5
13641 echo "${ECHO_T}yes" >&6
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.
$ac_ext >&5
13647 echo "$as_me:$LINENO: result: no" >&5
13648 echo "${ECHO_T}no" >&6
13651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13654 if test "$ipv6" = "yes"; then
13655 cat >>confdefs.h
<<\_ACEOF
13656 #define ENABLE_IPV6 1
13667 if test "$ipv6" = "yes"; then
13668 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13669 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13670 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13674 cat >conftest.
$ac_ext <<_ACEOF
13677 cat confdefs.h
>>conftest.
$ac_ext
13678 cat >>conftest.
$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13681 #include <netinet/in.h>
13682 #ifdef IPV6_INRIA_VERSION
13686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13687 $EGREP "yes" >/dev
/null
2>&1; then
13694 cat >conftest.
$ac_ext <<_ACEOF
13697 cat confdefs.h
>>conftest.
$ac_ext
13698 cat >>conftest.
$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13701 #include <netinet/in.h>
13706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13707 $EGREP "yes" >/dev
/null
2>&1; then
13710 ipv6libdir
=/usr
/local
/v
6/lib
13717 cat >conftest.
$ac_ext <<_ACEOF
13720 cat confdefs.h
>>conftest.
$ac_ext
13721 cat >>conftest.
$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13724 #include <features.h>
13725 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13730 $EGREP "yes" >/dev
/null
2>&1; then
13738 if test -d /usr
/inet6
; then
13741 ipv6libdir
=/usr
/inet
6/lib
13742 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13746 if test -f /etc
/netconfig
; then
13747 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13754 cat >conftest.
$ac_ext <<_ACEOF
13757 cat confdefs.h
>>conftest.
$ac_ext
13758 cat >>conftest.
$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13761 #include <sys/param.h>
13762 #ifdef _TOSHIBA_INET6
13766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13767 $EGREP "yes" >/dev
/null
2>&1; then
13770 ipv6libdir
=/usr
/local
/v
6/lib
13776 cat >conftest.
$ac_ext <<_ACEOF
13779 cat confdefs.h
>>conftest.
$ac_ext
13780 cat >>conftest.
$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 #include </usr/local/v6/include/sys/v6config.h>
13788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13789 $EGREP "yes" >/dev
/null
2>&1; then
13792 ipv6libdir
=/usr
/local
/v
6/lib
;
13793 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13799 cat >conftest.
$ac_ext <<_ACEOF
13802 cat confdefs.h
>>conftest.
$ac_ext
13803 cat >>conftest.
$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 #include <sys/param.h>
13807 #ifdef _ZETA_MINAMI_INET6
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "yes" >/dev
/null
2>&1; then
13815 ipv6libdir
=/usr
/local
/v
6/lib
13821 if test "$ipv6type" != "unknown"; then
13825 echo "$as_me:$LINENO: result: $ipv6type" >&5
13826 echo "${ECHO_T}$ipv6type" >&6
13829 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13830 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13831 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13832 echo "using lib$ipv6lib"
13834 if test $ipv6trylibc = "yes"; then
13837 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13838 echo "You need to fetch lib$ipv6lib.a from appropriate"
13839 echo 'ipv6 kit and compile beforehand.'
13845 # Check for --with-doc-strings
13846 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13847 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13849 # Check whether --with-doc-strings or --without-doc-strings was given.
13850 if test "${with_doc_strings+set}" = set; then
13851 withval
="$with_doc_strings"
13855 if test -z "$with_doc_strings"
13856 then with_doc_strings
="yes"
13858 if test "$with_doc_strings" != "no"
13861 cat >>confdefs.h
<<\_ACEOF
13862 #define WITH_DOC_STRINGS 1
13866 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13867 echo "${ECHO_T}$with_doc_strings" >&6
13869 # Check for Python-specific malloc support
13870 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13871 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13873 # Check whether --with-tsc or --without-tsc was given.
13874 if test "${with_tsc+set}" = set; then
13875 withval
="$with_tsc"
13877 if test "$withval" != no
13880 cat >>confdefs.h
<<\_ACEOF
13884 echo "$as_me:$LINENO: result: yes" >&5
13885 echo "${ECHO_T}yes" >&6
13886 else echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6
13890 echo "$as_me:$LINENO: result: no" >&5
13891 echo "${ECHO_T}no" >&6
13894 # Check for Python-specific malloc support
13895 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13896 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13898 # Check whether --with-pymalloc or --without-pymalloc was given.
13899 if test "${with_pymalloc+set}" = set; then
13900 withval
="$with_pymalloc"
13904 if test -z "$with_pymalloc"
13905 then with_pymalloc
="yes"
13907 if test "$with_pymalloc" != "no"
13910 cat >>confdefs.h
<<\_ACEOF
13911 #define WITH_PYMALLOC 1
13915 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13916 echo "${ECHO_T}$with_pymalloc" >&6
13918 # Check for --with-wctype-functions
13919 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13920 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13922 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13923 if test "${with_wctype_functions+set}" = set; then
13924 withval
="$with_wctype_functions"
13926 if test "$withval" != no
13929 cat >>confdefs.h
<<\_ACEOF
13930 #define WANT_WCTYPE_FUNCTIONS 1
13933 echo "$as_me:$LINENO: result: yes" >&5
13934 echo "${ECHO_T}yes" >&6
13935 else echo "$as_me:$LINENO: result: no" >&5
13936 echo "${ECHO_T}no" >&6
13939 echo "$as_me:$LINENO: result: no" >&5
13940 echo "${ECHO_T}no" >&6
13943 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13947 # the dlopen() function means we might want to use dynload_shlib.o. some
13948 # platforms, such as AIX, have dlopen(), but don't want to use it.
13950 for ac_func
in dlopen
13952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13953 echo "$as_me:$LINENO: checking for $ac_func" >&5
13954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13955 if eval "test \"\${$as_ac_var+set}\" = set"; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 cat >conftest.
$ac_ext <<_ACEOF
13961 cat confdefs.h
>>conftest.
$ac_ext
13962 cat >>conftest.
$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13966 #define $ac_func innocuous_$ac_func
13968 /* System header to define __stub macros and hopefully few prototypes,
13969 which can conflict with char $ac_func (); below.
13970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13971 <limits.h> exists even on freestanding compilers. */
13974 # include <limits.h>
13976 # include <assert.h>
13981 /* Override any gcc2 internal prototype to avoid an error. */
13986 /* We use char because int might match the return type of a gcc2
13987 builtin and then its argument prototype would still apply. */
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13995 char (*f) () = $ac_func;
14004 return f != $ac_func;
14009 rm -f conftest.
$ac_objext conftest
$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1
>conftest.err
14015 cat conftest.err
>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try
='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try
='test -s conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 eval "$as_ac_var=yes"
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.
$ac_ext >&5
14036 eval "$as_ac_var=no"
14038 rm -f conftest.err conftest.
$ac_objext \
14039 conftest
$ac_exeext conftest.
$ac_ext
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14043 if test `eval echo '${'$as_ac_var'}'` = yes; then
14044 cat >>confdefs.h
<<_ACEOF
14045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14052 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14053 # loading of modules.
14055 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14056 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14057 if test -z "$DYNLOADFILE"
14059 case $ac_sys_system/$ac_sys_release in
14060 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14061 if test "$ac_cv_func_dlopen" = yes
14062 then DYNLOADFILE
="dynload_shlib.o"
14063 else DYNLOADFILE
="dynload_aix.o"
14066 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14067 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14068 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14069 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14070 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14072 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14073 # out any dynamic loading
14074 if test "$ac_cv_func_dlopen" = yes
14075 then DYNLOADFILE
="dynload_shlib.o"
14076 else DYNLOADFILE
="dynload_stub.o"
14081 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14082 echo "${ECHO_T}$DYNLOADFILE" >&6
14083 if test "$DYNLOADFILE" != "dynload_stub.o"
14086 cat >>confdefs.h
<<\_ACEOF
14087 #define HAVE_DYNAMIC_LOADING 1
14092 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14095 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14096 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14097 if test -z "$MACHDEP_OBJS"
14099 MACHDEP_OBJS
=$extra_machdep_objs
14101 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14103 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14104 echo "${ECHO_T}MACHDEP_OBJS" >&6
14106 # checks for library functions
14183 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14184 execv fork fpathconf ftime ftruncate \
14185 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14186 getpriority getpwent getspnam getspent getsid getwd \
14187 kill killpg lchown lstat
mkfifo mknod mktime \
14188 mremap nice pathconf pause plock poll pthread_init \
14189 putenv readlink realpath \
14190 select setegid seteuid setgid \
14191 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14192 sigaction siginterrupt sigrelse strftime \
14193 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14194 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14196 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14197 echo "$as_me:$LINENO: checking for $ac_func" >&5
14198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14199 if eval "test \"\${$as_ac_var+set}\" = set"; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 cat >conftest.
$ac_ext <<_ACEOF
14205 cat confdefs.h
>>conftest.
$ac_ext
14206 cat >>conftest.
$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14210 #define $ac_func innocuous_$ac_func
14212 /* System header to define __stub macros and hopefully few prototypes,
14213 which can conflict with char $ac_func (); below.
14214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14215 <limits.h> exists even on freestanding compilers. */
14218 # include <limits.h>
14220 # include <assert.h>
14225 /* Override any gcc2 internal prototype to avoid an error. */
14230 /* We use char because int might match the return type of a gcc2
14231 builtin and then its argument prototype would still apply. */
14233 /* The GNU C library defines this for functions which it implements
14234 to always fail with ENOSYS. Some functions are actually named
14235 something starting with __ and the normal name is an alias. */
14236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14239 char (*f) () = $ac_func;
14248 return f != $ac_func;
14253 rm -f conftest.
$ac_objext conftest
$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255 (eval $ac_link) 2>conftest.er1
14257 grep -v '^ *+' conftest.er1
>conftest.err
14259 cat conftest.err
>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try
='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try
='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 eval "$as_ac_var=yes"
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.
$ac_ext >&5
14280 eval "$as_ac_var=no"
14282 rm -f conftest.err conftest.
$ac_objext \
14283 conftest
$ac_exeext conftest.
$ac_ext
14285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14287 if test `eval echo '${'$as_ac_var'}'` = yes; then
14288 cat >>confdefs.h
<<_ACEOF
14289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14296 # For some functions, having a definition is not sufficient, since
14297 # we want to take their address.
14298 echo "$as_me:$LINENO: checking for chroot" >&5
14299 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14300 cat >conftest.
$ac_ext <<_ACEOF
14303 cat confdefs.h
>>conftest.
$ac_ext
14304 cat >>conftest.
$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #include <unistd.h>
14315 rm -f conftest.
$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>conftest.er1
14319 grep -v '^ *+' conftest.er1
>conftest.err
14321 cat conftest.err
>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try
='test -z "$ac_c_werror_flag"
14325 || test ! -s conftest.err'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try
='test -s conftest.$ac_objext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14338 cat >>confdefs.h
<<\_ACEOF
14339 #define HAVE_CHROOT 1
14342 echo "$as_me:$LINENO: result: yes" >&5
14343 echo "${ECHO_T}yes" >&6
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.
$ac_ext >&5
14348 echo "$as_me:$LINENO: result: no" >&5
14349 echo "${ECHO_T}no" >&6
14352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14353 echo "$as_me:$LINENO: checking for link" >&5
14354 echo $ECHO_N "checking for link... $ECHO_C" >&6
14355 cat >conftest.
$ac_ext <<_ACEOF
14358 cat confdefs.h
>>conftest.
$ac_ext
14359 cat >>conftest.
$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 #include <unistd.h>
14370 rm -f conftest.
$ac_objext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14372 (eval $ac_compile) 2>conftest.er1
14374 grep -v '^ *+' conftest.er1
>conftest.err
14376 cat conftest.err
>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try
='test -z "$ac_c_werror_flag"
14380 || test ! -s conftest.err'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try
='test -s conftest.$ac_objext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14393 cat >>confdefs.h
<<\_ACEOF
14394 #define HAVE_LINK 1
14397 echo "$as_me:$LINENO: result: yes" >&5
14398 echo "${ECHO_T}yes" >&6
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.
$ac_ext >&5
14403 echo "$as_me:$LINENO: result: no" >&5
14404 echo "${ECHO_T}no" >&6
14407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14408 echo "$as_me:$LINENO: checking for symlink" >&5
14409 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14410 cat >conftest.
$ac_ext <<_ACEOF
14413 cat confdefs.h
>>conftest.
$ac_ext
14414 cat >>conftest.
$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <unistd.h>
14425 rm -f conftest.
$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14429 grep -v '^ *+' conftest.er1
>conftest.err
14431 cat conftest.err
>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try
='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try
='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14448 cat >>confdefs.h
<<\_ACEOF
14449 #define HAVE_SYMLINK 1
14452 echo "$as_me:$LINENO: result: yes" >&5
14453 echo "${ECHO_T}yes" >&6
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.
$ac_ext >&5
14458 echo "$as_me:$LINENO: result: no" >&5
14459 echo "${ECHO_T}no" >&6
14462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14463 echo "$as_me:$LINENO: checking for fchdir" >&5
14464 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14465 cat >conftest.
$ac_ext <<_ACEOF
14468 cat confdefs.h
>>conftest.
$ac_ext
14469 cat >>conftest.
$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 #include <unistd.h>
14480 rm -f conftest.
$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482 (eval $ac_compile) 2>conftest.er1
14484 grep -v '^ *+' conftest.er1
>conftest.err
14486 cat conftest.err
>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try
='test -z "$ac_c_werror_flag"
14490 || test ! -s conftest.err'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; } &&
14496 { ac_try
='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14503 cat >>confdefs.h
<<\_ACEOF
14504 #define HAVE_FCHDIR 1
14507 echo "$as_me:$LINENO: result: yes" >&5
14508 echo "${ECHO_T}yes" >&6
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.
$ac_ext >&5
14513 echo "$as_me:$LINENO: result: no" >&5
14514 echo "${ECHO_T}no" >&6
14517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14518 echo "$as_me:$LINENO: checking for fsync" >&5
14519 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14520 cat >conftest.
$ac_ext <<_ACEOF
14523 cat confdefs.h
>>conftest.
$ac_ext
14524 cat >>conftest.
$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 #include <unistd.h>
14535 rm -f conftest.
$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537 (eval $ac_compile) 2>conftest.er1
14539 grep -v '^ *+' conftest.er1
>conftest.err
14541 cat conftest.err
>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try
='test -z "$ac_c_werror_flag"
14545 || test ! -s conftest.err'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try
='test -s conftest.$ac_objext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14558 cat >>confdefs.h
<<\_ACEOF
14559 #define HAVE_FSYNC 1
14562 echo "$as_me:$LINENO: result: yes" >&5
14563 echo "${ECHO_T}yes" >&6
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.
$ac_ext >&5
14568 echo "$as_me:$LINENO: result: no" >&5
14569 echo "${ECHO_T}no" >&6
14572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14573 echo "$as_me:$LINENO: checking for fdatasync" >&5
14574 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14575 cat >conftest.
$ac_ext <<_ACEOF
14578 cat confdefs.h
>>conftest.
$ac_ext
14579 cat >>conftest.
$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 #include <unistd.h>
14590 rm -f conftest.
$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>conftest.er1
14594 grep -v '^ *+' conftest.er1
>conftest.err
14596 cat conftest.err
>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try
='test -z "$ac_c_werror_flag"
14600 || test ! -s conftest.err'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try
='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14613 cat >>confdefs.h
<<\_ACEOF
14614 #define HAVE_FDATASYNC 1
14617 echo "$as_me:$LINENO: result: yes" >&5
14618 echo "${ECHO_T}yes" >&6
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.
$ac_ext >&5
14623 echo "$as_me:$LINENO: result: no" >&5
14624 echo "${ECHO_T}no" >&6
14627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14629 # On some systems (eg. FreeBSD 5), we would find a definition of the
14630 # functions ctermid_r, setgroups in the library, but no prototype
14631 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14632 # address to avoid compiler warnings and potential miscompilations
14633 # because of the missing prototypes.
14635 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14636 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14637 cat >conftest.
$ac_ext <<_ACEOF
14640 cat confdefs.h
>>conftest.
$ac_ext
14641 cat >>conftest.
$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14644 #include "confdefs.h"
14650 void* p = ctermid_r
14655 rm -f conftest.
$ac_objext
14656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14657 (eval $ac_compile) 2>conftest.er1
14659 grep -v '^ *+' conftest.er1
>conftest.err
14661 cat conftest.err
>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } &&
14664 { ac_try
='test -z "$ac_c_werror_flag"
14665 || test ! -s conftest.err'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; } &&
14671 { ac_try
='test -s conftest.$ac_objext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14678 cat >>confdefs.h
<<\_ACEOF
14679 #define HAVE_CTERMID_R 1
14682 echo "$as_me:$LINENO: result: yes" >&5
14683 echo "${ECHO_T}yes" >&6
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.
$ac_ext >&5
14688 echo "$as_me:$LINENO: result: no" >&5
14689 echo "${ECHO_T}no" >&6
14692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14694 echo "$as_me:$LINENO: checking for flock" >&5
14695 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14696 cat >conftest.
$ac_ext <<_ACEOF
14699 cat confdefs.h
>>conftest.
$ac_ext
14700 cat >>conftest.
$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14703 #include "confdefs.h"
14704 #include <sys/file.h>
14714 rm -f conftest.
$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>conftest.er1
14718 grep -v '^ *+' conftest.er1
>conftest.err
14720 cat conftest.err
>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try
='test -z "$ac_c_werror_flag"
14724 || test ! -s conftest.err'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } &&
14730 { ac_try
='test -s conftest.$ac_objext'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14737 cat >>confdefs.h
<<\_ACEOF
14738 #define HAVE_FLOCK 1
14741 echo "$as_me:$LINENO: result: yes" >&5
14742 echo "${ECHO_T}yes" >&6
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.
$ac_ext >&5
14747 echo "$as_me:$LINENO: result: no" >&5
14748 echo "${ECHO_T}no" >&6
14751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14753 echo "$as_me:$LINENO: checking for getpagesize" >&5
14754 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14755 cat >conftest.
$ac_ext <<_ACEOF
14758 cat confdefs.h
>>conftest.
$ac_ext
14759 cat >>conftest.
$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14762 #include "confdefs.h"
14763 #include <unistd.h>
14768 void* p = getpagesize
14773 rm -f conftest.
$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>conftest.er1
14777 grep -v '^ *+' conftest.er1
>conftest.err
14779 cat conftest.err
>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try
='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try
='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14796 cat >>confdefs.h
<<\_ACEOF
14797 #define HAVE_GETPAGESIZE 1
14800 echo "$as_me:$LINENO: result: yes" >&5
14801 echo "${ECHO_T}yes" >&6
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.
$ac_ext >&5
14806 echo "$as_me:$LINENO: result: no" >&5
14807 echo "${ECHO_T}no" >&6
14810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14812 for ac_prog
in true
14814 # Extract the first word of "$ac_prog", so it can be a program name with args.
14815 set dummy
$ac_prog; ac_word
=$2
14816 echo "$as_me:$LINENO: checking for $ac_word" >&5
14817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14818 if test "${ac_cv_prog_TRUE+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 if test -n "$TRUE"; then
14822 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14825 for as_dir
in $PATH
14828 test -z "$as_dir" && as_dir
=.
14829 for ac_exec_ext
in '' $ac_executable_extensions; do
14830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14831 ac_cv_prog_TRUE
="$ac_prog"
14832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14840 TRUE
=$ac_cv_prog_TRUE
14841 if test -n "$TRUE"; then
14842 echo "$as_me:$LINENO: result: $TRUE" >&5
14843 echo "${ECHO_T}$TRUE" >&6
14845 echo "$as_me:$LINENO: result: no" >&5
14846 echo "${ECHO_T}no" >&6
14849 test -n "$TRUE" && break
14851 test -n "$TRUE" || TRUE
="/bin/true"
14854 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14855 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14856 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 ac_check_lib_save_LIBS
=$LIBS
14861 cat >conftest.
$ac_ext <<_ACEOF
14864 cat confdefs.h
>>conftest.
$ac_ext
14865 cat >>conftest.
$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14868 /* Override any gcc2 internal prototype to avoid an error. */
14872 /* We use char because int might match the return type of a gcc2
14873 builtin and then its argument prototype would still apply. */
14883 rm -f conftest.
$ac_objext conftest
$ac_exeext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>conftest.er1
14887 grep -v '^ *+' conftest.er1
>conftest.err
14889 cat conftest.err
>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try
='test -z "$ac_c_werror_flag"
14893 || test ! -s conftest.err'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try
='test -s conftest$ac_exeext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 ac_cv_lib_c_inet_aton
=yes
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.
$ac_ext >&5
14910 ac_cv_lib_c_inet_aton
=no
14912 rm -f conftest.err conftest.
$ac_objext \
14913 conftest
$ac_exeext conftest.
$ac_ext
14914 LIBS
=$ac_check_lib_save_LIBS
14916 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14917 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14918 if test $ac_cv_lib_c_inet_aton = yes; then
14922 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14923 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14924 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 ac_check_lib_save_LIBS
=$LIBS
14928 LIBS
="-lresolv $LIBS"
14929 cat >conftest.
$ac_ext <<_ACEOF
14932 cat confdefs.h
>>conftest.
$ac_ext
14933 cat >>conftest.
$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14936 /* Override any gcc2 internal prototype to avoid an error. */
14940 /* We use char because int might match the return type of a gcc2
14941 builtin and then its argument prototype would still apply. */
14951 rm -f conftest.
$ac_objext conftest
$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>conftest.er1
14955 grep -v '^ *+' conftest.er1
>conftest.err
14957 cat conftest.err
>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
14960 { ac_try
='test -z "$ac_c_werror_flag"
14961 || test ! -s conftest.err'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try
='test -s conftest$ac_exeext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_lib_resolv_inet_aton
=yes
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.
$ac_ext >&5
14978 ac_cv_lib_resolv_inet_aton
=no
14980 rm -f conftest.err conftest.
$ac_objext \
14981 conftest
$ac_exeext conftest.
$ac_ext
14982 LIBS
=$ac_check_lib_save_LIBS
14984 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14985 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14986 if test $ac_cv_lib_resolv_inet_aton = yes; then
14987 cat >>confdefs.h
<<_ACEOF
14988 #define HAVE_LIBRESOLV 1
14991 LIBS
="-lresolv $LIBS"
14999 case $ac_sys_system/$ac_sys_release in
15001 _CUR_CFLAGS
="${CFLAGS}"
15002 _CUR_LDFLAGS
="${LDFLAGS}"
15003 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
15004 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15008 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15009 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15010 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_check_lib_save_LIBS
=$LIBS
15015 cat >conftest.
$ac_ext <<_ACEOF
15018 cat confdefs.h
>>conftest.
$ac_ext
15019 cat >>conftest.
$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15022 /* Override any gcc2 internal prototype to avoid an error. */
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15028 char inflateCopy ();
15037 rm -f conftest.
$ac_objext conftest
$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>conftest.er1
15041 grep -v '^ *+' conftest.er1
>conftest.err
15043 cat conftest.err
>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try
='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try
='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_lib_z_inflateCopy
=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.
$ac_ext >&5
15064 ac_cv_lib_z_inflateCopy
=no
15066 rm -f conftest.err conftest.
$ac_objext \
15067 conftest
$ac_exeext conftest.
$ac_ext
15068 LIBS
=$ac_check_lib_save_LIBS
15070 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15071 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15072 if test $ac_cv_lib_z_inflateCopy = yes; then
15074 cat >>confdefs.h
<<\_ACEOF
15075 #define HAVE_ZLIB_COPY 1
15081 case $ac_sys_system/$ac_sys_release in
15083 CFLAGS
="${_CUR_CFLAGS}"
15084 LDFLAGS
="${_CUR_LDFLAGS}"
15088 echo "$as_me:$LINENO: checking for hstrerror" >&5
15089 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15090 cat >conftest.
$ac_ext <<_ACEOF
15093 cat confdefs.h
>>conftest.
$ac_ext
15094 cat >>conftest.
$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 #include "confdefs.h"
15103 void* p = hstrerror; hstrerror(0)
15108 rm -f conftest.
$ac_objext conftest
$ac_exeext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15110 (eval $ac_link) 2>conftest.er1
15112 grep -v '^ *+' conftest.er1
>conftest.err
15114 cat conftest.err
>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try
='test -z "$ac_c_werror_flag"
15118 || test ! -s conftest.err'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try
='test -s conftest$ac_exeext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15131 cat >>confdefs.h
<<\_ACEOF
15132 #define HAVE_HSTRERROR 1
15135 echo "$as_me:$LINENO: result: yes" >&5
15136 echo "${ECHO_T}yes" >&6
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.
$ac_ext >&5
15141 echo "$as_me:$LINENO: result: no" >&5
15142 echo "${ECHO_T}no" >&6
15145 rm -f conftest.err conftest.
$ac_objext \
15146 conftest
$ac_exeext conftest.
$ac_ext
15148 echo "$as_me:$LINENO: checking for inet_aton" >&5
15149 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15150 cat >conftest.
$ac_ext <<_ACEOF
15153 cat confdefs.h
>>conftest.
$ac_ext
15154 cat >>conftest.
$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15157 #include "confdefs.h"
15158 #include <sys/types.h>
15159 #include <sys/socket.h>
15160 #include <netinet/in.h>
15161 #include <arpa/inet.h>
15166 void* p = inet_aton;inet_aton(0,0)
15171 rm -f conftest.
$ac_objext conftest
$ac_exeext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15173 (eval $ac_link) 2>conftest.er1
15175 grep -v '^ *+' conftest.er1
>conftest.err
15177 cat conftest.err
>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try
='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try
='test -s conftest$ac_exeext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15194 cat >>confdefs.h
<<\_ACEOF
15195 #define HAVE_INET_ATON 1
15198 echo "$as_me:$LINENO: result: yes" >&5
15199 echo "${ECHO_T}yes" >&6
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.
$ac_ext >&5
15204 echo "$as_me:$LINENO: result: no" >&5
15205 echo "${ECHO_T}no" >&6
15208 rm -f conftest.err conftest.
$ac_objext \
15209 conftest
$ac_exeext conftest.
$ac_ext
15211 echo "$as_me:$LINENO: checking for inet_pton" >&5
15212 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15213 cat >conftest.
$ac_ext <<_ACEOF
15216 cat confdefs.h
>>conftest.
$ac_ext
15217 cat >>conftest.
$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15220 #include "confdefs.h"
15221 #include <sys/types.h>
15222 #include <sys/socket.h>
15223 #include <netinet/in.h>
15224 #include <arpa/inet.h>
15229 void* p = inet_pton
15234 rm -f conftest.
$ac_objext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236 (eval $ac_compile) 2>conftest.er1
15238 grep -v '^ *+' conftest.er1
>conftest.err
15240 cat conftest.err
>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try
='test -z "$ac_c_werror_flag"
15244 || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try
='test -s conftest.$ac_objext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15257 cat >>confdefs.h
<<\_ACEOF
15258 #define HAVE_INET_PTON 1
15261 echo "$as_me:$LINENO: result: yes" >&5
15262 echo "${ECHO_T}yes" >&6
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.
$ac_ext >&5
15267 echo "$as_me:$LINENO: result: no" >&5
15268 echo "${ECHO_T}no" >&6
15271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15273 # On some systems, setgroups is in unistd.h, on others, in grp.h
15274 echo "$as_me:$LINENO: checking for setgroups" >&5
15275 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15276 cat >conftest.
$ac_ext <<_ACEOF
15279 cat confdefs.h
>>conftest.
$ac_ext
15280 cat >>conftest.
$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15283 #include "confdefs.h"
15284 #include <unistd.h>
15292 void* p = setgroups
15297 rm -f conftest.
$ac_objext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>conftest.er1
15301 grep -v '^ *+' conftest.er1
>conftest.err
15303 cat conftest.err
>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try
='test -z "$ac_c_werror_flag"
15307 || test ! -s conftest.err'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try
='test -s conftest.$ac_objext'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15320 cat >>confdefs.h
<<\_ACEOF
15321 #define HAVE_SETGROUPS 1
15324 echo "$as_me:$LINENO: result: yes" >&5
15325 echo "${ECHO_T}yes" >&6
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.
$ac_ext >&5
15330 echo "$as_me:$LINENO: result: no" >&5
15331 echo "${ECHO_T}no" >&6
15334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15336 # check for openpty and forkpty
15339 for ac_func
in openpty
15341 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15342 echo "$as_me:$LINENO: checking for $ac_func" >&5
15343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15344 if eval "test \"\${$as_ac_var+set}\" = set"; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15347 cat >conftest.
$ac_ext <<_ACEOF
15350 cat confdefs.h
>>conftest.
$ac_ext
15351 cat >>conftest.
$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15355 #define $ac_func innocuous_$ac_func
15357 /* System header to define __stub macros and hopefully few prototypes,
15358 which can conflict with char $ac_func (); below.
15359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15360 <limits.h> exists even on freestanding compilers. */
15363 # include <limits.h>
15365 # include <assert.h>
15370 /* Override any gcc2 internal prototype to avoid an error. */
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15378 /* The GNU C library defines this for functions which it implements
15379 to always fail with ENOSYS. Some functions are actually named
15380 something starting with __ and the normal name is an alias. */
15381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15384 char (*f) () = $ac_func;
15393 return f != $ac_func;
15398 rm -f conftest.
$ac_objext conftest
$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15402 grep -v '^ *+' conftest.er1
>conftest.err
15404 cat conftest.err
>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try
='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try
='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 eval "$as_ac_var=yes"
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.
$ac_ext >&5
15425 eval "$as_ac_var=no"
15427 rm -f conftest.err conftest.
$ac_objext \
15428 conftest
$ac_exeext conftest.
$ac_ext
15430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433 cat >>confdefs.h
<<_ACEOF
15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15438 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15439 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15440 if test "${ac_cv_lib_util_openpty+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15443 ac_check_lib_save_LIBS
=$LIBS
15444 LIBS
="-lutil $LIBS"
15445 cat >conftest.
$ac_ext <<_ACEOF
15448 cat confdefs.h
>>conftest.
$ac_ext
15449 cat >>conftest.
$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15452 /* Override any gcc2 internal prototype to avoid an error. */
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15467 rm -f conftest.
$ac_objext conftest
$ac_exeext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15469 (eval $ac_link) 2>conftest.er1
15471 grep -v '^ *+' conftest.er1
>conftest.err
15473 cat conftest.err
>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try
='test -z "$ac_c_werror_flag"
15477 || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try
='test -s conftest$ac_exeext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_lib_util_openpty
=yes
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.
$ac_ext >&5
15494 ac_cv_lib_util_openpty
=no
15496 rm -f conftest.err conftest.
$ac_objext \
15497 conftest
$ac_exeext conftest.
$ac_ext
15498 LIBS
=$ac_check_lib_save_LIBS
15500 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15501 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15502 if test $ac_cv_lib_util_openpty = yes; then
15503 cat >>confdefs.h
<<\_ACEOF
15504 #define HAVE_OPENPTY 1
15506 LIBS
="$LIBS -lutil"
15508 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15509 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15510 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 ac_check_lib_save_LIBS
=$LIBS
15515 cat >conftest.
$ac_ext <<_ACEOF
15518 cat confdefs.h
>>conftest.
$ac_ext
15519 cat >>conftest.
$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15522 /* Override any gcc2 internal prototype to avoid an error. */
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15537 rm -f conftest.
$ac_objext conftest
$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539 (eval $ac_link) 2>conftest.er1
15541 grep -v '^ *+' conftest.er1
>conftest.err
15543 cat conftest.err
>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try
='test -z "$ac_c_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try
='test -s conftest$ac_exeext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_lib_bsd_openpty
=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.
$ac_ext >&5
15564 ac_cv_lib_bsd_openpty
=no
15566 rm -f conftest.err conftest.
$ac_objext \
15567 conftest
$ac_exeext conftest.
$ac_ext
15568 LIBS
=$ac_check_lib_save_LIBS
15570 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15571 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15572 if test $ac_cv_lib_bsd_openpty = yes; then
15573 cat >>confdefs.h
<<\_ACEOF
15574 #define HAVE_OPENPTY 1
15587 for ac_func
in forkpty
15589 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15590 echo "$as_me:$LINENO: checking for $ac_func" >&5
15591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15592 if eval "test \"\${$as_ac_var+set}\" = set"; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 cat >conftest.
$ac_ext <<_ACEOF
15598 cat confdefs.h
>>conftest.
$ac_ext
15599 cat >>conftest.
$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15603 #define $ac_func innocuous_$ac_func
15605 /* System header to define __stub macros and hopefully few prototypes,
15606 which can conflict with char $ac_func (); below.
15607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15608 <limits.h> exists even on freestanding compilers. */
15611 # include <limits.h>
15613 # include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error. */
15623 /* We use char because int might match the return type of a gcc2
15624 builtin and then its argument prototype would still apply. */
15626 /* The GNU C library defines this for functions which it implements
15627 to always fail with ENOSYS. Some functions are actually named
15628 something starting with __ and the normal name is an alias. */
15629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15632 char (*f) () = $ac_func;
15641 return f != $ac_func;
15646 rm -f conftest.
$ac_objext conftest
$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648 (eval $ac_link) 2>conftest.er1
15650 grep -v '^ *+' conftest.er1
>conftest.err
15652 cat conftest.err
>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try
='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try
='test -s conftest$ac_exeext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 eval "$as_ac_var=yes"
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.
$ac_ext >&5
15673 eval "$as_ac_var=no"
15675 rm -f conftest.err conftest.
$ac_objext \
15676 conftest
$ac_exeext conftest.
$ac_ext
15678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15680 if test `eval echo '${'$as_ac_var'}'` = yes; then
15681 cat >>confdefs.h
<<_ACEOF
15682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15686 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15687 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15688 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15689 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 ac_check_lib_save_LIBS
=$LIBS
15692 LIBS
="-lutil $LIBS"
15693 cat >conftest.
$ac_ext <<_ACEOF
15696 cat confdefs.h
>>conftest.
$ac_ext
15697 cat >>conftest.
$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15700 /* Override any gcc2 internal prototype to avoid an error. */
15704 /* We use char because int might match the return type of a gcc2
15705 builtin and then its argument prototype would still apply. */
15715 rm -f conftest.
$ac_objext conftest
$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717 (eval $ac_link) 2>conftest.er1
15719 grep -v '^ *+' conftest.er1
>conftest.err
15721 cat conftest.err
>&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try
='test -z "$ac_c_werror_flag"
15725 || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try
='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_util_forkpty
=yes
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.
$ac_ext >&5
15742 ac_cv_lib_util_forkpty
=no
15744 rm -f conftest.err conftest.
$ac_objext \
15745 conftest
$ac_exeext conftest.
$ac_ext
15746 LIBS
=$ac_check_lib_save_LIBS
15748 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15749 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15750 if test $ac_cv_lib_util_forkpty = yes; then
15751 cat >>confdefs.h
<<\_ACEOF
15752 #define HAVE_FORKPTY 1
15754 LIBS
="$LIBS -lutil"
15756 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15757 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15758 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 ac_check_lib_save_LIBS
=$LIBS
15763 cat >conftest.
$ac_ext <<_ACEOF
15766 cat confdefs.h
>>conftest.
$ac_ext
15767 cat >>conftest.
$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15770 /* Override any gcc2 internal prototype to avoid an error. */
15774 /* We use char because int might match the return type of a gcc2
15775 builtin and then its argument prototype would still apply. */
15785 rm -f conftest.
$ac_objext conftest
$ac_exeext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15787 (eval $ac_link) 2>conftest.er1
15789 grep -v '^ *+' conftest.er1
>conftest.err
15791 cat conftest.err
>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try
='test -z "$ac_c_werror_flag"
15795 || test ! -s conftest.err'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; } &&
15801 { ac_try
='test -s conftest$ac_exeext'
15802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
15807 ac_cv_lib_bsd_forkpty
=yes
15809 echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.
$ac_ext >&5
15812 ac_cv_lib_bsd_forkpty
=no
15814 rm -f conftest.err conftest.
$ac_objext \
15815 conftest
$ac_exeext conftest.
$ac_ext
15816 LIBS
=$ac_check_lib_save_LIBS
15818 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15819 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15820 if test $ac_cv_lib_bsd_forkpty = yes; then
15821 cat >>confdefs.h
<<\_ACEOF
15822 #define HAVE_FORKPTY 1
15835 # check for long file support functions
15842 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15844 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15845 echo "$as_me:$LINENO: checking for $ac_func" >&5
15846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15847 if eval "test \"\${$as_ac_var+set}\" = set"; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 cat >conftest.
$ac_ext <<_ACEOF
15853 cat confdefs.h
>>conftest.
$ac_ext
15854 cat >>conftest.
$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15858 #define $ac_func innocuous_$ac_func
15860 /* System header to define __stub macros and hopefully few prototypes,
15861 which can conflict with char $ac_func (); below.
15862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15863 <limits.h> exists even on freestanding compilers. */
15866 # include <limits.h>
15868 # include <assert.h>
15873 /* Override any gcc2 internal prototype to avoid an error. */
15878 /* We use char because int might match the return type of a gcc2
15879 builtin and then its argument prototype would still apply. */
15881 /* The GNU C library defines this for functions which it implements
15882 to always fail with ENOSYS. Some functions are actually named
15883 something starting with __ and the normal name is an alias. */
15884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15887 char (*f) () = $ac_func;
15896 return f != $ac_func;
15901 rm -f conftest.
$ac_objext conftest
$ac_exeext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15903 (eval $ac_link) 2>conftest.er1
15905 grep -v '^ *+' conftest.er1
>conftest.err
15907 cat conftest.err
>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try
='test -z "$ac_c_werror_flag"
15911 || test ! -s conftest.err'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try
='test -s conftest$ac_exeext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 eval "$as_ac_var=yes"
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.
$ac_ext >&5
15928 eval "$as_ac_var=no"
15930 rm -f conftest.err conftest.
$ac_objext \
15931 conftest
$ac_exeext conftest.
$ac_ext
15933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15935 if test `eval echo '${'$as_ac_var'}'` = yes; then
15936 cat >>confdefs.h
<<_ACEOF
15937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15949 for ac_func
in dup2 getcwd strdup strerror memmove
15951 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15952 echo "$as_me:$LINENO: checking for $ac_func" >&5
15953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15954 if eval "test \"\${$as_ac_var+set}\" = set"; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 cat >conftest.
$ac_ext <<_ACEOF
15960 cat confdefs.h
>>conftest.
$ac_ext
15961 cat >>conftest.
$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15965 #define $ac_func innocuous_$ac_func
15967 /* System header to define __stub macros and hopefully few prototypes,
15968 which can conflict with char $ac_func (); below.
15969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15970 <limits.h> exists even on freestanding compilers. */
15973 # include <limits.h>
15975 # include <assert.h>
15980 /* Override any gcc2 internal prototype to avoid an error. */
15985 /* We use char because int might match the return type of a gcc2
15986 builtin and then its argument prototype would still apply. */
15988 /* The GNU C library defines this for functions which it implements
15989 to always fail with ENOSYS. Some functions are actually named
15990 something starting with __ and the normal name is an alias. */
15991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15994 char (*f) () = $ac_func;
16003 return f != $ac_func;
16008 rm -f conftest.
$ac_objext conftest
$ac_exeext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16010 (eval $ac_link) 2>conftest.er1
16012 grep -v '^ *+' conftest.er1
>conftest.err
16014 cat conftest.err
>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try
='test -z "$ac_c_werror_flag"
16018 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try
='test -s conftest$ac_exeext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 eval "$as_ac_var=yes"
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.
$ac_ext >&5
16035 eval "$as_ac_var=no"
16037 rm -f conftest.err conftest.
$ac_objext \
16038 conftest
$ac_exeext conftest.
$ac_ext
16040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16042 if test `eval echo '${'$as_ac_var'}'` = yes; then
16043 cat >>confdefs.h
<<_ACEOF
16044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16049 "$ac_func.$ac_objext" | \
16050 *" $ac_func.$ac_objext" | \
16051 "$ac_func.$ac_objext "* | \
16052 *" $ac_func.$ac_objext "* ) ;;
16053 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16061 for ac_func
in getpgrp
16063 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16064 echo "$as_me:$LINENO: checking for $ac_func" >&5
16065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16066 if eval "test \"\${$as_ac_var+set}\" = set"; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16069 cat >conftest.
$ac_ext <<_ACEOF
16072 cat confdefs.h
>>conftest.
$ac_ext
16073 cat >>conftest.
$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16077 #define $ac_func innocuous_$ac_func
16079 /* System header to define __stub macros and hopefully few prototypes,
16080 which can conflict with char $ac_func (); below.
16081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16082 <limits.h> exists even on freestanding compilers. */
16085 # include <limits.h>
16087 # include <assert.h>
16092 /* Override any gcc2 internal prototype to avoid an error. */
16097 /* We use char because int might match the return type of a gcc2
16098 builtin and then its argument prototype would still apply. */
16100 /* The GNU C library defines this for functions which it implements
16101 to always fail with ENOSYS. Some functions are actually named
16102 something starting with __ and the normal name is an alias. */
16103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16106 char (*f) () = $ac_func;
16115 return f != $ac_func;
16120 rm -f conftest.
$ac_objext conftest
$ac_exeext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122 (eval $ac_link) 2>conftest.er1
16124 grep -v '^ *+' conftest.er1
>conftest.err
16126 cat conftest.err
>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
16129 { ac_try
='test -z "$ac_c_werror_flag"
16130 || test ! -s conftest.err'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try
='test -s conftest$ac_exeext'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 eval "$as_ac_var=yes"
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.
$ac_ext >&5
16147 eval "$as_ac_var=no"
16149 rm -f conftest.err conftest.
$ac_objext \
16150 conftest
$ac_exeext conftest.
$ac_ext
16152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16154 if test `eval echo '${'$as_ac_var'}'` = yes; then
16155 cat >>confdefs.h
<<_ACEOF
16156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16158 cat >conftest.
$ac_ext <<_ACEOF
16161 cat confdefs.h
>>conftest.
$ac_ext
16162 cat >>conftest.
$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16164 #include <unistd.h>
16173 rm -f conftest.
$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>conftest.er1
16177 grep -v '^ *+' conftest.er1
>conftest.err
16179 cat conftest.err
>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try
='test -z "$ac_c_werror_flag"
16183 || test ! -s conftest.err'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try
='test -s conftest.$ac_objext'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16196 cat >>confdefs.h
<<\_ACEOF
16197 #define GETPGRP_HAVE_ARG 1
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.
$ac_ext >&5
16206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16212 for ac_func
in setpgrp
16214 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16215 echo "$as_me:$LINENO: checking for $ac_func" >&5
16216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16217 if eval "test \"\${$as_ac_var+set}\" = set"; then
16218 echo $ECHO_N "(cached) $ECHO_C" >&6
16220 cat >conftest.
$ac_ext <<_ACEOF
16223 cat confdefs.h
>>conftest.
$ac_ext
16224 cat >>conftest.
$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16228 #define $ac_func innocuous_$ac_func
16230 /* System header to define __stub macros and hopefully few prototypes,
16231 which can conflict with char $ac_func (); below.
16232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233 <limits.h> exists even on freestanding compilers. */
16236 # include <limits.h>
16238 # include <assert.h>
16243 /* Override any gcc2 internal prototype to avoid an error. */
16248 /* We use char because int might match the return type of a gcc2
16249 builtin and then its argument prototype would still apply. */
16251 /* The GNU C library defines this for functions which it implements
16252 to always fail with ENOSYS. Some functions are actually named
16253 something starting with __ and the normal name is an alias. */
16254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16257 char (*f) () = $ac_func;
16266 return f != $ac_func;
16271 rm -f conftest.
$ac_objext conftest
$ac_exeext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273 (eval $ac_link) 2>conftest.er1
16275 grep -v '^ *+' conftest.er1
>conftest.err
16277 cat conftest.err
>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try
='test -z "$ac_c_werror_flag"
16281 || test ! -s conftest.err'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try
='test -s conftest$ac_exeext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 eval "$as_ac_var=yes"
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.
$ac_ext >&5
16298 eval "$as_ac_var=no"
16300 rm -f conftest.err conftest.
$ac_objext \
16301 conftest
$ac_exeext conftest.
$ac_ext
16303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16305 if test `eval echo '${'$as_ac_var'}'` = yes; then
16306 cat >>confdefs.h
<<_ACEOF
16307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16309 cat >conftest.
$ac_ext <<_ACEOF
16312 cat confdefs.h
>>conftest.
$ac_ext
16313 cat >>conftest.
$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 #include <unistd.h>
16324 rm -f conftest.
$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>conftest.er1
16328 grep -v '^ *+' conftest.er1
>conftest.err
16330 cat conftest.err
>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try
='test -z "$ac_c_werror_flag"
16334 || test ! -s conftest.err'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try
='test -s conftest.$ac_objext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16347 cat >>confdefs.h
<<\_ACEOF
16348 #define SETPGRP_HAVE_ARG 1
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.
$ac_ext >&5
16357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16363 for ac_func
in gettimeofday
16365 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16366 echo "$as_me:$LINENO: checking for $ac_func" >&5
16367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16368 if eval "test \"\${$as_ac_var+set}\" = set"; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 cat >conftest.
$ac_ext <<_ACEOF
16374 cat confdefs.h
>>conftest.
$ac_ext
16375 cat >>conftest.
$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16379 #define $ac_func innocuous_$ac_func
16381 /* System header to define __stub macros and hopefully few prototypes,
16382 which can conflict with char $ac_func (); below.
16383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16384 <limits.h> exists even on freestanding compilers. */
16387 # include <limits.h>
16389 # include <assert.h>
16394 /* Override any gcc2 internal prototype to avoid an error. */
16399 /* We use char because int might match the return type of a gcc2
16400 builtin and then its argument prototype would still apply. */
16402 /* The GNU C library defines this for functions which it implements
16403 to always fail with ENOSYS. Some functions are actually named
16404 something starting with __ and the normal name is an alias. */
16405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16408 char (*f) () = $ac_func;
16417 return f != $ac_func;
16422 rm -f conftest.
$ac_objext conftest
$ac_exeext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16424 (eval $ac_link) 2>conftest.er1
16426 grep -v '^ *+' conftest.er1
>conftest.err
16428 cat conftest.err
>&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try
='test -z "$ac_c_werror_flag"
16432 || test ! -s conftest.err'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try
='test -s conftest$ac_exeext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 eval "$as_ac_var=yes"
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.
$ac_ext >&5
16449 eval "$as_ac_var=no"
16451 rm -f conftest.err conftest.
$ac_objext \
16452 conftest
$ac_exeext conftest.
$ac_ext
16454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16456 if test `eval echo '${'$as_ac_var'}'` = yes; then
16457 cat >>confdefs.h
<<_ACEOF
16458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16460 cat >conftest.
$ac_ext <<_ACEOF
16463 cat confdefs.h
>>conftest.
$ac_ext
16464 cat >>conftest.
$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 #include <sys/time.h>
16470 gettimeofday((struct timeval*)0,(struct timezone*)0);
16475 rm -f conftest.
$ac_objext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16477 (eval $ac_compile) 2>conftest.er1
16479 grep -v '^ *+' conftest.er1
>conftest.err
16481 cat conftest.err
>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try
='test -z "$ac_c_werror_flag"
16485 || test ! -s conftest.err'
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; } &&
16491 { ac_try
='test -s conftest.$ac_objext'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.
$ac_ext >&5
16503 cat >>confdefs.h
<<\_ACEOF
16504 #define GETTIMEOFDAY_NO_TZ 1
16509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16515 echo "$as_me:$LINENO: checking for major" >&5
16516 echo $ECHO_N "checking for major... $ECHO_C" >&6
16517 cat >conftest.
$ac_ext <<_ACEOF
16520 cat confdefs.h
>>conftest.
$ac_ext
16521 cat >>conftest.
$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16524 #if defined(MAJOR_IN_MKDEV)
16525 #include <sys/mkdev.h>
16526 #elif defined(MAJOR_IN_SYSMACROS)
16527 #include <sys/sysmacros.h>
16529 #include <sys/types.h>
16536 makedev(major(0),minor(0));
16542 rm -f conftest.
$ac_objext conftest
$ac_exeext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16544 (eval $ac_link) 2>conftest.er1
16546 grep -v '^ *+' conftest.er1
>conftest.err
16548 cat conftest.err
>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try
='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try
='test -s conftest$ac_exeext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16566 cat >>confdefs.h
<<\_ACEOF
16567 #define HAVE_DEVICE_MACROS 1
16570 echo "$as_me:$LINENO: result: yes" >&5
16571 echo "${ECHO_T}yes" >&6
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.
$ac_ext >&5
16578 echo "$as_me:$LINENO: result: no" >&5
16579 echo "${ECHO_T}no" >&6
16582 rm -f conftest.err conftest.
$ac_objext \
16583 conftest
$ac_exeext conftest.
$ac_ext
16585 # On OSF/1 V5.1, getaddrinfo is available, but a define
16586 # for [no]getaddrinfo in netdb.h.
16587 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16588 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16589 cat >conftest.
$ac_ext <<_ACEOF
16592 cat confdefs.h
>>conftest.
$ac_ext
16593 cat >>conftest.
$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16596 #include <sys/types.h>
16597 #include <sys/socket.h>
16605 getaddrinfo(NULL, NULL, NULL, NULL);
16611 rm -f conftest.
$ac_objext conftest
$ac_exeext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>conftest.er1
16615 grep -v '^ *+' conftest.er1
>conftest.err
16617 cat conftest.err
>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try
='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try
='test -s conftest$ac_exeext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16634 echo "$as_me:$LINENO: result: yes" >&5
16635 echo "${ECHO_T}yes" >&6
16636 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16637 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16638 if test "$cross_compiling" = yes; then
16639 echo "$as_me:$LINENO: result: buggy" >&5
16640 echo "${ECHO_T}buggy" >&6
16641 buggygetaddrinfo
=yes
16643 cat >conftest.
$ac_ext <<_ACEOF
16646 cat confdefs.h
>>conftest.
$ac_ext
16647 cat >>conftest.
$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16650 #include <sys/types.h>
16652 #include <string.h>
16653 #include <sys/socket.h>
16654 #include <netinet/in.h>
16658 int passive, gaierr, inet4 = 0, inet6 = 0;
16659 struct addrinfo hints, *ai, *aitop;
16660 char straddr[INET6_ADDRSTRLEN], strport[16];
16662 for (passive = 0; passive <= 1; passive++) {
16663 memset(&hints, 0, sizeof(hints));
16664 hints.ai_family = AF_UNSPEC;
16665 hints.ai_flags = passive ? AI_PASSIVE : 0;
16666 hints.ai_socktype = SOCK_STREAM;
16667 hints.ai_protocol = IPPROTO_TCP;
16668 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16669 (void)gai_strerror(gaierr);
16672 for (ai = aitop; ai; ai = ai->ai_next) {
16673 if (ai->ai_addr == NULL ||
16674 ai->ai_addrlen == 0 ||
16675 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16676 straddr, sizeof(straddr), strport, sizeof(strport),
16677 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16680 switch (ai->ai_family) {
16682 if (strcmp(strport, "54321") != 0) {
16686 if (strcmp(straddr, "0.0.0.0") != 0) {
16690 if (strcmp(straddr, "127.0.0.1") != 0) {
16697 if (strcmp(strport, "54321") != 0) {
16701 if (strcmp(straddr, "::") != 0) {
16705 if (strcmp(straddr, "::1") != 0) {
16715 /* another family support? */
16721 if (!(inet4 == 0 || inet4 == 2))
16723 if (!(inet6 == 0 || inet6 == 2))
16727 freeaddrinfo(aitop);
16732 freeaddrinfo(aitop);
16737 rm -f conftest
$ac_exeext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16739 (eval $ac_link) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 echo "$as_me:$LINENO: result: good" >&5
16749 echo "${ECHO_T}good" >&6
16750 buggygetaddrinfo
=no
16752 echo "$as_me: program exited with status $ac_status" >&5
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.
$ac_ext >&5
16756 ( exit $ac_status )
16757 echo "$as_me:$LINENO: result: buggy" >&5
16758 echo "${ECHO_T}buggy" >&6
16759 buggygetaddrinfo
=yes
16761 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.
$ac_ext >&5
16768 echo "$as_me:$LINENO: result: no" >&5
16769 echo "${ECHO_T}no" >&6
16770 buggygetaddrinfo
=yes
16773 rm -f conftest.err conftest.
$ac_objext \
16774 conftest
$ac_exeext conftest.
$ac_ext
16776 if test "$buggygetaddrinfo" = "yes"; then
16777 if test "$ipv6" = "yes"; then
16778 echo 'Fatal: You must get working getaddrinfo() function.'
16779 echo ' or you can specify "--disable-ipv6"'.
16784 cat >>confdefs.h
<<\_ACEOF
16785 #define HAVE_GETADDRINFO 1
16790 for ac_func
in getnameinfo
16792 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16793 echo "$as_me:$LINENO: checking for $ac_func" >&5
16794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16795 if eval "test \"\${$as_ac_var+set}\" = set"; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 cat >conftest.
$ac_ext <<_ACEOF
16801 cat confdefs.h
>>conftest.
$ac_ext
16802 cat >>conftest.
$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16806 #define $ac_func innocuous_$ac_func
16808 /* System header to define __stub macros and hopefully few prototypes,
16809 which can conflict with char $ac_func (); below.
16810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811 <limits.h> exists even on freestanding compilers. */
16814 # include <limits.h>
16816 # include <assert.h>
16821 /* Override any gcc2 internal prototype to avoid an error. */
16826 /* We use char because int might match the return type of a gcc2
16827 builtin and then its argument prototype would still apply. */
16829 /* The GNU C library defines this for functions which it implements
16830 to always fail with ENOSYS. Some functions are actually named
16831 something starting with __ and the normal name is an alias. */
16832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16835 char (*f) () = $ac_func;
16844 return f != $ac_func;
16849 rm -f conftest.
$ac_objext conftest
$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851 (eval $ac_link) 2>conftest.er1
16853 grep -v '^ *+' conftest.er1
>conftest.err
16855 cat conftest.err
>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try
='test -z "$ac_c_werror_flag"
16859 || test ! -s conftest.err'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try
='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 eval "$as_ac_var=yes"
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.
$ac_ext >&5
16876 eval "$as_ac_var=no"
16878 rm -f conftest.err conftest.
$ac_objext \
16879 conftest
$ac_exeext conftest.
$ac_ext
16881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16883 if test `eval echo '${'$as_ac_var'}'` = yes; then
16884 cat >>confdefs.h
<<_ACEOF
16885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16892 # checks for structures
16893 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16894 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16895 if test "${ac_cv_header_time+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16898 cat >conftest.
$ac_ext <<_ACEOF
16901 cat confdefs.h
>>conftest.
$ac_ext
16902 cat >>conftest.
$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <sys/types.h>
16905 #include <sys/time.h>
16911 if ((struct tm *) 0)
16917 rm -f conftest.
$ac_objext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919 (eval $ac_compile) 2>conftest.er1
16921 grep -v '^ *+' conftest.er1
>conftest.err
16923 cat conftest.err
>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try
='test -z "$ac_c_werror_flag"
16927 || test ! -s conftest.err'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try
='test -s conftest.$ac_objext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_header_time
=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.
$ac_ext >&5
16944 ac_cv_header_time
=no
16946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16948 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16949 echo "${ECHO_T}$ac_cv_header_time" >&6
16950 if test $ac_cv_header_time = yes; then
16952 cat >>confdefs.h
<<\_ACEOF
16953 #define TIME_WITH_SYS_TIME 1
16958 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16959 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16960 if test "${ac_cv_struct_tm+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 cat >conftest.
$ac_ext <<_ACEOF
16966 cat confdefs.h
>>conftest.
$ac_ext
16967 cat >>conftest.
$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 #include <sys/types.h>
16975 struct tm *tp; tp->tm_sec;
16980 rm -f conftest.
$ac_objext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16982 (eval $ac_compile) 2>conftest.er1
16984 grep -v '^ *+' conftest.er1
>conftest.err
16986 cat conftest.err
>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try
='test -z "$ac_c_werror_flag"
16990 || test ! -s conftest.err'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; } &&
16996 { ac_try
='test -s conftest.$ac_objext'
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_struct_tm
=time.h
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.
$ac_ext >&5
17007 ac_cv_struct_tm
=sys
/time.h
17009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17012 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17013 if test $ac_cv_struct_tm = sys
/time.h
; then
17015 cat >>confdefs.h
<<\_ACEOF
17016 #define TM_IN_SYS_TIME 1
17021 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17022 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17023 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 cat >conftest.
$ac_ext <<_ACEOF
17029 cat confdefs.h
>>conftest.
$ac_ext
17030 cat >>conftest.
$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 #include <sys/types.h>
17033 #include <$ac_cv_struct_tm>
17039 static struct tm ac_aggr;
17040 if (ac_aggr.tm_zone)
17046 rm -f conftest.
$ac_objext
17047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17048 (eval $ac_compile) 2>conftest.er1
17050 grep -v '^ *+' conftest.er1
>conftest.err
17052 cat conftest.err
>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try
='test -z "$ac_c_werror_flag"
17056 || test ! -s conftest.err'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; } &&
17062 { ac_try
='test -s conftest.$ac_objext'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_member_struct_tm_tm_zone
=yes
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.
$ac_ext >&5
17073 cat >conftest.
$ac_ext <<_ACEOF
17076 cat confdefs.h
>>conftest.
$ac_ext
17077 cat >>conftest.
$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 #include <sys/types.h>
17080 #include <$ac_cv_struct_tm>
17086 static struct tm ac_aggr;
17087 if (sizeof ac_aggr.tm_zone)
17093 rm -f conftest.
$ac_objext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17095 (eval $ac_compile) 2>conftest.er1
17097 grep -v '^ *+' conftest.er1
>conftest.err
17099 cat conftest.err
>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try
='test -z "$ac_c_werror_flag"
17103 || test ! -s conftest.err'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try
='test -s conftest.$ac_objext'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_member_struct_tm_tm_zone
=yes
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.
$ac_ext >&5
17120 ac_cv_member_struct_tm_tm_zone
=no
17122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17127 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17128 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17130 cat >>confdefs.h
<<_ACEOF
17131 #define HAVE_STRUCT_TM_TM_ZONE 1
17137 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17139 cat >>confdefs.h
<<\_ACEOF
17140 #define HAVE_TM_ZONE 1
17144 echo "$as_me:$LINENO: checking for tzname" >&5
17145 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17146 if test "${ac_cv_var_tzname+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 cat >conftest.
$ac_ext <<_ACEOF
17152 cat confdefs.h
>>conftest.
$ac_ext
17153 cat >>conftest.
$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17156 #ifndef tzname /* For SGI. */
17157 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17168 rm -f conftest.
$ac_objext conftest
$ac_exeext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17170 (eval $ac_link) 2>conftest.er1
17172 grep -v '^ *+' conftest.er1
>conftest.err
17174 cat conftest.err
>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try
='test -z "$ac_c_werror_flag"
17178 || test ! -s conftest.err'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try
='test -s conftest$ac_exeext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_var_tzname
=yes
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.
$ac_ext >&5
17195 ac_cv_var_tzname
=no
17197 rm -f conftest.err conftest.
$ac_objext \
17198 conftest
$ac_exeext conftest.
$ac_ext
17200 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17201 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17202 if test $ac_cv_var_tzname = yes; then
17204 cat >>confdefs.h
<<\_ACEOF
17205 #define HAVE_TZNAME 1
17211 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17212 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17213 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 cat >conftest.
$ac_ext <<_ACEOF
17219 cat confdefs.h
>>conftest.
$ac_ext
17220 cat >>conftest.
$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222 $ac_includes_default
17226 static struct stat ac_aggr;
17227 if (ac_aggr.st_rdev)
17233 rm -f conftest.
$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235 (eval $ac_compile) 2>conftest.er1
17237 grep -v '^ *+' conftest.er1
>conftest.err
17239 cat conftest.err
>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try
='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try
='test -s conftest.$ac_objext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_cv_member_struct_stat_st_rdev
=yes
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.
$ac_ext >&5
17260 cat >conftest.
$ac_ext <<_ACEOF
17263 cat confdefs.h
>>conftest.
$ac_ext
17264 cat >>conftest.
$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 $ac_includes_default
17270 static struct stat ac_aggr;
17271 if (sizeof ac_aggr.st_rdev)
17277 rm -f conftest.
$ac_objext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279 (eval $ac_compile) 2>conftest.er1
17281 grep -v '^ *+' conftest.er1
>conftest.err
17283 cat conftest.err
>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
17286 { ac_try
='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try
='test -s conftest.$ac_objext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_cv_member_struct_stat_st_rdev
=yes
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.
$ac_ext >&5
17304 ac_cv_member_struct_stat_st_rdev
=no
17306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17310 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17311 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17312 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17314 cat >>confdefs.h
<<_ACEOF
17315 #define HAVE_STRUCT_STAT_ST_RDEV 1
17321 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17322 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17323 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 cat >conftest.
$ac_ext <<_ACEOF
17329 cat confdefs.h
>>conftest.
$ac_ext
17330 cat >>conftest.
$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 $ac_includes_default
17336 static struct stat ac_aggr;
17337 if (ac_aggr.st_blksize)
17343 rm -f conftest.
$ac_objext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17345 (eval $ac_compile) 2>conftest.er1
17347 grep -v '^ *+' conftest.er1
>conftest.err
17349 cat conftest.err
>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try
='test -z "$ac_c_werror_flag"
17353 || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try
='test -s conftest.$ac_objext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ac_cv_member_struct_stat_st_blksize
=yes
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.
$ac_ext >&5
17370 cat >conftest.
$ac_ext <<_ACEOF
17373 cat confdefs.h
>>conftest.
$ac_ext
17374 cat >>conftest.
$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 $ac_includes_default
17380 static struct stat ac_aggr;
17381 if (sizeof ac_aggr.st_blksize)
17387 rm -f conftest.
$ac_objext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>conftest.er1
17391 grep -v '^ *+' conftest.er1
>conftest.err
17393 cat conftest.err
>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try
='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try
='test -s conftest.$ac_objext'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_cv_member_struct_stat_st_blksize
=yes
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.
$ac_ext >&5
17414 ac_cv_member_struct_stat_st_blksize
=no
17416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17420 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17421 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17422 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17424 cat >>confdefs.h
<<_ACEOF
17425 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17431 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17432 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17433 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 cat >conftest.
$ac_ext <<_ACEOF
17439 cat confdefs.h
>>conftest.
$ac_ext
17440 cat >>conftest.
$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 $ac_includes_default
17446 static struct stat ac_aggr;
17447 if (ac_aggr.st_flags)
17453 rm -f conftest.
$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>conftest.er1
17457 grep -v '^ *+' conftest.er1
>conftest.err
17459 cat conftest.err
>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try
='test -z "$ac_c_werror_flag"
17463 || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try
='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_member_struct_stat_st_flags
=yes
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.
$ac_ext >&5
17480 cat >conftest.
$ac_ext <<_ACEOF
17483 cat confdefs.h
>>conftest.
$ac_ext
17484 cat >>conftest.
$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17486 $ac_includes_default
17490 static struct stat ac_aggr;
17491 if (sizeof ac_aggr.st_flags)
17497 rm -f conftest.
$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>conftest.er1
17501 grep -v '^ *+' conftest.er1
>conftest.err
17503 cat conftest.err
>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try
='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try
='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_member_struct_stat_st_flags
=yes
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.
$ac_ext >&5
17524 ac_cv_member_struct_stat_st_flags
=no
17526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17530 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17531 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17532 if test $ac_cv_member_struct_stat_st_flags = yes; then
17534 cat >>confdefs.h
<<_ACEOF
17535 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17541 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17542 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17543 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 cat >conftest.
$ac_ext <<_ACEOF
17549 cat confdefs.h
>>conftest.
$ac_ext
17550 cat >>conftest.
$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 $ac_includes_default
17556 static struct stat ac_aggr;
17557 if (ac_aggr.st_gen)
17563 rm -f conftest.
$ac_objext
17564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17565 (eval $ac_compile) 2>conftest.er1
17567 grep -v '^ *+' conftest.er1
>conftest.err
17569 cat conftest.err
>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try
='test -z "$ac_c_werror_flag"
17573 || test ! -s conftest.err'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try
='test -s conftest.$ac_objext'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_member_struct_stat_st_gen
=yes
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.
$ac_ext >&5
17590 cat >conftest.
$ac_ext <<_ACEOF
17593 cat confdefs.h
>>conftest.
$ac_ext
17594 cat >>conftest.
$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 $ac_includes_default
17600 static struct stat ac_aggr;
17601 if (sizeof ac_aggr.st_gen)
17607 rm -f conftest.
$ac_objext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>conftest.er1
17611 grep -v '^ *+' conftest.er1
>conftest.err
17613 cat conftest.err
>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try
='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try
='test -s conftest.$ac_objext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_member_struct_stat_st_gen
=yes
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.
$ac_ext >&5
17634 ac_cv_member_struct_stat_st_gen
=no
17636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17640 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17641 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17642 if test $ac_cv_member_struct_stat_st_gen = yes; then
17644 cat >>confdefs.h
<<_ACEOF
17645 #define HAVE_STRUCT_STAT_ST_GEN 1
17651 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17652 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17653 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 cat >conftest.
$ac_ext <<_ACEOF
17659 cat confdefs.h
>>conftest.
$ac_ext
17660 cat >>conftest.
$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 $ac_includes_default
17666 static struct stat ac_aggr;
17667 if (ac_aggr.st_birthtime)
17673 rm -f conftest.
$ac_objext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17675 (eval $ac_compile) 2>conftest.er1
17677 grep -v '^ *+' conftest.er1
>conftest.err
17679 cat conftest.err
>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try
='test -z "$ac_c_werror_flag"
17683 || test ! -s conftest.err'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try
='test -s conftest.$ac_objext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_member_struct_stat_st_birthtime
=yes
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.
$ac_ext >&5
17700 cat >conftest.
$ac_ext <<_ACEOF
17703 cat confdefs.h
>>conftest.
$ac_ext
17704 cat >>conftest.
$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 $ac_includes_default
17710 static struct stat ac_aggr;
17711 if (sizeof ac_aggr.st_birthtime)
17717 rm -f conftest.
$ac_objext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17719 (eval $ac_compile) 2>conftest.er1
17721 grep -v '^ *+' conftest.er1
>conftest.err
17723 cat conftest.err
>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try
='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try
='test -s conftest.$ac_objext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_cv_member_struct_stat_st_birthtime
=yes
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.
$ac_ext >&5
17744 ac_cv_member_struct_stat_st_birthtime
=no
17746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17750 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17751 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17752 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17754 cat >>confdefs.h
<<_ACEOF
17755 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17761 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17762 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17763 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 cat >conftest.
$ac_ext <<_ACEOF
17769 cat confdefs.h
>>conftest.
$ac_ext
17770 cat >>conftest.
$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17776 static struct stat ac_aggr;
17777 if (ac_aggr.st_blocks)
17783 rm -f conftest.
$ac_objext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785 (eval $ac_compile) 2>conftest.er1
17787 grep -v '^ *+' conftest.er1
>conftest.err
17789 cat conftest.err
>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try
='test -z "$ac_c_werror_flag"
17793 || test ! -s conftest.err'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try
='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_member_struct_stat_st_blocks
=yes
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.
$ac_ext >&5
17810 cat >conftest.
$ac_ext <<_ACEOF
17813 cat confdefs.h
>>conftest.
$ac_ext
17814 cat >>conftest.
$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 $ac_includes_default
17820 static struct stat ac_aggr;
17821 if (sizeof ac_aggr.st_blocks)
17827 rm -f conftest.
$ac_objext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829 (eval $ac_compile) 2>conftest.er1
17831 grep -v '^ *+' conftest.er1
>conftest.err
17833 cat conftest.err
>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try
='test -z "$ac_c_werror_flag"
17837 || test ! -s conftest.err'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try
='test -s conftest.$ac_objext'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849 ac_cv_member_struct_stat_st_blocks
=yes
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.
$ac_ext >&5
17854 ac_cv_member_struct_stat_st_blocks
=no
17856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17861 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17862 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17864 cat >>confdefs.h
<<_ACEOF
17865 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17869 cat >>confdefs.h
<<\_ACEOF
17870 #define HAVE_ST_BLOCKS 1
17875 "fileblocks.$ac_objext" | \
17876 *" fileblocks.$ac_objext" | \
17877 "fileblocks.$ac_objext "* | \
17878 *" fileblocks.$ac_objext "* ) ;;
17879 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17886 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17887 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17888 if test "${ac_cv_header_time_altzone+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 cat >conftest.
$ac_ext <<_ACEOF
17894 cat confdefs.h
>>conftest.
$ac_ext
17895 cat >>conftest.
$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17906 rm -f conftest.
$ac_objext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908 (eval $ac_compile) 2>conftest.er1
17910 grep -v '^ *+' conftest.er1
>conftest.err
17912 cat conftest.err
>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try
='test -z "$ac_c_werror_flag"
17916 || test ! -s conftest.err'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } &&
17922 { ac_try
='test -s conftest.$ac_objext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_cv_header_time_altzone
=yes
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.
$ac_ext >&5
17933 ac_cv_header_time_altzone
=no
17935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17938 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17939 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17940 if test $ac_cv_header_time_altzone = yes; then
17942 cat >>confdefs.h
<<\_ACEOF
17943 #define HAVE_ALTZONE 1
17949 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17950 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17951 cat >conftest.
$ac_ext <<_ACEOF
17954 cat confdefs.h
>>conftest.
$ac_ext
17955 cat >>conftest.
$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17958 #include <sys/types.h>
17959 #include <sys/select.h>
17960 #include <sys/time.h>
17970 rm -f conftest.
$ac_objext
17971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17972 (eval $ac_compile) 2>conftest.er1
17974 grep -v '^ *+' conftest.er1
>conftest.err
17976 cat conftest.err
>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try
='test -z "$ac_c_werror_flag"
17980 || test ! -s conftest.err'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try
='test -s conftest.$ac_objext'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; }; then
17994 cat >>confdefs.h
<<\_ACEOF
17995 #define SYS_SELECT_WITH_SYS_TIME 1
18001 echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.
$ac_ext >&5
18005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18006 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18007 echo "${ECHO_T}$was_it_defined" >&6
18009 echo "$as_me:$LINENO: checking for addrinfo" >&5
18010 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18011 if test "${ac_cv_struct_addrinfo+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 cat >conftest.
$ac_ext <<_ACEOF
18017 cat confdefs.h
>>conftest.
$ac_ext
18018 cat >>conftest.
$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18021 # include <netdb.h>
18030 rm -f conftest.
$ac_objext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18032 (eval $ac_compile) 2>conftest.er1
18034 grep -v '^ *+' conftest.er1
>conftest.err
18036 cat conftest.err
>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try
='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try
='test -s conftest.$ac_objext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_struct_addrinfo
=yes
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.
$ac_ext >&5
18057 ac_cv_struct_addrinfo
=no
18059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18062 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18063 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18064 if test $ac_cv_struct_addrinfo = yes; then
18066 cat >>confdefs.h
<<\_ACEOF
18067 #define HAVE_ADDRINFO 1
18072 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18073 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18074 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 cat >conftest.
$ac_ext <<_ACEOF
18080 cat confdefs.h
>>conftest.
$ac_ext
18081 cat >>conftest.
$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18084 # include <sys/types.h>
18085 # include <sys/socket.h>
18089 struct sockaddr_storage s
18094 rm -f conftest.
$ac_objext
18095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18096 (eval $ac_compile) 2>conftest.er1
18098 grep -v '^ *+' conftest.er1
>conftest.err
18100 cat conftest.err
>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } &&
18103 { ac_try
='test -z "$ac_c_werror_flag"
18104 || test ! -s conftest.err'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try
='test -s conftest.$ac_objext'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 ac_cv_struct_sockaddr_storage
=yes
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.
$ac_ext >&5
18121 ac_cv_struct_sockaddr_storage
=no
18123 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18126 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18127 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18128 if test $ac_cv_struct_sockaddr_storage = yes; then
18130 cat >>confdefs.h
<<\_ACEOF
18131 #define HAVE_SOCKADDR_STORAGE 1
18136 # checks for compiler characteristics
18139 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18140 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18141 if test "${ac_cv_c_char_unsigned+set}" = set; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 cat >conftest.
$ac_ext <<_ACEOF
18147 cat confdefs.h
>>conftest.
$ac_ext
18148 cat >>conftest.
$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18154 static int test_array [1 - 2 * !(((char) -1) < 0)];
18161 rm -f conftest.
$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>conftest.er1
18165 grep -v '^ *+' conftest.er1
>conftest.err
18167 cat conftest.err
>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try
='test -z "$ac_c_werror_flag"
18171 || test ! -s conftest.err'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try
='test -s conftest.$ac_objext'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 ac_cv_c_char_unsigned
=no
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.
$ac_ext >&5
18188 ac_cv_c_char_unsigned
=yes
18190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18192 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18193 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18194 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18195 cat >>confdefs.h
<<\_ACEOF
18196 #define __CHAR_UNSIGNED__ 1
18201 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18203 if test "${ac_cv_c_const+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18206 cat >conftest.
$ac_ext <<_ACEOF
18209 cat confdefs.h
>>conftest.
$ac_ext
18210 cat >>conftest.
$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18216 /* FIXME: Include the comments suggested by Paul. */
18217 #ifndef __cplusplus
18218 /* Ultrix mips cc rejects this. */
18219 typedef int charset[2];
18221 /* SunOS 4.1.1 cc rejects this. */
18222 char const *const *ccp;
18224 /* NEC SVR4.0.2 mips cc rejects this. */
18225 struct point {int x, y;};
18226 static struct point const zero = {0,0};
18227 /* AIX XL C 1.02.0.0 rejects this.
18228 It does not let you subtract one const X* pointer from another in
18229 an arm of an if-expression whose if-part is not a constant
18231 const char *g = "string";
18232 ccp = &g + (g ? g-g : 0);
18233 /* HPUX 7.0 cc rejects these. */
18236 ccp = (char const *const *) p;
18237 { /* SCO 3.2v4 cc rejects this. */
18239 char const *s = 0 ? (char *) 0 : (char const *) 0;
18243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18244 int x[] = {25, 17};
18245 const int *foo = &x[0];
18248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18249 typedef const int *iptr;
18253 { /* AIX XL C 1.02.0.0 rejects this saying
18254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18255 struct s { int j; const int *ap[3]; };
18256 struct s *b; b->j = 5;
18258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18259 const int foo = 10;
18267 rm -f conftest.
$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>conftest.er1
18271 grep -v '^ *+' conftest.er1
>conftest.err
18273 cat conftest.err
>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try
='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try
='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.
$ac_ext >&5
18296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18298 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18299 echo "${ECHO_T}$ac_cv_c_const" >&6
18300 if test $ac_cv_c_const = no
; then
18302 cat >>confdefs.h
<<\_ACEOF
18310 echo "$as_me:$LINENO: checking for working volatile" >&5
18311 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18312 cat >conftest.
$ac_ext <<_ACEOF
18315 cat confdefs.h
>>conftest.
$ac_ext
18316 cat >>conftest.
$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18322 volatile int x; x = 0;
18327 rm -f conftest.
$ac_objext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>conftest.er1
18331 grep -v '^ *+' conftest.er1
>conftest.err
18333 cat conftest.err
>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try
='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try
='test -s conftest.$ac_objext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.
$ac_ext >&5
18355 cat >>confdefs.h
<<\_ACEOF
18361 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18362 echo "$as_me:$LINENO: result: $works" >&5
18363 echo "${ECHO_T}$works" >&6
18366 echo "$as_me:$LINENO: checking for working signed char" >&5
18367 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18368 cat >conftest.
$ac_ext <<_ACEOF
18371 cat confdefs.h
>>conftest.
$ac_ext
18372 cat >>conftest.
$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18383 rm -f conftest.
$ac_objext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385 (eval $ac_compile) 2>conftest.er1
18387 grep -v '^ *+' conftest.er1
>conftest.err
18389 cat conftest.err
>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try
='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try
='test -s conftest.$ac_objext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.
$ac_ext >&5
18411 cat >>confdefs.h
<<\_ACEOF
18417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18418 echo "$as_me:$LINENO: result: $works" >&5
18419 echo "${ECHO_T}$works" >&6
18422 echo "$as_me:$LINENO: checking for prototypes" >&5
18423 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18424 cat >conftest.
$ac_ext <<_ACEOF
18427 cat confdefs.h
>>conftest.
$ac_ext
18428 cat >>conftest.
$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 int foo(int x) { return 0; }
18439 rm -f conftest.
$ac_objext
18440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18441 (eval $ac_compile) 2>conftest.er1
18443 grep -v '^ *+' conftest.er1
>conftest.err
18445 cat conftest.err
>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } &&
18448 { ac_try
='test -z "$ac_c_werror_flag"
18449 || test ! -s conftest.err'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try
='test -s conftest.$ac_objext'
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18463 cat >>confdefs.h
<<\_ACEOF
18464 #define HAVE_PROTOTYPES 1
18467 have_prototypes
=yes
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.
$ac_ext >&5
18474 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18475 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18476 echo "${ECHO_T}$have_prototypes" >&6
18479 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18480 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18481 cat >conftest.
$ac_ext <<_ACEOF
18484 cat confdefs.h
>>conftest.
$ac_ext
18485 cat >>conftest.
$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18488 #include <stdarg.h>
18489 int foo(int x, ...) {
18493 va_arg(va, char *);
18494 va_arg(va, double);
18501 return foo(10, "", 3.14);
18506 rm -f conftest.
$ac_objext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18508 (eval $ac_compile) 2>conftest.er1
18510 grep -v '^ *+' conftest.er1
>conftest.err
18512 cat conftest.err
>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } &&
18515 { ac_try
='test -z "$ac_c_werror_flag"
18516 || test ! -s conftest.err'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try
='test -s conftest.$ac_objext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18530 cat >>confdefs.h
<<\_ACEOF
18531 #define HAVE_STDARG_PROTOTYPES 1
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.
$ac_ext >&5
18541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18542 echo "$as_me:$LINENO: result: $works" >&5
18543 echo "${ECHO_T}$works" >&6
18545 # check for socketpair
18546 echo "$as_me:$LINENO: checking for socketpair" >&5
18547 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18548 cat >conftest.
$ac_ext <<_ACEOF
18551 cat confdefs.h
>>conftest.
$ac_ext
18552 cat >>conftest.
$ac_ext <<_ACEOF
18553 /* end confdefs.h. */
18555 #include <sys/types.h>
18556 #include <sys/socket.h>
18566 rm -f conftest.
$ac_objext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18568 (eval $ac_compile) 2>conftest.er1
18570 grep -v '^ *+' conftest.er1
>conftest.err
18572 cat conftest.err
>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try
='test -z "$ac_c_werror_flag"
18576 || test ! -s conftest.err'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try
='test -s conftest.$ac_objext'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18589 cat >>confdefs.h
<<\_ACEOF
18590 #define HAVE_SOCKETPAIR 1
18593 echo "$as_me:$LINENO: result: yes" >&5
18594 echo "${ECHO_T}yes" >&6
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.
$ac_ext >&5
18599 echo "$as_me:$LINENO: result: no" >&5
18600 echo "${ECHO_T}no" >&6
18603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18605 # check if sockaddr has sa_len member
18606 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18607 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18608 cat >conftest.
$ac_ext <<_ACEOF
18611 cat confdefs.h
>>conftest.
$ac_ext
18612 cat >>conftest.
$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18614 #include <sys/types.h>
18615 #include <sys/socket.h>
18625 rm -f conftest.
$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627 (eval $ac_compile) 2>conftest.er1
18629 grep -v '^ *+' conftest.er1
>conftest.err
18631 cat conftest.err
>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
18634 { ac_try
='test -z "$ac_c_werror_flag"
18635 || test ! -s conftest.err'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try
='test -s conftest.$ac_objext'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 echo "$as_me:$LINENO: result: yes" >&5
18648 echo "${ECHO_T}yes" >&6
18650 cat >>confdefs.h
<<\_ACEOF
18651 #define HAVE_SOCKADDR_SA_LEN 1
18655 echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.
$ac_ext >&5
18658 echo "$as_me:$LINENO: result: no" >&5
18659 echo "${ECHO_T}no" >&6
18661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18663 va_list_is_array
=no
18664 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18665 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18666 cat >conftest.
$ac_ext <<_ACEOF
18669 cat confdefs.h
>>conftest.
$ac_ext
18670 cat >>conftest.
$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 #ifdef HAVE_STDARG_PROTOTYPES
18674 #include <stdarg.h>
18676 #include <varargs.h>
18682 va_list list1, list2; list1 = list2;
18687 rm -f conftest.
$ac_objext
18688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18689 (eval $ac_compile) 2>conftest.er1
18691 grep -v '^ *+' conftest.er1
>conftest.err
18693 cat conftest.err
>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try
='test -z "$ac_c_werror_flag"
18697 || test ! -s conftest.err'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try
='test -s conftest.$ac_objext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.
$ac_ext >&5
18716 cat >>confdefs.h
<<\_ACEOF
18717 #define VA_LIST_IS_ARRAY 1
18720 va_list_is_array
=yes
18723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18724 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18725 echo "${ECHO_T}$va_list_is_array" >&6
18727 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18731 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18732 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18733 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 cat >conftest.
$ac_ext <<_ACEOF
18739 cat confdefs.h
>>conftest.
$ac_ext
18740 cat >>conftest.
$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18744 #define gethostbyname_r innocuous_gethostbyname_r
18746 /* System header to define __stub macros and hopefully few prototypes,
18747 which can conflict with char gethostbyname_r (); below.
18748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18749 <limits.h> exists even on freestanding compilers. */
18752 # include <limits.h>
18754 # include <assert.h>
18757 #undef gethostbyname_r
18759 /* Override any gcc2 internal prototype to avoid an error. */
18764 /* We use char because int might match the return type of a gcc2
18765 builtin and then its argument prototype would still apply. */
18766 char gethostbyname_r ();
18767 /* The GNU C library defines this for functions which it implements
18768 to always fail with ENOSYS. Some functions are actually named
18769 something starting with __ and the normal name is an alias. */
18770 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18773 char (*f) () = gethostbyname_r;
18782 return f != gethostbyname_r;
18787 rm -f conftest.
$ac_objext conftest
$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789 (eval $ac_link) 2>conftest.er1
18791 grep -v '^ *+' conftest.er1
>conftest.err
18793 cat conftest.err
>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try
='test -z "$ac_c_werror_flag"
18797 || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try
='test -s conftest$ac_exeext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_func_gethostbyname_r
=yes
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.
$ac_ext >&5
18814 ac_cv_func_gethostbyname_r
=no
18816 rm -f conftest.err conftest.
$ac_objext \
18817 conftest
$ac_exeext conftest.
$ac_ext
18819 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18820 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18821 if test $ac_cv_func_gethostbyname_r = yes; then
18823 cat >>confdefs.h
<<\_ACEOF
18824 #define HAVE_GETHOSTBYNAME_R 1
18827 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18828 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18830 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18831 cat >conftest.
$ac_ext <<_ACEOF
18834 cat confdefs.h
>>conftest.
$ac_ext
18835 cat >>conftest.
$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 # include <netdb.h>
18845 struct hostent *he, *res;
18850 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18856 rm -f conftest.
$ac_objext
18857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>conftest.er1
18860 grep -v '^ *+' conftest.er1
>conftest.err
18862 cat conftest.err
>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try
='test -z "$ac_c_werror_flag"
18866 || test ! -s conftest.err'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try
='test -s conftest.$ac_objext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18879 cat >>confdefs.h
<<\_ACEOF
18880 #define HAVE_GETHOSTBYNAME_R 1
18884 cat >>confdefs.h
<<\_ACEOF
18885 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18888 echo "$as_me:$LINENO: result: yes" >&5
18889 echo "${ECHO_T}yes" >&6
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.
$ac_ext >&5
18896 echo "$as_me:$LINENO: result: no" >&5
18897 echo "${ECHO_T}no" >&6
18898 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18899 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18900 cat >conftest.
$ac_ext <<_ACEOF
18903 cat confdefs.h
>>conftest.
$ac_ext
18904 cat >>conftest.
$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18907 # include <netdb.h>
18914 struct hostent *he;
18919 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18925 rm -f conftest.
$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>conftest.er1
18929 grep -v '^ *+' conftest.er1
>conftest.err
18931 cat conftest.err
>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try
='test -z "$ac_c_werror_flag"
18935 || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try
='test -s conftest.$ac_objext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18948 cat >>confdefs.h
<<\_ACEOF
18949 #define HAVE_GETHOSTBYNAME_R 1
18953 cat >>confdefs.h
<<\_ACEOF
18954 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18957 echo "$as_me:$LINENO: result: yes" >&5
18958 echo "${ECHO_T}yes" >&6
18961 echo "$as_me: failed program was:" >&5
18962 sed 's/^/| /' conftest.
$ac_ext >&5
18965 echo "$as_me:$LINENO: result: no" >&5
18966 echo "${ECHO_T}no" >&6
18967 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18968 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18969 cat >conftest.
$ac_ext <<_ACEOF
18972 cat confdefs.h
>>conftest.
$ac_ext
18973 cat >>conftest.
$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18976 # include <netdb.h>
18983 struct hostent *he;
18984 struct hostent_data data;
18986 (void) gethostbyname_r(name, he, &data);
18992 rm -f conftest.
$ac_objext
18993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18994 (eval $ac_compile) 2>conftest.er1
18996 grep -v '^ *+' conftest.er1
>conftest.err
18998 cat conftest.err
>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try
='test -z "$ac_c_werror_flag"
19002 || test ! -s conftest.err'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; } &&
19008 { ac_try
='test -s conftest.$ac_objext'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19015 cat >>confdefs.h
<<\_ACEOF
19016 #define HAVE_GETHOSTBYNAME_R 1
19020 cat >>confdefs.h
<<\_ACEOF
19021 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19024 echo "$as_me:$LINENO: result: yes" >&5
19025 echo "${ECHO_T}yes" >&6
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.
$ac_ext >&5
19032 echo "$as_me:$LINENO: result: no" >&5
19033 echo "${ECHO_T}no" >&6
19036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19048 for ac_func
in gethostbyname
19050 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19051 echo "$as_me:$LINENO: checking for $ac_func" >&5
19052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19053 if eval "test \"\${$as_ac_var+set}\" = set"; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 cat >conftest.
$ac_ext <<_ACEOF
19059 cat confdefs.h
>>conftest.
$ac_ext
19060 cat >>conftest.
$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19064 #define $ac_func innocuous_$ac_func
19066 /* System header to define __stub macros and hopefully few prototypes,
19067 which can conflict with char $ac_func (); below.
19068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19069 <limits.h> exists even on freestanding compilers. */
19072 # include <limits.h>
19074 # include <assert.h>
19079 /* Override any gcc2 internal prototype to avoid an error. */
19084 /* We use char because int might match the return type of a gcc2
19085 builtin and then its argument prototype would still apply. */
19087 /* The GNU C library defines this for functions which it implements
19088 to always fail with ENOSYS. Some functions are actually named
19089 something starting with __ and the normal name is an alias. */
19090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19093 char (*f) () = $ac_func;
19102 return f != $ac_func;
19107 rm -f conftest.
$ac_objext conftest
$ac_exeext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109 (eval $ac_link) 2>conftest.er1
19111 grep -v '^ *+' conftest.er1
>conftest.err
19113 cat conftest.err
>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try
='test -z "$ac_c_werror_flag"
19117 || test ! -s conftest.err'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try
='test -s conftest$ac_exeext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 eval "$as_ac_var=yes"
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.
$ac_ext >&5
19134 eval "$as_ac_var=no"
19136 rm -f conftest.err conftest.
$ac_objext \
19137 conftest
$ac_exeext conftest.
$ac_ext
19139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19141 if test `eval echo '${'$as_ac_var'}'` = yes; then
19142 cat >>confdefs.h
<<_ACEOF
19143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19158 # checks for system services
19161 # Linux requires this for correct f.p. operations
19162 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19163 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19164 if test "${ac_cv_func___fpu_control+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 cat >conftest.
$ac_ext <<_ACEOF
19170 cat confdefs.h
>>conftest.
$ac_ext
19171 cat >>conftest.
$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19175 #define __fpu_control innocuous___fpu_control
19177 /* System header to define __stub macros and hopefully few prototypes,
19178 which can conflict with char __fpu_control (); below.
19179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19180 <limits.h> exists even on freestanding compilers. */
19183 # include <limits.h>
19185 # include <assert.h>
19188 #undef __fpu_control
19190 /* Override any gcc2 internal prototype to avoid an error. */
19195 /* We use char because int might match the return type of a gcc2
19196 builtin and then its argument prototype would still apply. */
19197 char __fpu_control ();
19198 /* The GNU C library defines this for functions which it implements
19199 to always fail with ENOSYS. Some functions are actually named
19200 something starting with __ and the normal name is an alias. */
19201 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19204 char (*f) () = __fpu_control;
19213 return f != __fpu_control;
19218 rm -f conftest.
$ac_objext conftest
$ac_exeext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220 (eval $ac_link) 2>conftest.er1
19222 grep -v '^ *+' conftest.er1
>conftest.err
19224 cat conftest.err
>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try
='test -z "$ac_c_werror_flag"
19228 || test ! -s conftest.err'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; } &&
19234 { ac_try
='test -s conftest$ac_exeext'
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; }; then
19240 ac_cv_func___fpu_control
=yes
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.
$ac_ext >&5
19245 ac_cv_func___fpu_control
=no
19247 rm -f conftest.err conftest.
$ac_objext \
19248 conftest
$ac_exeext conftest.
$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19251 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19252 if test $ac_cv_func___fpu_control = yes; then
19256 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19257 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19258 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 ac_check_lib_save_LIBS
=$LIBS
19262 LIBS
="-lieee $LIBS"
19263 cat >conftest.
$ac_ext <<_ACEOF
19266 cat confdefs.h
>>conftest.
$ac_ext
19267 cat >>conftest.
$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19270 /* Override any gcc2 internal prototype to avoid an error. */
19274 /* We use char because int might match the return type of a gcc2
19275 builtin and then its argument prototype would still apply. */
19276 char __fpu_control ();
19285 rm -f conftest.
$ac_objext conftest
$ac_exeext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19287 (eval $ac_link) 2>conftest.er1
19289 grep -v '^ *+' conftest.er1
>conftest.err
19291 cat conftest.err
>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
19294 { ac_try
='test -z "$ac_c_werror_flag"
19295 || test ! -s conftest.err'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; } &&
19301 { ac_try
='test -s conftest$ac_exeext'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19307 ac_cv_lib_ieee___fpu_control
=yes
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.
$ac_ext >&5
19312 ac_cv_lib_ieee___fpu_control
=no
19314 rm -f conftest.err conftest.
$ac_objext \
19315 conftest
$ac_exeext conftest.
$ac_ext
19316 LIBS
=$ac_check_lib_save_LIBS
19318 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19319 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19320 if test $ac_cv_lib_ieee___fpu_control = yes; then
19321 cat >>confdefs.h
<<_ACEOF
19322 #define HAVE_LIBIEEE 1
19325 LIBS
="-lieee $LIBS"
19333 # Check for --with-fpectl
19334 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19335 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19337 # Check whether --with-fpectl or --without-fpectl was given.
19338 if test "${with_fpectl+set}" = set; then
19339 withval
="$with_fpectl"
19341 if test "$withval" != no
19344 cat >>confdefs.h
<<\_ACEOF
19345 #define WANT_SIGFPE_HANDLER 1
19348 echo "$as_me:$LINENO: result: yes" >&5
19349 echo "${ECHO_T}yes" >&6
19350 else echo "$as_me:$LINENO: result: no" >&5
19351 echo "${ECHO_T}no" >&6
19354 echo "$as_me:$LINENO: result: no" >&5
19355 echo "${ECHO_T}no" >&6
19358 # check for --with-libm=...
19360 case $ac_sys_system in
19365 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19366 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19368 # Check whether --with-libm or --without-libm was given.
19369 if test "${with_libm+set}" = set; then
19370 withval
="$with_libm"
19372 if test "$withval" = no
19374 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19375 echo "${ECHO_T}force LIBM empty" >&6
19376 elif test "$withval" != yes
19378 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19379 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19380 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19381 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19382 { (exit 1); exit 1; }; }
19385 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19386 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19389 # check for --with-libc=...
19391 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19392 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19394 # Check whether --with-libc or --without-libc was given.
19395 if test "${with_libc+set}" = set; then
19396 withval
="$with_libc"
19398 if test "$withval" = no
19400 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19401 echo "${ECHO_T}force LIBC empty" >&6
19402 elif test "$withval" != yes
19404 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19405 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19406 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19407 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19408 { (exit 1); exit 1; }; }
19411 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19412 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19415 # check for hypot() in math library
19419 for ac_func
in hypot
19421 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19422 echo "$as_me:$LINENO: checking for $ac_func" >&5
19423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19424 if eval "test \"\${$as_ac_var+set}\" = set"; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 cat >conftest.
$ac_ext <<_ACEOF
19430 cat confdefs.h
>>conftest.
$ac_ext
19431 cat >>conftest.
$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19435 #define $ac_func innocuous_$ac_func
19437 /* System header to define __stub macros and hopefully few prototypes,
19438 which can conflict with char $ac_func (); below.
19439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19440 <limits.h> exists even on freestanding compilers. */
19443 # include <limits.h>
19445 # include <assert.h>
19450 /* Override any gcc2 internal prototype to avoid an error. */
19455 /* We use char because int might match the return type of a gcc2
19456 builtin and then its argument prototype would still apply. */
19458 /* The GNU C library defines this for functions which it implements
19459 to always fail with ENOSYS. Some functions are actually named
19460 something starting with __ and the normal name is an alias. */
19461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19464 char (*f) () = $ac_func;
19473 return f != $ac_func;
19478 rm -f conftest.
$ac_objext conftest
$ac_exeext
19479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19480 (eval $ac_link) 2>conftest.er1
19482 grep -v '^ *+' conftest.er1
>conftest.err
19484 cat conftest.err
>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try
='test -z "$ac_c_werror_flag"
19488 || test ! -s conftest.err'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try
='test -s conftest$ac_exeext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 eval "$as_ac_var=yes"
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.
$ac_ext >&5
19505 eval "$as_ac_var=no"
19507 rm -f conftest.err conftest.
$ac_objext \
19508 conftest
$ac_exeext conftest.
$ac_ext
19510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19512 if test `eval echo '${'$as_ac_var'}'` = yes; then
19513 cat >>confdefs.h
<<_ACEOF
19514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19519 "$ac_func.$ac_objext" | \
19520 *" $ac_func.$ac_objext" | \
19521 "$ac_func.$ac_objext "* | \
19522 *" $ac_func.$ac_objext "* ) ;;
19523 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19532 # check for wchar.h
19533 if test "${ac_cv_header_wchar_h+set}" = set; then
19534 echo "$as_me:$LINENO: checking for wchar.h" >&5
19535 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19536 if test "${ac_cv_header_wchar_h+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19540 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19542 # Is the header compilable?
19543 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19544 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19545 cat >conftest.
$ac_ext <<_ACEOF
19548 cat confdefs.h
>>conftest.
$ac_ext
19549 cat >>conftest.
$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 $ac_includes_default
19554 rm -f conftest.
$ac_objext
19555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19556 (eval $ac_compile) 2>conftest.er1
19558 grep -v '^ *+' conftest.er1
>conftest.err
19560 cat conftest.err
>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } &&
19563 { ac_try
='test -z "$ac_c_werror_flag"
19564 || test ! -s conftest.err'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try
='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_header_compiler
=yes
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.
$ac_ext >&5
19581 ac_header_compiler
=no
19583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19585 echo "${ECHO_T}$ac_header_compiler" >&6
19587 # Is the header present?
19588 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19589 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19590 cat >conftest.
$ac_ext <<_ACEOF
19593 cat confdefs.h
>>conftest.
$ac_ext
19594 cat >>conftest.
$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19599 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19601 grep -v '^ *+' conftest.er1
>conftest.err
19603 cat conftest.err
>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } >/dev
/null
; then
19606 if test -s conftest.err
; then
19607 ac_cpp_err
=$ac_c_preproc_warn_flag
19608 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19615 if test -z "$ac_cpp_err"; then
19616 ac_header_preproc
=yes
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.
$ac_ext >&5
19621 ac_header_preproc
=no
19623 rm -f conftest.err conftest.
$ac_ext
19624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19625 echo "${ECHO_T}$ac_header_preproc" >&6
19627 # So? What about this header?
19628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19630 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19631 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19633 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19634 ac_header_preproc
=yes
19637 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19638 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19640 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19642 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19644 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19646 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19648 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19651 ## ------------------------------------------------ ##
19652 ## Report this to http://www.python.org/python-bugs ##
19653 ## ------------------------------------------------ ##
19656 sed "s/^/$as_me: WARNING: /" >&2
19659 echo "$as_me:$LINENO: checking for wchar.h" >&5
19660 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19661 if test "${ac_cv_header_wchar_h+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_cv_header_wchar_h
=$ac_header_preproc
19666 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19667 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19670 if test $ac_cv_header_wchar_h = yes; then
19673 cat >>confdefs.h
<<\_ACEOF
19674 #define HAVE_WCHAR_H 1
19686 # determine wchar_t size
19687 if test "$wchar_h" = yes
19689 echo "$as_me:$LINENO: checking for wchar_t" >&5
19690 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19691 if test "${ac_cv_type_wchar_t+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 cat >conftest.
$ac_ext <<_ACEOF
19697 cat confdefs.h
>>conftest.
$ac_ext
19698 cat >>conftest.
$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19707 if (sizeof (wchar_t))
19713 rm -f conftest.
$ac_objext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19715 (eval $ac_compile) 2>conftest.er1
19717 grep -v '^ *+' conftest.er1
>conftest.err
19719 cat conftest.err
>&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try
='test -z "$ac_c_werror_flag"
19723 || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try
='test -s conftest.$ac_objext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_type_wchar_t
=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.
$ac_ext >&5
19740 ac_cv_type_wchar_t
=no
19742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19744 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19745 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19747 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19748 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19749 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 if test "$ac_cv_type_wchar_t" = yes; then
19753 # The cast to unsigned long works around a bug in the HP C Compiler
19754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19756 # This bug is HP SR number 8606223364.
19757 if test "$cross_compiling" = yes; then
19758 # Depending upon the size, compute the lo and hi bounds.
19759 cat >conftest.
$ac_ext <<_ACEOF
19762 cat confdefs.h
>>conftest.
$ac_ext
19763 cat >>conftest.
$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19770 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19777 rm -f conftest.
$ac_objext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19779 (eval $ac_compile) 2>conftest.er1
19781 grep -v '^ *+' conftest.er1
>conftest.err
19783 cat conftest.err
>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try
='test -z "$ac_c_werror_flag"
19787 || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try
='test -s conftest.$ac_objext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19801 cat >conftest.
$ac_ext <<_ACEOF
19804 cat confdefs.h
>>conftest.
$ac_ext
19805 cat >>conftest.
$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19812 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19819 rm -f conftest.
$ac_objext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19821 (eval $ac_compile) 2>conftest.er1
19823 grep -v '^ *+' conftest.er1
>conftest.err
19825 cat conftest.err
>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } &&
19828 { ac_try
='test -z "$ac_c_werror_flag"
19829 || test ! -s conftest.err'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; } &&
19835 { ac_try
='test -s conftest.$ac_objext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 ac_hi
=$ac_mid; break
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.
$ac_ext >&5
19846 ac_lo
=`expr $ac_mid + 1`
19847 if test $ac_lo -le $ac_mid; then
19851 ac_mid
=`expr 2 '*' $ac_mid + 1`
19853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.
$ac_ext >&5
19859 cat >conftest.
$ac_ext <<_ACEOF
19862 cat confdefs.h
>>conftest.
$ac_ext
19863 cat >>conftest.
$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19870 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19877 rm -f conftest.
$ac_objext
19878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19879 (eval $ac_compile) 2>conftest.er1
19881 grep -v '^ *+' conftest.er1
>conftest.err
19883 cat conftest.err
>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try
='test -z "$ac_c_werror_flag"
19887 || test ! -s conftest.err'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try
='test -s conftest.$ac_objext'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19901 cat >conftest.
$ac_ext <<_ACEOF
19904 cat confdefs.h
>>conftest.
$ac_ext
19905 cat >>conftest.
$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19912 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19919 rm -f conftest.
$ac_objext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921 (eval $ac_compile) 2>conftest.er1
19923 grep -v '^ *+' conftest.er1
>conftest.err
19925 cat conftest.err
>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
19928 { ac_try
='test -z "$ac_c_werror_flag"
19929 || test ! -s conftest.err'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try
='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_lo
=$ac_mid; break
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.
$ac_ext >&5
19946 ac_hi
=`expr '(' $ac_mid ')' - 1`
19947 if test $ac_mid -le $ac_hi; then
19951 ac_mid
=`expr 2 '*' $ac_mid`
19953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.
$ac_ext >&5
19961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19964 # Binary search between lo and hi bounds.
19965 while test "x$ac_lo" != "x$ac_hi"; do
19966 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19967 cat >conftest.
$ac_ext <<_ACEOF
19970 cat confdefs.h
>>conftest.
$ac_ext
19971 cat >>conftest.
$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19978 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19985 rm -f conftest.
$ac_objext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19987 (eval $ac_compile) 2>conftest.er1
19989 grep -v '^ *+' conftest.er1
>conftest.err
19991 cat conftest.err
>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try
='test -z "$ac_c_werror_flag"
19995 || test ! -s conftest.err'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try
='test -s conftest.$ac_objext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.
$ac_ext >&5
20012 ac_lo
=`expr '(' $ac_mid ')' + 1`
20014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20017 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
20018 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20019 See \`config.log' for more details." >&5
20020 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20021 See \`config.log' for more details." >&2;}
20022 { (exit 1); exit 1; }; } ;;
20025 if test "$cross_compiling" = yes; then
20026 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20027 See \`config.log' for more details." >&5
20028 echo "$as_me: error: cannot run test program while cross compiling
20029 See \`config.log' for more details." >&2;}
20030 { (exit 1); exit 1; }; }
20032 cat >conftest.
$ac_ext <<_ACEOF
20035 cat confdefs.h
>>conftest.
$ac_ext
20036 cat >>conftest.
$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20040 long longval () { return (long) (sizeof (wchar_t)); }
20041 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20043 #include <stdlib.h>
20048 FILE *f = fopen ("conftest.val", "w");
20051 if (((long) (sizeof (wchar_t))) < 0)
20053 long i = longval ();
20054 if (i != ((long) (sizeof (wchar_t))))
20056 fprintf (f, "%ld\n", i);
20060 unsigned long i = ulongval ();
20061 if (i != ((long) (sizeof (wchar_t))))
20063 fprintf (f, "%lu\n", i);
20065 exit (ferror (f) || fclose (f) != 0);
20071 rm -f conftest
$ac_exeext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20073 (eval $ac_link) 2>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_cv_sizeof_wchar_t
=`cat conftest.val`
20084 echo "$as_me: program exited with status $ac_status" >&5
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.
$ac_ext >&5
20088 ( exit $ac_status )
20089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20090 See \`config.log' for more details." >&5
20091 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20092 See \`config.log' for more details." >&2;}
20093 { (exit 1); exit 1; }; }
20095 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20100 ac_cv_sizeof_wchar_t
=0
20103 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20104 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20105 cat >>confdefs.h
<<_ACEOF
20106 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20112 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20113 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20115 cat >conftest.
$ac_ext <<_ACEOF
20118 cat confdefs.h
>>conftest.
$ac_ext
20119 cat >>conftest.
$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20123 #if TCL_UTF_MAX != 6
20124 # error "NOT UCS4_TCL"
20134 rm -f conftest.
$ac_objext
20135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20136 (eval $ac_compile) 2>conftest.er1
20138 grep -v '^ *+' conftest.er1
>conftest.err
20140 cat conftest.err
>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
20143 { ac_try
='test -z "$ac_c_werror_flag"
20144 || test ! -s conftest.err'
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try
='test -s conftest.$ac_objext'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20158 cat >>confdefs.h
<<\_ACEOF
20159 #define HAVE_UCS4_TCL 1
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.
$ac_ext >&5
20169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20170 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20171 echo "${ECHO_T}$have_ucs4_tcl" >&6
20173 # check whether wchar_t is signed or not
20174 if test "$wchar_h" = yes
20176 # check whether wchar_t is signed or not
20177 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20178 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20179 if test "${ac_cv_wchar_t_signed+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 if test "$cross_compiling" = yes; then
20184 ac_cv_wchar_t_signed
=yes
20186 cat >conftest.
$ac_ext <<_ACEOF
20189 cat confdefs.h
>>conftest.
$ac_ext
20190 cat >>conftest.
$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20196 /* Success: exit code 0 */
20197 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20201 rm -f conftest
$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_cv_wchar_t_signed
=yes
20214 echo "$as_me: program exited with status $ac_status" >&5
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.
$ac_ext >&5
20218 ( exit $ac_status )
20219 ac_cv_wchar_t_signed
=no
20221 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20225 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20226 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20229 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20230 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20231 # Check whether --enable-unicode or --disable-unicode was given.
20232 if test "${enable_unicode+set}" = set; then
20233 enableval
="$enable_unicode"
20239 if test $enable_unicode = yes
20241 # Without any arguments, Py_UNICODE defaults to two-byte mode
20242 case "$have_ucs4_tcl" in
20243 yes) enable_unicode
="ucs4"
20245 *) enable_unicode
="ucs2"
20252 case "$enable_unicode" in
20253 ucs2
) unicode_size
="2"
20254 cat >>confdefs.h
<<\_ACEOF
20255 #define Py_UNICODE_SIZE 2
20259 ucs4
) unicode_size
="4"
20260 cat >>confdefs.h
<<\_ACEOF
20261 #define Py_UNICODE_SIZE 4
20271 if test "$enable_unicode" = "no"
20274 echo "$as_me:$LINENO: result: not used" >&5
20275 echo "${ECHO_T}not used" >&6
20277 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20279 cat >>confdefs.h
<<\_ACEOF
20280 #define Py_USING_UNICODE 1
20284 # wchar_t is only usable if it maps to an unsigned type
20285 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20286 -a "$ac_cv_wchar_t_signed" = "no"
20288 PY_UNICODE_TYPE
="wchar_t"
20290 cat >>confdefs.h
<<\_ACEOF
20291 #define HAVE_USABLE_WCHAR_T 1
20294 cat >>confdefs.h
<<\_ACEOF
20295 #define PY_UNICODE_TYPE wchar_t
20298 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20300 PY_UNICODE_TYPE
="unsigned short"
20301 cat >>confdefs.h
<<\_ACEOF
20302 #define PY_UNICODE_TYPE unsigned short
20305 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20307 PY_UNICODE_TYPE
="unsigned long"
20308 cat >>confdefs.h
<<\_ACEOF
20309 #define PY_UNICODE_TYPE unsigned long
20313 PY_UNICODE_TYPE
="no type found"
20315 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20316 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20319 # check for endianness
20320 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20321 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20322 if test "${ac_cv_c_bigendian+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 # See if sys/param.h defines the BYTE_ORDER macro.
20326 cat >conftest.
$ac_ext <<_ACEOF
20329 cat confdefs.h
>>conftest.
$ac_ext
20330 cat >>conftest.
$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332 #include <sys/types.h>
20333 #include <sys/param.h>
20338 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20339 bogus endian macros
20346 rm -f conftest.
$ac_objext
20347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20348 (eval $ac_compile) 2>conftest.er1
20350 grep -v '^ *+' conftest.er1
>conftest.err
20352 cat conftest.err
>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
20355 { ac_try
='test -z "$ac_c_werror_flag"
20356 || test ! -s conftest.err'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try
='test -s conftest.$ac_objext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 # It does; now see whether it defined to BIG_ENDIAN or not.
20369 cat >conftest.
$ac_ext <<_ACEOF
20372 cat confdefs.h
>>conftest.
$ac_ext
20373 cat >>conftest.
$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 #include <sys/types.h>
20376 #include <sys/param.h>
20381 #if BYTE_ORDER != BIG_ENDIAN
20389 rm -f conftest.
$ac_objext
20390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391 (eval $ac_compile) 2>conftest.er1
20393 grep -v '^ *+' conftest.er1
>conftest.err
20395 cat conftest.err
>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
20398 { ac_try
='test -z "$ac_c_werror_flag"
20399 || test ! -s conftest.err'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; } &&
20405 { ac_try
='test -s conftest.$ac_objext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_cv_c_bigendian
=yes
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.
$ac_ext >&5
20416 ac_cv_c_bigendian
=no
20418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20420 echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.
$ac_ext >&5
20423 # It does not; compile a test program.
20424 if test "$cross_compiling" = yes; then
20425 # try to guess the endianness by grepping values into an object file
20426 ac_cv_c_bigendian
=unknown
20427 cat >conftest.
$ac_ext <<_ACEOF
20430 cat confdefs.h
>>conftest.
$ac_ext
20431 cat >>conftest.
$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20434 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20435 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20436 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20437 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20438 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20442 _ascii (); _ebcdic ();
20447 rm -f conftest.
$ac_objext
20448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20449 (eval $ac_compile) 2>conftest.er1
20451 grep -v '^ *+' conftest.er1
>conftest.err
20453 cat conftest.err
>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } &&
20456 { ac_try
='test -z "$ac_c_werror_flag"
20457 || test ! -s conftest.err'
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; } &&
20463 { ac_try
='test -s conftest.$ac_objext'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20469 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20470 ac_cv_c_bigendian
=yes
20472 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20473 if test "$ac_cv_c_bigendian" = unknown
; then
20474 ac_cv_c_bigendian
=no
20476 # finding both strings is unlikely to happen, but who knows?
20477 ac_cv_c_bigendian
=unknown
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.
$ac_ext >&5
20485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20487 cat >conftest.
$ac_ext <<_ACEOF
20490 cat confdefs.h
>>conftest.
$ac_ext
20491 cat >>conftest.
$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20496 /* Are we little or big endian? From Harbison&Steele. */
20500 char c[sizeof (long)];
20503 exit (u.c[sizeof (long) - 1] == 1);
20506 rm -f conftest
$ac_exeext
20507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20508 (eval $ac_link) 2>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_c_bigendian
=no
20519 echo "$as_me: program exited with status $ac_status" >&5
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.
$ac_ext >&5
20523 ( exit $ac_status )
20524 ac_cv_c_bigendian
=yes
20526 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20531 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20532 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20533 case $ac_cv_c_bigendian in
20536 cat >>confdefs.h
<<\_ACEOF
20537 #define WORDS_BIGENDIAN 1
20543 { { echo "$as_me:$LINENO: error: unknown endianness
20544 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20545 echo "$as_me: error: unknown endianness
20546 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20547 { (exit 1); exit 1; }; } ;;
20553 # Check whether right shifting a negative integer extends the sign bit
20554 # or fills with zeros (like the Cray J90, according to Tim Peters).
20555 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20556 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20557 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 if test "$cross_compiling" = yes; then
20562 ac_cv_rshift_extends_sign
=yes
20564 cat >conftest.
$ac_ext <<_ACEOF
20567 cat confdefs.h
>>conftest.
$ac_ext
20568 cat >>conftest.
$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20573 exit(((-1)>>3 == -1) ? 0 : 1);
20577 rm -f conftest
$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_rshift_extends_sign
=yes
20590 echo "$as_me: program exited with status $ac_status" >&5
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.
$ac_ext >&5
20594 ( exit $ac_status )
20595 ac_cv_rshift_extends_sign
=no
20597 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20601 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20602 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20603 if test "$ac_cv_rshift_extends_sign" = no
20606 cat >>confdefs.h
<<\_ACEOF
20607 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20612 # check for getc_unlocked and related locking functions
20613 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20614 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20615 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 cat >conftest.
$ac_ext <<_ACEOF
20622 cat confdefs.h
>>conftest.
$ac_ext
20623 cat >>conftest.
$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20630 FILE *f = fopen("/dev/null", "r");
20639 rm -f conftest.
$ac_objext conftest
$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>conftest.er1
20643 grep -v '^ *+' conftest.er1
>conftest.err
20645 cat conftest.err
>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try
='test -z "$ac_c_werror_flag"
20649 || test ! -s conftest.err'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try
='test -s conftest$ac_exeext'
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 ac_cv_have_getc_unlocked
=yes
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.
$ac_ext >&5
20666 ac_cv_have_getc_unlocked
=no
20668 rm -f conftest.err conftest.
$ac_objext \
20669 conftest
$ac_exeext conftest.
$ac_ext
20672 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20673 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20674 if test "$ac_cv_have_getc_unlocked" = yes
20677 cat >>confdefs.h
<<\_ACEOF
20678 #define HAVE_GETC_UNLOCKED 1
20683 # check where readline lives
20684 # save the value of LIBS so we don't actually link Python with readline
20685 LIBS_no_readline
=$LIBS
20687 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20688 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20689 if test "${ac_cv_lib_readline_readline+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 ac_check_lib_save_LIBS
=$LIBS
20693 LIBS
="-lreadline $LIBS"
20694 cat >conftest.
$ac_ext <<_ACEOF
20697 cat confdefs.h
>>conftest.
$ac_ext
20698 cat >>conftest.
$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20701 /* Override any gcc2 internal prototype to avoid an error. */
20705 /* We use char because int might match the return type of a gcc2
20706 builtin and then its argument prototype would still apply. */
20716 rm -f conftest.
$ac_objext conftest
$ac_exeext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20718 (eval $ac_link) 2>conftest.er1
20720 grep -v '^ *+' conftest.er1
>conftest.err
20722 cat conftest.err
>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
20725 { ac_try
='test -z "$ac_c_werror_flag"
20726 || test ! -s conftest.err'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; } &&
20732 { ac_try
='test -s conftest$ac_exeext'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738 ac_cv_lib_readline_readline
=yes
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.
$ac_ext >&5
20743 ac_cv_lib_readline_readline
=no
20745 rm -f conftest.err conftest.
$ac_objext \
20746 conftest
$ac_exeext conftest.
$ac_ext
20747 LIBS
=$ac_check_lib_save_LIBS
20749 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20750 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20751 if test $ac_cv_lib_readline_readline = yes; then
20752 cat >>confdefs.h
<<_ACEOF
20753 #define HAVE_LIBREADLINE 1
20756 LIBS
="-lreadline $LIBS"
20760 if test "$ac_cv_have_readline_readline" = no
20763 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20764 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20765 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 ac_check_lib_save_LIBS
=$LIBS
20769 LIBS
="-ltermcap $LIBS"
20770 cat >conftest.
$ac_ext <<_ACEOF
20773 cat confdefs.h
>>conftest.
$ac_ext
20774 cat >>conftest.
$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 /* Override any gcc2 internal prototype to avoid an error. */
20781 /* We use char because int might match the return type of a gcc2
20782 builtin and then its argument prototype would still apply. */
20792 rm -f conftest.
$ac_objext conftest
$ac_exeext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20794 (eval $ac_link) 2>conftest.er1
20796 grep -v '^ *+' conftest.er1
>conftest.err
20798 cat conftest.err
>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
20801 { ac_try
='test -z "$ac_c_werror_flag"
20802 || test ! -s conftest.err'
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; } &&
20808 { ac_try
='test -s conftest$ac_exeext'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 ac_cv_lib_termcap_readline
=yes
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.
$ac_ext >&5
20819 ac_cv_lib_termcap_readline
=no
20821 rm -f conftest.err conftest.
$ac_objext \
20822 conftest
$ac_exeext conftest.
$ac_ext
20823 LIBS
=$ac_check_lib_save_LIBS
20825 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20826 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20827 if test $ac_cv_lib_termcap_readline = yes; then
20828 cat >>confdefs.h
<<_ACEOF
20829 #define HAVE_LIBTERMCAP 1
20832 LIBS
="-ltermcap $LIBS"
20838 # check for readline 2.1
20839 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20840 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20841 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 ac_check_lib_save_LIBS
=$LIBS
20845 LIBS
="-lreadline $LIBS"
20846 cat >conftest.
$ac_ext <<_ACEOF
20849 cat confdefs.h
>>conftest.
$ac_ext
20850 cat >>conftest.
$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20853 /* Override any gcc2 internal prototype to avoid an error. */
20857 /* We use char because int might match the return type of a gcc2
20858 builtin and then its argument prototype would still apply. */
20859 char rl_callback_handler_install ();
20863 rl_callback_handler_install ();
20868 rm -f conftest.
$ac_objext conftest
$ac_exeext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>conftest.er1
20872 grep -v '^ *+' conftest.er1
>conftest.err
20874 cat conftest.err
>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
20877 { ac_try
='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try
='test -s conftest$ac_exeext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 ac_cv_lib_readline_rl_callback_handler_install
=yes
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.
$ac_ext >&5
20895 ac_cv_lib_readline_rl_callback_handler_install
=no
20897 rm -f conftest.err conftest.
$ac_objext \
20898 conftest
$ac_exeext conftest.
$ac_ext
20899 LIBS
=$ac_check_lib_save_LIBS
20901 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20902 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20903 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20905 cat >>confdefs.h
<<\_ACEOF
20906 #define HAVE_RL_CALLBACK 1
20912 # check for readline 2.2
20913 cat >conftest.
$ac_ext <<_ACEOF
20916 cat confdefs.h
>>conftest.
$ac_ext
20917 cat >>conftest.
$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <readline/readline.h>
20921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20922 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20924 grep -v '^ *+' conftest.er1
>conftest.err
20926 cat conftest.err
>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } >/dev
/null
; then
20929 if test -s conftest.err
; then
20930 ac_cpp_err
=$ac_c_preproc_warn_flag
20931 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20938 if test -z "$ac_cpp_err"; then
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.
$ac_ext >&5
20946 rm -f conftest.err conftest.
$ac_ext
20947 if test $have_readline = yes
20949 cat >conftest.
$ac_ext <<_ACEOF
20952 cat confdefs.h
>>conftest.
$ac_ext
20953 cat >>conftest.
$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 #include <readline/readline.h>
20958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20959 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20961 cat >>confdefs.h
<<\_ACEOF
20962 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20970 # check for readline 4.0
20971 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20972 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20973 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 ac_check_lib_save_LIBS
=$LIBS
20977 LIBS
="-lreadline $LIBS"
20978 cat >conftest.
$ac_ext <<_ACEOF
20981 cat confdefs.h
>>conftest.
$ac_ext
20982 cat >>conftest.
$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20985 /* Override any gcc2 internal prototype to avoid an error. */
20989 /* We use char because int might match the return type of a gcc2
20990 builtin and then its argument prototype would still apply. */
20991 char rl_pre_input_hook ();
20995 rl_pre_input_hook ();
21000 rm -f conftest.
$ac_objext conftest
$ac_exeext
21001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21002 (eval $ac_link) 2>conftest.er1
21004 grep -v '^ *+' conftest.er1
>conftest.err
21006 cat conftest.err
>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try
='test -z "$ac_c_werror_flag"
21010 || test ! -s conftest.err'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; } &&
21016 { ac_try
='test -s conftest$ac_exeext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_lib_readline_rl_pre_input_hook
=yes
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.
$ac_ext >&5
21027 ac_cv_lib_readline_rl_pre_input_hook
=no
21029 rm -f conftest.err conftest.
$ac_objext \
21030 conftest
$ac_exeext conftest.
$ac_ext
21031 LIBS
=$ac_check_lib_save_LIBS
21033 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21034 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21035 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21037 cat >>confdefs.h
<<\_ACEOF
21038 #define HAVE_RL_PRE_INPUT_HOOK 1
21044 # check for readline 4.2
21045 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21046 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21047 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 ac_check_lib_save_LIBS
=$LIBS
21051 LIBS
="-lreadline $LIBS"
21052 cat >conftest.
$ac_ext <<_ACEOF
21055 cat confdefs.h
>>conftest.
$ac_ext
21056 cat >>conftest.
$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21059 /* Override any gcc2 internal prototype to avoid an error. */
21063 /* We use char because int might match the return type of a gcc2
21064 builtin and then its argument prototype would still apply. */
21065 char rl_completion_matches ();
21069 rl_completion_matches ();
21074 rm -f conftest.
$ac_objext conftest
$ac_exeext
21075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21076 (eval $ac_link) 2>conftest.er1
21078 grep -v '^ *+' conftest.er1
>conftest.err
21080 cat conftest.err
>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try
='test -z "$ac_c_werror_flag"
21084 || test ! -s conftest.err'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; } &&
21090 { ac_try
='test -s conftest$ac_exeext'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 ac_cv_lib_readline_rl_completion_matches
=yes
21098 echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.
$ac_ext >&5
21101 ac_cv_lib_readline_rl_completion_matches
=no
21103 rm -f conftest.err conftest.
$ac_objext \
21104 conftest
$ac_exeext conftest.
$ac_ext
21105 LIBS
=$ac_check_lib_save_LIBS
21107 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21108 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21109 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21111 cat >>confdefs.h
<<\_ACEOF
21112 #define HAVE_RL_COMPLETION_MATCHES 1
21118 # also in readline 4.2
21119 cat >conftest.
$ac_ext <<_ACEOF
21122 cat confdefs.h
>>conftest.
$ac_ext
21123 cat >>conftest.
$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 #include <readline/readline.h>
21127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21128 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21130 grep -v '^ *+' conftest.er1
>conftest.err
21132 cat conftest.err
>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } >/dev
/null
; then
21135 if test -s conftest.err
; then
21136 ac_cpp_err
=$ac_c_preproc_warn_flag
21137 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21144 if test -z "$ac_cpp_err"; then
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.
$ac_ext >&5
21152 rm -f conftest.err conftest.
$ac_ext
21153 if test $have_readline = yes
21155 cat >conftest.
$ac_ext <<_ACEOF
21158 cat confdefs.h
>>conftest.
$ac_ext
21159 cat >>conftest.
$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <readline/readline.h>
21164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21165 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21167 cat >>confdefs.h
<<\_ACEOF
21168 #define HAVE_RL_CATCH_SIGNAL 1
21176 # End of readline checks: restore LIBS
21177 LIBS
=$LIBS_no_readline
21179 echo "$as_me:$LINENO: checking for broken nice()" >&5
21180 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21181 if test "${ac_cv_broken_nice+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 if test "$cross_compiling" = yes; then
21186 ac_cv_broken_nice
=no
21188 cat >conftest.
$ac_ext <<_ACEOF
21191 cat confdefs.h
>>conftest.
$ac_ext
21192 cat >>conftest.
$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21197 int val1 = nice(1);
21198 if (val1 != -1 && val1 == nice(2))
21204 rm -f conftest
$ac_exeext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21206 (eval $ac_link) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_cv_broken_nice
=yes
21217 echo "$as_me: program exited with status $ac_status" >&5
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.
$ac_ext >&5
21221 ( exit $ac_status )
21222 ac_cv_broken_nice
=no
21224 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21228 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21229 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21230 if test "$ac_cv_broken_nice" = yes
21233 cat >>confdefs.h
<<\_ACEOF
21234 #define HAVE_BROKEN_NICE 1
21239 echo "$as_me:$LINENO: checking for broken poll()" >&5
21240 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21241 if test "$cross_compiling" = yes; then
21242 ac_cv_broken_poll
=no
21244 cat >conftest.
$ac_ext <<_ACEOF
21247 cat confdefs.h
>>conftest.
$ac_ext
21248 cat >>conftest.
$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21255 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21259 int poll_test = poll (&poll_struct, 1, 0);
21265 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21276 rm -f conftest
$ac_exeext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21278 (eval $ac_link) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; }; then
21287 ac_cv_broken_poll
=yes
21289 echo "$as_me: program exited with status $ac_status" >&5
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.
$ac_ext >&5
21293 ( exit $ac_status )
21294 ac_cv_broken_poll
=no
21296 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21298 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21299 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21300 if test "$ac_cv_broken_poll" = yes
21303 cat >>confdefs.h
<<\_ACEOF
21304 #define HAVE_BROKEN_POLL 1
21309 # Before we can test tzset, we need to check if struct tm has a tm_zone
21310 # (which is not required by ISO C or UNIX spec) and/or if we support
21312 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21313 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21314 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 cat >conftest.
$ac_ext <<_ACEOF
21320 cat confdefs.h
>>conftest.
$ac_ext
21321 cat >>conftest.
$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 #include <sys/types.h>
21324 #include <$ac_cv_struct_tm>
21330 static struct tm ac_aggr;
21331 if (ac_aggr.tm_zone)
21337 rm -f conftest.
$ac_objext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21339 (eval $ac_compile) 2>conftest.er1
21341 grep -v '^ *+' conftest.er1
>conftest.err
21343 cat conftest.err
>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try
='test -z "$ac_c_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try
='test -s conftest.$ac_objext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_member_struct_tm_tm_zone
=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.
$ac_ext >&5
21364 cat >conftest.
$ac_ext <<_ACEOF
21367 cat confdefs.h
>>conftest.
$ac_ext
21368 cat >>conftest.
$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 #include <sys/types.h>
21371 #include <$ac_cv_struct_tm>
21377 static struct tm ac_aggr;
21378 if (sizeof ac_aggr.tm_zone)
21384 rm -f conftest.
$ac_objext
21385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21386 (eval $ac_compile) 2>conftest.er1
21388 grep -v '^ *+' conftest.er1
>conftest.err
21390 cat conftest.err
>&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
21393 { ac_try
='test -z "$ac_c_werror_flag"
21394 || test ! -s conftest.err'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try
='test -s conftest.$ac_objext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_cv_member_struct_tm_tm_zone
=yes
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.
$ac_ext >&5
21411 ac_cv_member_struct_tm_tm_zone
=no
21413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21417 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21418 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21419 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21421 cat >>confdefs.h
<<_ACEOF
21422 #define HAVE_STRUCT_TM_TM_ZONE 1
21428 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21430 cat >>confdefs.h
<<\_ACEOF
21431 #define HAVE_TM_ZONE 1
21435 echo "$as_me:$LINENO: checking for tzname" >&5
21436 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21437 if test "${ac_cv_var_tzname+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 cat >conftest.
$ac_ext <<_ACEOF
21443 cat confdefs.h
>>conftest.
$ac_ext
21444 cat >>conftest.
$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21447 #ifndef tzname /* For SGI. */
21448 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21459 rm -f conftest.
$ac_objext conftest
$ac_exeext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21461 (eval $ac_link) 2>conftest.er1
21463 grep -v '^ *+' conftest.er1
>conftest.err
21465 cat conftest.err
>&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
21468 { ac_try
='test -z "$ac_c_werror_flag"
21469 || test ! -s conftest.err'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; } &&
21475 { ac_try
='test -s conftest$ac_exeext'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_var_tzname
=yes
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.
$ac_ext >&5
21486 ac_cv_var_tzname
=no
21488 rm -f conftest.err conftest.
$ac_objext \
21489 conftest
$ac_exeext conftest.
$ac_ext
21491 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21492 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21493 if test $ac_cv_var_tzname = yes; then
21495 cat >>confdefs.h
<<\_ACEOF
21496 #define HAVE_TZNAME 1
21503 # check tzset(3) exists and works like we expect it to
21504 echo "$as_me:$LINENO: checking for working tzset()" >&5
21505 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21506 if test "${ac_cv_working_tzset+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 if test "$cross_compiling" = yes; then
21511 ac_cv_working_tzset
=no
21513 cat >conftest.
$ac_ext <<_ACEOF
21516 cat confdefs.h
>>conftest.
$ac_ext
21517 cat >>conftest.
$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21520 #include <stdlib.h>
21522 #include <string.h>
21525 extern char *tzname[];
21530 /* Note that we need to ensure that not only does tzset(3)
21531 do 'something' with localtime, but it works as documented
21532 in the library reference and as expected by the test suite.
21533 This includes making sure that tzname is set properly if
21534 tm->tm_zone does not exist since it is the alternative way
21535 of getting timezone info.
21537 Red Hat 6.2 doesn't understand the southern hemisphere
21538 after New Year's Day.
21541 time_t groundhogday = 1044144000; /* GMT-based */
21542 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21544 putenv("TZ=UTC+0");
21546 if (localtime(&groundhogday)->tm_hour != 0)
21549 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21550 if (strcmp(tzname[0], "UTC") ||
21551 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21555 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21557 if (localtime(&groundhogday)->tm_hour != 19)
21560 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21564 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21566 if (localtime(&groundhogday)->tm_hour != 11)
21569 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21573 #if HAVE_STRUCT_TM_TM_ZONE
21574 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21576 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21584 rm -f conftest
$ac_exeext
21585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586 (eval $ac_link) 2>&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 ac_cv_working_tzset
=yes
21597 echo "$as_me: program exited with status $ac_status" >&5
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.
$ac_ext >&5
21601 ( exit $ac_status )
21602 ac_cv_working_tzset
=no
21604 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21608 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21609 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21610 if test "$ac_cv_working_tzset" = yes
21613 cat >>confdefs.h
<<\_ACEOF
21614 #define HAVE_WORKING_TZSET 1
21619 # Look for subsecond timestamps in struct stat
21620 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21621 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21622 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 cat >conftest.
$ac_ext <<_ACEOF
21628 cat confdefs.h
>>conftest.
$ac_ext
21629 cat >>conftest.
$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631 #include <sys/stat.h>
21637 st.st_mtim.tv_nsec = 1;
21643 rm -f conftest.
$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645 (eval $ac_compile) 2>conftest.er1
21647 grep -v '^ *+' conftest.er1
>conftest.err
21649 cat conftest.err
>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try
='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try
='test -s conftest.$ac_objext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 ac_cv_stat_tv_nsec
=yes
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.
$ac_ext >&5
21670 ac_cv_stat_tv_nsec
=no
21672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21675 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21676 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21677 if test "$ac_cv_stat_tv_nsec" = yes
21680 cat >>confdefs.h
<<\_ACEOF
21681 #define HAVE_STAT_TV_NSEC 1
21686 # Look for BSD style subsecond timestamps in struct stat
21687 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21688 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21689 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 cat >conftest.
$ac_ext <<_ACEOF
21695 cat confdefs.h
>>conftest.
$ac_ext
21696 cat >>conftest.
$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 #include <sys/stat.h>
21704 st.st_mtimespec.tv_nsec = 1;
21710 rm -f conftest.
$ac_objext
21711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21712 (eval $ac_compile) 2>conftest.er1
21714 grep -v '^ *+' conftest.er1
>conftest.err
21716 cat conftest.err
>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } &&
21719 { ac_try
='test -z "$ac_c_werror_flag"
21720 || test ! -s conftest.err'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; } &&
21726 { ac_try
='test -s conftest.$ac_objext'
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; }; then
21732 ac_cv_stat_tv_nsec2
=yes
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.
$ac_ext >&5
21737 ac_cv_stat_tv_nsec2
=no
21739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21742 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21743 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21744 if test "$ac_cv_stat_tv_nsec2" = yes
21747 cat >>confdefs.h
<<\_ACEOF
21748 #define HAVE_STAT_TV_NSEC2 1
21753 # On HP/UX 11.0, mvwdelch is a block with a return statement
21754 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21755 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21756 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21757 echo $ECHO_N "(cached) $ECHO_C" >&6
21759 cat >conftest.
$ac_ext <<_ACEOF
21762 cat confdefs.h
>>conftest.
$ac_ext
21763 cat >>conftest.
$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21765 #include <curses.h>
21771 rtn = mvwdelch(0,0,0);
21777 rm -f conftest.
$ac_objext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21779 (eval $ac_compile) 2>conftest.er1
21781 grep -v '^ *+' conftest.er1
>conftest.err
21783 cat conftest.err
>&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } &&
21786 { ac_try
='test -z "$ac_c_werror_flag"
21787 || test ! -s conftest.err'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } &&
21793 { ac_try
='test -s conftest.$ac_objext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_mvwdelch_is_expression
=yes
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.
$ac_ext >&5
21804 ac_cv_mvwdelch_is_expression
=no
21806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21809 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21810 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21812 if test "$ac_cv_mvwdelch_is_expression" = yes
21815 cat >>confdefs.h
<<\_ACEOF
21816 #define MVWDELCH_IS_EXPRESSION 1
21821 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21822 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21823 if test "${ac_cv_window_has_flags+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 cat >conftest.
$ac_ext <<_ACEOF
21829 cat confdefs.h
>>conftest.
$ac_ext
21830 cat >>conftest.
$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21832 #include <curses.h>
21844 rm -f conftest.
$ac_objext
21845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21846 (eval $ac_compile) 2>conftest.er1
21848 grep -v '^ *+' conftest.er1
>conftest.err
21850 cat conftest.err
>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } &&
21853 { ac_try
='test -z "$ac_c_werror_flag"
21854 || test ! -s conftest.err'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; } &&
21860 { ac_try
='test -s conftest.$ac_objext'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 ac_cv_window_has_flags
=yes
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.
$ac_ext >&5
21871 ac_cv_window_has_flags
=no
21873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21876 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21877 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21880 if test "$ac_cv_window_has_flags" = yes
21883 cat >>confdefs.h
<<\_ACEOF
21884 #define WINDOW_HAS_FLAGS 1
21889 echo "$as_me:$LINENO: checking for is_term_resized" >&5
21890 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
21891 cat >conftest.
$ac_ext <<_ACEOF
21894 cat confdefs.h
>>conftest.
$ac_ext
21895 cat >>conftest.
$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 #include <curses.h>
21901 void *x=is_term_resized
21906 rm -f conftest.
$ac_objext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21908 (eval $ac_compile) 2>conftest.er1
21910 grep -v '^ *+' conftest.er1
>conftest.err
21912 cat conftest.err
>&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } &&
21915 { ac_try
='test -z "$ac_c_werror_flag"
21916 || test ! -s conftest.err'
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; } &&
21922 { ac_try
='test -s conftest.$ac_objext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21929 cat >>confdefs.h
<<\_ACEOF
21930 #define HAVE_CURSES_IS_TERM_RESIZED 1
21933 echo "$as_me:$LINENO: result: yes" >&5
21934 echo "${ECHO_T}yes" >&6
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.
$ac_ext >&5
21939 echo "$as_me:$LINENO: result: no" >&5
21940 echo "${ECHO_T}no" >&6
21943 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21945 echo "$as_me:$LINENO: checking for resize_term" >&5
21946 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
21947 cat >conftest.
$ac_ext <<_ACEOF
21950 cat confdefs.h
>>conftest.
$ac_ext
21951 cat >>conftest.
$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 #include <curses.h>
21957 void *x=resize_term
21962 rm -f conftest.
$ac_objext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21964 (eval $ac_compile) 2>conftest.er1
21966 grep -v '^ *+' conftest.er1
>conftest.err
21968 cat conftest.err
>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
21971 { ac_try
='test -z "$ac_c_werror_flag"
21972 || test ! -s conftest.err'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; } &&
21978 { ac_try
='test -s conftest.$ac_objext'
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21985 cat >>confdefs.h
<<\_ACEOF
21986 #define HAVE_CURSES_RESIZE_TERM 1
21989 echo "$as_me:$LINENO: result: yes" >&5
21990 echo "${ECHO_T}yes" >&6
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.
$ac_ext >&5
21995 echo "$as_me:$LINENO: result: no" >&5
21996 echo "${ECHO_T}no" >&6
21999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22001 echo "$as_me:$LINENO: checking for resizeterm" >&5
22002 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22003 cat >conftest.
$ac_ext <<_ACEOF
22006 cat confdefs.h
>>conftest.
$ac_ext
22007 cat >>conftest.
$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22009 #include <curses.h>
22018 rm -f conftest.
$ac_objext
22019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22020 (eval $ac_compile) 2>conftest.er1
22022 grep -v '^ *+' conftest.er1
>conftest.err
22024 cat conftest.err
>&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } &&
22027 { ac_try
='test -z "$ac_c_werror_flag"
22028 || test ! -s conftest.err'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; } &&
22034 { ac_try
='test -s conftest.$ac_objext'
22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }; then
22041 cat >>confdefs.h
<<\_ACEOF
22042 #define HAVE_CURSES_RESIZETERM 1
22045 echo "$as_me:$LINENO: result: yes" >&5
22046 echo "${ECHO_T}yes" >&6
22048 echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.
$ac_ext >&5
22051 echo "$as_me:$LINENO: result: no" >&5
22052 echo "${ECHO_T}no" >&6
22055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22057 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22058 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22060 if test -r /dev
/ptmx
22062 echo "$as_me:$LINENO: result: yes" >&5
22063 echo "${ECHO_T}yes" >&6
22065 cat >>confdefs.h
<<\_ACEOF
22066 #define HAVE_DEV_PTMX 1
22070 echo "$as_me:$LINENO: result: no" >&5
22071 echo "${ECHO_T}no" >&6
22074 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22075 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22077 if test -r /dev
/ptc
22079 echo "$as_me:$LINENO: result: yes" >&5
22080 echo "${ECHO_T}yes" >&6
22082 cat >>confdefs.h
<<\_ACEOF
22083 #define HAVE_DEV_PTC 1
22087 echo "$as_me:$LINENO: result: no" >&5
22088 echo "${ECHO_T}no" >&6
22091 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22092 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22093 if test "$cross_compiling" = yes; then
22094 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22095 See \`config.log' for more details." >&5
22096 echo "$as_me: error: cannot run test program while cross compiling
22097 See \`config.log' for more details." >&2;}
22098 { (exit 1); exit 1; }; }
22100 cat >conftest.
$ac_ext <<_ACEOF
22103 cat confdefs.h
>>conftest.
$ac_ext
22104 cat >>conftest.
$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22107 #include <stddef.h>
22108 #include <string.h>
22114 #ifdef HAVE_SSIZE_T
22115 typedef ssize_t Py_ssize_t;
22116 #elif SIZEOF_VOID_P == SIZEOF_LONG
22117 typedef long Py_ssize_t;
22119 typedef int Py_ssize_t;
22122 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22125 if (strcmp(buffer, "123"))
22128 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22131 if (strcmp(buffer, "-123"))
22137 rm -f conftest
$ac_exeext
22138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22139 (eval $ac_link) 2>&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148 echo "$as_me:$LINENO: result: yes" >&5
22149 echo "${ECHO_T}yes" >&6
22151 cat >>confdefs.h
<<\_ACEOF
22152 #define PY_FORMAT_SIZE_T "z"
22156 echo "$as_me: program exited with status $ac_status" >&5
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.
$ac_ext >&5
22160 ( exit $ac_status )
22161 echo "$as_me:$LINENO: result: no" >&5
22162 echo "${ECHO_T}no" >&6
22164 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22167 echo "$as_me:$LINENO: checking for socklen_t" >&5
22168 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22169 if test "${ac_cv_type_socklen_t+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 cat >conftest.
$ac_ext <<_ACEOF
22175 cat confdefs.h
>>conftest.
$ac_ext
22176 cat >>conftest.
$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22179 #ifdef HAVE_SYS_TYPES_H
22180 #include <sys/types.h>
22182 #ifdef HAVE_SYS_SOCKET_H
22183 #include <sys/socket.h>
22190 if ((socklen_t *) 0)
22192 if (sizeof (socklen_t))
22198 rm -f conftest.
$ac_objext
22199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22200 (eval $ac_compile) 2>conftest.er1
22202 grep -v '^ *+' conftest.er1
>conftest.err
22204 cat conftest.err
>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } &&
22207 { ac_try
='test -z "$ac_c_werror_flag"
22208 || test ! -s conftest.err'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try
='test -s conftest.$ac_objext'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; }; then
22220 ac_cv_type_socklen_t
=yes
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.
$ac_ext >&5
22225 ac_cv_type_socklen_t
=no
22227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22229 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22230 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22231 if test $ac_cv_type_socklen_t = yes; then
22235 cat >>confdefs.h
<<\_ACEOF
22236 #define socklen_t int
22244 for h
in `(cd $srcdir;echo Python/thread_*.h)`
22246 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
22250 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
22251 echo "$as_me:$LINENO: checking for build directories" >&5
22252 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22253 for dir
in $SRCDIRS; do
22254 if test ! -d $dir; then
22258 echo "$as_me:$LINENO: result: done" >&5
22259 echo "${ECHO_T}done" >&6
22261 # generate output files
22262 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
22264 cat >confcache
<<\_ACEOF
22265 # This file is a shell script that caches the results of configure
22266 # tests run on this system so they can be shared between configure
22267 # scripts and configure runs, see configure's option --config-cache.
22268 # It is not useful on other systems. If it contains results you don't
22269 # want to keep, you may remove or edit it.
22271 # config.status only pays attention to the cache file if you give it
22272 # the --recheck option to rerun configure.
22274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22276 # following values.
22280 # The following way of writing the cache mishandles newlines in values,
22281 # but we know of no workaround that is simple, portable, and efficient.
22282 # So, don't put newlines in cache variables' values.
22283 # Ultrix sh set writes to stderr and can't be redirected directly,
22284 # and sets the high bit in the cache file unless we assign to the vars.
22287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22289 # `set' does not quote correctly, so add quotes (double-quote
22290 # substitution turns \\\\ into \\, and sed turns \\ into \).
22293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22296 # `set' quotes correctly as required by POSIX, so do not add quotes.
22298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22307 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22309 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22310 if test -w $cache_file; then
22311 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22312 cat confcache
>$cache_file
22314 echo "not updating unwritable cache $cache_file"
22319 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22320 # Let make expand exec_prefix.
22321 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22323 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22324 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22325 # trailing colons and then remove the whole line if VPATH becomes empty
22326 # (actually we leave an empty line to preserve line numbers).
22327 if test "x$srcdir" = x.
; then
22328 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22329 s/:*\$(srcdir):*/:/;
22330 s/:*\${srcdir}:*/:/;
22332 s/^\([^=]*=[ ]*\):*/\1/;
22338 DEFS
=-DHAVE_CONFIG_H
22342 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22343 # 1. Remove the extension, and $U if already installed.
22344 ac_i
=`echo "$ac_i" |
22345 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22347 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22348 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22350 LIBOBJS
=$ac_libobjs
22352 LTLIBOBJS
=$ac_ltlibobjs
22356 : ${CONFIG_STATUS=./config.status}
22357 ac_clean_files_save
=$ac_clean_files
22358 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22359 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22360 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22361 cat >$CONFIG_STATUS <<_ACEOF
22363 # Generated by $as_me.
22364 # Run this file to recreate the current configuration.
22365 # Compiler output produced by configure, useful for debugging
22366 # configure, is in config.log if it exists.
22369 ac_cs_recheck=false
22371 SHELL=\${CONFIG_SHELL-$SHELL}
22374 cat >>$CONFIG_STATUS <<\_ACEOF
22375 ## --------------------- ##
22376 ## M4sh Initialization. ##
22377 ## --------------------- ##
22379 # Be Bourne compatible
22380 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22383 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22384 # is contrary to our usage. Disable this feature.
22385 alias -g '${1+"$@"}'='"$@"'
22386 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22389 DUALCASE
=1; export DUALCASE
# for MKS sh
22391 # Support unset when possible.
22392 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22399 # Work around bugs in pre-3.0 UWIN ksh.
22400 $as_unset ENV MAIL MAILPATH
22407 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22408 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22409 LC_TELEPHONE LC_TIME
22411 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22412 eval $as_var=C
; export $as_var
22418 # Required to use basename.
22419 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22425 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22426 as_basename
=basename
22432 # Name of the executable.
22433 as_me
=`$as_basename "$0" ||
22434 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22435 X"$0" : 'X\(//\)$' \| \
22436 X"$0" : 'X\(/\)$' \| \
22437 . : '\(.\)' 2>/dev/null ||
22439 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22440 /^X\/\(\/\/\)$/{ s//\1/; q; }
22441 /^X\/\(\/\).*/{ s//\1/; q; }
22445 # PATH needs CR, and LINENO needs CR and PATH.
22446 # Avoid depending upon Character Ranges.
22447 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22448 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22449 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22450 as_cr_digits
='0123456789'
22451 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22453 # The user is always right.
22454 if test "${PATH_SEPARATOR+set}" != set; then
22455 echo "#! /bin/sh" >conf$$.sh
22456 echo "exit 0" >>conf$$.sh
22458 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22467 as_lineno_1
=$LINENO
22468 as_lineno_2
=$LINENO
22469 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22470 test "x$as_lineno_1" != "x$as_lineno_2" &&
22471 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22472 # Find who we are. Look in the path if we contain no path at all
22475 *[\\/]* ) as_myself
=$0 ;;
22476 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22477 for as_dir
in $PATH
22480 test -z "$as_dir" && as_dir
=.
22481 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22486 # We did not find ourselves, most probably we were run as `sh COMMAND'
22487 # in which case we are not to be found in the path.
22488 if test "x$as_myself" = x
; then
22491 if test ! -f "$as_myself"; then
22492 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22493 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22494 { (exit 1); exit 1; }; }
22496 case $CONFIG_SHELL in
22498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22499 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22502 test -z "$as_dir" && as_dir
=.
22503 for as_base
in sh bash ksh sh5
; do
22506 if ("$as_dir/$as_base" -c '
22507 as_lineno_1=$LINENO
22508 as_lineno_2=$LINENO
22509 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22510 test "x$as_lineno_1" != "x$as_lineno_2" &&
22511 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22512 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22513 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22514 CONFIG_SHELL
=$as_dir/$as_base
22515 export CONFIG_SHELL
22516 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22524 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22525 # uniformly replaced by the line number. The first 'sed' inserts a
22526 # line-number line before each line; the second 'sed' does the real
22527 # work. The second script uses 'N' to pair each line-number line
22528 # with the numbered line, and appends trailing '-' during
22529 # substitution so that $LINENO is not a special case at line end.
22530 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22531 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22532 sed '=' <$as_myself |
22537 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22540 s,^['$as_cr_digits']*\n,,
22541 ' >$as_me.lineno
&&
22542 chmod +x
$as_me.lineno ||
22543 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22544 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22545 { (exit 1); exit 1; }; }
22547 # Don't try to exec as it changes $[0], causing all sort of problems
22548 # (the dirname of $[0] is not the place where we might find the
22549 # original and so on. Autoconf is especially sensible to this).
22551 # Exit status is that of the last command.
22556 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22557 *c
*,-n*) ECHO_N
= ECHO_C
='
22559 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22560 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22563 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22569 rm -f conf$$ conf$$.exe conf$$.
file
22571 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22572 # We could just check for DJGPP; but this test a) works b) is more generic
22573 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22574 if test -f conf$$.exe
; then
22575 # Don't use ln at all; we don't have any links
22580 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22585 rm -f conf$$ conf$$.exe conf$$.
file
22587 if mkdir
-p .
2>/dev
/null
; then
22590 test -d .
/-p && rmdir .
/-p
22594 as_executable_p
="test -f"
22596 # Sed expression to map a string onto a valid CPP name.
22597 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22599 # Sed expression to map a string onto a valid variable name.
22600 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22604 # We need space, tab and new line, in precisely that order.
22614 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22615 # report actual input values of CONFIG_FILES etc. instead of their
22616 # values after options handling. Logging --version etc. is OK.
22620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22621 ## Running $as_me. ##
22626 This file was extended by python $as_me 2.5, which was
22627 generated by GNU Autoconf 2.59. Invocation command line was
22629 CONFIG_FILES = $CONFIG_FILES
22630 CONFIG_HEADERS = $CONFIG_HEADERS
22631 CONFIG_LINKS = $CONFIG_LINKS
22632 CONFIG_COMMANDS = $CONFIG_COMMANDS
22636 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22640 # Files that config.status was made for.
22641 if test -n "$ac_config_files"; then
22642 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22645 if test -n "$ac_config_headers"; then
22646 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22649 if test -n "$ac_config_links"; then
22650 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22653 if test -n "$ac_config_commands"; then
22654 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22660 \`$as_me' instantiates files from templates according to the
22661 current configuration.
22663 Usage: $0 [OPTIONS] [FILE]...
22665 -h, --help print this help, then exit
22666 -V, --version print version number, then exit
22667 -q, --quiet do not print progress messages
22668 -d, --debug don't remove temporary files
22669 --recheck update $as_me by reconfiguring in the same conditions
22670 --file=FILE[:TEMPLATE]
22671 instantiate the configuration file FILE
22672 --header=FILE[:TEMPLATE]
22673 instantiate the configuration header FILE
22675 Configuration files:
22678 Configuration headers:
22681 Report bugs to <bug-autoconf@gnu.org>."
22684 cat >>$CONFIG_STATUS <<_ACEOF
22686 python config.status 2.5
22687 configured by $0, generated by GNU Autoconf 2.59,
22688 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22690 Copyright (C) 2003 Free Software Foundation, Inc.
22691 This config.status script is free software; the Free Software Foundation
22692 gives unlimited permission to copy, distribute and modify it."
22697 cat >>$CONFIG_STATUS <<\_ACEOF
22698 # If no file are specified by the user, then we need to provide default
22699 # value. By we need to know if files were specified by the user.
22705 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22706 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22714 *) # This is not an option, so the user has probably given explicit
22717 ac_need_defaults
=false
;;
22721 # Handling of the options.
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22726 --version |
--vers* |
-V )
22727 echo "$ac_cs_version"; exit 0 ;;
22729 # Conflict between --help and --header
22730 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22731 Try \`$0 --help' for more information." >&5
22732 echo "$as_me: error: ambiguous option: $1
22733 Try \`$0 --help' for more information." >&2;}
22734 { (exit 1); exit 1; }; };;
22735 --help |
--hel |
-h )
22736 echo "$ac_cs_usage"; exit 0 ;;
22737 --debug |
--d* |
-d )
22739 --file |
--fil |
--fi |
--f )
22741 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22742 ac_need_defaults
=false
;;
22743 --header |
--heade |
--head |
--hea )
22745 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22746 ac_need_defaults
=false
;;
22747 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22748 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22751 # This is an error.
22752 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22753 Try \`$0 --help' for more information." >&5
22754 echo "$as_me: error: unrecognized option: $1
22755 Try \`$0 --help' for more information." >&2;}
22756 { (exit 1); exit 1; }; } ;;
22758 *) ac_config_targets
="$ac_config_targets $1" ;;
22764 ac_configure_extra_args
=
22766 if $ac_cs_silent; then
22768 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22772 cat >>$CONFIG_STATUS <<_ACEOF
22773 if \$ac_cs_recheck; then
22774 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22775 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22784 cat >>$CONFIG_STATUS <<\_ACEOF
22785 for ac_config_target
in $ac_config_targets
22787 case "$ac_config_target" in
22788 # Handling of arguments.
22789 "Mac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
22790 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22791 "Mac/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22792 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22793 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22794 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22795 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22796 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22797 { (exit 1); exit 1; }; };;
22801 # If the user did not use the arguments to specify the items to instantiate,
22802 # then the envvar interface is used. Set only those that are not.
22803 # We use the long form for the default assignment because of an extremely
22804 # bizarre bug on SunOS 4.1.3.
22805 if $ac_need_defaults; then
22806 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22807 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22810 # Have a temporary directory for convenience. Make it in the build tree
22811 # simply because there is no reason to put it here, and in addition,
22812 # creating and moving files from /tmp can sometimes cause problems.
22813 # Create a temporary directory, and hook for its removal unless debugging.
22816 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22817 trap '{ (exit 1); exit 1; }' 1 2 13 15
22820 # Create a (secure) tmp directory for tmp files.
22823 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22824 test -n "$tmp" && test -d "$tmp"
22827 tmp
=.
/confstat$$
-$RANDOM
22828 (umask 077 && mkdir
$tmp)
22831 echo "$me: cannot create a temporary directory in ." >&2
22832 { (exit 1); exit 1; }
22837 cat >>$CONFIG_STATUS <<_ACEOF
22840 # CONFIG_FILES section.
22843 # No need to generate the scripts if there are no CONFIG_FILES.
22844 # This happens for instance when ./config.status config.h
22845 if test -n "\$CONFIG_FILES"; then
22846 # Protect against being on the right side of a sed subst in config.status.
22847 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22848 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22849 s,@SHELL@,$SHELL,;t t
22850 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22851 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22852 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22853 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22854 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22855 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22856 s,@exec_prefix@,$exec_prefix,;t t
22857 s,@prefix@,$prefix,;t t
22858 s,@program_transform_name@,$program_transform_name,;t t
22859 s,@bindir@,$bindir,;t t
22860 s,@sbindir@,$sbindir,;t t
22861 s,@libexecdir@,$libexecdir,;t t
22862 s,@datadir@,$datadir,;t t
22863 s,@sysconfdir@,$sysconfdir,;t t
22864 s,@sharedstatedir@,$sharedstatedir,;t t
22865 s,@localstatedir@,$localstatedir,;t t
22866 s,@libdir@,$libdir,;t t
22867 s,@includedir@,$includedir,;t t
22868 s,@oldincludedir@,$oldincludedir,;t t
22869 s,@infodir@,$infodir,;t t
22870 s,@mandir@,$mandir,;t t
22871 s,@build_alias@,$build_alias,;t t
22872 s,@host_alias@,$host_alias,;t t
22873 s,@target_alias@,$target_alias,;t t
22874 s,@DEFS@,$DEFS,;t t
22875 s,@ECHO_C@,$ECHO_C,;t t
22876 s,@ECHO_N@,$ECHO_N,;t t
22877 s,@ECHO_T@,$ECHO_T,;t t
22878 s,@LIBS@,$LIBS,;t t
22879 s,@VERSION@,$VERSION,;t t
22880 s,@SOVERSION@,$SOVERSION,;t t
22881 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22882 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22883 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22884 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22885 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22886 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22887 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22888 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22889 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22890 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22891 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22892 s,@MACHDEP@,$MACHDEP,;t t
22893 s,@SGI_ABI@,$SGI_ABI,;t t
22894 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22895 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22896 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22897 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22899 s,@CFLAGS@,$CFLAGS,;t t
22900 s,@LDFLAGS@,$LDFLAGS,;t t
22901 s,@CPPFLAGS@,$CPPFLAGS,;t t
22902 s,@ac_ct_CC@,$ac_ct_CC,;t t
22903 s,@EXEEXT@,$EXEEXT,;t t
22904 s,@OBJEXT@,$OBJEXT,;t t
22906 s,@MAINCC@,$MAINCC,;t t
22908 s,@EGREP@,$EGREP,;t t
22909 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22910 s,@LIBRARY@,$LIBRARY,;t t
22911 s,@LDLIBRARY@,$LDLIBRARY,;t t
22912 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22913 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22914 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22915 s,@INSTSONAME@,$INSTSONAME,;t t
22916 s,@RUNSHARED@,$RUNSHARED,;t t
22917 s,@LINKCC@,$LINKCC,;t t
22918 s,@RANLIB@,$RANLIB,;t t
22919 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22921 s,@SVNVERSION@,$SVNVERSION,;t t
22922 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22923 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22924 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22927 s,@BASECFLAGS@,$BASECFLAGS,;t t
22928 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22929 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22931 s,@LDSHARED@,$LDSHARED,;t t
22932 s,@BLDSHARED@,$BLDSHARED,;t t
22933 s,@CCSHARED@,$CCSHARED,;t t
22934 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22935 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22936 s,@SHLIBS@,$SHLIBS,;t t
22937 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22938 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22939 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22940 s,@LDLAST@,$LDLAST,;t t
22941 s,@THREADOBJ@,$THREADOBJ,;t t
22942 s,@DLINCLDIR@,$DLINCLDIR,;t t
22943 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22944 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22945 s,@TRUE@,$TRUE,;t t
22946 s,@LIBOBJS@,$LIBOBJS,;t t
22947 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22948 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22949 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22950 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22951 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22952 s,@LIBM@,$LIBM,;t t
22953 s,@LIBC@,$LIBC,;t t
22954 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22955 s,@THREADHEADERS@,$THREADHEADERS,;t t
22956 s,@SRCDIRS@,$SRCDIRS,;t t
22957 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22962 cat >>$CONFIG_STATUS <<\_ACEOF
22963 # Split the substitutions into bite-sized pieces for seds with
22964 # small command number limits, like on Digital OSF/1 and HP-UX.
22965 ac_max_sed_lines
=48
22966 ac_sed_frag
=1 # Number of current file.
22967 ac_beg
=1 # First line for current file.
22968 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22971 while $ac_more_lines; do
22972 if test $ac_beg -gt 1; then
22973 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22975 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22977 if test ! -s $tmp/subs.frag
; then
22978 ac_more_lines
=false
22980 # The purpose of the label and of the branching condition is to
22981 # speed up the sed processing (if there are no `@' at all, there
22982 # is no need to browse any of the substitutions).
22983 # These are the two extra sed commands mentioned above.
22985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22986 if test -z "$ac_sed_cmds"; then
22987 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22989 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22991 ac_sed_frag
=`expr $ac_sed_frag + 1`
22993 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22996 if test -z "$ac_sed_cmds"; then
22999 fi # test -n "$CONFIG_FILES"
23002 cat >>$CONFIG_STATUS <<\_ACEOF
23003 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23006 - |
*:- |
*:-:* ) # input from stdin
23008 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23009 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23010 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23011 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23012 * ) ac_file_in
=$ac_file.
in ;;
23015 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23016 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X"$ac_file" : 'X\(//\)[^/]' \| \
23019 X"$ac_file" : 'X\(//\)$' \| \
23020 X"$ac_file" : 'X\(/\)' \| \
23021 . : '\(.\)' 2>/dev/null ||
23023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23025 /^X\(\/\/\)$/{ s//\1/; q; }
23026 /^X\(\/\).*/{ s//\1/; q; }
23028 { if $as_mkdir_p; then
23033 while test ! -d "$as_dir"; do
23034 as_dirs
="$as_dir $as_dirs"
23035 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23037 X"$as_dir" : 'X\(//\)[^/]' \| \
23038 X"$as_dir" : 'X\(//\)$' \| \
23039 X"$as_dir" : 'X\(/\)' \| \
23040 . : '\(.\)' 2>/dev/null ||
23042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23044 /^X\(\/\/\)$/{ s//\1/; q; }
23045 /^X\(\/\).*/{ s//\1/; q; }
23048 test ! -n "$as_dirs" || mkdir
$as_dirs
23049 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23050 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23051 { (exit 1); exit 1; }; }; }
23055 if test "$ac_dir" != .
; then
23056 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23057 # A "../" for each directory in $ac_dir_suffix.
23058 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23060 ac_dir_suffix
= ac_top_builddir
=
23064 .
) # No --srcdir option. We are building in place.
23066 if test -z "$ac_top_builddir"; then
23069 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23071 [\\/]* | ?
:[\\/]* ) # Absolute path.
23072 ac_srcdir
=$srcdir$ac_dir_suffix;
23073 ac_top_srcdir
=$srcdir ;;
23074 *) # Relative path.
23075 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23076 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23079 # Do not use `cd foo && pwd` to compute absolute paths, because
23080 # the directories may not exist.
23082 .
) ac_abs_builddir
="$ac_dir";;
23085 .
) ac_abs_builddir
=`pwd`;;
23086 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23087 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23090 case $ac_abs_builddir in
23091 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23093 case ${ac_top_builddir}.
in
23094 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23095 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23096 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23099 case $ac_abs_builddir in
23100 .
) ac_abs_srcdir
=$ac_srcdir;;
23103 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23104 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23105 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23108 case $ac_abs_builddir in
23109 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23111 case $ac_top_srcdir in
23112 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23113 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23114 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23120 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23121 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23124 if test x
"$ac_file" != x-
; then
23125 { echo "$as_me:$LINENO: creating $ac_file" >&5
23126 echo "$as_me: creating $ac_file" >&6;}
23129 # Let's still pretend it is `configure' which instantiates (i.e., don't
23130 # use $as_me), people would be surprised to read:
23131 # /* config.h. Generated by config.status. */
23132 if test x
"$ac_file" = x-
; then
23135 configure_input
="$ac_file. "
23137 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23138 sed 's,.*/,,'` by configure."
23140 # First look for the input files in the build tree, otherwise in the
23142 ac_file_inputs
=`IFS=:
23143 for f in $ac_file_in; do
23145 -) echo $tmp/stdin ;;
23147 # Absolute (can't be DOS-style, as IFS=:)
23148 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23149 echo "$as_me: error: cannot find input file: $f" >&2;}
23150 { (exit 1); exit 1; }; }
23153 if test -f "$f"; then
23156 elif test -f "$srcdir/$f"; then
23161 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23162 echo "$as_me: error: cannot find input file: $f" >&2;}
23163 { (exit 1); exit 1; }; }
23166 done` ||
{ (exit 1); exit 1; }
23168 cat >>$CONFIG_STATUS <<_ACEOF
23172 cat >>$CONFIG_STATUS <<\_ACEOF
23174 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23175 s
,@configure_input@
,$configure_input,;t t
23176 s
,@srcdir@
,$ac_srcdir,;t t
23177 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23178 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23179 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23180 s
,@builddir@
,$ac_builddir,;t t
23181 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23182 s
,@top_builddir@
,$ac_top_builddir,;t t
23183 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23184 s
,@INSTALL@
,$ac_INSTALL,;t t
23185 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23187 if test x"$ac_file" != x-; then
23188 mv $tmp/out $ac_file
23196 cat >>$CONFIG_STATUS <<\_ACEOF
23199 # CONFIG_HEADER section.
23202 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23203 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23205 # ac_d sets the value in "#define NAME VALUE" lines.
23206 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23207 ac_dB
='[ ].*$,\1#\2'
23210 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23211 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23212 ac_uB
='$,\1#\2define\3'
23216 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23219 - |
*:- |
*:-:* ) # input from stdin
23221 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23222 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23223 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23224 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23225 * ) ac_file_in
=$ac_file.
in ;;
23228 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23229 echo "$as_me: creating $ac_file" >&6;}
23231 # First look for the input files in the build tree, otherwise in the
23233 ac_file_inputs
=`IFS=:
23234 for f in $ac_file_in; do
23236 -) echo $tmp/stdin ;;
23238 # Absolute (can't be DOS-style, as IFS=:)
23239 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23240 echo "$as_me: error: cannot find input file: $f" >&2;}
23241 { (exit 1); exit 1; }; }
23242 # Do quote $f, to prevent DOS paths from being IFS'd.
23245 if test -f "$f"; then
23248 elif test -f "$srcdir/$f"; then
23253 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23254 echo "$as_me: error: cannot find input file: $f" >&2;}
23255 { (exit 1); exit 1; }; }
23258 done` ||
{ (exit 1); exit 1; }
23259 # Remove the trailing spaces.
23260 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23264 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23265 # `conftest.undefs', that substitutes the proper values into
23266 # config.h.in to produce config.h. The first handles `#define'
23267 # templates, and the second `#undef' templates.
23268 # And first: Protect against being on the right side of a sed subst in
23269 # config.status. Protect against being in an unquoted here document
23270 # in config.status.
23271 rm -f conftest.defines conftest.undefs
23272 # Using a here document instead of a string reduces the quoting nightmare.
23273 # Putting comments in sed scripts is not portable.
23275 # `end' is used to avoid that the second main sed command (meant for
23276 # 0-ary CPP macros) applies to n-ary macro definitions.
23277 # See the Autoconf documentation for `clear'.
23278 cat >confdef2sed.
sed <<\_ACEOF
23283 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23285 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23288 # If some macros were called several times there might be several times
23289 # the same #defines, which is useless. Nevertheless, we may not want to
23290 # sort them, since we want the *last* AC-DEFINE to be honored.
23291 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23292 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23293 rm -f confdef2sed.sed
23295 # This sed command replaces #undef with comments. This is necessary, for
23296 # example, in the case of _POSIX_SOURCE, which is predefined and required
23297 # on some systems where configure will not decide to define it.
23298 cat >>conftest.undefs <<\_ACEOF
23299 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23302 # Break up conftest.defines because some shells have a limit on the size
23303 # of here documents, and old seds have small limits too (100 cmds).
23304 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23305 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23306 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23307 echo ' :' >>$CONFIG_STATUS
23308 rm -f conftest.tail
23309 while grep . conftest.defines >/dev/null
23311 # Write a limited-size here document to $tmp/defines.sed.
23312 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23313 # Speed up: don't consider the non `#define' lines.
23314 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23315 # Work around the forget-to-reset-the-flag bug.
23316 echo 't clr' >>$CONFIG_STATUS
23317 echo ': clr' >>$CONFIG_STATUS
23318 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23320 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23322 mv $tmp/out $tmp/in
23324 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23325 rm -f conftest.defines
23326 mv conftest.
tail conftest.defines
23328 rm -f conftest.defines
23329 echo ' fi # grep' >>$CONFIG_STATUS
23330 echo >>$CONFIG_STATUS
23332 # Break up conftest.undefs because some shells have a limit on the size
23333 # of here documents, and old seds have small limits too (100 cmds).
23334 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23335 rm -f conftest.
tail
23336 while grep . conftest.undefs
>/dev
/null
23338 # Write a limited-size here document to $tmp/undefs.sed.
23339 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23340 # Speed up: don't consider the non
`#undef'
23341 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23342 # Work around the forget-to-reset-the-flag bug.
23343 echo 't clr' >>$CONFIG_STATUS
23344 echo ': clr' >>$CONFIG_STATUS
23345 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23347 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23349 mv $tmp/out $tmp/in
23351 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23352 rm -f conftest.undefs
23353 mv conftest.tail conftest.undefs
23355 rm -f conftest.undefs
23357 cat >>$CONFIG_STATUS <<\_ACEOF
23358 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23359 # use $as_me), people would be surprised to read:
23360 # /* config.h. Generated by config.status. */
23361 if test x
"$ac_file" = x-
; then
23362 echo "/* Generated by configure. */" >$tmp/config.h
23364 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23366 cat $tmp/in >>$tmp/config.h
23368 if test x
"$ac_file" != x-
; then
23369 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23370 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23371 echo "$as_me: $ac_file is unchanged" >&6;}
23373 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23375 X"$ac_file" : 'X\(//\)[^/]' \| \
23376 X"$ac_file" : 'X\(//\)$' \| \
23377 X"$ac_file" : 'X\(/\)' \| \
23378 . : '\(.\)' 2>/dev/null ||
23380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23382 /^X\(\/\/\)$/{ s//\1/; q; }
23383 /^X\(\/\).*/{ s//\1/; q; }
23385 { if $as_mkdir_p; then
23390 while test ! -d "$as_dir"; do
23391 as_dirs
="$as_dir $as_dirs"
23392 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23394 X"$as_dir" : 'X\(//\)[^/]' \| \
23395 X"$as_dir" : 'X\(//\)$' \| \
23396 X"$as_dir" : 'X\(/\)' \| \
23397 . : '\(.\)' 2>/dev/null ||
23399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23401 /^X\(\/\/\)$/{ s//\1/; q; }
23402 /^X\(\/\).*/{ s//\1/; q; }
23405 test ! -n "$as_dirs" || mkdir
$as_dirs
23406 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23407 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23408 { (exit 1); exit 1; }; }; }
23411 mv $tmp/config.h
$ac_file
23415 rm -f $tmp/config.h
23420 cat >>$CONFIG_STATUS <<\_ACEOF
23422 { (exit 0); exit 0; }
23424 chmod +x
$CONFIG_STATUS
23425 ac_clean_files
=$ac_clean_files_save
23428 # configure is writing to config.log, and then calls config.status.
23429 # config.status does its own redirection, appending to config.log.
23430 # Unfortunately, on DOS this fails, as config.log is still kept open
23431 # by configure, so config.status won't be able to write to it; its
23432 # output is simply discarded. So we exec the FD to /dev/null,
23433 # effectively closing config.log, so it can be properly (re)opened and
23434 # appended to by config.status. When coming back to configure, we
23435 # need to make the FD available again.
23436 if test "$no_create" != yes; then
23438 ac_config_status_args
=
23439 test "$silent" = yes &&
23440 ac_config_status_args
="$ac_config_status_args --quiet"
23442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23445 # would make configure fail if this is the last instruction.
23446 $ac_cs_success ||
{ (exit 1); exit 1; }
23450 echo "creating Modules/Setup"
23451 if test ! -f Modules
/Setup
23453 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23456 echo "creating Modules/Setup.local"
23457 if test ! -f Modules
/Setup.
local
23459 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23462 echo "creating Makefile"
23463 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23464 -s Modules Modules
/Setup.config \
23465 Modules
/Setup.
local Modules
/Setup
23466 mv config.c Modules