2 # From configure.in Revision: 46046 .
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 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
=
1451 PYTHONFRAMEWORK
=Python
1452 PYTHONFRAMEWORKDIR
=Python.framework
1453 PYTHONFRAMEWORKPREFIX
=$enableval
1454 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1455 FRAMEWORKINSTALLFIRST
="frameworkinstallstructure"
1456 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1457 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1459 # Add makefiles for Mac specific code to the list of output
1461 ac_config_files
="$ac_config_files Mac/OSX/Makefile"
1463 ac_config_files
="$ac_config_files Mac/OSX/PythonLauncher/Makefile"
1465 ac_config_files
="$ac_config_files Mac/OSX/IDLE/Makefile"
1472 PYTHONFRAMEWORKDIR
=no-framework
1473 PYTHONFRAMEWORKPREFIX
=
1474 PYTHONFRAMEWORKINSTALLDIR
=
1475 FRAMEWORKINSTALLFIRST
=
1476 FRAMEWORKINSTALLLAST
=
1488 ## AC_HELP_STRING(--with-dyld,
1489 ## Use (OpenStep|Rhapsody) dynamic linker))
1491 # Set name for machine-dependent library files
1493 echo "$as_me:$LINENO: checking MACHDEP" >&5
1494 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1495 if test -z "$MACHDEP"
1497 ac_sys_system
=`uname -s`
1498 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1499 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1500 ac_sys_release
=`uname -v`
1502 ac_sys_release
=`uname -r`
1504 ac_md_system
=`echo $ac_sys_system |
1505 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1506 ac_md_release
=`echo $ac_sys_release |
1507 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1508 MACHDEP
="$ac_md_system$ac_md_release"
1511 cygwin
*) MACHDEP
="cygwin";;
1512 darwin
*) MACHDEP
="darwin";;
1513 atheos
*) MACHDEP
="atheos";;
1514 irix646
) MACHDEP
="irix6";;
1515 '') MACHDEP
="unknown";;
1519 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1520 # disable features if it is defined, without any means to access these
1521 # features as extensions. For these systems, we skip the definition of
1522 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1523 # some feature, make sure there is no alternative way to access this
1524 # feature. Also, when using wildcards, make sure you have verified the
1525 # need for not defining _XOPEN_SOURCE on all systems matching the
1526 # wildcard, and that the wildcard does not include future systems
1527 # (which may remove their limitations).
1528 case $ac_sys_system/$ac_sys_release in
1529 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1530 # even though select is a POSIX function. Reported by J. Ribbens.
1531 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1532 OpenBSD
/2.
* | OpenBSD
/3.
[012345678])
1533 define_xopen_source
=no
;;
1534 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1535 # of union __?sigval. Reported by Stuart Bishop.
1537 define_xopen_source
=no
;;
1538 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1539 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1540 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1541 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1542 define_xopen_source
=no
;;
1543 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1544 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1546 define_xopen_source
=no
;;
1547 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1548 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1549 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1550 # This should hopefully be fixed in FreeBSD 4.9
1551 FreeBSD
/4.8* | Darwin
/6* )
1552 define_xopen_source
=no
;;
1553 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1554 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1555 # or has another value. By not (re)defining it, the defaults come in place.
1557 define_xopen_source
=no
;;
1559 if test `uname -r` -eq 1; then
1560 define_xopen_source
=no
1563 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1564 # disables platform specific features beyond repair.
1565 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1566 # has no effect, don't bother defineing them
1568 define_xopen_source
=no
1573 if test $define_xopen_source = yes
1575 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1576 # defined precisely as g++ defines it
1577 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1579 case $ac_sys_system/$ac_sys_release in
1580 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1582 cat >>confdefs.h
<<\_ACEOF
1583 #define _XOPEN_SOURCE 500
1589 cat >>confdefs.h
<<\_ACEOF
1590 #define _XOPEN_SOURCE 600
1596 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1597 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1598 # several APIs are not declared. Since this is also needed in some
1599 # cases for HP-UX, we define it globally.
1600 # except for Solaris 10, where it must not be defined,
1601 # as it implies XPG4.2
1602 case $ac_sys_system/$ac_sys_release in
1607 cat >>confdefs.h
<<\_ACEOF
1608 #define _XOPEN_SOURCE_EXTENDED 1
1615 cat >>confdefs.h
<<\_ACEOF
1616 #define _POSIX_C_SOURCE 200112L
1623 # SGI compilers allow the specification of the both the ABI and the
1624 # ISA on the command line. Depending on the values of these switches,
1625 # different and often incompatable code will be generated.
1627 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1628 # thus supply support for various ABI/ISA combinations. The MACHDEP
1629 # variable is also adjusted.
1632 if test ! -z "$SGI_ABI"
1635 LDFLAGS
="$SGI_ABI $LDFLAGS"
1636 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1638 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1639 echo "${ECHO_T}$MACHDEP" >&6
1641 # And add extra plat-mac for darwin
1644 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1645 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1646 if test -z "$EXTRAPLATDIR"
1650 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1651 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1659 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1660 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1662 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1663 # it may influence the way we can build extensions, so distutils
1667 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1668 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1670 # checks for alternative programs
1672 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1673 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1674 # just to get things to compile and link. Users are free to override OPT
1675 # when running configure or make. The build should not break if they do.
1676 # BASECFLAGS should generally not be messed with, however.
1678 # XXX shouldn't some/most/all of this code be merged with the stuff later
1679 # on that fiddles with OPT and BASECFLAGS?
1680 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1681 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1683 # Check whether --with-gcc or --without-gcc was given.
1684 if test "${with_gcc+set}" = set; then
1693 without_gcc
=$withval;;
1697 case $ac_sys_system in
1701 case $BE_HOST_CPU in
1705 BASECFLAGS
="$BASECFLAGS -export pragma"
1707 LDFLAGS
="$LDFLAGS -nodup"
1715 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1716 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1717 { (exit 1); exit 1; }; }
1720 AR
="\$(srcdir)/Modules/ar_beos"
1729 echo "$as_me:$LINENO: result: $without_gcc" >&5
1730 echo "${ECHO_T}$without_gcc" >&6
1732 # If the user switches compilers, we can't believe the cache
1733 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1735 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1736 (it is also a good idea to do 'make clean' before compiling)" >&5
1737 echo "$as_me: error: cached CC is different -- throw away $cache_file
1738 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1739 { (exit 1); exit 1; }; }
1743 ac_cpp
='$CPP $CPPFLAGS'
1744 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1745 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1746 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1747 if test -n "$ac_tool_prefix"; then
1748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1749 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC
="$CC" # Let the user override the test.
1758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir
=.
1763 for ac_exec_ext
in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 if test -n "$CC"; then
1776 echo "$as_me:$LINENO: result: $CC" >&5
1777 echo "${ECHO_T}$CC" >&6
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1784 if test -z "$ac_cv_prog_CC"; then
1786 # Extract the first word of "gcc", so it can be a program name with args.
1787 set dummy gcc
; ac_word
=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1800 test -z "$as_dir" && as_dir
=.
1801 for ac_exec_ext
in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC
="gcc"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1826 if test -z "$CC"; then
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1829 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC
="$CC" # Let the user override the test.
1838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir
=.
1843 for ac_exec_ext
in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1866 # Extract the first word of "cc", so it can be a program name with args.
1867 set dummy cc
; ac_word
=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1880 test -z "$as_dir" && as_dir
=.
1881 for ac_exec_ext
in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC
="cc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc
; ac_word
=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC
="$CC" # Let the user override the test.
1919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir
=.
1924 for ac_exec_ext
in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1927 ac_prog_rejected
=yes
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy
$ac_cv_prog_CC
1941 if test $# != 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1946 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1952 if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1961 if test -z "$CC"; then
1962 if test -n "$ac_tool_prefix"; then
1965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC
="$CC" # Let the user override the test.
1975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir
=.
1980 for ac_exec_ext
in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2000 test -n "$CC" && break
2003 if test -z "$CC"; then
2007 # Extract the first word of "$ac_prog", so it can be a program name with args.
2008 set dummy
$ac_prog; ac_word
=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$ac_ct_CC"; then
2015 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir
=.
2022 for ac_exec_ext
in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_CC
="$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2042 test -n "$ac_ct_CC" && break
2051 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2052 See \`config.log' for more details." >&5
2053 echo "$as_me: error: no acceptable C compiler found in \$PATH
2054 See \`config.log' for more details." >&2;}
2055 { (exit 1); exit 1; }; }
2057 # Provide some information about the compiler.
2058 echo "$as_me:$LINENO:" \
2059 "checking for C compiler version" >&5
2060 ac_compiler
=`set X $ac_compile; echo $2`
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2077 cat >conftest.
$ac_ext <<_ACEOF
2080 cat confdefs.h
>>conftest.
$ac_ext
2081 cat >>conftest.
$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2092 ac_clean_files_save
=$ac_clean_files
2093 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2094 # Try to create an executable without -o first, disregard a.out.
2095 # It will help us diagnose broken compilers, and finding out an intuition
2097 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2098 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2099 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2100 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2101 (eval $ac_link_default) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 # Find the output, starting from the most likely. This scheme is
2106 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2109 # Be careful to initialize this variable, since it used to be cached.
2110 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2112 # b.out is created by i960 compilers.
2113 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2115 test -f "$ac_file" ||
continue
2117 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2120 # This is the source file.
2123 # We found the default executable, but exeext='' is most
2127 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 # FIXME: I believe we export ac_cv_exeext for Libtool,
2129 # but it would be cool to find out if it's true. Does anybody
2130 # maintain Libtool? --akim.
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.
$ac_ext >&5
2141 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&2;}
2145 { (exit 77); exit 77; }; }
2148 ac_exeext
=$ac_cv_exeext
2149 echo "$as_me:$LINENO: result: $ac_file" >&5
2150 echo "${ECHO_T}$ac_file" >&6
2152 # Check the compiler produces executables we can run. If not, either
2153 # the compiler is broken, or we cross compile.
2154 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2157 # If not cross compiling, check that we can run a simple program.
2158 if test "$cross_compiling" != yes; then
2159 if { ac_try
='./$ac_file'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2167 if test "$cross_compiling" = maybe
; then
2170 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: cannot run C compiled programs.
2174 If you meant to cross compile, use \`--host'.
2175 See \`config.log' for more details." >&2;}
2176 { (exit 1); exit 1; }; }
2180 echo "$as_me:$LINENO: result: yes" >&5
2181 echo "${ECHO_T}yes" >&6
2183 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2184 ac_clean_files
=$ac_clean_files_save
2185 # Check the compiler produces executables we can run. If not, either
2186 # the compiler is broken, or we cross compile.
2187 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2189 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2190 echo "${ECHO_T}$cross_compiling" >&6
2192 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2195 (eval $ac_link) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2201 # work properly (i.e., refer to `conftest.exe'), while it won't with
2203 for ac_file
in conftest.exe conftest conftest.
*; do
2204 test -f "$ac_file" ||
continue
2206 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2207 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest
$ac_cv_exeext
2222 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2223 echo "${ECHO_T}$ac_cv_exeext" >&6
2225 rm -f conftest.
$ac_ext
2226 EXEEXT
=$ac_cv_exeext
2228 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2230 if test "${ac_cv_objext+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 cat >conftest.
$ac_ext <<_ACEOF
2236 cat confdefs.h
>>conftest.
$ac_ext
2237 cat >>conftest.
$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2248 rm -f conftest.o conftest.obj
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2256 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2257 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.
$ac_ext >&5
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&2;}
2269 { (exit 1); exit 1; }; }
2272 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2274 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2275 echo "${ECHO_T}$ac_cv_objext" >&6
2276 OBJEXT
=$ac_cv_objext
2278 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2279 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2280 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 cat >conftest.
$ac_ext <<_ACEOF
2286 cat confdefs.h
>>conftest.
$ac_ext
2287 cat >>conftest.
$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2301 rm -f conftest.
$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2305 grep -v '^ *+' conftest.er1
>conftest.err
2307 cat conftest.err
>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try
='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try
='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.
$ac_ext >&5
2330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2331 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2334 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2335 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2336 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2337 ac_test_CFLAGS
=${CFLAGS+set}
2338 ac_save_CFLAGS
=$CFLAGS
2340 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2341 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2342 if test "${ac_cv_prog_cc_g+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.
$ac_ext <<_ACEOF
2348 cat confdefs.h
>>conftest.
$ac_ext
2349 cat >>conftest.
$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2360 rm -f conftest.
$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2364 grep -v '^ *+' conftest.er1
>conftest.err
2366 cat conftest.err
>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try
='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try
='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.
$ac_ext >&5
2389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2391 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2392 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2393 if test "$ac_test_CFLAGS" = set; then
2394 CFLAGS
=$ac_save_CFLAGS
2395 elif test $ac_cv_prog_cc_g = yes; then
2396 if test "$GCC" = yes; then
2402 if test "$GCC" = yes; then
2408 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2409 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 ac_cv_prog_cc_stdc
=no
2415 cat >conftest.
$ac_ext <<_ACEOF
2418 cat confdefs.h
>>conftest.
$ac_ext
2419 cat >>conftest.
$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2423 #include <sys/types.h>
2424 #include <sys/stat.h>
2425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2426 struct buf { int x; };
2427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2428 static char *e (p, i)
2434 static char *f (char * (*g) (char **, int), char **p, ...)
2439 s = g (p, va_arg (v,int));
2444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2445 function prototypes and stuff, but not '\xHH' hex character constants.
2446 These don't provoke an error unfortunately, instead are silently treated
2447 as 'x'. The following induces an error, until -std1 is added to get
2448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2449 array size at least. It's necessary to write '\x00'==0 to get something
2450 that's true only with -std1. */
2451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2453 int test (int i, double x);
2454 struct s1 {int (*f) (int a);};
2455 struct s2 {int (*f) (double a);};
2456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2467 # Don't try gcc -ansi; that turns off useful extensions and
2468 # breaks some systems' header files.
2469 # AIX -qlanglvl=ansi
2470 # Ultrix and OSF/1 -std1
2471 # HP-UX 10.20 and later -Ae
2472 # HP-UX older versions -Aa -D_HPUX_SOURCE
2473 # SVR4 -Xc -D__EXTENSIONS__
2474 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2476 CC
="$ac_save_CC $ac_arg"
2477 rm -f conftest.
$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2481 grep -v '^ *+' conftest.er1
>conftest.err
2483 cat conftest.err
>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try
='test -z "$ac_c_werror_flag"
2487 || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try
='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 ac_cv_prog_cc_stdc
=$ac_arg
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.
$ac_ext >&5
2506 rm -f conftest.err conftest.
$ac_objext
2508 rm -f conftest.
$ac_ext conftest.
$ac_objext
2513 case "x$ac_cv_prog_cc_stdc" in
2515 echo "$as_me:$LINENO: result: none needed" >&5
2516 echo "${ECHO_T}none needed" >&6 ;;
2518 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2519 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2520 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2523 # Some people use a C++ compiler to compile C. Since we use `exit',
2524 # in C++ we need to declare it. In case someone uses the same compiler
2525 # for both compiling C and C++ we need to have the C++ compiler decide
2526 # the declaration of exit, since it's the most demanding environment.
2527 cat >conftest.
$ac_ext <<_ACEOF
2532 rm -f conftest.
$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>conftest.er1
2536 grep -v '^ *+' conftest.er1
>conftest.err
2538 cat conftest.err
>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try
='test -z "$ac_c_werror_flag"
2542 || test ! -s conftest.err'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; } &&
2548 { ac_try
='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 for ac_declaration
in \
2556 'extern "C" void std::exit (int) throw (); using std::exit;' \
2557 'extern "C" void std::exit (int); using std::exit;' \
2558 'extern "C" void exit (int) throw ();' \
2559 'extern "C" void exit (int);' \
2562 cat >conftest.
$ac_ext <<_ACEOF
2565 cat confdefs.h
>>conftest.
$ac_ext
2566 cat >>conftest.
$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2578 rm -f conftest.
$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1
>conftest.err
2584 cat conftest.err
>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try
='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try
='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.
$ac_ext >&5
2607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2608 cat >conftest.
$ac_ext <<_ACEOF
2611 cat confdefs.h
>>conftest.
$ac_ext
2612 cat >>conftest.
$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2623 rm -f conftest.
$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>conftest.er1
2627 grep -v '^ *+' conftest.er1
>conftest.err
2629 cat conftest.err
>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try
='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try
='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.
$ac_ext >&5
2651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2654 if test -n "$ac_declaration"; then
2655 echo '#ifdef __cplusplus' >>confdefs.h
2656 echo $ac_declaration >>confdefs.h
2657 echo '#endif' >>confdefs.h
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.
$ac_ext >&5
2665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2667 ac_cpp
='$CPP $CPPFLAGS'
2668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2675 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2676 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2678 # Check whether --with-cxx_main or --without-cxx_main was given.
2679 if test "${with_cxx_main+set}" = set; then
2680 withval
="$with_cxx_main"
2684 no
) with_cxx_main
=no
2686 yes) with_cxx_main
=yes
2688 *) with_cxx_main
=yes
2701 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2702 echo "${ECHO_T}$with_cxx_main" >&6
2708 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2709 set dummy g
++; ac_word
=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_path_CXX+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2721 for as_dir
in notfound
2724 test -z "$as_dir" && as_dir
=.
2725 for ac_exec_ext
in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2740 if test -n "$CXX"; then
2741 echo "$as_me:$LINENO: result: $CXX" >&5
2742 echo "${ECHO_T}$CXX" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2748 cc
) # Extract the first word of "c++", so it can be a program name with args.
2749 set dummy c
++; ac_word
=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_path_CXX+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2761 for as_dir
in notfound
2764 test -z "$as_dir" && as_dir
=.
2765 for ac_exec_ext
in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2780 if test -n "$CXX"; then
2781 echo "$as_me:$LINENO: result: $CXX" >&5
2782 echo "${ECHO_T}$CXX" >&6
2784 echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2789 if test "$CXX" = "notfound"
2796 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy
$ac_prog; ac_word
=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_CXX+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 if test -n "$CXX"; then
2806 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir
=.
2813 for ac_exec_ext
in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_CXX
="$ac_prog"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 if test -n "$CXX"; then
2826 echo "$as_me:$LINENO: result: $CXX" >&5
2827 echo "${ECHO_T}$CXX" >&6
2829 echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2833 test -n "$CXX" && break
2835 test -n "$CXX" || CXX
="notfound"
2837 if test "$CXX" = "notfound"
2842 if test "$preset_cxx" != "$CXX"
2844 { echo "$as_me:$LINENO: WARNING:
2846 By default, distutils will build C++ extension modules with \"$CXX\".
2847 If this is not intended, then set CXX on the configure command line.
2849 echo "$as_me: WARNING:
2851 By default, distutils will build C++ extension modules with \"$CXX\".
2852 If this is not intended, then set CXX on the configure command line.
2857 # checks for UNIX variants that set C preprocessor variables
2860 ac_cpp
='$CPP $CPPFLAGS'
2861 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2864 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2865 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2866 # On Suns, sometimes $CPP names a directory.
2867 if test -n "$CPP" && test -d "$CPP"; then
2870 if test -z "$CPP"; then
2871 if test "${ac_cv_prog_CPP+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 # Double quotes because CPP needs to be expanded
2875 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2878 for ac_c_preproc_warn_flag
in '' yes
2880 # Use a header file that comes with gcc, so configuring glibc
2881 # with a fresh cross-compiler works.
2882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2883 # <limits.h> exists even on freestanding compilers.
2884 # On the NeXT, cc -E runs the code through the compiler's parser,
2885 # not just through cpp. "Syntax error" is here to catch this case.
2886 cat >conftest.
$ac_ext <<_ACEOF
2889 cat confdefs.h
>>conftest.
$ac_ext
2890 cat >>conftest.
$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2893 # include <limits.h>
2895 # include <assert.h>
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1
>conftest.err
2904 cat conftest.err
>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev
/null
; then
2907 if test -s conftest.err
; then
2908 ac_cpp_err
=$ac_c_preproc_warn_flag
2909 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2916 if test -z "$ac_cpp_err"; then
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.
$ac_ext >&5
2922 # Broken: fails on valid input.
2925 rm -f conftest.err conftest.
$ac_ext
2927 # OK, works on sane cases. Now check whether non-existent headers
2928 # can be detected and how.
2929 cat >conftest.
$ac_ext <<_ACEOF
2932 cat confdefs.h
>>conftest.
$ac_ext
2933 cat >>conftest.
$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1
>conftest.err
2942 cat conftest.err
>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev
/null
; then
2945 if test -s conftest.err
; then
2946 ac_cpp_err
=$ac_c_preproc_warn_flag
2947 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2954 if test -z "$ac_cpp_err"; then
2955 # Broken: success on invalid input.
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.
$ac_ext >&5
2961 # Passes both tests.
2965 rm -f conftest.err conftest.
$ac_ext
2968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2969 rm -f conftest.err conftest.
$ac_ext
2970 if $ac_preproc_ok; then
2982 echo "$as_me:$LINENO: result: $CPP" >&5
2983 echo "${ECHO_T}$CPP" >&6
2985 for ac_c_preproc_warn_flag
in '' yes
2987 # Use a header file that comes with gcc, so configuring glibc
2988 # with a fresh cross-compiler works.
2989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2990 # <limits.h> exists even on freestanding compilers.
2991 # On the NeXT, cc -E runs the code through the compiler's parser,
2992 # not just through cpp. "Syntax error" is here to catch this case.
2993 cat >conftest.
$ac_ext <<_ACEOF
2996 cat confdefs.h
>>conftest.
$ac_ext
2997 cat >>conftest.
$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3000 # include <limits.h>
3002 # include <assert.h>
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3009 grep -v '^ *+' conftest.er1
>conftest.err
3011 cat conftest.err
>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev
/null
; then
3014 if test -s conftest.err
; then
3015 ac_cpp_err
=$ac_c_preproc_warn_flag
3016 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3023 if test -z "$ac_cpp_err"; then
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.
$ac_ext >&5
3029 # Broken: fails on valid input.
3032 rm -f conftest.err conftest.
$ac_ext
3034 # OK, works on sane cases. Now check whether non-existent headers
3035 # can be detected and how.
3036 cat >conftest.
$ac_ext <<_ACEOF
3039 cat confdefs.h
>>conftest.
$ac_ext
3040 cat >>conftest.
$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3042 #include <ac_nonexistent.h>
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3047 grep -v '^ *+' conftest.er1
>conftest.err
3049 cat conftest.err
>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev
/null
; then
3052 if test -s conftest.err
; then
3053 ac_cpp_err
=$ac_c_preproc_warn_flag
3054 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3061 if test -z "$ac_cpp_err"; then
3062 # Broken: success on invalid input.
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.
$ac_ext >&5
3068 # Passes both tests.
3072 rm -f conftest.err conftest.
$ac_ext
3075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3076 rm -f conftest.err conftest.
$ac_ext
3077 if $ac_preproc_ok; then
3080 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3081 See \`config.log' for more details." >&5
3082 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3083 See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }
3088 ac_cpp
='$CPP $CPPFLAGS'
3089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3094 echo "$as_me:$LINENO: checking for egrep" >&5
3095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3096 if test "${ac_cv_prog_egrep+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3100 then ac_cv_prog_egrep
='grep -E'
3101 else ac_cv_prog_egrep
='egrep'
3104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3106 EGREP
=$ac_cv_prog_egrep
3110 echo "$as_me:$LINENO: checking for AIX" >&5
3111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3112 cat >conftest.
$ac_ext <<_ACEOF
3115 cat confdefs.h
>>conftest.
$ac_ext
3116 cat >>conftest.
$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3124 $EGREP "yes" >/dev
/null
2>&1; then
3125 echo "$as_me:$LINENO: result: yes" >&5
3126 echo "${ECHO_T}yes" >&6
3127 cat >>confdefs.h
<<\_ACEOF
3128 #define _ALL_SOURCE 1
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3139 # Check for unsupported systems
3140 case $ac_sys_system/$ac_sys_release in
3142 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3143 echo See README
for details.
3148 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3149 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3151 # Check whether --with-suffix or --without-suffix was given.
3152 if test "${with_suffix+set}" = set; then
3153 withval
="$with_suffix"
3158 *) EXEEXT
=$withval;;
3161 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3162 echo "${ECHO_T}$EXEEXT" >&6
3164 # Test whether we're running on a non-case-sensitive system, in which
3165 # case we give a warning if no ext is given
3167 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3168 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3169 if test ! -d CaseSensitiveTestDir
; then
3170 mkdir CaseSensitiveTestDir
3173 if test -d casesensitivetestdir
3175 echo "$as_me:$LINENO: result: yes" >&5
3176 echo "${ECHO_T}yes" >&6
3179 echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6
3183 rmdir CaseSensitiveTestDir
3188 gcc
) CC
="$CC -D_HAVE_BSDI";;
3192 case $ac_sys_system in
3195 cc|
*/cc
) CC
="$CC -Ae";;
3199 cc
) CC
="$CC -Wl,-Bexport";;
3202 # Some functions have a prototype only with that define, e.g. confstr
3204 cat >>confdefs.h
<<\_ACEOF
3205 #define __EXTENSIONS__ 1
3213 echo "$as_me:$LINENO: checking LIBRARY" >&5
3214 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3215 if test -z "$LIBRARY"
3217 LIBRARY
='libpython$(VERSION).a'
3219 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3220 echo "${ECHO_T}$LIBRARY" >&6
3222 # LDLIBRARY is the name of the library to link against (as opposed to the
3223 # name of the library into which to insert object files). BLDLIBRARY is also
3224 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3225 # is blank as the main program is not linked directly against LDLIBRARY.
3226 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3227 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3228 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3229 # DLLLIBRARY is the shared (i.e., DLL) library.
3231 # RUNSHARED is used to run shared python without installed libraries
3233 # INSTSONAME is the name of the shared library that will be use to install
3234 # on the system - some systems like version suffix, others don't
3241 LDLIBRARY
="$LIBRARY"
3242 BLDLIBRARY
='$(LDLIBRARY)'
3243 INSTSONAME
='$(LDLIBRARY)'
3248 # LINKCC is the command that links the python executable -- default is $(CC).
3249 # If CXX is set, and if it is needed to link a main function that was
3250 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3251 # python might then depend on the C++ runtime
3252 # This is altered for AIX in order to build the export list before
3255 echo "$as_me:$LINENO: checking LINKCC" >&5
3256 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3257 if test -z "$LINKCC"
3259 LINKCC
='$(PURIFY) $(MAINCC)'
3260 case $ac_sys_system in
3263 if test $ac_sys_release -ge 5 -o \
3264 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3267 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3269 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3272 echo "$as_me:$LINENO: result: $LINKCC" >&5
3273 echo "${ECHO_T}$LINKCC" >&6
3275 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3276 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3277 # Check whether --enable-shared or --disable-shared was given.
3278 if test "${enable_shared+set}" = set; then
3279 enableval
="$enable_shared"
3283 if test -z "$enable_shared"
3285 case $ac_sys_system in
3287 enable_shared
="yes";;
3289 enable_shared
="no";;
3292 echo "$as_me:$LINENO: result: $enable_shared" >&5
3293 echo "${ECHO_T}$enable_shared" >&6
3295 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3296 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3297 # Check whether --enable-profiling or --disable-profiling was given.
3298 if test "${enable_profiling+set}" = set; then
3299 enableval
="$enable_profiling"
3302 if test "$cross_compiling" = yes; then
3303 ac_enable_profiling
="no"
3305 cat >conftest.
$ac_ext <<_ACEOF
3308 cat confdefs.h
>>conftest.
$ac_ext
3309 cat >>conftest.
$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 int main() { return 0; }
3313 rm -f conftest
$ac_exeext
3314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3315 (eval $ac_link) 2>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 ac_enable_profiling
="yes"
3326 echo "$as_me: program exited with status $ac_status" >&5
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.
$ac_ext >&5
3331 ac_enable_profiling
="no"
3333 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3338 echo "${ECHO_T}$ac_enable_profiling" >&6
3340 case "$ac_enable_profiling" in
3342 BASECFLAGS
="-pg $BASECFLAGS"
3343 LDFLAGS
="-pg $LDFLAGS"
3347 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3348 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3350 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3351 # library that we build, but we do not want to link against it (we
3352 # will find it with a -framework option). For this reason there is an
3353 # extra variable BLDLIBRARY against which Python and the extension
3354 # modules are linked, BLDLIBRARY. This is normally the same as
3355 # LDLIBRARY, but empty for MacOSX framework builds.
3356 if test "$enable_framework"
3358 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3359 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3362 BLDLIBRARY
='$(LDLIBRARY)'
3365 # Other platforms follow
3366 if test $enable_shared = "yes"; then
3368 cat >>confdefs.h
<<\_ACEOF
3369 #define Py_ENABLE_SHARED 1
3372 case $ac_sys_system in
3374 LDLIBRARY
='libpython$(VERSION).so'
3377 LDLIBRARY
='libpython$(VERSION).dll.a'
3378 DLLLIBRARY
='libpython$(VERSION).dll'
3381 LDLIBRARY
='libpython$(VERSION).so'
3382 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3383 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3384 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3386 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3387 LDLIBRARY
='libpython$(VERSION).so'
3388 BLDLIBRARY
='-L. -lpython$(VERSION)'
3389 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3390 case $ac_sys_system in
3392 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3395 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3400 LDLIBRARY
='libpython$(VERSION).so'
3403 LDLIBRARY
='libpython$(VERSION).sl'
3406 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3410 LDLIBRARY
='libpython$(VERSION).so'
3411 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3415 LDLIBRARY
='libpython$(VERSION).so'
3416 BLDLIBRARY
='-L. -lpython$(VERSION)'
3417 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3420 else # shared is disabled
3421 case $ac_sys_system in
3423 BLDLIBRARY
='$(LIBRARY)'
3424 LDLIBRARY
='libpython$(VERSION).dll.a'
3429 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3430 echo "${ECHO_T}$LDLIBRARY" >&6
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3434 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_prog_RANLIB+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 if test -n "$RANLIB"; then
3441 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir
=.
3448 for ac_exec_ext
in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 RANLIB
=$ac_cv_prog_RANLIB
3460 if test -n "$RANLIB"; then
3461 echo "$as_me:$LINENO: result: $RANLIB" >&5
3462 echo "${ECHO_T}$RANLIB" >&6
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3469 if test -z "$ac_cv_prog_RANLIB"; then
3470 ac_ct_RANLIB
=$RANLIB
3471 # Extract the first word of "ranlib", so it can be a program name with args.
3472 set dummy ranlib
; ac_word
=$2
3473 echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 if test -n "$ac_ct_RANLIB"; then
3479 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir
=.
3486 for ac_exec_ext
in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3498 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3499 if test -n "$ac_ct_RANLIB"; then
3500 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3501 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 RANLIB
=$ac_ct_RANLIB
3509 RANLIB
="$ac_cv_prog_RANLIB"
3513 for ac_prog
in ar aal
3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3516 set dummy
$ac_prog; ac_word
=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_prog_AR+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 if test -n "$AR"; then
3523 ac_cv_prog_AR
="$AR" # Let the user override the test.
3525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir
=.
3530 for ac_exec_ext
in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_AR
="$ac_prog"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 if test -n "$AR"; then
3543 echo "$as_me:$LINENO: result: $AR" >&5
3544 echo "${ECHO_T}$AR" >&6
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3550 test -n "$AR" && break
3552 test -n "$AR" || AR
="ar"
3556 # Extract the first word of "svnversion", so it can be a program name with args.
3557 set dummy svnversion
; ac_word
=$2
3558 echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test -n "$SVNVERSION"; then
3564 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir
=.
3571 for ac_exec_ext
in '' $ac_executable_extensions; do
3572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_SVNVERSION
="found"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3583 SVNVERSION
=$ac_cv_prog_SVNVERSION
3584 if test -n "$SVNVERSION"; then
3585 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3586 echo "${ECHO_T}$SVNVERSION" >&6
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 if test $SVNVERSION = found
3594 SVNVERSION
="svnversion \$(srcdir)"
3596 SVNVERSION
="echo exported"
3601 # install -d does not work on BSDI or HP-UX
3602 if test -z "$INSTALL"
3604 INSTALL
="${srcdir}/install-sh -c"
3608 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3609 if test -f $ac_dir/install-sh
; then
3611 ac_install_sh
="$ac_aux_dir/install-sh -c"
3613 elif test -f $ac_dir/install.sh
; then
3615 ac_install_sh
="$ac_aux_dir/install.sh -c"
3617 elif test -f $ac_dir/shtool
; then
3619 ac_install_sh
="$ac_aux_dir/shtool install -c"
3623 if test -z "$ac_aux_dir"; then
3624 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3625 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3626 { (exit 1); exit 1; }; }
3628 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3629 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3630 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3632 # Find a good install program. We prefer a C program (faster),
3633 # so one script is as good as another. But avoid the broken or
3634 # incompatible versions:
3635 # SysV /etc/install, /usr/sbin/install
3636 # SunOS /usr/etc/install
3637 # IRIX /sbin/install
3639 # AmigaOS /C/install, which installs bootblocks on floppy discs
3640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3643 # OS/2's system install, which has a completely different semantic
3644 # ./install, which can be erroneously created by make from ./install.sh.
3645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647 if test -z "$INSTALL"; then
3648 if test "${ac_cv_path_install+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir
=.
3656 # Account for people who put trailing slashes in PATH elements.
3658 .
/ | .
// |
/cC
/* | \
3659 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3660 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3663 # OSF1 and SCO ODT 3.0 have their own names for install.
3664 # Don't use installbsd from OSF since it installs stuff as root
3666 for ac_prog
in ginstall scoinst
install; do
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3669 if test $ac_prog = install &&
3670 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3671 # AIX install. It has an incompatible calling convention.
3673 elif test $ac_prog = install &&
3674 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3675 # program-specific install script used by HP pwplus--don't use.
3678 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3690 if test "${ac_cv_path_install+set}" = set; then
3691 INSTALL
=$ac_cv_path_install
3693 # As a last resort, use the slow shell script. We don't cache a
3694 # path for INSTALL within a source directory, because that will
3695 # break other packages using the cache if that directory is
3696 # removed, or if the path is relative.
3697 INSTALL
=$ac_install_sh
3700 echo "$as_me:$LINENO: result: $INSTALL" >&5
3701 echo "${ECHO_T}$INSTALL" >&6
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3709 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3712 # Not every filesystem supports hard links
3714 if test -z "$LN" ; then
3715 case $ac_sys_system in
3717 CYGWIN
*) LN
="ln -s";;
3718 atheos
*) LN
="ln -s";;
3723 # Check for --with-pydebug
3724 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3725 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3727 # Check whether --with-pydebug or --without-pydebug was given.
3728 if test "${with_pydebug+set}" = set; then
3729 withval
="$with_pydebug"
3731 if test "$withval" != no
3734 cat >>confdefs.h
<<\_ACEOF
3738 echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6;
3741 else echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3750 # merged with this chunk of code?
3752 # Optimizer/debugger flags
3753 # ------------------------
3754 # (The following bit of code is complicated enough - please keep things
3755 # indented properly. Just pretend you're editing Python code. ;-)
3757 # There are two parallel sets of case statements below, one that checks to
3758 # see if OPT was set and one that does BASECFLAGS setting based upon
3759 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3762 # tweak OPT based on compiler and platform, only if the user didn't set
3763 # it on the command line
3769 if test "$CC" != 'g++' ; then
3770 STRICT_PROTO
="-Wstrict-prototypes"
3772 case $ac_cv_prog_cc_g in
3774 if test "$Py_DEBUG" = 'true' ; then
3775 # Optimization messes up debuggers, so turn it off for
3777 OPT
="-g -Wall $STRICT_PROTO"
3779 OPT
="-g -O3 -Wall $STRICT_PROTO"
3783 OPT
="-O3 -Wall $STRICT_PROTO"
3786 case $ac_sys_system in
3787 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3797 # The current (beta) Monterey compiler dies with optimizations
3798 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3799 case $ac_sys_system in
3808 # tweak BASECFLAGS based on compiler and platform
3811 # Python violates C99 rules, by casting between incompatible
3812 # pointer types. GCC may generate bad code as a result of that,
3813 # so use -fno-strict-aliasing if supported.
3814 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3815 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3817 CC
="$CC -fno-strict-aliasing"
3818 if test "$cross_compiling" = yes; then
3819 ac_cv_no_strict_aliasing_ok
=no
3821 cat >conftest.
$ac_ext <<_ACEOF
3824 cat confdefs.h
>>conftest.
$ac_ext
3825 cat >>conftest.
$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 int main() { return 0; }
3829 rm -f conftest
$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 ac_cv_no_strict_aliasing_ok
=yes
3842 echo "$as_me: program exited with status $ac_status" >&5
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.
$ac_ext >&5
3847 ac_cv_no_strict_aliasing_ok
=no
3849 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3852 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3853 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3854 if test $ac_cv_no_strict_aliasing_ok = yes
3856 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3858 case $ac_sys_system in
3860 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3862 # is there any other compiler on Darwin besides gcc?
3864 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3865 if test "${enable_universalsdk}"; then
3866 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3871 BASECFLAGS
="$BASECFLAGS -mieee"
3877 case $ac_sys_system in
3878 OpenUNIX
*|UnixWare
*)
3879 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3882 BASECFLAGS
="$BASECFLAGS -ieee -std"
3885 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3891 if test "$Py_DEBUG" = 'true'; then
3897 if test "$ac_arch_flags"
3899 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3902 # disable check for icc since it seems to pass, but generates a warning
3905 ac_cv_opt_olimit_ok
=no
3908 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3909 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3910 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 CC
="$CC -OPT:Olimit=0"
3915 if test "$cross_compiling" = yes; then
3916 ac_cv_opt_olimit_ok
=no
3918 cat >conftest.
$ac_ext <<_ACEOF
3921 cat confdefs.h
>>conftest.
$ac_ext
3922 cat >>conftest.
$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 int main() { return 0; }
3926 rm -f conftest
$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_opt_olimit_ok
=yes
3939 echo "$as_me: program exited with status $ac_status" >&5
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.
$ac_ext >&5
3944 ac_cv_opt_olimit_ok
=no
3946 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3951 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3952 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3953 if test $ac_cv_opt_olimit_ok = yes; then
3954 case $ac_sys_system in
3955 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3956 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3961 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3965 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3966 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3967 if test "${ac_cv_olimit_ok+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 CC
="$CC -Olimit 1500"
3972 if test "$cross_compiling" = yes; then
3975 cat >conftest.
$ac_ext <<_ACEOF
3978 cat confdefs.h
>>conftest.
$ac_ext
3979 cat >>conftest.
$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 int main() { return 0; }
3983 rm -f conftest
$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985 (eval $ac_link) 2>&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3996 echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.
$ac_ext >&5
4003 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4008 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4009 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4010 if test $ac_cv_olimit_ok = yes; then
4011 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4015 # On some compilers, pthreads are available without further options
4016 # (e.g. MacOS X). On some of these systems, the compiler will not
4017 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4018 # So we have to see first whether pthreads are available without
4019 # options before we can check whether -Kpthread improves anything.
4020 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4021 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4022 if test "${ac_cv_pthread_is_default+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test "$cross_compiling" = yes; then
4026 ac_cv_pthread_is_default
=no
4028 cat >conftest.
$ac_ext <<_ACEOF
4031 cat confdefs.h
>>conftest.
$ac_ext
4032 cat >>conftest.
$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4035 #include <pthread.h>
4037 void* routine(void* p){return NULL;}
4041 if(pthread_create(&p,NULL,routine,NULL)!=0)
4043 (void)pthread_detach(p);
4048 rm -f conftest
$ac_exeext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050 (eval $ac_link) 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4060 ac_cv_pthread_is_default
=yes
4065 echo "$as_me: program exited with status $ac_status" >&5
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.
$ac_ext >&5
4070 ac_cv_pthread_is_default
=no
4072 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4077 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4078 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4081 if test $ac_cv_pthread_is_default = yes
4085 # -Kpthread, if available, provides the right #defines
4086 # and linker options to make pthread_create available
4087 # Some compilers won't report that they do not support -Kpthread,
4088 # so we need to run a program to see whether it really made the
4089 # function available.
4090 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4091 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4092 if test "${ac_cv_kpthread+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if test "$cross_compiling" = yes; then
4100 cat >conftest.
$ac_ext <<_ACEOF
4103 cat confdefs.h
>>conftest.
$ac_ext
4104 cat >>conftest.
$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4107 #include <pthread.h>
4109 void* routine(void* p){return NULL;}
4113 if(pthread_create(&p,NULL,routine,NULL)!=0)
4115 (void)pthread_detach(p);
4120 rm -f conftest
$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4133 echo "$as_me: program exited with status $ac_status" >&5
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.
$ac_ext >&5
4140 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4145 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4146 echo "${ECHO_T}$ac_cv_kpthread" >&6
4149 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4151 # -Kthread, if available, provides the right #defines
4152 # and linker options to make pthread_create available
4153 # Some compilers won't report that they do not support -Kthread,
4154 # so we need to run a program to see whether it really made the
4155 # function available.
4156 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4157 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4158 if test "${ac_cv_kthread+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test "$cross_compiling" = yes; then
4166 cat >conftest.
$ac_ext <<_ACEOF
4169 cat confdefs.h
>>conftest.
$ac_ext
4170 cat >>conftest.
$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 #include <pthread.h>
4175 void* routine(void* p){return NULL;}
4179 if(pthread_create(&p,NULL,routine,NULL)!=0)
4181 (void)pthread_detach(p);
4186 rm -f conftest
$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4199 echo "$as_me: program exited with status $ac_status" >&5
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.
$ac_ext >&5
4206 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4211 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4212 echo "${ECHO_T}$ac_cv_kthread" >&6
4215 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4217 # -pthread, if available, provides the right #defines
4218 # and linker options to make pthread_create available
4219 # Some compilers won't report that they do not support -pthread,
4220 # so we need to run a program to see whether it really made the
4221 # function available.
4222 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4223 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4224 if test "${ac_cv_thread+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if test "$cross_compiling" = yes; then
4232 cat >conftest.
$ac_ext <<_ACEOF
4235 cat confdefs.h
>>conftest.
$ac_ext
4236 cat >>conftest.
$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 #include <pthread.h>
4241 void* routine(void* p){return NULL;}
4245 if(pthread_create(&p,NULL,routine,NULL)!=0)
4247 (void)pthread_detach(p);
4252 rm -f conftest
$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.
$ac_ext >&5
4272 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4277 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4278 echo "${ECHO_T}$ac_cv_pthread" >&6
4281 # If we have set a CC compiler flag for thread support then
4282 # check if it works for CXX, too.
4286 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4287 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4290 if test "$ac_cv_kpthread" = "yes"
4292 CXX
="$CXX -Kpthread"
4293 ac_cv_cxx_thread
=yes
4294 elif test "$ac_cv_kthread" = "yes"
4297 ac_cv_cxx_thread
=yes
4298 elif test "$ac_cv_pthread" = "yes"
4301 ac_cv_cxx_thread
=yes
4304 if test $ac_cv_cxx_thread = yes
4306 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4307 $CXX -c conftest.
$ac_ext 2>&5
4308 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4309 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4311 ac_cv_cxx_thread
=yes
4317 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4318 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4323 # checks for header files
4324 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4325 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4326 if test "${ac_cv_header_stdc+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 cat >conftest.
$ac_ext <<_ACEOF
4332 cat confdefs.h
>>conftest.
$ac_ext
4333 cat >>conftest.
$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4348 rm -f conftest.
$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>conftest.er1
4352 grep -v '^ *+' conftest.er1
>conftest.err
4354 cat conftest.err
>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try
='test -z "$ac_c_werror_flag"
4358 || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try
='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 ac_cv_header_stdc
=yes
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.
$ac_ext >&5
4375 ac_cv_header_stdc
=no
4377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4379 if test $ac_cv_header_stdc = yes; then
4380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4381 cat >conftest.
$ac_ext <<_ACEOF
4384 cat confdefs.h
>>conftest.
$ac_ext
4385 cat >>conftest.
$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "memchr" >/dev
/null
2>&1; then
4394 ac_cv_header_stdc
=no
4400 if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4402 cat >conftest.
$ac_ext <<_ACEOF
4405 cat confdefs.h
>>conftest.
$ac_ext
4406 cat >>conftest.
$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "free" >/dev
/null
2>&1; then
4415 ac_cv_header_stdc
=no
4421 if test $ac_cv_header_stdc = yes; then
4422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4423 if test "$cross_compiling" = yes; then
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4433 #if ((' ' & 0x0FF) == 0x020)
4434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4437 # define ISLOWER(c) \
4438 (('a' <= (c) && (c) <= 'i') \
4439 || ('j' <= (c) && (c) <= 'r') \
4440 || ('s' <= (c) && (c) <= 'z'))
4441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4449 for (i = 0; i < 256; i++)
4450 if (XOR (islower (i), ISLOWER (i))
4451 || toupper (i) != TOUPPER (i))
4456 rm -f conftest
$ac_exeext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458 (eval $ac_link) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4469 echo "$as_me: program exited with status $ac_status" >&5
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.
$ac_ext >&5
4474 ac_cv_header_stdc
=no
4476 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4482 if test $ac_cv_header_stdc = yes; then
4484 cat >>confdefs.h
<<\_ACEOF
4485 #define STDC_HEADERS 1
4490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4500 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4501 inttypes.h stdint.h unistd.h
4503 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4504 echo "$as_me:$LINENO: checking for $ac_header" >&5
4505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 cat >conftest.
$ac_ext <<_ACEOF
4512 cat confdefs.h
>>conftest.
$ac_ext
4513 cat >>conftest.
$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4517 #include <$ac_header>
4519 rm -f conftest.
$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1
>conftest.err
4525 cat conftest.err
>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try
='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try
='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 eval "$as_ac_Header=yes"
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.
$ac_ext >&5
4546 eval "$as_ac_Header=no"
4548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4553 cat >>confdefs.h
<<_ACEOF
4554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4603 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4604 stropts.h termios.h thread.h \
4606 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4608 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h \
4609 sys
/times.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4610 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4611 bluetooth
/bluetooth.h
4613 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4615 echo "$as_me:$LINENO: checking for $ac_header" >&5
4616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4623 # Is the header compilable?
4624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4626 cat >conftest.
$ac_ext <<_ACEOF
4629 cat confdefs.h
>>conftest.
$ac_ext
4630 cat >>conftest.
$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <$ac_header>
4635 rm -f conftest.
$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4639 grep -v '^ *+' conftest.er1
>conftest.err
4641 cat conftest.err
>&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try
='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try
='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_header_compiler
=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.
$ac_ext >&5
4662 ac_header_compiler
=no
4664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4666 echo "${ECHO_T}$ac_header_compiler" >&6
4668 # Is the header present?
4669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4671 cat >conftest.
$ac_ext <<_ACEOF
4674 cat confdefs.h
>>conftest.
$ac_ext
4675 cat >>conftest.
$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <$ac_header>
4679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4682 grep -v '^ *+' conftest.er1
>conftest.err
4684 cat conftest.err
>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } >/dev
/null
; then
4687 if test -s conftest.err
; then
4688 ac_cpp_err
=$ac_c_preproc_warn_flag
4689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4696 if test -z "$ac_cpp_err"; then
4697 ac_header_preproc
=yes
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.
$ac_ext >&5
4702 ac_header_preproc
=no
4704 rm -f conftest.err conftest.
$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706 echo "${ECHO_T}$ac_header_preproc" >&6
4708 # So? What about this header?
4709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4715 ac_header_preproc
=yes
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4732 ## ------------------------------------------------ ##
4733 ## Report this to http://www.python.org/python-bugs ##
4734 ## ------------------------------------------------ ##
4737 sed "s/^/$as_me: WARNING: /" >&2
4740 echo "$as_me:$LINENO: checking for $ac_header" >&5
4741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 eval "$as_ac_Header=\$ac_header_preproc"
4747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4752 cat >>confdefs.h
<<_ACEOF
4753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4766 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4767 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4768 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4769 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 cat >conftest.
$ac_ext <<_ACEOF
4776 cat confdefs.h
>>conftest.
$ac_ext
4777 cat >>conftest.
$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #include <sys/types.h>
4791 rm -f conftest.
$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4795 grep -v '^ *+' conftest.er1
>conftest.err
4797 cat conftest.err
>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try
='test -z "$ac_c_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try
='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 eval "$as_ac_Header=yes"
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.
$ac_ext >&5
4818 eval "$as_ac_Header=no"
4820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4825 cat >>confdefs.h
<<_ACEOF
4826 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4829 ac_header_dirent
=$ac_hdr; break
4833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4834 if test $ac_header_dirent = dirent.h
; then
4835 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4837 if test "${ac_cv_search_opendir+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 ac_func_search_save_LIBS
=$LIBS
4841 ac_cv_search_opendir
=no
4842 cat >conftest.
$ac_ext <<_ACEOF
4845 cat confdefs.h
>>conftest.
$ac_ext
4846 cat >>conftest.
$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4864 rm -f conftest.
$ac_objext conftest
$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1
>conftest.err
4870 cat conftest.err
>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try
='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_search_opendir
="none required"
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4892 rm -f conftest.err conftest.
$ac_objext \
4893 conftest
$ac_exeext conftest.
$ac_ext
4894 if test "$ac_cv_search_opendir" = no
; then
4895 for ac_lib
in dir
; do
4896 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4897 cat >conftest.
$ac_ext <<_ACEOF
4900 cat confdefs.h
>>conftest.
$ac_ext
4901 cat >>conftest.
$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4919 rm -f conftest.
$ac_objext conftest
$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>conftest.er1
4923 grep -v '^ *+' conftest.er1
>conftest.err
4925 cat conftest.err
>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try
='test -z "$ac_c_werror_flag"
4929 || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try
='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_search_opendir
="-l$ac_lib"
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.
$ac_ext >&5
4948 rm -f conftest.err conftest.
$ac_objext \
4949 conftest
$ac_exeext conftest.
$ac_ext
4952 LIBS
=$ac_func_search_save_LIBS
4954 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4955 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4956 if test "$ac_cv_search_opendir" != no
; then
4957 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4962 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4963 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4964 if test "${ac_cv_search_opendir+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 ac_func_search_save_LIBS
=$LIBS
4968 ac_cv_search_opendir
=no
4969 cat >conftest.
$ac_ext <<_ACEOF
4972 cat confdefs.h
>>conftest.
$ac_ext
4973 cat >>conftest.
$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4976 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4991 rm -f conftest.
$ac_objext conftest
$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>conftest.er1
4995 grep -v '^ *+' conftest.er1
>conftest.err
4997 cat conftest.err
>&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try
='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try
='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_search_opendir
="none required"
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.
$ac_ext >&5
5019 rm -f conftest.err conftest.
$ac_objext \
5020 conftest
$ac_exeext conftest.
$ac_ext
5021 if test "$ac_cv_search_opendir" = no
; then
5023 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5024 cat >conftest.
$ac_ext <<_ACEOF
5027 cat confdefs.h
>>conftest.
$ac_ext
5028 cat >>conftest.
$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5031 /* Override any gcc2 internal prototype to avoid an error. */
5035 /* We use char because int might match the return type of a gcc2
5036 builtin and then its argument prototype would still apply. */
5046 rm -f conftest.
$ac_objext conftest
$ac_exeext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048 (eval $ac_link) 2>conftest.er1
5050 grep -v '^ *+' conftest.er1
>conftest.err
5052 cat conftest.err
>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try
='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try
='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_search_opendir
="-l$ac_lib"
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.
$ac_ext >&5
5075 rm -f conftest.err conftest.
$ac_objext \
5076 conftest
$ac_exeext conftest.
$ac_ext
5079 LIBS
=$ac_func_search_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5082 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5083 if test "$ac_cv_search_opendir" != no
; then
5084 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5090 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5091 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5092 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 cat >conftest.
$ac_ext <<_ACEOF
5098 cat confdefs.h
>>conftest.
$ac_ext
5099 cat >>conftest.
$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <sys/types.h>
5105 return makedev(0, 0);
5110 rm -f conftest.
$ac_objext conftest
$ac_exeext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112 (eval $ac_link) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1
>conftest.err
5116 cat conftest.err
>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try
='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try
='test -s conftest$ac_exeext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_header_sys_types_h_makedev
=yes
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.
$ac_ext >&5
5137 ac_cv_header_sys_types_h_makedev
=no
5139 rm -f conftest.err conftest.
$ac_objext \
5140 conftest
$ac_exeext conftest.
$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5144 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5146 if test $ac_cv_header_sys_types_h_makedev = no
; then
5147 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5148 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5154 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5156 # Is the header compilable?
5157 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5158 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5159 cat >conftest.
$ac_ext <<_ACEOF
5162 cat confdefs.h
>>conftest.
$ac_ext
5163 cat >>conftest.
$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_includes_default
5166 #include <sys/mkdev.h>
5168 rm -f conftest.
$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>conftest.er1
5172 grep -v '^ *+' conftest.er1
>conftest.err
5174 cat conftest.err
>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try
='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try
='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_header_compiler
=yes
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.
$ac_ext >&5
5195 ac_header_compiler
=no
5197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199 echo "${ECHO_T}$ac_header_compiler" >&6
5201 # Is the header present?
5202 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5203 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5204 cat >conftest.
$ac_ext <<_ACEOF
5207 cat confdefs.h
>>conftest.
$ac_ext
5208 cat >>conftest.
$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <sys/mkdev.h>
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1
>conftest.err
5217 cat conftest.err
>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev
/null
; then
5220 if test -s conftest.err
; then
5221 ac_cpp_err
=$ac_c_preproc_warn_flag
5222 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5229 if test -z "$ac_cpp_err"; then
5230 ac_header_preproc
=yes
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.
$ac_ext >&5
5235 ac_header_preproc
=no
5237 rm -f conftest.err conftest.
$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239 echo "${ECHO_T}$ac_header_preproc" >&6
5241 # So? What about this header?
5242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5244 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5245 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5247 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5248 ac_header_preproc
=yes
5251 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5252 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5254 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5260 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5261 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5262 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5265 ## ------------------------------------------------ ##
5266 ## Report this to http://www.python.org/python-bugs ##
5267 ## ------------------------------------------------ ##
5270 sed "s/^/$as_me: WARNING: /" >&2
5273 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5274 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5275 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5281 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5284 if test $ac_cv_header_sys_mkdev_h = yes; then
5286 cat >>confdefs.h
<<\_ACEOF
5287 #define MAJOR_IN_MKDEV 1
5294 if test $ac_cv_header_sys_mkdev_h = no
; then
5295 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5296 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5297 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5298 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5302 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5304 # Is the header compilable?
5305 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5306 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5307 cat >conftest.
$ac_ext <<_ACEOF
5310 cat confdefs.h
>>conftest.
$ac_ext
5311 cat >>conftest.
$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5314 #include <sys/sysmacros.h>
5316 rm -f conftest.
$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1
>conftest.err
5322 cat conftest.err
>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try
='test -z "$ac_c_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try
='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_header_compiler
=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.
$ac_ext >&5
5343 ac_header_compiler
=no
5345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5347 echo "${ECHO_T}$ac_header_compiler" >&6
5349 # Is the header present?
5350 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5351 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 cat confdefs.h
>>conftest.
$ac_ext
5356 cat >>conftest.
$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <sys/sysmacros.h>
5360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5363 grep -v '^ *+' conftest.er1
>conftest.err
5365 cat conftest.err
>&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev
/null
; then
5368 if test -s conftest.err
; then
5369 ac_cpp_err
=$ac_c_preproc_warn_flag
5370 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5377 if test -z "$ac_cpp_err"; then
5378 ac_header_preproc
=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.
$ac_ext >&5
5383 ac_header_preproc
=no
5385 rm -f conftest.err conftest.
$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5389 # So? What about this header?
5390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5392 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5395 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5396 ac_header_preproc
=yes
5399 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5400 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5402 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5408 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5410 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5413 ## ------------------------------------------------ ##
5414 ## Report this to http://www.python.org/python-bugs ##
5415 ## ------------------------------------------------ ##
5418 sed "s/^/$as_me: WARNING: /" >&2
5421 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5422 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5423 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5428 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5429 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5432 if test $ac_cv_header_sys_sysmacros_h = yes; then
5434 cat >>confdefs.h
<<\_ACEOF
5435 #define MAJOR_IN_SYSMACROS 1
5445 # On Solaris, term.h requires curses.h
5447 for ac_header
in term.h
5449 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 cat >conftest.
$ac_ext <<_ACEOF
5458 cat confdefs.h
>>conftest.
$ac_ext
5459 cat >>conftest.
$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5462 #ifdef HAVE_CURSES_H
5467 #include <$ac_header>
5469 rm -f conftest.
$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5473 grep -v '^ *+' conftest.er1
>conftest.err
5475 cat conftest.err
>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try
='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try
='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 eval "$as_ac_Header=yes"
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.
$ac_ext >&5
5496 eval "$as_ac_Header=no"
5498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5503 cat >>confdefs.h
<<_ACEOF
5504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5512 # On Linux, netlink.h requires asm/types.h
5514 for ac_header
in linux
/netlink.h
5516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 echo "$as_me:$LINENO: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 cat >conftest.
$ac_ext <<_ACEOF
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5529 #ifdef HAVE_ASM_TYPES_H
5530 #include <asm/types.h>
5532 #ifdef HAVE_SYS_SOCKET_H
5533 #include <sys/socket.h>
5537 #include <$ac_header>
5539 rm -f conftest.
$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>conftest.er1
5543 grep -v '^ *+' conftest.er1
>conftest.err
5545 cat conftest.err
>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try
='test -z "$ac_c_werror_flag"
5549 || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try
='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 eval "$as_ac_Header=yes"
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.
$ac_ext >&5
5566 eval "$as_ac_Header=no"
5568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h
<<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 # checks for typedefs
5584 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5585 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5586 cat >conftest.
$ac_ext <<_ACEOF
5589 cat confdefs.h
>>conftest.
$ac_ext
5590 cat >>conftest.
$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 $EGREP "clock_t" >/dev
/null
2>&1; then
5601 cat >>confdefs.h
<<\_ACEOF
5602 #define clock_t long
5609 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5610 echo "${ECHO_T}$was_it_defined" >&6
5612 # Check whether using makedev requires defining _OSF_SOURCE
5613 echo "$as_me:$LINENO: checking for makedev" >&5
5614 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5618 cat confdefs.h
>>conftest.
$ac_ext
5619 cat >>conftest.
$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5630 rm -f conftest.
$ac_objext conftest
$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5634 grep -v '^ *+' conftest.er1
>conftest.err
5636 cat conftest.err
>&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try
='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try
='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_has_makedev
=yes
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.
$ac_ext >&5
5657 ac_cv_has_makedev
=no
5659 rm -f conftest.err conftest.
$ac_objext \
5660 conftest
$ac_exeext conftest.
$ac_ext
5661 if test "$ac_cv_has_makedev" = "no"; then
5662 # we didn't link, try if _OSF_SOURCE will allow us to link
5663 cat >conftest.
$ac_ext <<_ACEOF
5666 cat confdefs.h
>>conftest.
$ac_ext
5667 cat >>conftest.
$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5670 #define _OSF_SOURCE 1
5671 #include <sys/types.h>
5681 rm -f conftest.
$ac_objext conftest
$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try
='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try
='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_has_makedev
=yes
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.
$ac_ext >&5
5708 ac_cv_has_makedev
=no
5710 rm -f conftest.err conftest.
$ac_objext \
5711 conftest
$ac_exeext conftest.
$ac_ext
5712 if test "$ac_cv_has_makedev" = "yes"; then
5714 cat >>confdefs.h
<<\_ACEOF
5715 #define _OSF_SOURCE 1
5720 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5721 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5722 if test "$ac_cv_has_makedev" = "yes"; then
5724 cat >>confdefs.h
<<\_ACEOF
5725 #define HAVE_MAKEDEV 1
5730 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5731 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5732 # defined, but the compiler does not support pragma redefine_extname,
5733 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5734 # structures (such as rlimit64) without declaring them. As a
5735 # work-around, disable LFS on such configurations
5738 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5739 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5740 cat >conftest.
$ac_ext <<_ACEOF
5743 cat confdefs.h
>>conftest.
$ac_ext
5744 cat >>conftest.
$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5747 #define _LARGEFILE_SOURCE 1
5748 #define _FILE_OFFSET_BITS 64
5749 #include <sys/resource.h>
5759 rm -f conftest.
$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>conftest.er1
5763 grep -v '^ *+' conftest.er1
>conftest.err
5765 cat conftest.err
>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try
='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try
='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.
$ac_ext >&5
5788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5790 echo "${ECHO_T}$sol_lfs_bug" >&6
5791 if test "$sol_lfs_bug" = "yes"; then
5795 if test "$use_lfs" = "yes"; then
5796 # Two defines needed to enable largefile support on various platforms
5797 # These may affect some typedefs
5799 cat >>confdefs.h
<<\_ACEOF
5800 #define _LARGEFILE_SOURCE 1
5804 cat >>confdefs.h
<<\_ACEOF
5805 #define _FILE_OFFSET_BITS 64
5810 # Add some code to confdefs.h so that the test for off_t works on SCO
5811 cat >> confdefs.h
<<\EOF
5817 # Type availability checks
5818 echo "$as_me:$LINENO: checking for mode_t" >&5
5819 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5820 if test "${ac_cv_type_mode_t+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.
$ac_ext <<_ACEOF
5826 cat confdefs.h
>>conftest.
$ac_ext
5827 cat >>conftest.
$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5835 if (sizeof (mode_t))
5841 rm -f conftest.
$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1
>conftest.err
5847 cat conftest.err
>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try
='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try
='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_type_mode_t
=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.
$ac_ext >&5
5868 ac_cv_type_mode_t
=no
5870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5873 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5874 if test $ac_cv_type_mode_t = yes; then
5878 cat >>confdefs.h
<<_ACEOF
5884 echo "$as_me:$LINENO: checking for off_t" >&5
5885 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5886 if test "${ac_cv_type_off_t+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.
$ac_ext <<_ACEOF
5892 cat confdefs.h
>>conftest.
$ac_ext
5893 cat >>conftest.
$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5907 rm -f conftest.
$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>conftest.er1
5911 grep -v '^ *+' conftest.er1
>conftest.err
5913 cat conftest.err
>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try
='test -z "$ac_c_werror_flag"
5917 || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try
='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_type_off_t
=yes
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.
$ac_ext >&5
5936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5938 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5939 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5940 if test $ac_cv_type_off_t = yes; then
5944 cat >>confdefs.h
<<_ACEOF
5950 echo "$as_me:$LINENO: checking for pid_t" >&5
5951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5952 if test "${ac_cv_type_pid_t+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.
$ac_ext <<_ACEOF
5958 cat confdefs.h
>>conftest.
$ac_ext
5959 cat >>conftest.
$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 $ac_includes_default
5973 rm -f conftest.
$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5977 grep -v '^ *+' conftest.er1
>conftest.err
5979 cat conftest.err
>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try
='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try
='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_type_pid_t
=yes
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.
$ac_ext >&5
6002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6005 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6006 if test $ac_cv_type_pid_t = yes; then
6010 cat >>confdefs.h
<<_ACEOF
6016 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6017 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6018 if test "${ac_cv_type_signal+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 cat >conftest.
$ac_ext <<_ACEOF
6024 cat confdefs.h
>>conftest.
$ac_ext
6025 cat >>conftest.
$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <sys/types.h>
6033 extern "C" void (*signal (int, void (*)(int)))(int);
6035 void (*signal ()) ();
6046 rm -f conftest.
$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6050 grep -v '^ *+' conftest.er1
>conftest.err
6052 cat conftest.err
>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try
='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try
='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_type_signal
=void
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.
$ac_ext >&5
6073 ac_cv_type_signal
=int
6075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6078 echo "${ECHO_T}$ac_cv_type_signal" >&6
6080 cat >>confdefs.h
<<_ACEOF
6081 #define RETSIGTYPE $ac_cv_type_signal
6085 echo "$as_me:$LINENO: checking for size_t" >&5
6086 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6087 if test "${ac_cv_type_size_t+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 cat >conftest.
$ac_ext <<_ACEOF
6093 cat confdefs.h
>>conftest.
$ac_ext
6094 cat >>conftest.
$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 $ac_includes_default
6102 if (sizeof (size_t))
6108 rm -f conftest.
$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1
>conftest.err
6114 cat conftest.err
>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try
='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try
='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_type_size_t
=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.
$ac_ext >&5
6135 ac_cv_type_size_t
=no
6137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6140 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6141 if test $ac_cv_type_size_t = yes; then
6145 cat >>confdefs.h
<<_ACEOF
6146 #define size_t unsigned
6151 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6152 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6153 if test "${ac_cv_type_uid_t+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 cat >conftest.
$ac_ext <<_ACEOF
6159 cat confdefs.h
>>conftest.
$ac_ext
6160 cat >>conftest.
$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <sys/types.h>
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166 $EGREP "uid_t" >/dev
/null
2>&1; then
6167 ac_cv_type_uid_t
=yes
6174 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6175 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6176 if test $ac_cv_type_uid_t = no
; then
6178 cat >>confdefs.h
<<\_ACEOF
6183 cat >>confdefs.h
<<\_ACEOF
6189 echo "$as_me:$LINENO: checking for ssize_t" >&5
6190 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6191 if test "${ac_cv_type_ssize_t+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 cat >conftest.
$ac_ext <<_ACEOF
6197 cat confdefs.h
>>conftest.
$ac_ext
6198 cat >>conftest.
$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6206 if (sizeof (ssize_t))
6212 rm -f conftest.
$ac_objext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>conftest.er1
6216 grep -v '^ *+' conftest.er1
>conftest.err
6218 cat conftest.err
>&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try
='test -z "$ac_c_werror_flag"
6222 || test ! -s conftest.err'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try
='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_type_ssize_t
=yes
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.
$ac_ext >&5
6239 ac_cv_type_ssize_t
=no
6241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6243 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6244 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6245 if test $ac_cv_type_ssize_t = yes; then
6247 cat >>confdefs.h
<<\_ACEOF
6248 #define HAVE_SSIZE_T 1
6254 # Sizes of various common basic types
6255 # ANSI C requires sizeof(char) == 1, so no need to check it
6256 echo "$as_me:$LINENO: checking for int" >&5
6257 echo $ECHO_N "checking for int... $ECHO_C" >&6
6258 if test "${ac_cv_type_int+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6279 rm -f conftest.
$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1
>conftest.err
6285 cat conftest.err
>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try
='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try
='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.
$ac_ext >&5
6308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6311 echo "${ECHO_T}$ac_cv_type_int" >&6
6313 echo "$as_me:$LINENO: checking size of int" >&5
6314 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6315 if test "${ac_cv_sizeof_int+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 if test "$ac_cv_type_int" = yes; then
6319 # The cast to unsigned long works around a bug in the HP C Compiler
6320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6322 # This bug is HP SR number 8606223364.
6323 if test "$cross_compiling" = yes; then
6324 # Depending upon the size, compute the lo and hi bounds.
6325 cat >conftest.
$ac_ext <<_ACEOF
6328 cat confdefs.h
>>conftest.
$ac_ext
6329 cat >>conftest.
$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6335 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6342 rm -f conftest.
$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1
>conftest.err
6348 cat conftest.err
>&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try
='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try
='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6366 cat >conftest.
$ac_ext <<_ACEOF
6369 cat confdefs.h
>>conftest.
$ac_ext
6370 cat >>conftest.
$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6376 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6383 rm -f conftest.
$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6387 grep -v '^ *+' conftest.er1
>conftest.err
6389 cat conftest.err
>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try
='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try
='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_hi
=$ac_mid; break
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.
$ac_ext >&5
6410 ac_lo
=`expr $ac_mid + 1`
6411 if test $ac_lo -le $ac_mid; then
6415 ac_mid
=`expr 2 '*' $ac_mid + 1`
6417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.
$ac_ext >&5
6423 cat >conftest.
$ac_ext <<_ACEOF
6426 cat confdefs.h
>>conftest.
$ac_ext
6427 cat >>conftest.
$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6433 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6440 rm -f conftest.
$ac_objext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1
>conftest.err
6446 cat conftest.err
>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try
='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try
='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6464 cat >conftest.
$ac_ext <<_ACEOF
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 $ac_includes_default
6474 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6481 rm -f conftest.
$ac_objext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>conftest.er1
6485 grep -v '^ *+' conftest.er1
>conftest.err
6487 cat conftest.err
>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try
='test -z "$ac_c_werror_flag"
6491 || test ! -s conftest.err'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try
='test -s conftest.$ac_objext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_lo
=$ac_mid; break
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.
$ac_ext >&5
6508 ac_hi
=`expr '(' $ac_mid ')' - 1`
6509 if test $ac_mid -le $ac_hi; then
6513 ac_mid
=`expr 2 '*' $ac_mid`
6515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.
$ac_ext >&5
6523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6526 # Binary search between lo and hi bounds.
6527 while test "x$ac_lo" != "x$ac_hi"; do
6528 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6529 cat >conftest.
$ac_ext <<_ACEOF
6532 cat confdefs.h
>>conftest.
$ac_ext
6533 cat >>conftest.
$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 $ac_includes_default
6539 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6546 rm -f conftest.
$ac_objext
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>conftest.er1
6550 grep -v '^ *+' conftest.er1
>conftest.err
6552 cat conftest.err
>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try
='test -z "$ac_c_werror_flag"
6556 || test ! -s conftest.err'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; } &&
6562 { ac_try
='test -s conftest.$ac_objext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.
$ac_ext >&5
6573 ac_lo
=`expr '(' $ac_mid ')' + 1`
6575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6578 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6579 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6580 See \`config.log' for more details." >&5
6581 echo "$as_me: error: cannot compute sizeof (int), 77
6582 See \`config.log' for more details." >&2;}
6583 { (exit 1); exit 1; }; } ;;
6586 if test "$cross_compiling" = yes; then
6587 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6588 See \`config.log' for more details." >&5
6589 echo "$as_me: error: cannot run test program while cross compiling
6590 See \`config.log' for more details." >&2;}
6591 { (exit 1); exit 1; }; }
6593 cat >conftest.
$ac_ext <<_ACEOF
6596 cat confdefs.h
>>conftest.
$ac_ext
6597 cat >>conftest.
$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 $ac_includes_default
6600 long longval () { return (long) (sizeof (int)); }
6601 unsigned long ulongval () { return (long) (sizeof (int)); }
6608 FILE *f = fopen ("conftest.val", "w");
6611 if (((long) (sizeof (int))) < 0)
6613 long i = longval ();
6614 if (i != ((long) (sizeof (int))))
6616 fprintf (f, "%ld\n", i);
6620 unsigned long i = ulongval ();
6621 if (i != ((long) (sizeof (int))))
6623 fprintf (f, "%lu\n", i);
6625 exit (ferror (f) || fclose (f) != 0);
6631 rm -f conftest
$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_sizeof_int
=`cat conftest.val`
6644 echo "$as_me: program exited with status $ac_status" >&5
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.
$ac_ext >&5
6649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6650 See \`config.log' for more details." >&5
6651 echo "$as_me: error: cannot compute sizeof (int), 77
6652 See \`config.log' for more details." >&2;}
6653 { (exit 1); exit 1; }; }
6655 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6663 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6664 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6665 cat >>confdefs.h
<<_ACEOF
6666 #define SIZEOF_INT $ac_cv_sizeof_int
6670 echo "$as_me:$LINENO: checking for long" >&5
6671 echo $ECHO_N "checking for long... $ECHO_C" >&6
6672 if test "${ac_cv_type_long+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 cat >conftest.
$ac_ext <<_ACEOF
6678 cat confdefs.h
>>conftest.
$ac_ext
6679 cat >>conftest.
$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6693 rm -f conftest.
$ac_objext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>conftest.er1
6697 grep -v '^ *+' conftest.er1
>conftest.err
6699 cat conftest.err
>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try
='test -z "$ac_c_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try
='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.
$ac_ext >&5
6722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6724 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6725 echo "${ECHO_T}$ac_cv_type_long" >&6
6727 echo "$as_me:$LINENO: checking size of long" >&5
6728 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6729 if test "${ac_cv_sizeof_long+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 if test "$ac_cv_type_long" = yes; then
6733 # The cast to unsigned long works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 if test "$cross_compiling" = yes; then
6738 # Depending upon the size, compute the lo and hi bounds.
6739 cat >conftest.
$ac_ext <<_ACEOF
6742 cat confdefs.h
>>conftest.
$ac_ext
6743 cat >>conftest.
$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6749 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6756 rm -f conftest.
$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try
='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try
='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6790 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6797 rm -f conftest.
$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6801 grep -v '^ *+' conftest.er1
>conftest.err
6803 cat conftest.err
>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try
='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try
='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_hi
=$ac_mid; break
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.
$ac_ext >&5
6824 ac_lo
=`expr $ac_mid + 1`
6825 if test $ac_lo -le $ac_mid; then
6829 ac_mid
=`expr 2 '*' $ac_mid + 1`
6831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.
$ac_ext >&5
6837 cat >conftest.
$ac_ext <<_ACEOF
6840 cat confdefs.h
>>conftest.
$ac_ext
6841 cat >>conftest.
$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6847 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6854 rm -f conftest.
$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6858 grep -v '^ *+' conftest.er1
>conftest.err
6860 cat conftest.err
>&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try
='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try
='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6878 cat >conftest.
$ac_ext <<_ACEOF
6881 cat confdefs.h
>>conftest.
$ac_ext
6882 cat >>conftest.
$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6888 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6895 rm -f conftest.
$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1
>conftest.err
6901 cat conftest.err
>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try
='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try
='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_lo
=$ac_mid; break
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6922 ac_hi
=`expr '(' $ac_mid ')' - 1`
6923 if test $ac_mid -le $ac_hi; then
6927 ac_mid
=`expr 2 '*' $ac_mid`
6929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.
$ac_ext >&5
6937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6940 # Binary search between lo and hi bounds.
6941 while test "x$ac_lo" != "x$ac_hi"; do
6942 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6943 cat >conftest.
$ac_ext <<_ACEOF
6946 cat confdefs.h
>>conftest.
$ac_ext
6947 cat >>conftest.
$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6953 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6960 rm -f conftest.
$ac_objext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>conftest.er1
6964 grep -v '^ *+' conftest.er1
>conftest.err
6966 cat conftest.err
>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try
='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try
='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.
$ac_ext >&5
6987 ac_lo
=`expr '(' $ac_mid ')' + 1`
6989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6992 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6993 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6994 See \`config.log' for more details." >&5
6995 echo "$as_me: error: cannot compute sizeof (long), 77
6996 See \`config.log' for more details." >&2;}
6997 { (exit 1); exit 1; }; } ;;
7000 if test "$cross_compiling" = yes; then
7001 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7002 See \`config.log' for more details." >&5
7003 echo "$as_me: error: cannot run test program while cross compiling
7004 See \`config.log' for more details." >&2;}
7005 { (exit 1); exit 1; }; }
7007 cat >conftest.
$ac_ext <<_ACEOF
7010 cat confdefs.h
>>conftest.
$ac_ext
7011 cat >>conftest.
$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 $ac_includes_default
7014 long longval () { return (long) (sizeof (long)); }
7015 unsigned long ulongval () { return (long) (sizeof (long)); }
7022 FILE *f = fopen ("conftest.val", "w");
7025 if (((long) (sizeof (long))) < 0)
7027 long i = longval ();
7028 if (i != ((long) (sizeof (long))))
7030 fprintf (f, "%ld\n", i);
7034 unsigned long i = ulongval ();
7035 if (i != ((long) (sizeof (long))))
7037 fprintf (f, "%lu\n", i);
7039 exit (ferror (f) || fclose (f) != 0);
7045 rm -f conftest
$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_sizeof_long
=`cat conftest.val`
7058 echo "$as_me: program exited with status $ac_status" >&5
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.
$ac_ext >&5
7063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7064 See \`config.log' for more details." >&5
7065 echo "$as_me: error: cannot compute sizeof (long), 77
7066 See \`config.log' for more details." >&2;}
7067 { (exit 1); exit 1; }; }
7069 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7078 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7079 cat >>confdefs.h
<<_ACEOF
7080 #define SIZEOF_LONG $ac_cv_sizeof_long
7084 echo "$as_me:$LINENO: checking for void *" >&5
7085 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7086 if test "${ac_cv_type_void_p+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 cat >conftest.
$ac_ext <<_ACEOF
7092 cat confdefs.h
>>conftest.
$ac_ext
7093 cat >>conftest.
$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7101 if (sizeof (void *))
7107 rm -f conftest.
$ac_objext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109 (eval $ac_compile) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1
>conftest.err
7113 cat conftest.err
>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try
='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try
='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_type_void_p
=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.
$ac_ext >&5
7134 ac_cv_type_void_p
=no
7136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7139 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7141 echo "$as_me:$LINENO: checking size of void *" >&5
7142 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7143 if test "${ac_cv_sizeof_void_p+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 if test "$ac_cv_type_void_p" = yes; then
7147 # The cast to unsigned long works around a bug in the HP C Compiler
7148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7150 # This bug is HP SR number 8606223364.
7151 if test "$cross_compiling" = yes; then
7152 # Depending upon the size, compute the lo and hi bounds.
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7163 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7170 rm -f conftest.
$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try
='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try
='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7211 rm -f conftest.
$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7215 grep -v '^ *+' conftest.er1
>conftest.err
7217 cat conftest.err
>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try
='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try
='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_hi
=$ac_mid; break
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.
$ac_ext >&5
7238 ac_lo
=`expr $ac_mid + 1`
7239 if test $ac_lo -le $ac_mid; then
7243 ac_mid
=`expr 2 '*' $ac_mid + 1`
7245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7251 cat >conftest.
$ac_ext <<_ACEOF
7254 cat confdefs.h
>>conftest.
$ac_ext
7255 cat >>conftest.
$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 $ac_includes_default
7261 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7268 rm -f conftest.
$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7272 grep -v '^ *+' conftest.er1
>conftest.err
7274 cat conftest.err
>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try
='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try
='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7292 cat >conftest.
$ac_ext <<_ACEOF
7295 cat confdefs.h
>>conftest.
$ac_ext
7296 cat >>conftest.
$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7302 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7309 rm -f conftest.
$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>conftest.er1
7313 grep -v '^ *+' conftest.er1
>conftest.err
7315 cat conftest.err
>&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try
='test -z "$ac_c_werror_flag"
7319 || test ! -s conftest.err'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; } &&
7325 { ac_try
='test -s conftest.$ac_objext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 ac_lo
=$ac_mid; break
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.
$ac_ext >&5
7336 ac_hi
=`expr '(' $ac_mid ')' - 1`
7337 if test $ac_mid -le $ac_hi; then
7341 ac_mid
=`expr 2 '*' $ac_mid`
7343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.
$ac_ext >&5
7351 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7354 # Binary search between lo and hi bounds.
7355 while test "x$ac_lo" != "x$ac_hi"; do
7356 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7357 cat >conftest.
$ac_ext <<_ACEOF
7360 cat confdefs.h
>>conftest.
$ac_ext
7361 cat >>conftest.
$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7367 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7374 rm -f conftest.
$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7378 grep -v '^ *+' conftest.er1
>conftest.err
7380 cat conftest.err
>&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try
='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try
='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.
$ac_ext >&5
7401 ac_lo
=`expr '(' $ac_mid ')' + 1`
7403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7406 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7408 See \`config.log' for more details." >&5
7409 echo "$as_me: error: cannot compute sizeof (void *), 77
7410 See \`config.log' for more details." >&2;}
7411 { (exit 1); exit 1; }; } ;;
7414 if test "$cross_compiling" = yes; then
7415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7416 See \`config.log' for more details." >&5
7417 echo "$as_me: error: cannot run test program while cross compiling
7418 See \`config.log' for more details." >&2;}
7419 { (exit 1); exit 1; }; }
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 long longval () { return (long) (sizeof (void *)); }
7429 unsigned long ulongval () { return (long) (sizeof (void *)); }
7436 FILE *f = fopen ("conftest.val", "w");
7439 if (((long) (sizeof (void *))) < 0)
7441 long i = longval ();
7442 if (i != ((long) (sizeof (void *))))
7444 fprintf (f, "%ld\n", i);
7448 unsigned long i = ulongval ();
7449 if (i != ((long) (sizeof (void *))))
7451 fprintf (f, "%lu\n", i);
7453 exit (ferror (f) || fclose (f) != 0);
7459 rm -f conftest
$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_sizeof_void_p
=`cat conftest.val`
7472 echo "$as_me: program exited with status $ac_status" >&5
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.
$ac_ext >&5
7477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7478 See \`config.log' for more details." >&5
7479 echo "$as_me: error: cannot compute sizeof (void *), 77
7480 See \`config.log' for more details." >&2;}
7481 { (exit 1); exit 1; }; }
7483 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7488 ac_cv_sizeof_void_p
=0
7491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7492 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7493 cat >>confdefs.h
<<_ACEOF
7494 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7498 echo "$as_me:$LINENO: checking for short" >&5
7499 echo $ECHO_N "checking for short... $ECHO_C" >&6
7500 if test "${ac_cv_type_short+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 cat >conftest.
$ac_ext <<_ACEOF
7506 cat confdefs.h
>>conftest.
$ac_ext
7507 cat >>conftest.
$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7521 rm -f conftest.
$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7525 grep -v '^ *+' conftest.er1
>conftest.err
7527 cat conftest.err
>&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try
='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try
='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_type_short
=yes
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.
$ac_ext >&5
7550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7553 echo "${ECHO_T}$ac_cv_type_short" >&6
7555 echo "$as_me:$LINENO: checking size of short" >&5
7556 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7557 if test "${ac_cv_sizeof_short+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 if test "$ac_cv_type_short" = yes; then
7561 # The cast to unsigned long works around a bug in the HP C Compiler
7562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7564 # This bug is HP SR number 8606223364.
7565 if test "$cross_compiling" = yes; then
7566 # Depending upon the size, compute the lo and hi bounds.
7567 cat >conftest.
$ac_ext <<_ACEOF
7570 cat confdefs.h
>>conftest.
$ac_ext
7571 cat >>conftest.
$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 $ac_includes_default
7577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7584 rm -f conftest.
$ac_objext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>conftest.er1
7588 grep -v '^ *+' conftest.er1
>conftest.err
7590 cat conftest.err
>&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try
='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try
='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7608 cat >conftest.
$ac_ext <<_ACEOF
7611 cat confdefs.h
>>conftest.
$ac_ext
7612 cat >>conftest.
$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7618 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7625 rm -f conftest.
$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7629 grep -v '^ *+' conftest.er1
>conftest.err
7631 cat conftest.err
>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try
='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try
='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_hi
=$ac_mid; break
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.
$ac_ext >&5
7652 ac_lo
=`expr $ac_mid + 1`
7653 if test $ac_lo -le $ac_mid; then
7657 ac_mid
=`expr 2 '*' $ac_mid + 1`
7659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.
$ac_ext >&5
7665 cat >conftest.
$ac_ext <<_ACEOF
7668 cat confdefs.h
>>conftest.
$ac_ext
7669 cat >>conftest.
$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7675 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7682 rm -f conftest.
$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>conftest.er1
7686 grep -v '^ *+' conftest.er1
>conftest.err
7688 cat conftest.err
>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try
='test -z "$ac_c_werror_flag"
7692 || test ! -s conftest.err'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; } &&
7698 { ac_try
='test -s conftest.$ac_objext'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7706 cat >conftest.
$ac_ext <<_ACEOF
7709 cat confdefs.h
>>conftest.
$ac_ext
7710 cat >>conftest.
$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7716 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7723 rm -f conftest.
$ac_objext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>conftest.er1
7727 grep -v '^ *+' conftest.er1
>conftest.err
7729 cat conftest.err
>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try
='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try
='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_lo
=$ac_mid; break
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.
$ac_ext >&5
7750 ac_hi
=`expr '(' $ac_mid ')' - 1`
7751 if test $ac_mid -le $ac_hi; then
7755 ac_mid
=`expr 2 '*' $ac_mid`
7757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.
$ac_ext >&5
7765 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7768 # Binary search between lo and hi bounds.
7769 while test "x$ac_lo" != "x$ac_hi"; do
7770 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7771 cat >conftest.
$ac_ext <<_ACEOF
7774 cat confdefs.h
>>conftest.
$ac_ext
7775 cat >>conftest.
$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 $ac_includes_default
7781 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7788 rm -f conftest.
$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7792 grep -v '^ *+' conftest.er1
>conftest.err
7794 cat conftest.err
>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try
='test -z "$ac_c_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try
='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.
$ac_ext >&5
7815 ac_lo
=`expr '(' $ac_mid ')' + 1`
7817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7820 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7822 See \`config.log' for more details." >&5
7823 echo "$as_me: error: cannot compute sizeof (short), 77
7824 See \`config.log' for more details." >&2;}
7825 { (exit 1); exit 1; }; } ;;
7828 if test "$cross_compiling" = yes; then
7829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7830 See \`config.log' for more details." >&5
7831 echo "$as_me: error: cannot run test program while cross compiling
7832 See \`config.log' for more details." >&2;}
7833 { (exit 1); exit 1; }; }
7835 cat >conftest.
$ac_ext <<_ACEOF
7838 cat confdefs.h
>>conftest.
$ac_ext
7839 cat >>conftest.
$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 long longval () { return (long) (sizeof (short)); }
7843 unsigned long ulongval () { return (long) (sizeof (short)); }
7850 FILE *f = fopen ("conftest.val", "w");
7853 if (((long) (sizeof (short))) < 0)
7855 long i = longval ();
7856 if (i != ((long) (sizeof (short))))
7858 fprintf (f, "%ld\n", i);
7862 unsigned long i = ulongval ();
7863 if (i != ((long) (sizeof (short))))
7865 fprintf (f, "%lu\n", i);
7867 exit (ferror (f) || fclose (f) != 0);
7873 rm -f conftest
$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_sizeof_short
=`cat conftest.val`
7886 echo "$as_me: program exited with status $ac_status" >&5
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.
$ac_ext >&5
7891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7892 See \`config.log' for more details." >&5
7893 echo "$as_me: error: cannot compute sizeof (short), 77
7894 See \`config.log' for more details." >&2;}
7895 { (exit 1); exit 1; }; }
7897 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7902 ac_cv_sizeof_short
=0
7905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7906 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7907 cat >>confdefs.h
<<_ACEOF
7908 #define SIZEOF_SHORT $ac_cv_sizeof_short
7912 echo "$as_me:$LINENO: checking for float" >&5
7913 echo $ECHO_N "checking for float... $ECHO_C" >&6
7914 if test "${ac_cv_type_float+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 cat >conftest.
$ac_ext <<_ACEOF
7920 cat confdefs.h
>>conftest.
$ac_ext
7921 cat >>conftest.
$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 $ac_includes_default
7935 rm -f conftest.
$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7939 grep -v '^ *+' conftest.er1
>conftest.err
7941 cat conftest.err
>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try
='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try
='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_type_float
=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.
$ac_ext >&5
7964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7966 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7967 echo "${ECHO_T}$ac_cv_type_float" >&6
7969 echo "$as_me:$LINENO: checking size of float" >&5
7970 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7971 if test "${ac_cv_sizeof_float+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 if test "$ac_cv_type_float" = yes; then
7975 # The cast to unsigned long works around a bug in the HP C Compiler
7976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7978 # This bug is HP SR number 8606223364.
7979 if test "$cross_compiling" = yes; then
7980 # Depending upon the size, compute the lo and hi bounds.
7981 cat >conftest.
$ac_ext <<_ACEOF
7984 cat confdefs.h
>>conftest.
$ac_ext
7985 cat >>conftest.
$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7991 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7998 rm -f conftest.
$ac_objext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>conftest.er1
8002 grep -v '^ *+' conftest.er1
>conftest.err
8004 cat conftest.err
>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try
='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try
='test -s conftest.$ac_objext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8022 cat >conftest.
$ac_ext <<_ACEOF
8025 cat confdefs.h
>>conftest.
$ac_ext
8026 cat >>conftest.
$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8032 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8039 rm -f conftest.
$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>conftest.er1
8043 grep -v '^ *+' conftest.er1
>conftest.err
8045 cat conftest.err
>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try
='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try
='test -s conftest.$ac_objext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_hi
=$ac_mid; break
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.
$ac_ext >&5
8066 ac_lo
=`expr $ac_mid + 1`
8067 if test $ac_lo -le $ac_mid; then
8071 ac_mid
=`expr 2 '*' $ac_mid + 1`
8073 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.
$ac_ext >&5
8079 cat >conftest.
$ac_ext <<_ACEOF
8082 cat confdefs.h
>>conftest.
$ac_ext
8083 cat >>conftest.
$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8089 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8096 rm -f conftest.
$ac_objext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098 (eval $ac_compile) 2>conftest.er1
8100 grep -v '^ *+' conftest.er1
>conftest.err
8102 cat conftest.err
>&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } &&
8105 { ac_try
='test -z "$ac_c_werror_flag"
8106 || test ! -s conftest.err'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try
='test -s conftest.$ac_objext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8120 cat >conftest.
$ac_ext <<_ACEOF
8123 cat confdefs.h
>>conftest.
$ac_ext
8124 cat >>conftest.
$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8130 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8137 rm -f conftest.
$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8141 grep -v '^ *+' conftest.er1
>conftest.err
8143 cat conftest.err
>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try
='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try
='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_lo
=$ac_mid; break
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.
$ac_ext >&5
8164 ac_hi
=`expr '(' $ac_mid ')' - 1`
8165 if test $ac_mid -le $ac_hi; then
8169 ac_mid
=`expr 2 '*' $ac_mid`
8171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.
$ac_ext >&5
8179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8182 # Binary search between lo and hi bounds.
8183 while test "x$ac_lo" != "x$ac_hi"; do
8184 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8185 cat >conftest.
$ac_ext <<_ACEOF
8188 cat confdefs.h
>>conftest.
$ac_ext
8189 cat >>conftest.
$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8195 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8202 rm -f conftest.
$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>conftest.er1
8206 grep -v '^ *+' conftest.er1
>conftest.err
8208 cat conftest.err
>&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try
='test -z "$ac_c_werror_flag"
8212 || test ! -s conftest.err'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try
='test -s conftest.$ac_objext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.
$ac_ext >&5
8229 ac_lo
=`expr '(' $ac_mid ')' + 1`
8231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8234 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8235 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8236 See \`config.log' for more details." >&5
8237 echo "$as_me: error: cannot compute sizeof (float), 77
8238 See \`config.log' for more details." >&2;}
8239 { (exit 1); exit 1; }; } ;;
8242 if test "$cross_compiling" = yes; then
8243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8244 See \`config.log' for more details." >&5
8245 echo "$as_me: error: cannot run test program while cross compiling
8246 See \`config.log' for more details." >&2;}
8247 { (exit 1); exit 1; }; }
8249 cat >conftest.
$ac_ext <<_ACEOF
8252 cat confdefs.h
>>conftest.
$ac_ext
8253 cat >>conftest.
$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 long longval () { return (long) (sizeof (float)); }
8257 unsigned long ulongval () { return (long) (sizeof (float)); }
8264 FILE *f = fopen ("conftest.val", "w");
8267 if (((long) (sizeof (float))) < 0)
8269 long i = longval ();
8270 if (i != ((long) (sizeof (float))))
8272 fprintf (f, "%ld\n", i);
8276 unsigned long i = ulongval ();
8277 if (i != ((long) (sizeof (float))))
8279 fprintf (f, "%lu\n", i);
8281 exit (ferror (f) || fclose (f) != 0);
8287 rm -f conftest
$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_cv_sizeof_float
=`cat conftest.val`
8300 echo "$as_me: program exited with status $ac_status" >&5
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.
$ac_ext >&5
8305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8306 See \`config.log' for more details." >&5
8307 echo "$as_me: error: cannot compute sizeof (float), 77
8308 See \`config.log' for more details." >&2;}
8309 { (exit 1); exit 1; }; }
8311 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8316 ac_cv_sizeof_float
=0
8319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8320 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8321 cat >>confdefs.h
<<_ACEOF
8322 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8326 echo "$as_me:$LINENO: checking for double" >&5
8327 echo $ECHO_N "checking for double... $ECHO_C" >&6
8328 if test "${ac_cv_type_double+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 cat >conftest.
$ac_ext <<_ACEOF
8334 cat confdefs.h
>>conftest.
$ac_ext
8335 cat >>conftest.
$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8343 if (sizeof (double))
8349 rm -f conftest.
$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>conftest.er1
8353 grep -v '^ *+' conftest.er1
>conftest.err
8355 cat conftest.err
>&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try
='test -z "$ac_c_werror_flag"
8359 || test ! -s conftest.err'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try
='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_type_double
=yes
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.
$ac_ext >&5
8376 ac_cv_type_double
=no
8378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8381 echo "${ECHO_T}$ac_cv_type_double" >&6
8383 echo "$as_me:$LINENO: checking size of double" >&5
8384 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8385 if test "${ac_cv_sizeof_double+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 if test "$ac_cv_type_double" = yes; then
8389 # The cast to unsigned long works around a bug in the HP C Compiler
8390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8392 # This bug is HP SR number 8606223364.
8393 if test "$cross_compiling" = yes; then
8394 # Depending upon the size, compute the lo and hi bounds.
8395 cat >conftest.
$ac_ext <<_ACEOF
8398 cat confdefs.h
>>conftest.
$ac_ext
8399 cat >>conftest.
$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8405 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8412 rm -f conftest.
$ac_objext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>conftest.er1
8416 grep -v '^ *+' conftest.er1
>conftest.err
8418 cat conftest.err
>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try
='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try
='test -s conftest.$ac_objext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8436 cat >conftest.
$ac_ext <<_ACEOF
8439 cat confdefs.h
>>conftest.
$ac_ext
8440 cat >>conftest.
$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8446 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8453 rm -f conftest.
$ac_objext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455 (eval $ac_compile) 2>conftest.er1
8457 grep -v '^ *+' conftest.er1
>conftest.err
8459 cat conftest.err
>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try
='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try
='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_hi
=$ac_mid; break
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.
$ac_ext >&5
8480 ac_lo
=`expr $ac_mid + 1`
8481 if test $ac_lo -le $ac_mid; then
8485 ac_mid
=`expr 2 '*' $ac_mid + 1`
8487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.
$ac_ext >&5
8493 cat >conftest.
$ac_ext <<_ACEOF
8496 cat confdefs.h
>>conftest.
$ac_ext
8497 cat >>conftest.
$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8503 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8510 rm -f conftest.
$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>conftest.er1
8514 grep -v '^ *+' conftest.er1
>conftest.err
8516 cat conftest.err
>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try
='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try
='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8534 cat >conftest.
$ac_ext <<_ACEOF
8537 cat confdefs.h
>>conftest.
$ac_ext
8538 cat >>conftest.
$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8544 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8551 rm -f conftest.
$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8555 grep -v '^ *+' conftest.er1
>conftest.err
8557 cat conftest.err
>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try
='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try
='test -s conftest.$ac_objext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_lo
=$ac_mid; break
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.
$ac_ext >&5
8578 ac_hi
=`expr '(' $ac_mid ')' - 1`
8579 if test $ac_mid -le $ac_hi; then
8583 ac_mid
=`expr 2 '*' $ac_mid`
8585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.
$ac_ext >&5
8593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 # Binary search between lo and hi bounds.
8597 while test "x$ac_lo" != "x$ac_hi"; do
8598 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8599 cat >conftest.
$ac_ext <<_ACEOF
8602 cat confdefs.h
>>conftest.
$ac_ext
8603 cat >>conftest.
$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8609 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8616 rm -f conftest.
$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>conftest.er1
8620 grep -v '^ *+' conftest.er1
>conftest.err
8622 cat conftest.err
>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try
='test -z "$ac_c_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try
='test -s conftest.$ac_objext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.
$ac_ext >&5
8643 ac_lo
=`expr '(' $ac_mid ')' + 1`
8645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8648 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8649 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8650 See \`config.log' for more details." >&5
8651 echo "$as_me: error: cannot compute sizeof (double), 77
8652 See \`config.log' for more details." >&2;}
8653 { (exit 1); exit 1; }; } ;;
8656 if test "$cross_compiling" = yes; then
8657 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8658 See \`config.log' for more details." >&5
8659 echo "$as_me: error: cannot run test program while cross compiling
8660 See \`config.log' for more details." >&2;}
8661 { (exit 1); exit 1; }; }
8663 cat >conftest.
$ac_ext <<_ACEOF
8666 cat confdefs.h
>>conftest.
$ac_ext
8667 cat >>conftest.
$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 long longval () { return (long) (sizeof (double)); }
8671 unsigned long ulongval () { return (long) (sizeof (double)); }
8678 FILE *f = fopen ("conftest.val", "w");
8681 if (((long) (sizeof (double))) < 0)
8683 long i = longval ();
8684 if (i != ((long) (sizeof (double))))
8686 fprintf (f, "%ld\n", i);
8690 unsigned long i = ulongval ();
8691 if (i != ((long) (sizeof (double))))
8693 fprintf (f, "%lu\n", i);
8695 exit (ferror (f) || fclose (f) != 0);
8701 rm -f conftest
$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_sizeof_double
=`cat conftest.val`
8714 echo "$as_me: program exited with status $ac_status" >&5
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.
$ac_ext >&5
8719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8720 See \`config.log' for more details." >&5
8721 echo "$as_me: error: cannot compute sizeof (double), 77
8722 See \`config.log' for more details." >&2;}
8723 { (exit 1); exit 1; }; }
8725 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8730 ac_cv_sizeof_double
=0
8733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8734 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8735 cat >>confdefs.h
<<_ACEOF
8736 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8740 echo "$as_me:$LINENO: checking for fpos_t" >&5
8741 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8742 if test "${ac_cv_type_fpos_t+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.
$ac_ext <<_ACEOF
8748 cat confdefs.h
>>conftest.
$ac_ext
8749 cat >>conftest.
$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8757 if (sizeof (fpos_t))
8763 rm -f conftest.
$ac_objext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765 (eval $ac_compile) 2>conftest.er1
8767 grep -v '^ *+' conftest.er1
>conftest.err
8769 cat conftest.err
>&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try
='test -z "$ac_c_werror_flag"
8773 || test ! -s conftest.err'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; } &&
8779 { ac_try
='test -s conftest.$ac_objext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 ac_cv_type_fpos_t
=yes
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.
$ac_ext >&5
8790 ac_cv_type_fpos_t
=no
8792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8795 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8797 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8798 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8799 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 if test "$ac_cv_type_fpos_t" = yes; then
8803 # The cast to unsigned long works around a bug in the HP C Compiler
8804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8806 # This bug is HP SR number 8606223364.
8807 if test "$cross_compiling" = yes; then
8808 # Depending upon the size, compute the lo and hi bounds.
8809 cat >conftest.
$ac_ext <<_ACEOF
8812 cat confdefs.h
>>conftest.
$ac_ext
8813 cat >>conftest.
$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 $ac_includes_default
8819 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8826 rm -f conftest.
$ac_objext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8828 (eval $ac_compile) 2>conftest.er1
8830 grep -v '^ *+' conftest.er1
>conftest.err
8832 cat conftest.err
>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try
='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try
='test -s conftest.$ac_objext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8850 cat >conftest.
$ac_ext <<_ACEOF
8853 cat confdefs.h
>>conftest.
$ac_ext
8854 cat >>conftest.
$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 $ac_includes_default
8860 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8867 rm -f conftest.
$ac_objext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869 (eval $ac_compile) 2>conftest.er1
8871 grep -v '^ *+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try
='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try
='test -s conftest.$ac_objext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_hi
=$ac_mid; break
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.
$ac_ext >&5
8894 ac_lo
=`expr $ac_mid + 1`
8895 if test $ac_lo -le $ac_mid; then
8899 ac_mid
=`expr 2 '*' $ac_mid + 1`
8901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.
$ac_ext >&5
8907 cat >conftest.
$ac_ext <<_ACEOF
8910 cat confdefs.h
>>conftest.
$ac_ext
8911 cat >>conftest.
$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8917 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8924 rm -f conftest.
$ac_objext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>conftest.er1
8928 grep -v '^ *+' conftest.er1
>conftest.err
8930 cat conftest.err
>&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try
='test -z "$ac_c_werror_flag"
8934 || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try
='test -s conftest.$ac_objext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8948 cat >conftest.
$ac_ext <<_ACEOF
8951 cat confdefs.h
>>conftest.
$ac_ext
8952 cat >>conftest.
$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 $ac_includes_default
8958 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8965 rm -f conftest.
$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>conftest.er1
8969 grep -v '^ *+' conftest.er1
>conftest.err
8971 cat conftest.err
>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try
='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try
='test -s conftest.$ac_objext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_lo
=$ac_mid; break
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.
$ac_ext >&5
8992 ac_hi
=`expr '(' $ac_mid ')' - 1`
8993 if test $ac_mid -le $ac_hi; then
8997 ac_mid
=`expr 2 '*' $ac_mid`
8999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.
$ac_ext >&5
9007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9010 # Binary search between lo and hi bounds.
9011 while test "x$ac_lo" != "x$ac_hi"; do
9012 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9013 cat >conftest.
$ac_ext <<_ACEOF
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9023 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9030 rm -f conftest.
$ac_objext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>conftest.er1
9034 grep -v '^ *+' conftest.er1
>conftest.err
9036 cat conftest.err
>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try
='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try
='test -s conftest.$ac_objext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.
$ac_ext >&5
9057 ac_lo
=`expr '(' $ac_mid ')' + 1`
9059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9062 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9064 See \`config.log' for more details." >&5
9065 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9066 See \`config.log' for more details." >&2;}
9067 { (exit 1); exit 1; }; } ;;
9070 if test "$cross_compiling" = yes; then
9071 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9072 See \`config.log' for more details." >&5
9073 echo "$as_me: error: cannot run test program while cross compiling
9074 See \`config.log' for more details." >&2;}
9075 { (exit 1); exit 1; }; }
9077 cat >conftest.
$ac_ext <<_ACEOF
9080 cat confdefs.h
>>conftest.
$ac_ext
9081 cat >>conftest.
$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 $ac_includes_default
9084 long longval () { return (long) (sizeof (fpos_t)); }
9085 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9092 FILE *f = fopen ("conftest.val", "w");
9095 if (((long) (sizeof (fpos_t))) < 0)
9097 long i = longval ();
9098 if (i != ((long) (sizeof (fpos_t))))
9100 fprintf (f, "%ld\n", i);
9104 unsigned long i = ulongval ();
9105 if (i != ((long) (sizeof (fpos_t))))
9107 fprintf (f, "%lu\n", i);
9109 exit (ferror (f) || fclose (f) != 0);
9115 rm -f conftest
$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9128 echo "$as_me: program exited with status $ac_status" >&5
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.
$ac_ext >&5
9133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9134 See \`config.log' for more details." >&5
9135 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9136 See \`config.log' for more details." >&2;}
9137 { (exit 1); exit 1; }; }
9139 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9144 ac_cv_sizeof_fpos_t
=0
9147 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9148 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9149 cat >>confdefs.h
<<_ACEOF
9150 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9154 echo "$as_me:$LINENO: checking for size_t" >&5
9155 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9156 if test "${ac_cv_type_size_t+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 cat >conftest.
$ac_ext <<_ACEOF
9162 cat confdefs.h
>>conftest.
$ac_ext
9163 cat >>conftest.
$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9171 if (sizeof (size_t))
9177 rm -f conftest.
$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1
>conftest.err
9183 cat conftest.err
>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try
='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try
='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_type_size_t
=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.
$ac_ext >&5
9204 ac_cv_type_size_t
=no
9206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9209 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9211 echo "$as_me:$LINENO: checking size of size_t" >&5
9212 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9213 if test "${ac_cv_sizeof_size_t+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 if test "$ac_cv_type_size_t" = yes; then
9217 # The cast to unsigned long works around a bug in the HP C Compiler
9218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9220 # This bug is HP SR number 8606223364.
9221 if test "$cross_compiling" = yes; then
9222 # Depending upon the size, compute the lo and hi bounds.
9223 cat >conftest.
$ac_ext <<_ACEOF
9226 cat confdefs.h
>>conftest.
$ac_ext
9227 cat >>conftest.
$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9233 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9240 rm -f conftest.
$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9244 grep -v '^ *+' conftest.er1
>conftest.err
9246 cat conftest.err
>&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try
='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try
='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9264 cat >conftest.
$ac_ext <<_ACEOF
9267 cat confdefs.h
>>conftest.
$ac_ext
9268 cat >>conftest.
$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9274 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9281 rm -f conftest.
$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283 (eval $ac_compile) 2>conftest.er1
9285 grep -v '^ *+' conftest.er1
>conftest.err
9287 cat conftest.err
>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try
='test -z "$ac_c_werror_flag"
9291 || test ! -s conftest.err'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; } &&
9297 { ac_try
='test -s conftest.$ac_objext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_hi
=$ac_mid; break
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.
$ac_ext >&5
9308 ac_lo
=`expr $ac_mid + 1`
9309 if test $ac_lo -le $ac_mid; then
9313 ac_mid
=`expr 2 '*' $ac_mid + 1`
9315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.
$ac_ext >&5
9321 cat >conftest.
$ac_ext <<_ACEOF
9324 cat confdefs.h
>>conftest.
$ac_ext
9325 cat >>conftest.
$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 $ac_includes_default
9331 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9338 rm -f conftest.
$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9342 grep -v '^ *+' conftest.er1
>conftest.err
9344 cat conftest.err
>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try
='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try
='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9362 cat >conftest.
$ac_ext <<_ACEOF
9365 cat confdefs.h
>>conftest.
$ac_ext
9366 cat >>conftest.
$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9372 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9379 rm -f conftest.
$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>conftest.er1
9383 grep -v '^ *+' conftest.er1
>conftest.err
9385 cat conftest.err
>&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try
='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try
='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_lo
=$ac_mid; break
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.
$ac_ext >&5
9406 ac_hi
=`expr '(' $ac_mid ')' - 1`
9407 if test $ac_mid -le $ac_hi; then
9411 ac_mid
=`expr 2 '*' $ac_mid`
9413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9424 # Binary search between lo and hi bounds.
9425 while test "x$ac_lo" != "x$ac_hi"; do
9426 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9427 cat >conftest.
$ac_ext <<_ACEOF
9430 cat confdefs.h
>>conftest.
$ac_ext
9431 cat >>conftest.
$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9437 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9444 rm -f conftest.
$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>conftest.er1
9448 grep -v '^ *+' conftest.er1
>conftest.err
9450 cat conftest.err
>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try
='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try
='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.
$ac_ext >&5
9471 ac_lo
=`expr '(' $ac_mid ')' + 1`
9473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9476 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9478 See \`config.log' for more details." >&5
9479 echo "$as_me: error: cannot compute sizeof (size_t), 77
9480 See \`config.log' for more details." >&2;}
9481 { (exit 1); exit 1; }; } ;;
9484 if test "$cross_compiling" = yes; then
9485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9486 See \`config.log' for more details." >&5
9487 echo "$as_me: error: cannot run test program while cross compiling
9488 See \`config.log' for more details." >&2;}
9489 { (exit 1); exit 1; }; }
9491 cat >conftest.
$ac_ext <<_ACEOF
9494 cat confdefs.h
>>conftest.
$ac_ext
9495 cat >>conftest.
$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 $ac_includes_default
9498 long longval () { return (long) (sizeof (size_t)); }
9499 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9506 FILE *f = fopen ("conftest.val", "w");
9509 if (((long) (sizeof (size_t))) < 0)
9511 long i = longval ();
9512 if (i != ((long) (sizeof (size_t))))
9514 fprintf (f, "%ld\n", i);
9518 unsigned long i = ulongval ();
9519 if (i != ((long) (sizeof (size_t))))
9521 fprintf (f, "%lu\n", i);
9523 exit (ferror (f) || fclose (f) != 0);
9529 rm -f conftest
$ac_exeext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 ac_cv_sizeof_size_t
=`cat conftest.val`
9542 echo "$as_me: program exited with status $ac_status" >&5
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.
$ac_ext >&5
9547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9548 See \`config.log' for more details." >&5
9549 echo "$as_me: error: cannot compute sizeof (size_t), 77
9550 See \`config.log' for more details." >&2;}
9551 { (exit 1); exit 1; }; }
9553 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9558 ac_cv_sizeof_size_t
=0
9561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9562 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9563 cat >>confdefs.h
<<_ACEOF
9564 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9569 echo "$as_me:$LINENO: checking for long long support" >&5
9570 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9572 cat >conftest.
$ac_ext <<_ACEOF
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9582 long long x; x = (long long)0;
9587 rm -f conftest.
$ac_objext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9589 (eval $ac_compile) 2>conftest.er1
9591 grep -v '^ *+' conftest.er1
>conftest.err
9593 cat conftest.err
>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try
='test -z "$ac_c_werror_flag"
9597 || test ! -s conftest.err'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try
='test -s conftest.$ac_objext'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9611 cat >>confdefs.h
<<\_ACEOF
9612 #define HAVE_LONG_LONG 1
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.
$ac_ext >&5
9622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9623 echo "$as_me:$LINENO: result: $have_long_long" >&5
9624 echo "${ECHO_T}$have_long_long" >&6
9625 if test "$have_long_long" = yes ; then
9626 echo "$as_me:$LINENO: checking for long long" >&5
9627 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9628 if test "${ac_cv_type_long_long+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 cat >conftest.
$ac_ext <<_ACEOF
9634 cat confdefs.h
>>conftest.
$ac_ext
9635 cat >>conftest.
$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 $ac_includes_default
9641 if ((long long *) 0)
9643 if (sizeof (long long))
9649 rm -f conftest.
$ac_objext
9650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651 (eval $ac_compile) 2>conftest.er1
9653 grep -v '^ *+' conftest.er1
>conftest.err
9655 cat conftest.err
>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try
='test -z "$ac_c_werror_flag"
9659 || test ! -s conftest.err'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try
='test -s conftest.$ac_objext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_type_long_long
=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.
$ac_ext >&5
9676 ac_cv_type_long_long
=no
9678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9683 echo "$as_me:$LINENO: checking size of long long" >&5
9684 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9685 if test "${ac_cv_sizeof_long_long+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 if test "$ac_cv_type_long_long" = yes; then
9689 # The cast to unsigned long works around a bug in the HP C Compiler
9690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9692 # This bug is HP SR number 8606223364.
9693 if test "$cross_compiling" = yes; then
9694 # Depending upon the size, compute the lo and hi bounds.
9695 cat >conftest.
$ac_ext <<_ACEOF
9698 cat confdefs.h
>>conftest.
$ac_ext
9699 cat >>conftest.
$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9712 rm -f conftest.
$ac_objext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9714 (eval $ac_compile) 2>conftest.er1
9716 grep -v '^ *+' conftest.er1
>conftest.err
9718 cat conftest.err
>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try
='test -z "$ac_c_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try
='test -s conftest.$ac_objext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9736 cat >conftest.
$ac_ext <<_ACEOF
9739 cat confdefs.h
>>conftest.
$ac_ext
9740 cat >>conftest.
$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9746 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9753 rm -f conftest.
$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>conftest.er1
9757 grep -v '^ *+' conftest.er1
>conftest.err
9759 cat conftest.err
>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try
='test -z "$ac_c_werror_flag"
9763 || test ! -s conftest.err'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try
='test -s conftest.$ac_objext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_hi
=$ac_mid; break
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.
$ac_ext >&5
9780 ac_lo
=`expr $ac_mid + 1`
9781 if test $ac_lo -le $ac_mid; then
9785 ac_mid
=`expr 2 '*' $ac_mid + 1`
9787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.
$ac_ext >&5
9793 cat >conftest.
$ac_ext <<_ACEOF
9796 cat confdefs.h
>>conftest.
$ac_ext
9797 cat >>conftest.
$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 $ac_includes_default
9803 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9810 rm -f conftest.
$ac_objext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812 (eval $ac_compile) 2>conftest.er1
9814 grep -v '^ *+' conftest.er1
>conftest.err
9816 cat conftest.err
>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try
='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try
='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9834 cat >conftest.
$ac_ext <<_ACEOF
9837 cat confdefs.h
>>conftest.
$ac_ext
9838 cat >>conftest.
$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9844 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9851 rm -f conftest.
$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1
>conftest.err
9857 cat conftest.err
>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try
='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try
='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_lo
=$ac_mid; break
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.
$ac_ext >&5
9878 ac_hi
=`expr '(' $ac_mid ')' - 1`
9879 if test $ac_mid -le $ac_hi; then
9883 ac_mid
=`expr 2 '*' $ac_mid`
9885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.
$ac_ext >&5
9893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9896 # Binary search between lo and hi bounds.
9897 while test "x$ac_lo" != "x$ac_hi"; do
9898 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9899 cat >conftest.
$ac_ext <<_ACEOF
9902 cat confdefs.h
>>conftest.
$ac_ext
9903 cat >>conftest.
$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 $ac_includes_default
9909 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9916 rm -f conftest.
$ac_objext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918 (eval $ac_compile) 2>conftest.er1
9920 grep -v '^ *+' conftest.er1
>conftest.err
9922 cat conftest.err
>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try
='test -z "$ac_c_werror_flag"
9926 || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try
='test -s conftest.$ac_objext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.
$ac_ext >&5
9943 ac_lo
=`expr '(' $ac_mid ')' + 1`
9945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9948 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9950 See \`config.log' for more details." >&5
9951 echo "$as_me: error: cannot compute sizeof (long long), 77
9952 See \`config.log' for more details." >&2;}
9953 { (exit 1); exit 1; }; } ;;
9956 if test "$cross_compiling" = yes; then
9957 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9958 See \`config.log' for more details." >&5
9959 echo "$as_me: error: cannot run test program while cross compiling
9960 See \`config.log' for more details." >&2;}
9961 { (exit 1); exit 1; }; }
9963 cat >conftest.
$ac_ext <<_ACEOF
9966 cat confdefs.h
>>conftest.
$ac_ext
9967 cat >>conftest.
$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 long longval () { return (long) (sizeof (long long)); }
9971 unsigned long ulongval () { return (long) (sizeof (long long)); }
9978 FILE *f = fopen ("conftest.val", "w");
9981 if (((long) (sizeof (long long))) < 0)
9983 long i = longval ();
9984 if (i != ((long) (sizeof (long long))))
9986 fprintf (f, "%ld\n", i);
9990 unsigned long i = ulongval ();
9991 if (i != ((long) (sizeof (long long))))
9993 fprintf (f, "%lu\n", i);
9995 exit (ferror (f) || fclose (f) != 0);
10001 rm -f conftest
$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_sizeof_long_long
=`cat conftest.val`
10014 echo "$as_me: program exited with status $ac_status" >&5
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.
$ac_ext >&5
10018 ( exit $ac_status )
10019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10020 See \`config.log' for more details." >&5
10021 echo "$as_me: error: cannot compute sizeof (long long), 77
10022 See \`config.log' for more details." >&2;}
10023 { (exit 1); exit 1; }; }
10025 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10030 ac_cv_sizeof_long_long
=0
10033 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10034 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10035 cat >>confdefs.h
<<_ACEOF
10036 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10042 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10043 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10045 cat >conftest.
$ac_ext <<_ACEOF
10048 cat confdefs.h
>>conftest.
$ac_ext
10049 cat >>conftest.
$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10055 uintptr_t x; x = (uintptr_t)0;
10060 rm -f conftest.
$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062 (eval $ac_compile) 2>conftest.er1
10064 grep -v '^ *+' conftest.er1
>conftest.err
10066 cat conftest.err
>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try
='test -z "$ac_c_werror_flag"
10070 || test ! -s conftest.err'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try
='test -s conftest.$ac_objext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10084 cat >>confdefs.h
<<\_ACEOF
10085 #define HAVE_UINTPTR_T 1
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.
$ac_ext >&5
10095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10096 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10097 echo "${ECHO_T}$have_uintptr_t" >&6
10098 if test "$have_uintptr_t" = yes ; then
10099 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10100 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10101 if test "${ac_cv_type_uintptr_t+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 cat >conftest.
$ac_ext <<_ACEOF
10107 cat confdefs.h
>>conftest.
$ac_ext
10108 cat >>conftest.
$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 $ac_includes_default
10114 if ((uintptr_t *) 0)
10116 if (sizeof (uintptr_t))
10122 rm -f conftest.
$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>conftest.er1
10126 grep -v '^ *+' conftest.er1
>conftest.err
10128 cat conftest.err
>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try
='test -z "$ac_c_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try
='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_type_uintptr_t
=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.
$ac_ext >&5
10149 ac_cv_type_uintptr_t
=no
10151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10153 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10154 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10156 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10157 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10158 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 if test "$ac_cv_type_uintptr_t" = yes; then
10162 # The cast to unsigned long works around a bug in the HP C Compiler
10163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10165 # This bug is HP SR number 8606223364.
10166 if test "$cross_compiling" = yes; then
10167 # Depending upon the size, compute the lo and hi bounds.
10168 cat >conftest.
$ac_ext <<_ACEOF
10171 cat confdefs.h
>>conftest.
$ac_ext
10172 cat >>conftest.
$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 $ac_includes_default
10178 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10185 rm -f conftest.
$ac_objext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10187 (eval $ac_compile) 2>conftest.er1
10189 grep -v '^ *+' conftest.er1
>conftest.err
10191 cat conftest.err
>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try
='test -z "$ac_c_werror_flag"
10195 || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try
='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10209 cat >conftest.
$ac_ext <<_ACEOF
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10219 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10226 rm -f conftest.
$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10230 grep -v '^ *+' conftest.er1
>conftest.err
10232 cat conftest.err
>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try
='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try
='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_hi
=$ac_mid; break
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.
$ac_ext >&5
10253 ac_lo
=`expr $ac_mid + 1`
10254 if test $ac_lo -le $ac_mid; then
10258 ac_mid
=`expr 2 '*' $ac_mid + 1`
10260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.
$ac_ext >&5
10266 cat >conftest.
$ac_ext <<_ACEOF
10269 cat confdefs.h
>>conftest.
$ac_ext
10270 cat >>conftest.
$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 $ac_includes_default
10276 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10283 rm -f conftest.
$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>conftest.er1
10287 grep -v '^ *+' conftest.er1
>conftest.err
10289 cat conftest.err
>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try
='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try
='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10307 cat >conftest.
$ac_ext <<_ACEOF
10310 cat confdefs.h
>>conftest.
$ac_ext
10311 cat >>conftest.
$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10317 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10324 rm -f conftest.
$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326 (eval $ac_compile) 2>conftest.er1
10328 grep -v '^ *+' conftest.er1
>conftest.err
10330 cat conftest.err
>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try
='test -z "$ac_c_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try
='test -s conftest.$ac_objext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_lo
=$ac_mid; break
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.
$ac_ext >&5
10351 ac_hi
=`expr '(' $ac_mid ')' - 1`
10352 if test $ac_mid -le $ac_hi; then
10356 ac_mid
=`expr 2 '*' $ac_mid`
10358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.
$ac_ext >&5
10366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10369 # Binary search between lo and hi bounds.
10370 while test "x$ac_lo" != "x$ac_hi"; do
10371 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10372 cat >conftest.
$ac_ext <<_ACEOF
10375 cat confdefs.h
>>conftest.
$ac_ext
10376 cat >>conftest.
$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10382 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10389 rm -f conftest.
$ac_objext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>conftest.er1
10393 grep -v '^ *+' conftest.er1
>conftest.err
10395 cat conftest.err
>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try
='test -z "$ac_c_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try
='test -s conftest.$ac_objext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.
$ac_ext >&5
10416 ac_lo
=`expr '(' $ac_mid ')' + 1`
10418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10421 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10423 See \`config.log' for more details." >&5
10424 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10425 See \`config.log' for more details." >&2;}
10426 { (exit 1); exit 1; }; } ;;
10429 if test "$cross_compiling" = yes; then
10430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10431 See \`config.log' for more details." >&5
10432 echo "$as_me: error: cannot run test program while cross compiling
10433 See \`config.log' for more details." >&2;}
10434 { (exit 1); exit 1; }; }
10436 cat >conftest.
$ac_ext <<_ACEOF
10439 cat confdefs.h
>>conftest.
$ac_ext
10440 cat >>conftest.
$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 long longval () { return (long) (sizeof (uintptr_t)); }
10444 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10446 #include <stdlib.h>
10451 FILE *f = fopen ("conftest.val", "w");
10454 if (((long) (sizeof (uintptr_t))) < 0)
10456 long i = longval ();
10457 if (i != ((long) (sizeof (uintptr_t))))
10459 fprintf (f, "%ld\n", i);
10463 unsigned long i = ulongval ();
10464 if (i != ((long) (sizeof (uintptr_t))))
10466 fprintf (f, "%lu\n", i);
10468 exit (ferror (f) || fclose (f) != 0);
10474 rm -f conftest
$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10487 echo "$as_me: program exited with status $ac_status" >&5
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.
$ac_ext >&5
10491 ( exit $ac_status )
10492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10493 See \`config.log' for more details." >&5
10494 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10495 See \`config.log' for more details." >&2;}
10496 { (exit 1); exit 1; }; }
10498 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10503 ac_cv_sizeof_uintptr_t
=0
10506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10507 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10508 cat >>confdefs.h
<<_ACEOF
10509 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10515 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10516 echo "$as_me:$LINENO: checking size of off_t" >&5
10517 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10518 if test "${ac_cv_sizeof_off_t+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 if test "$cross_compiling" = yes; then
10522 ac_cv_sizeof_off_t
=4
10524 cat >conftest.
$ac_ext <<_ACEOF
10527 cat confdefs.h
>>conftest.
$ac_ext
10528 cat >>conftest.
$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10531 #include <sys/types.h>
10534 FILE *f=fopen("conftestval", "w");
10536 fprintf(f, "%d\n", sizeof(off_t));
10540 rm -f conftest
$ac_exeext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_sizeof_off_t
=`cat conftestval`
10553 echo "$as_me: program exited with status $ac_status" >&5
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.
$ac_ext >&5
10557 ( exit $ac_status )
10558 ac_cv_sizeof_off_t
=0
10560 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10565 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10566 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10568 cat >>confdefs.h
<<_ACEOF
10569 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10573 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10574 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10575 if test "$have_long_long" = yes -a \
10576 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10577 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10579 cat >>confdefs.h
<<\_ACEOF
10580 #define HAVE_LARGEFILE_SUPPORT 1
10583 echo "$as_me:$LINENO: result: yes" >&5
10584 echo "${ECHO_T}yes" >&6
10586 echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6
10590 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10591 echo "$as_me:$LINENO: checking size of time_t" >&5
10592 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10593 if test "${ac_cv_sizeof_time_t+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 if test "$cross_compiling" = yes; then
10597 ac_cv_sizeof_time_t
=4
10599 cat >conftest.
$ac_ext <<_ACEOF
10602 cat confdefs.h
>>conftest.
$ac_ext
10603 cat >>conftest.
$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10609 FILE *f=fopen("conftestval", "w");
10611 fprintf(f, "%d\n", sizeof(time_t));
10615 rm -f conftest
$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617 (eval $ac_link) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_sizeof_time_t
=`cat conftestval`
10628 echo "$as_me: program exited with status $ac_status" >&5
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.
$ac_ext >&5
10632 ( exit $ac_status )
10633 ac_cv_sizeof_time_t
=0
10635 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10641 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10643 cat >>confdefs.h
<<_ACEOF
10644 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10649 # if have pthread_t then define SIZEOF_PTHREAD_T
10651 if test "$ac_cv_kpthread" = "yes"
10652 then CC
="$CC -Kpthread"
10653 elif test "$ac_cv_kthread" = "yes"
10654 then CC
="$CC -Kthread"
10655 elif test "$ac_cv_pthread" = "yes"
10656 then CC
="$CC -pthread"
10658 echo "$as_me:$LINENO: checking for pthread_t" >&5
10659 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10661 cat >conftest.
$ac_ext <<_ACEOF
10664 cat confdefs.h
>>conftest.
$ac_ext
10665 cat >>conftest.
$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <pthread.h>
10671 pthread_t x; x = *(pthread_t*)0;
10676 rm -f conftest.
$ac_objext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10678 (eval $ac_compile) 2>conftest.er1
10680 grep -v '^ *+' conftest.er1
>conftest.err
10682 cat conftest.err
>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try
='test -z "$ac_c_werror_flag"
10686 || test ! -s conftest.err'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try
='test -s conftest.$ac_objext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.
$ac_ext >&5
10704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10705 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10706 echo "${ECHO_T}$have_pthread_t" >&6
10707 if test "$have_pthread_t" = yes ; then
10708 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10709 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10710 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10711 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 if test "$cross_compiling" = yes; then
10715 ac_cv_sizeof_pthread_t
=4
10717 cat >conftest.
$ac_ext <<_ACEOF
10720 cat confdefs.h
>>conftest.
$ac_ext
10721 cat >>conftest.
$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10724 #include <pthread.h>
10727 FILE *f=fopen("conftestval", "w");
10729 fprintf(f, "%d\n", sizeof(pthread_t));
10733 rm -f conftest
$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 (eval $ac_link) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_sizeof_pthread_t
=`cat conftestval`
10746 echo "$as_me: program exited with status $ac_status" >&5
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.
$ac_ext >&5
10750 ( exit $ac_status )
10751 ac_cv_sizeof_pthread_t
=0
10753 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10759 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10761 cat >>confdefs.h
<<_ACEOF
10762 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10768 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10769 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10770 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10771 if test "${enable_toolbox_glue+set}" = set; then
10772 enableval
="$enable_toolbox_glue"
10776 if test -z "$enable_toolbox_glue"
10778 case $ac_sys_system/$ac_sys_release in
10780 enable_toolbox_glue
="yes";;
10782 enable_toolbox_glue
="no";;
10785 case "$enable_toolbox_glue" in
10787 extra_machdep_objs
="Python/mactoolboxglue.o"
10788 extra_undefs
="-u _PyMac_Error"
10790 cat >>confdefs.h
<<\_ACEOF
10791 #define USE_TOOLBOX_OBJECT_GLUE 1
10796 extra_machdep_objs
=""
10800 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10801 echo "${ECHO_T}$enable_toolbox_glue" >&6
10804 case $ac_sys_system/$ac_sys_release in
10805 Darwin
/[01567]\..
*)
10806 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10809 OTHER_LIBTOOL_OPT
=""
10814 case $ac_sys_system/$ac_sys_release in
10815 Darwin
/[01567]\..
*)
10816 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
10817 if test "${enable_universalsdk}"; then
10820 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
10822 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10823 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10825 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10826 if test ${gcc_version} '<' 4.0
10828 LIBTOOL_CRUFT
="-lcc_dynamic"
10832 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10833 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10834 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10837 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10838 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10839 if test "$enable_framework"
10841 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10842 # -F. is needed to allow linking to the framework while
10843 # in the build location.
10845 cat >>confdefs.h
<<\_ACEOF
10846 #define WITH_NEXT_FRAMEWORK 1
10849 echo "$as_me:$LINENO: result: yes" >&5
10850 echo "${ECHO_T}yes" >&6
10852 echo "$as_me:$LINENO: result: no" >&5
10853 echo "${ECHO_T}no" >&6
10856 echo "$as_me:$LINENO: checking for dyld" >&5
10857 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10858 case $ac_sys_system/$ac_sys_release in
10861 cat >>confdefs.h
<<\_ACEOF
10862 #define WITH_DYLD 1
10865 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10866 echo "${ECHO_T}always on for Darwin" >&6
10869 echo "$as_me:$LINENO: result: no" >&5
10870 echo "${ECHO_T}no" >&6
10874 # Set info about shared libraries.
10880 # SO is the extension of shared libraries `(including the dot!)
10881 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10882 echo "$as_me:$LINENO: checking SO" >&5
10883 echo $ECHO_N "checking SO... $ECHO_C" >&6
10886 case $ac_sys_system in
10897 # this might also be a termcap variable, see #610332
10899 echo '====================================================================='
10901 echo '+ WARNING: You have set SO in your environment. +'
10902 echo '+ Do you really mean to change the extension for shared libraries? +'
10903 echo '+ Continuing in 10 seconds to let you to ponder. +'
10905 echo '====================================================================='
10908 echo "$as_me:$LINENO: result: $SO" >&5
10909 echo "${ECHO_T}$SO" >&6
10911 cat >>confdefs.h
<<_ACEOF
10912 #define SHLIB_EXT "$SO"
10915 # LDSHARED is the ld *command* used to create shared library
10916 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10917 # (Shared libraries in this instance are shared modules to be loaded into
10918 # Python, as opposed to building Python itself as a shared library.)
10919 echo "$as_me:$LINENO: checking LDSHARED" >&5
10920 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10921 if test -z "$LDSHARED"
10923 case $ac_sys_system/$ac_sys_release in
10925 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10926 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10929 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10930 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10932 IRIX
/5*) LDSHARED
="ld -shared";;
10933 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10935 if test "$GCC" = "yes"
10936 then LDSHARED
='$(CC) -shared'
10937 else LDSHARED
='$(CC) -G';
10939 hp
*|HP
*) LDSHARED
="ld -b";;
10940 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10942 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10943 if test "$enable_framework" ; then
10944 # Link against the framework. All externals should be defined.
10945 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10946 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10948 # No framework. Ignore undefined symbols, assuming they come from Python
10949 LDSHARED
="$LDSHARED -undefined suppress"
10951 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10952 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10953 if test "$enable_framework" ; then
10954 # Link against the framework. All externals should be defined.
10955 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10956 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10958 # No framework, use the Python app as bundle-loader
10959 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10960 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10963 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10964 # This allows an extension to be used in any Python
10965 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10966 if test ${cur_target} '>' 10.2; then
10969 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10970 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
10971 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10973 if test "${enable_universalsdk}"; then
10974 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10976 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10977 BLDSHARED
="$LDSHARED"
10979 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10980 if test "$enable_framework" ; then
10981 # Link against the framework. All externals should be defined.
10982 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10983 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10985 # No framework, use the Python app as bundle-loader
10986 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10987 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10991 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10992 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10994 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10996 LDSHARED
="$CC -shared ${LDFLAGS}"
10998 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11000 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11001 OpenUNIX
*|UnixWare
*)
11002 if test "$GCC" = "yes"
11003 then LDSHARED
='$(CC) -shared'
11004 else LDSHARED
='$(CC) -G'
11006 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11007 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11008 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11009 atheos
*) LDSHARED
="gcc -shared";;
11013 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11014 echo "${ECHO_T}$LDSHARED" >&6
11015 BLDSHARED
=${BLDSHARED-$LDSHARED}
11016 # CCSHARED are the C *flags* used to create objects to go into a shared
11017 # library (module) -- this is only needed for a few systems
11018 echo "$as_me:$LINENO: checking CCSHARED" >&5
11019 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11020 if test -z "$CCSHARED"
11022 case $ac_sys_system/$ac_sys_release in
11023 SunOS
*) if test "$GCC" = yes;
11024 then CCSHARED
="-fPIC";
11025 else CCSHARED
="-xcode=pic32";
11027 hp
*|HP
*) if test "$GCC" = yes;
11028 then CCSHARED
="-fPIC";
11029 else CCSHARED
="+z";
11031 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11032 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11033 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11034 OpenUNIX
*|UnixWare
*)
11035 if test "$GCC" = "yes"
11036 then CCSHARED
="-fPIC"
11037 else CCSHARED
="-KPIC"
11040 if test "$GCC" = "yes"
11041 then CCSHARED
="-fPIC"
11042 else CCSHARED
="-Kpic -belf"
11044 Monterey
*) CCSHARED
="-G";;
11045 IRIX
*/6*) case $CC in
11046 *gcc
*) CCSHARED
="-shared";;
11049 atheos
*) CCSHARED
="-fPIC";;
11052 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11053 echo "${ECHO_T}$CCSHARED" >&6
11054 # LINKFORSHARED are the flags passed to the $(CC) command that links
11055 # the python executable -- this is only needed for a few systems
11056 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11057 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11058 if test -z "$LINKFORSHARED"
11060 case $ac_sys_system/$ac_sys_release in
11061 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11063 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11064 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11065 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11066 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11067 # -u libsys_s pulls in all symbols in libsys
11069 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11071 # not used by the core itself but which needs to be in the core so
11072 # that dynamically loaded extension modules have access to it.
11073 # -prebind is no longer used, because it actually seems to give a
11074 # slowdown in stead of a speedup, maybe due to the large number of
11075 # dynamic loads Python does.
11077 LINKFORSHARED
="$extra_undefs"
11078 if test "$enable_framework"
11080 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11082 LINKFORSHARED
="$LINKFORSHARED";;
11083 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11084 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11085 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11086 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11087 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11089 LINKFORSHARED
="-Wl,--export-dynamic"
11091 SunOS
/5*) case $CC in
11093 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11095 LINKFORSHARED
="-Xlinker --export-dynamic"
11099 if test $enable_shared = "no"
11101 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11105 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11106 echo "${ECHO_T}$LINKFORSHARED" >&6
11109 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11110 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11111 if test ! "$LIBRARY" = "$LDLIBRARY"
11113 case $ac_sys_system in
11115 # Cygwin needs CCSHARED when building extension DLLs
11116 # but not when building the interpreter DLL.
11117 CFLAGSFORSHARED
='';;
11119 CFLAGSFORSHARED
='$(CCSHARED)'
11122 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11123 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11125 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11126 # library (with --enable-shared).
11127 # For platforms on which shared libraries are not allowed to have unresolved
11128 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11129 # if it is not required, since it creates a dependency of the shared library
11130 # to LIBS. This, in turn, means that applications linking the shared libpython
11131 # don't need to link LIBS explicitly. The default should be only changed
11132 # on systems where this approach causes problems.
11134 echo "$as_me:$LINENO: checking SHLIBS" >&5
11135 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11136 case "$ac_sys_system" in
11140 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11141 echo "${ECHO_T}$SHLIBS" >&6
11144 # checks for libraries
11146 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 ac_check_lib_save_LIBS
=$LIBS
11153 cat >conftest.
$ac_ext <<_ACEOF
11156 cat confdefs.h
>>conftest.
$ac_ext
11157 cat >>conftest.
$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11160 /* Override any gcc2 internal prototype to avoid an error. */
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11175 rm -f conftest.
$ac_objext conftest
$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177 (eval $ac_link) 2>conftest.er1
11179 grep -v '^ *+' conftest.er1
>conftest.err
11181 cat conftest.err
>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } &&
11184 { ac_try
='test -z "$ac_c_werror_flag"
11185 || test ! -s conftest.err'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; } &&
11191 { ac_try
='test -s conftest$ac_exeext'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_lib_dl_dlopen
=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.
$ac_ext >&5
11202 ac_cv_lib_dl_dlopen
=no
11204 rm -f conftest.err conftest.
$ac_objext \
11205 conftest
$ac_exeext conftest.
$ac_ext
11206 LIBS
=$ac_check_lib_save_LIBS
11208 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11210 if test $ac_cv_lib_dl_dlopen = yes; then
11211 cat >>confdefs.h
<<_ACEOF
11212 #define HAVE_LIBDL 1
11218 # Dynamic linking for SunOS/Solaris and SYSV
11220 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11221 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11222 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 ac_check_lib_save_LIBS
=$LIBS
11227 cat >conftest.
$ac_ext <<_ACEOF
11230 cat confdefs.h
>>conftest.
$ac_ext
11231 cat >>conftest.
$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11234 /* Override any gcc2 internal prototype to avoid an error. */
11238 /* We use char because int might match the return type of a gcc2
11239 builtin and then its argument prototype would still apply. */
11249 rm -f conftest.
$ac_objext conftest
$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>conftest.er1
11253 grep -v '^ *+' conftest.er1
>conftest.err
11255 cat conftest.err
>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try
='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try
='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_lib_dld_shl_load
=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.
$ac_ext >&5
11276 ac_cv_lib_dld_shl_load
=no
11278 rm -f conftest.err conftest.
$ac_objext \
11279 conftest
$ac_exeext conftest.
$ac_ext
11280 LIBS
=$ac_check_lib_save_LIBS
11282 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11283 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11284 if test $ac_cv_lib_dld_shl_load = yes; then
11285 cat >>confdefs.h
<<_ACEOF
11286 #define HAVE_LIBDLD 1
11292 # Dynamic linking for HP-UX
11294 # only check for sem_ini if thread support is requested
11295 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11296 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11297 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11298 if test "${ac_cv_search_sem_init+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_func_search_save_LIBS
=$LIBS
11302 ac_cv_search_sem_init
=no
11303 cat >conftest.
$ac_ext <<_ACEOF
11306 cat confdefs.h
>>conftest.
$ac_ext
11307 cat >>conftest.
$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11310 /* Override any gcc2 internal prototype to avoid an error. */
11314 /* We use char because int might match the return type of a gcc2
11315 builtin and then its argument prototype would still apply. */
11325 rm -f conftest.
$ac_objext conftest
$ac_exeext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11327 (eval $ac_link) 2>conftest.er1
11329 grep -v '^ *+' conftest.er1
>conftest.err
11331 cat conftest.err
>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try
='test -z "$ac_c_werror_flag"
11335 || test ! -s conftest.err'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try
='test -s conftest$ac_exeext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_cv_search_sem_init
="none required"
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.
$ac_ext >&5
11353 rm -f conftest.err conftest.
$ac_objext \
11354 conftest
$ac_exeext conftest.
$ac_ext
11355 if test "$ac_cv_search_sem_init" = no
; then
11356 for ac_lib
in pthread rt posix4
; do
11357 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11358 cat >conftest.
$ac_ext <<_ACEOF
11361 cat confdefs.h
>>conftest.
$ac_ext
11362 cat >>conftest.
$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11365 /* Override any gcc2 internal prototype to avoid an error. */
11369 /* We use char because int might match the return type of a gcc2
11370 builtin and then its argument prototype would still apply. */
11380 rm -f conftest.
$ac_objext conftest
$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>conftest.er1
11384 grep -v '^ *+' conftest.er1
>conftest.err
11386 cat conftest.err
>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try
='test -z "$ac_c_werror_flag"
11390 || test ! -s conftest.err'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; } &&
11396 { ac_try
='test -s conftest$ac_exeext'
11397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 (eval $ac_try) 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_cv_search_sem_init
="-l$ac_lib"
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.
$ac_ext >&5
11409 rm -f conftest.err conftest.
$ac_objext \
11410 conftest
$ac_exeext conftest.
$ac_ext
11413 LIBS
=$ac_func_search_save_LIBS
11415 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11416 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11417 if test "$ac_cv_search_sem_init" != no
; then
11418 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11421 # 'Real Time' functions on Solaris
11422 # posix4 on Solaris 2.6
11423 # pthread (first!) on Linux
11426 # check if we need libintl for locale functions
11427 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11428 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11429 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 ac_check_lib_save_LIBS
=$LIBS
11433 LIBS
="-lintl $LIBS"
11434 cat >conftest.
$ac_ext <<_ACEOF
11437 cat confdefs.h
>>conftest.
$ac_ext
11438 cat >>conftest.
$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 /* Override any gcc2 internal prototype to avoid an error. */
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11447 char textdomain ();
11456 rm -f conftest.
$ac_objext conftest
$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11460 grep -v '^ *+' conftest.er1
>conftest.err
11462 cat conftest.err
>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try
='test -z "$ac_c_werror_flag"
11466 || test ! -s conftest.err'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try
='test -s conftest$ac_exeext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 ac_cv_lib_intl_textdomain
=yes
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.
$ac_ext >&5
11483 ac_cv_lib_intl_textdomain
=no
11485 rm -f conftest.err conftest.
$ac_objext \
11486 conftest
$ac_exeext conftest.
$ac_ext
11487 LIBS
=$ac_check_lib_save_LIBS
11489 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11490 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11491 if test $ac_cv_lib_intl_textdomain = yes; then
11493 cat >>confdefs.h
<<\_ACEOF
11494 #define WITH_LIBINTL 1
11500 # checks for system dependent C++ extensions support
11501 case "$ac_sys_system" in
11502 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11503 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11504 cat >conftest.
$ac_ext <<_ACEOF
11507 cat confdefs.h
>>conftest.
$ac_ext
11508 cat >>conftest.
$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include "/usr/lpp/xlC/include/load.h"
11514 loadAndInit("", 0, "")
11519 rm -f conftest.
$ac_objext conftest
$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521 (eval $ac_link) 2>conftest.er1
11523 grep -v '^ *+' conftest.er1
>conftest.err
11525 cat conftest.err
>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try
='test -z "$ac_c_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try
='test -s conftest$ac_exeext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11542 cat >>confdefs.h
<<\_ACEOF
11543 #define AIX_GENUINE_CPLUSPLUS 1
11546 echo "$as_me:$LINENO: result: yes" >&5
11547 echo "${ECHO_T}yes" >&6
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.
$ac_ext >&5
11552 echo "$as_me:$LINENO: result: no" >&5
11553 echo "${ECHO_T}no" >&6
11555 rm -f conftest.err conftest.
$ac_objext \
11556 conftest
$ac_exeext conftest.
$ac_ext;;
11560 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11561 # BeOS' sockets are stashed in libnet.
11562 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11563 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11564 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 ac_check_lib_save_LIBS
=$LIBS
11569 cat >conftest.
$ac_ext <<_ACEOF
11572 cat confdefs.h
>>conftest.
$ac_ext
11573 cat >>conftest.
$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11576 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11591 rm -f conftest.
$ac_objext conftest
$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>conftest.er1
11595 grep -v '^ *+' conftest.er1
>conftest.err
11597 cat conftest.err
>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try
='test -z "$ac_c_werror_flag"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try
='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_lib_nsl_t_open
=yes
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.
$ac_ext >&5
11618 ac_cv_lib_nsl_t_open
=no
11620 rm -f conftest.err conftest.
$ac_objext \
11621 conftest
$ac_exeext conftest.
$ac_ext
11622 LIBS
=$ac_check_lib_save_LIBS
11624 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11625 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11626 if test $ac_cv_lib_nsl_t_open = yes; then
11630 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11631 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11632 if test "${ac_cv_lib_socket_socket+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 ac_check_lib_save_LIBS
=$LIBS
11636 LIBS
="-lsocket $LIBS $LIBS"
11637 cat >conftest.
$ac_ext <<_ACEOF
11640 cat confdefs.h
>>conftest.
$ac_ext
11641 cat >>conftest.
$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11644 /* Override any gcc2 internal prototype to avoid an error. */
11648 /* We use char because int might match the return type of a gcc2
11649 builtin and then its argument prototype would still apply. */
11659 rm -f conftest.
$ac_objext conftest
$ac_exeext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11661 (eval $ac_link) 2>conftest.er1
11663 grep -v '^ *+' conftest.er1
>conftest.err
11665 cat conftest.err
>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try
='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try
='test -s conftest$ac_exeext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_lib_socket_socket
=yes
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.
$ac_ext >&5
11686 ac_cv_lib_socket_socket
=no
11688 rm -f conftest.err conftest.
$ac_objext \
11689 conftest
$ac_exeext conftest.
$ac_ext
11690 LIBS
=$ac_check_lib_save_LIBS
11692 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11693 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11694 if test $ac_cv_lib_socket_socket = yes; then
11695 LIBS
="-lsocket $LIBS"
11699 case "$ac_sys_system" in
11701 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11702 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11703 if test "${ac_cv_lib_net_socket+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 ac_check_lib_save_LIBS
=$LIBS
11707 LIBS
="-lnet $LIBS $LIBS"
11708 cat >conftest.
$ac_ext <<_ACEOF
11711 cat confdefs.h
>>conftest.
$ac_ext
11712 cat >>conftest.
$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11715 /* Override any gcc2 internal prototype to avoid an error. */
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11730 rm -f conftest.
$ac_objext conftest
$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>conftest.er1
11734 grep -v '^ *+' conftest.er1
>conftest.err
11736 cat conftest.err
>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try
='test -z "$ac_c_werror_flag"
11740 || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try
='test -s conftest$ac_exeext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_cv_lib_net_socket
=yes
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.
$ac_ext >&5
11757 ac_cv_lib_net_socket
=no
11759 rm -f conftest.err conftest.
$ac_objext \
11760 conftest
$ac_exeext conftest.
$ac_ext
11761 LIBS
=$ac_check_lib_save_LIBS
11763 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11764 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11765 if test $ac_cv_lib_net_socket = yes; then
11772 echo "$as_me:$LINENO: checking for --with-libs" >&5
11773 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11775 # Check whether --with-libs or --without-libs was given.
11776 if test "${with_libs+set}" = set; then
11777 withval
="$with_libs"
11779 echo "$as_me:$LINENO: result: $withval" >&5
11780 echo "${ECHO_T}$withval" >&6
11781 LIBS
="$withval $LIBS"
11784 echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6
11788 # Check for use of the system libffi library
11789 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11790 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11792 # Check whether --with-system_ffi or --without-system_ffi was given.
11793 if test "${with_system_ffi+set}" = set; then
11794 withval
="$with_system_ffi"
11798 if test -z "$with_system_ffi"
11799 then with_system_ffi
="no"
11801 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11802 echo "${ECHO_T}$with_system_ffi" >&6
11804 # Determine if signalmodule should be used.
11807 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11808 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11810 # Check whether --with-signal-module or --without-signal-module was given.
11811 if test "${with_signal_module+set}" = set; then
11812 withval
="$with_signal_module"
11816 if test -z "$with_signal_module"
11817 then with_signal_module
="yes"
11819 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11820 echo "${ECHO_T}$with_signal_module" >&6
11822 if test "${with_signal_module}" = "yes"; then
11823 USE_SIGNAL_MODULE
=""
11826 USE_SIGNAL_MODULE
="#"
11827 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11830 # This is used to generate Setup.config
11832 USE_THREAD_MODULE
=""
11834 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11835 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11838 # Check whether --with-dec-threads or --without-dec-threads was given.
11839 if test "${with_dec_threads+set}" = set; then
11840 withval
="$with_dec_threads"
11842 echo "$as_me:$LINENO: result: $withval" >&5
11843 echo "${ECHO_T}$withval" >&6
11845 if test "${with_thread+set}" != set; then
11846 with_thread
="$withval";
11849 echo "$as_me:$LINENO: result: no" >&5
11850 echo "${ECHO_T}no" >&6
11853 # Templates for things AC_DEFINEd more than once.
11854 # For a single AC_DEFINE, no template is needed.
11862 echo "$as_me:$LINENO: checking for --with-threads" >&5
11863 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11865 # Check whether --with-threads or --without-threads was given.
11866 if test "${with_threads+set}" = set; then
11867 withval
="$with_threads"
11871 # --with-thread is deprecated, but check for it anyway
11873 # Check whether --with-thread or --without-thread was given.
11874 if test "${with_thread+set}" = set; then
11875 withval
="$with_thread"
11876 with_threads
=$with_thread
11879 if test -z "$with_threads"
11880 then with_threads
="yes"
11882 echo "$as_me:$LINENO: result: $with_threads" >&5
11883 echo "${ECHO_T}$with_threads" >&6
11886 if test "$with_threads" = "no"
11888 USE_THREAD_MODULE
="#"
11889 elif test "$ac_cv_pthread_is_default" = yes
11891 cat >>confdefs.h
<<\_ACEOF
11892 #define WITH_THREAD 1
11895 # Defining _REENTRANT on system with POSIX threads should not hurt.
11896 cat >>confdefs.h
<<\_ACEOF
11897 #define _REENTRANT 1
11901 THREADOBJ
="Python/thread.o"
11902 elif test "$ac_cv_kpthread" = "yes"
11905 if test "$ac_cv_cxx_thread" = "yes"; then
11906 CXX
="$CXX -Kpthread"
11908 cat >>confdefs.h
<<\_ACEOF
11909 #define WITH_THREAD 1
11913 THREADOBJ
="Python/thread.o"
11914 elif test "$ac_cv_kthread" = "yes"
11917 if test "$ac_cv_cxx_thread" = "yes"; then
11918 CXX
="$CXX -Kthread"
11920 cat >>confdefs.h
<<\_ACEOF
11921 #define WITH_THREAD 1
11925 THREADOBJ
="Python/thread.o"
11926 elif test "$ac_cv_pthread" = "yes"
11929 if test "$ac_cv_cxx_thread" = "yes"; then
11930 CXX
="$CXX -pthread"
11932 cat >>confdefs.h
<<\_ACEOF
11933 #define WITH_THREAD 1
11937 THREADOBJ
="Python/thread.o"
11939 if test ! -z "$with_threads" -a -d "$with_threads"
11940 then LDFLAGS
="$LDFLAGS -L$with_threads"
11942 if test ! -z "$withval" -a -d "$withval"
11943 then LDFLAGS
="$LDFLAGS -L$withval"
11946 # According to the POSIX spec, a pthreads implementation must
11947 # define _POSIX_THREADS in unistd.h. Some apparently don't
11948 # (e.g. gnu pth with pthread emulation)
11949 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11950 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11951 cat >conftest.
$ac_ext <<_ACEOF
11954 cat confdefs.h
>>conftest.
$ac_ext
11955 cat >>conftest.
$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 #include <unistd.h>
11959 #ifdef _POSIX_THREADS
11964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11965 $EGREP "yes" >/dev
/null
2>&1; then
11966 unistd_defines_pthreads
=yes
11968 unistd_defines_pthreads
=no
11972 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11973 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11975 cat >>confdefs.h
<<\_ACEOF
11976 #define _REENTRANT 1
11979 if test "${ac_cv_header_cthreads_h+set}" = set; then
11980 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11981 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11982 if test "${ac_cv_header_cthreads_h+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11986 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11988 # Is the header compilable?
11989 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11990 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11991 cat >conftest.
$ac_ext <<_ACEOF
11994 cat confdefs.h
>>conftest.
$ac_ext
11995 cat >>conftest.
$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11998 #include <cthreads.h>
12000 rm -f conftest.
$ac_objext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002 (eval $ac_compile) 2>conftest.er1
12004 grep -v '^ *+' conftest.er1
>conftest.err
12006 cat conftest.err
>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try
='test -z "$ac_c_werror_flag"
12010 || test ! -s conftest.err'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try
='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_header_compiler
=yes
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.
$ac_ext >&5
12027 ac_header_compiler
=no
12029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12031 echo "${ECHO_T}$ac_header_compiler" >&6
12033 # Is the header present?
12034 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12035 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12036 cat >conftest.
$ac_ext <<_ACEOF
12039 cat confdefs.h
>>conftest.
$ac_ext
12040 cat >>conftest.
$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 #include <cthreads.h>
12044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12045 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12047 grep -v '^ *+' conftest.er1
>conftest.err
12049 cat conftest.err
>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev
/null
; then
12052 if test -s conftest.err
; then
12053 ac_cpp_err
=$ac_c_preproc_warn_flag
12054 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12061 if test -z "$ac_cpp_err"; then
12062 ac_header_preproc
=yes
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.
$ac_ext >&5
12067 ac_header_preproc
=no
12069 rm -f conftest.err conftest.
$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12071 echo "${ECHO_T}$ac_header_preproc" >&6
12073 # So? What about this header?
12074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12076 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12077 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12078 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12079 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12080 ac_header_preproc
=yes
12083 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12084 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12086 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12088 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12090 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12092 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12094 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12097 ## ------------------------------------------------ ##
12098 ## Report this to http://www.python.org/python-bugs ##
12099 ## ------------------------------------------------ ##
12102 sed "s/^/$as_me: WARNING: /" >&2
12105 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12106 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12107 if test "${ac_cv_header_cthreads_h+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 ac_cv_header_cthreads_h
=$ac_header_preproc
12112 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12113 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12116 if test $ac_cv_header_cthreads_h = yes; then
12117 cat >>confdefs.h
<<\_ACEOF
12118 #define WITH_THREAD 1
12121 cat >>confdefs.h
<<\_ACEOF
12122 #define C_THREADS 1
12126 cat >>confdefs.h
<<\_ACEOF
12127 #define HURD_C_THREADS 1
12130 LIBS
="$LIBS -lthreads"
12131 THREADOBJ
="Python/thread.o"
12134 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12135 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12136 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12137 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12141 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12143 # Is the header compilable?
12144 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12145 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12146 cat >conftest.
$ac_ext <<_ACEOF
12149 cat confdefs.h
>>conftest.
$ac_ext
12150 cat >>conftest.
$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 #include <mach/cthreads.h>
12155 rm -f conftest.
$ac_objext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157 (eval $ac_compile) 2>conftest.er1
12159 grep -v '^ *+' conftest.er1
>conftest.err
12161 cat conftest.err
>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try
='test -z "$ac_c_werror_flag"
12165 || test ! -s conftest.err'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try
='test -s conftest.$ac_objext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 ac_header_compiler
=yes
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.
$ac_ext >&5
12182 ac_header_compiler
=no
12184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12186 echo "${ECHO_T}$ac_header_compiler" >&6
12188 # Is the header present?
12189 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12190 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12191 cat >conftest.
$ac_ext <<_ACEOF
12194 cat confdefs.h
>>conftest.
$ac_ext
12195 cat >>conftest.
$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 #include <mach/cthreads.h>
12199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12202 grep -v '^ *+' conftest.er1
>conftest.err
12204 cat conftest.err
>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } >/dev
/null
; then
12207 if test -s conftest.err
; then
12208 ac_cpp_err
=$ac_c_preproc_warn_flag
12209 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12216 if test -z "$ac_cpp_err"; then
12217 ac_header_preproc
=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.
$ac_ext >&5
12222 ac_header_preproc
=no
12224 rm -f conftest.err conftest.
$ac_ext
12225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12226 echo "${ECHO_T}$ac_header_preproc" >&6
12228 # So? What about this header?
12229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12231 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12232 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12234 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12235 ac_header_preproc
=yes
12238 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12239 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12241 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12243 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12245 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12247 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12249 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12252 ## ------------------------------------------------ ##
12253 ## Report this to http://www.python.org/python-bugs ##
12254 ## ------------------------------------------------ ##
12257 sed "s/^/$as_me: WARNING: /" >&2
12260 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12261 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12262 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12267 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12268 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12271 if test $ac_cv_header_mach_cthreads_h = yes; then
12272 cat >>confdefs.h
<<\_ACEOF
12273 #define WITH_THREAD 1
12276 cat >>confdefs.h
<<\_ACEOF
12277 #define C_THREADS 1
12281 cat >>confdefs.h
<<\_ACEOF
12282 #define MACH_C_THREADS 1
12285 THREADOBJ
="Python/thread.o"
12288 echo "$as_me:$LINENO: checking for --with-pth" >&5
12289 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12291 # Check whether --with-pth or --without-pth was given.
12292 if test "${with_pth+set}" = set; then
12293 withval
="$with_pth"
12294 echo "$as_me:$LINENO: result: $withval" >&5
12295 echo "${ECHO_T}$withval" >&6
12296 cat >>confdefs.h
<<\_ACEOF
12297 #define WITH_THREAD 1
12301 cat >>confdefs.h
<<\_ACEOF
12306 THREADOBJ
="Python/thread.o"
12308 echo "$as_me:$LINENO: result: no" >&5
12309 echo "${ECHO_T}no" >&6
12311 # Just looking for pthread_create in libpthread is not enough:
12312 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12313 # So we really have to include pthread.h, and then link.
12315 LIBS
="$LIBS -lpthread"
12316 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12317 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12318 cat >conftest.
$ac_ext <<_ACEOF
12321 cat confdefs.h
>>conftest.
$ac_ext
12322 cat >>conftest.
$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <pthread.h>
12326 void * start_routine (void *arg) { exit (0); }
12331 pthread_create (NULL, NULL, start_routine, NULL)
12336 rm -f conftest.
$ac_objext conftest
$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338 (eval $ac_link) 2>conftest.er1
12340 grep -v '^ *+' conftest.er1
>conftest.err
12342 cat conftest.err
>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try
='test -z "$ac_c_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try
='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12359 echo "$as_me:$LINENO: result: yes" >&5
12360 echo "${ECHO_T}yes" >&6
12361 cat >>confdefs.h
<<\_ACEOF
12362 #define WITH_THREAD 1
12366 THREADOBJ
="Python/thread.o"
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.
$ac_ext >&5
12373 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12374 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12375 if test "${ac_cv_func_pthread_detach+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 cat >conftest.
$ac_ext <<_ACEOF
12381 cat confdefs.h
>>conftest.
$ac_ext
12382 cat >>conftest.
$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12386 #define pthread_detach innocuous_pthread_detach
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char pthread_detach (); below.
12390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391 <limits.h> exists even on freestanding compilers. */
12394 # include <limits.h>
12396 # include <assert.h>
12399 #undef pthread_detach
12401 /* Override any gcc2 internal prototype to avoid an error. */
12406 /* We use char because int might match the return type of a gcc2
12407 builtin and then its argument prototype would still apply. */
12408 char pthread_detach ();
12409 /* The GNU C library defines this for functions which it implements
12410 to always fail with ENOSYS. Some functions are actually named
12411 something starting with __ and the normal name is an alias. */
12412 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12415 char (*f) () = pthread_detach;
12424 return f != pthread_detach;
12429 rm -f conftest.
$ac_objext conftest
$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431 (eval $ac_link) 2>conftest.er1
12433 grep -v '^ *+' conftest.er1
>conftest.err
12435 cat conftest.err
>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try
='test -z "$ac_c_werror_flag"
12439 || test ! -s conftest.err'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try
='test -s conftest$ac_exeext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_cv_func_pthread_detach
=yes
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.
$ac_ext >&5
12456 ac_cv_func_pthread_detach
=no
12458 rm -f conftest.err conftest.
$ac_objext \
12459 conftest
$ac_exeext conftest.
$ac_ext
12461 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12462 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12463 if test $ac_cv_func_pthread_detach = yes; then
12464 cat >>confdefs.h
<<\_ACEOF
12465 #define WITH_THREAD 1
12469 THREADOBJ
="Python/thread.o"
12472 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12473 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12474 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12475 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12479 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12481 # Is the header compilable?
12482 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12483 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12484 cat >conftest.
$ac_ext <<_ACEOF
12487 cat confdefs.h
>>conftest.
$ac_ext
12488 cat >>conftest.
$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 $ac_includes_default
12491 #include <atheos/threads.h>
12493 rm -f conftest.
$ac_objext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12495 (eval $ac_compile) 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_objext'
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_header_compiler
=yes
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.
$ac_ext >&5
12520 ac_header_compiler
=no
12522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12524 echo "${ECHO_T}$ac_header_compiler" >&6
12526 # Is the header present?
12527 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12528 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12529 cat >conftest.
$ac_ext <<_ACEOF
12532 cat confdefs.h
>>conftest.
$ac_ext
12533 cat >>conftest.
$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12535 #include <atheos/threads.h>
12537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12538 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12540 grep -v '^ *+' conftest.er1
>conftest.err
12542 cat conftest.err
>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev
/null
; then
12545 if test -s conftest.err
; then
12546 ac_cpp_err
=$ac_c_preproc_warn_flag
12547 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12554 if test -z "$ac_cpp_err"; then
12555 ac_header_preproc
=yes
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.
$ac_ext >&5
12560 ac_header_preproc
=no
12562 rm -f conftest.err conftest.
$ac_ext
12563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12564 echo "${ECHO_T}$ac_header_preproc" >&6
12566 # So? What about this header?
12567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12569 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12570 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12572 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12573 ac_header_preproc
=yes
12576 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12577 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12579 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12581 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12582 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12583 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12584 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12585 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12586 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12587 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12590 ## ------------------------------------------------ ##
12591 ## Report this to http://www.python.org/python-bugs ##
12592 ## ------------------------------------------------ ##
12595 sed "s/^/$as_me: WARNING: /" >&2
12598 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12599 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12600 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12605 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12606 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12609 if test $ac_cv_header_atheos_threads_h = yes; then
12610 cat >>confdefs.h
<<\_ACEOF
12611 #define WITH_THREAD 1
12615 cat >>confdefs.h
<<\_ACEOF
12616 #define ATHEOS_THREADS 1
12619 THREADOBJ
="Python/thread.o"
12622 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12623 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12624 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12625 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12629 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12631 # Is the header compilable?
12632 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12633 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12634 cat >conftest.
$ac_ext <<_ACEOF
12637 cat confdefs.h
>>conftest.
$ac_ext
12638 cat >>conftest.
$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640 $ac_includes_default
12641 #include <kernel/OS.h>
12643 rm -f conftest.
$ac_objext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>conftest.er1
12647 grep -v '^ *+' conftest.er1
>conftest.err
12649 cat conftest.err
>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try
='test -z "$ac_c_werror_flag"
12653 || test ! -s conftest.err'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try
='test -s conftest.$ac_objext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 ac_header_compiler
=yes
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.
$ac_ext >&5
12670 ac_header_compiler
=no
12672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12674 echo "${ECHO_T}$ac_header_compiler" >&6
12676 # Is the header present?
12677 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12678 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12679 cat >conftest.
$ac_ext <<_ACEOF
12682 cat confdefs.h
>>conftest.
$ac_ext
12683 cat >>conftest.
$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685 #include <kernel/OS.h>
12687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12688 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12690 grep -v '^ *+' conftest.er1
>conftest.err
12692 cat conftest.err
>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } >/dev
/null
; then
12695 if test -s conftest.err
; then
12696 ac_cpp_err
=$ac_c_preproc_warn_flag
12697 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12704 if test -z "$ac_cpp_err"; then
12705 ac_header_preproc
=yes
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.
$ac_ext >&5
12710 ac_header_preproc
=no
12712 rm -f conftest.err conftest.
$ac_ext
12713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12714 echo "${ECHO_T}$ac_header_preproc" >&6
12716 # So? What about this header?
12717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12719 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12720 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12722 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12723 ac_header_preproc
=yes
12726 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12727 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12729 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12731 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12733 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12735 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12736 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12737 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12740 ## ------------------------------------------------ ##
12741 ## Report this to http://www.python.org/python-bugs ##
12742 ## ------------------------------------------------ ##
12745 sed "s/^/$as_me: WARNING: /" >&2
12748 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12749 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12750 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12755 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12756 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12759 if test $ac_cv_header_kernel_OS_h = yes; then
12760 cat >>confdefs.h
<<\_ACEOF
12761 #define WITH_THREAD 1
12765 cat >>confdefs.h
<<\_ACEOF
12766 #define BEOS_THREADS 1
12769 THREADOBJ
="Python/thread.o"
12772 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12773 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12774 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 ac_check_lib_save_LIBS
=$LIBS
12778 LIBS
="-lpthreads $LIBS"
12779 cat >conftest.
$ac_ext <<_ACEOF
12782 cat confdefs.h
>>conftest.
$ac_ext
12783 cat >>conftest.
$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12786 /* Override any gcc2 internal prototype to avoid an error. */
12790 /* We use char because int might match the return type of a gcc2
12791 builtin and then its argument prototype would still apply. */
12792 char pthread_create ();
12801 rm -f conftest.
$ac_objext conftest
$ac_exeext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12803 (eval $ac_link) 2>conftest.er1
12805 grep -v '^ *+' conftest.er1
>conftest.err
12807 cat conftest.err
>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
12810 { ac_try
='test -z "$ac_c_werror_flag"
12811 || test ! -s conftest.err'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try
='test -s conftest$ac_exeext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_lib_pthreads_pthread_create
=yes
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.
$ac_ext >&5
12828 ac_cv_lib_pthreads_pthread_create
=no
12830 rm -f conftest.err conftest.
$ac_objext \
12831 conftest
$ac_exeext conftest.
$ac_ext
12832 LIBS
=$ac_check_lib_save_LIBS
12834 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12835 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12836 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12837 cat >>confdefs.h
<<\_ACEOF
12838 #define WITH_THREAD 1
12842 LIBS
="$LIBS -lpthreads"
12843 THREADOBJ
="Python/thread.o"
12846 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12847 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12848 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 ac_check_lib_save_LIBS
=$LIBS
12853 cat >conftest.
$ac_ext <<_ACEOF
12856 cat confdefs.h
>>conftest.
$ac_ext
12857 cat >>conftest.
$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12860 /* Override any gcc2 internal prototype to avoid an error. */
12864 /* We use char because int might match the return type of a gcc2
12865 builtin and then its argument prototype would still apply. */
12866 char pthread_create ();
12875 rm -f conftest.
$ac_objext conftest
$ac_exeext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>conftest.er1
12879 grep -v '^ *+' conftest.er1
>conftest.err
12881 cat conftest.err
>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try
='test -z "$ac_c_werror_flag"
12885 || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try
='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_lib_c_r_pthread_create
=yes
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.
$ac_ext >&5
12902 ac_cv_lib_c_r_pthread_create
=no
12904 rm -f conftest.err conftest.
$ac_objext \
12905 conftest
$ac_exeext conftest.
$ac_ext
12906 LIBS
=$ac_check_lib_save_LIBS
12908 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12909 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12910 if test $ac_cv_lib_c_r_pthread_create = yes; then
12911 cat >>confdefs.h
<<\_ACEOF
12912 #define WITH_THREAD 1
12917 THREADOBJ
="Python/thread.o"
12920 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12921 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12922 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 ac_check_lib_save_LIBS
=$LIBS
12926 LIBS
="-lpthread $LIBS"
12927 cat >conftest.
$ac_ext <<_ACEOF
12930 cat confdefs.h
>>conftest.
$ac_ext
12931 cat >>conftest.
$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12934 /* Override any gcc2 internal prototype to avoid an error. */
12938 /* We use char because int might match the return type of a gcc2
12939 builtin and then its argument prototype would still apply. */
12940 char __pthread_create_system ();
12944 __pthread_create_system ();
12949 rm -f conftest.
$ac_objext conftest
$ac_exeext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>conftest.er1
12953 grep -v '^ *+' conftest.er1
>conftest.err
12955 cat conftest.err
>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try
='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try
='test -s conftest$ac_exeext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_cv_lib_pthread___pthread_create_system
=yes
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.
$ac_ext >&5
12976 ac_cv_lib_pthread___pthread_create_system
=no
12978 rm -f conftest.err conftest.
$ac_objext \
12979 conftest
$ac_exeext conftest.
$ac_ext
12980 LIBS
=$ac_check_lib_save_LIBS
12982 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12983 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12984 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12985 cat >>confdefs.h
<<\_ACEOF
12986 #define WITH_THREAD 1
12990 LIBS
="$LIBS -lpthread"
12991 THREADOBJ
="Python/thread.o"
12994 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12995 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12996 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 ac_check_lib_save_LIBS
=$LIBS
13001 cat >conftest.
$ac_ext <<_ACEOF
13004 cat confdefs.h
>>conftest.
$ac_ext
13005 cat >>conftest.
$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13008 /* Override any gcc2 internal prototype to avoid an error. */
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13014 char pthread_create ();
13023 rm -f conftest.
$ac_objext conftest
$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>conftest.er1
13027 grep -v '^ *+' conftest.er1
>conftest.err
13029 cat conftest.err
>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try
='test -z "$ac_c_werror_flag"
13033 || test ! -s conftest.err'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try
='test -s conftest$ac_exeext'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_lib_cma_pthread_create
=yes
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.
$ac_ext >&5
13050 ac_cv_lib_cma_pthread_create
=no
13052 rm -f conftest.err conftest.
$ac_objext \
13053 conftest
$ac_exeext conftest.
$ac_ext
13054 LIBS
=$ac_check_lib_save_LIBS
13056 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13057 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13058 if test $ac_cv_lib_cma_pthread_create = yes; then
13059 cat >>confdefs.h
<<\_ACEOF
13060 #define WITH_THREAD 1
13065 THREADOBJ
="Python/thread.o"
13068 USE_THREAD_MODULE
="#"
13087 rm -f conftest.err conftest.
$ac_objext \
13088 conftest
$ac_exeext conftest.
$ac_ext
13097 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13098 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13099 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 ac_check_lib_save_LIBS
=$LIBS
13104 cat >conftest.
$ac_ext <<_ACEOF
13107 cat confdefs.h
>>conftest.
$ac_ext
13108 cat >>conftest.
$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13111 /* Override any gcc2 internal prototype to avoid an error. */
13115 /* We use char because int might match the return type of a gcc2
13116 builtin and then its argument prototype would still apply. */
13126 rm -f conftest.
$ac_objext conftest
$ac_exeext
13127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13128 (eval $ac_link) 2>conftest.er1
13130 grep -v '^ *+' conftest.er1
>conftest.err
13132 cat conftest.err
>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try
='test -z "$ac_c_werror_flag"
13136 || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try
='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_lib_mpc_usconfig
=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.
$ac_ext >&5
13153 ac_cv_lib_mpc_usconfig
=no
13155 rm -f conftest.err conftest.
$ac_objext \
13156 conftest
$ac_exeext conftest.
$ac_ext
13157 LIBS
=$ac_check_lib_save_LIBS
13159 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13160 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13161 if test $ac_cv_lib_mpc_usconfig = yes; then
13162 cat >>confdefs.h
<<\_ACEOF
13163 #define WITH_THREAD 1
13167 THREADOBJ
="Python/thread.o"
13168 USE_THREAD_MODULE
=""
13172 if test "$posix_threads" != "yes"; then
13173 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13174 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13175 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 ac_check_lib_save_LIBS
=$LIBS
13179 LIBS
="-lthread $LIBS"
13180 cat >conftest.
$ac_ext <<_ACEOF
13183 cat confdefs.h
>>conftest.
$ac_ext
13184 cat >>conftest.
$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13187 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13193 char thr_create ();
13202 rm -f conftest.
$ac_objext conftest
$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>conftest.er1
13206 grep -v '^ *+' conftest.er1
>conftest.err
13208 cat conftest.err
>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try
='test -z "$ac_c_werror_flag"
13212 || test ! -s conftest.err'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try
='test -s conftest$ac_exeext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_cv_lib_thread_thr_create
=yes
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.
$ac_ext >&5
13229 ac_cv_lib_thread_thr_create
=no
13231 rm -f conftest.err conftest.
$ac_objext \
13232 conftest
$ac_exeext conftest.
$ac_ext
13233 LIBS
=$ac_check_lib_save_LIBS
13235 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13236 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13237 if test $ac_cv_lib_thread_thr_create = yes; then
13238 cat >>confdefs.h
<<\_ACEOF
13239 #define WITH_THREAD 1
13242 LIBS
="$LIBS -lthread"
13243 THREADOBJ
="Python/thread.o"
13244 USE_THREAD_MODULE
=""
13249 if test "$USE_THREAD_MODULE" != "#"
13251 # If the above checks didn't disable threads, (at least) OSF1
13252 # needs this '-threads' argument during linking.
13253 case $ac_sys_system in
13254 OSF1
) LDLAST
=-threads;;
13259 if test "$posix_threads" = "yes"; then
13260 if test "$unistd_defines_pthreads" = "no"; then
13262 cat >>confdefs.h
<<\_ACEOF
13263 #define _POSIX_THREADS 1
13268 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13269 case $ac_sys_system/$ac_sys_release in
13271 cat >>confdefs.h
<<\_ACEOF
13272 #define HAVE_PTHREAD_DESTRUCTOR 1
13277 cat >>confdefs.h
<<\_ACEOF
13278 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13284 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13285 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13286 if test "${ac_cv_pthread_system_supported+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 if test "$cross_compiling" = yes; then
13290 ac_cv_pthread_system_supported
=no
13292 cat >conftest.
$ac_ext <<_ACEOF
13295 cat confdefs.h
>>conftest.
$ac_ext
13296 cat >>conftest.
$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 #include <pthread.h>
13299 void *foo(void *parm) {
13303 pthread_attr_t attr;
13305 if (pthread_attr_init(&attr)) exit(-1);
13306 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13307 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13311 rm -f conftest
$ac_exeext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313 (eval $ac_link) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_pthread_system_supported
=yes
13324 echo "$as_me: program exited with status $ac_status" >&5
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.
$ac_ext >&5
13328 ( exit $ac_status )
13329 ac_cv_pthread_system_supported
=no
13331 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13336 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13337 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13338 if test "$ac_cv_pthread_system_supported" = "yes"; then
13340 cat >>confdefs.h
<<\_ACEOF
13341 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13346 for ac_func
in pthread_sigmask
13348 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13349 echo "$as_me:$LINENO: checking for $ac_func" >&5
13350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13351 if eval "test \"\${$as_ac_var+set}\" = set"; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 cat >conftest.
$ac_ext <<_ACEOF
13357 cat confdefs.h
>>conftest.
$ac_ext
13358 cat >>conftest.
$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13362 #define $ac_func innocuous_$ac_func
13364 /* System header to define __stub macros and hopefully few prototypes,
13365 which can conflict with char $ac_func (); below.
13366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13367 <limits.h> exists even on freestanding compilers. */
13370 # include <limits.h>
13372 # include <assert.h>
13377 /* Override any gcc2 internal prototype to avoid an error. */
13382 /* We use char because int might match the return type of a gcc2
13383 builtin and then its argument prototype would still apply. */
13385 /* The GNU C library defines this for functions which it implements
13386 to always fail with ENOSYS. Some functions are actually named
13387 something starting with __ and the normal name is an alias. */
13388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13391 char (*f) () = $ac_func;
13400 return f != $ac_func;
13405 rm -f conftest.
$ac_objext conftest
$ac_exeext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13407 (eval $ac_link) 2>conftest.er1
13409 grep -v '^ *+' conftest.er1
>conftest.err
13411 cat conftest.err
>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try
='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try
='test -s conftest$ac_exeext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 eval "$as_ac_var=yes"
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.
$ac_ext >&5
13432 eval "$as_ac_var=no"
13434 rm -f conftest.err conftest.
$ac_objext \
13435 conftest
$ac_exeext conftest.
$ac_ext
13437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13439 if test `eval echo '${'$as_ac_var'}'` = yes; then
13440 cat >>confdefs.h
<<_ACEOF
13441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13443 case $ac_sys_system in
13446 cat >>confdefs.h
<<\_ACEOF
13447 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13458 # Check for enable-ipv6
13461 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13462 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13463 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13464 if test "${enable_ipv6+set}" = set; then
13465 enableval
="$enable_ipv6"
13466 case "$enableval" in
13468 echo "$as_me:$LINENO: result: no" >&5
13469 echo "${ECHO_T}no" >&6
13472 *) echo "$as_me:$LINENO: result: yes" >&5
13473 echo "${ECHO_T}yes" >&6
13474 cat >>confdefs.h
<<\_ACEOF
13475 #define ENABLE_IPV6 1
13483 if test "$cross_compiling" = yes; then
13484 echo "$as_me:$LINENO: result: no" >&5
13485 echo "${ECHO_T}no" >&6
13489 cat >conftest.
$ac_ext <<_ACEOF
13492 cat confdefs.h
>>conftest.
$ac_ext
13493 cat >>conftest.
$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 /* AF_INET6 available check */
13496 #include <sys/types.h>
13497 #include <sys/socket.h>
13500 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13507 rm -f conftest
$ac_exeext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509 (eval $ac_link) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 echo "$as_me:$LINENO: result: yes" >&5
13519 echo "${ECHO_T}yes" >&6
13522 echo "$as_me: program exited with status $ac_status" >&5
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.
$ac_ext >&5
13526 ( exit $ac_status )
13527 echo "$as_me:$LINENO: result: no" >&5
13528 echo "${ECHO_T}no" >&6
13531 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13534 if test "$ipv6" = "yes"; then
13535 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13536 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13537 cat >conftest.
$ac_ext <<_ACEOF
13540 cat confdefs.h
>>conftest.
$ac_ext
13541 cat >>conftest.
$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 #include <sys/types.h>
13544 #include <netinet/in.h>
13548 struct sockaddr_in6 x;
13554 rm -f conftest.
$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>conftest.er1
13558 grep -v '^ *+' conftest.er1
>conftest.err
13560 cat conftest.err
>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try
='test -z "$ac_c_werror_flag"
13564 || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try
='test -s conftest.$ac_objext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 echo "$as_me:$LINENO: result: yes" >&5
13577 echo "${ECHO_T}yes" >&6
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.
$ac_ext >&5
13583 echo "$as_me:$LINENO: result: no" >&5
13584 echo "${ECHO_T}no" >&6
13587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13590 if test "$ipv6" = "yes"; then
13591 cat >>confdefs.h
<<\_ACEOF
13592 #define ENABLE_IPV6 1
13603 if test "$ipv6" = "yes"; then
13604 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13605 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13606 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13610 cat >conftest.
$ac_ext <<_ACEOF
13613 cat confdefs.h
>>conftest.
$ac_ext
13614 cat >>conftest.
$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13617 #include <netinet/in.h>
13618 #ifdef IPV6_INRIA_VERSION
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 $EGREP "yes" >/dev
/null
2>&1; then
13630 cat >conftest.
$ac_ext <<_ACEOF
13633 cat confdefs.h
>>conftest.
$ac_ext
13634 cat >>conftest.
$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13637 #include <netinet/in.h>
13642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13643 $EGREP "yes" >/dev
/null
2>&1; then
13646 ipv6libdir
=/usr
/local
/v
6/lib
13653 cat >conftest.
$ac_ext <<_ACEOF
13656 cat confdefs.h
>>conftest.
$ac_ext
13657 cat >>conftest.
$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13660 #include <features.h>
13661 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13666 $EGREP "yes" >/dev
/null
2>&1; then
13674 if test -d /usr
/inet6
; then
13677 ipv6libdir
=/usr
/inet
6/lib
13678 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13682 if test -f /etc
/netconfig
; then
13683 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13690 cat >conftest.
$ac_ext <<_ACEOF
13693 cat confdefs.h
>>conftest.
$ac_ext
13694 cat >>conftest.
$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13697 #include <sys/param.h>
13698 #ifdef _TOSHIBA_INET6
13702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13703 $EGREP "yes" >/dev
/null
2>&1; then
13706 ipv6libdir
=/usr
/local
/v
6/lib
13712 cat >conftest.
$ac_ext <<_ACEOF
13715 cat confdefs.h
>>conftest.
$ac_ext
13716 cat >>conftest.
$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13719 #include </usr/local/v6/include/sys/v6config.h>
13724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13725 $EGREP "yes" >/dev
/null
2>&1; then
13728 ipv6libdir
=/usr
/local
/v
6/lib
;
13729 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13735 cat >conftest.
$ac_ext <<_ACEOF
13738 cat confdefs.h
>>conftest.
$ac_ext
13739 cat >>conftest.
$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13742 #include <sys/param.h>
13743 #ifdef _ZETA_MINAMI_INET6
13747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13748 $EGREP "yes" >/dev
/null
2>&1; then
13751 ipv6libdir
=/usr
/local
/v
6/lib
13757 if test "$ipv6type" != "unknown"; then
13761 echo "$as_me:$LINENO: result: $ipv6type" >&5
13762 echo "${ECHO_T}$ipv6type" >&6
13765 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13766 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13767 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13768 echo "using lib$ipv6lib"
13770 if test $ipv6trylibc = "yes"; then
13773 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13774 echo "You need to fetch lib$ipv6lib.a from appropriate"
13775 echo 'ipv6 kit and compile beforehand.'
13781 # Check for --with-doc-strings
13782 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13783 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13785 # Check whether --with-doc-strings or --without-doc-strings was given.
13786 if test "${with_doc_strings+set}" = set; then
13787 withval
="$with_doc_strings"
13791 if test -z "$with_doc_strings"
13792 then with_doc_strings
="yes"
13794 if test "$with_doc_strings" != "no"
13797 cat >>confdefs.h
<<\_ACEOF
13798 #define WITH_DOC_STRINGS 1
13802 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13803 echo "${ECHO_T}$with_doc_strings" >&6
13805 # Check for Python-specific malloc support
13806 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13807 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13809 # Check whether --with-tsc or --without-tsc was given.
13810 if test "${with_tsc+set}" = set; then
13811 withval
="$with_tsc"
13813 if test "$withval" != no
13816 cat >>confdefs.h
<<\_ACEOF
13820 echo "$as_me:$LINENO: result: yes" >&5
13821 echo "${ECHO_T}yes" >&6
13822 else echo "$as_me:$LINENO: result: no" >&5
13823 echo "${ECHO_T}no" >&6
13826 echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6
13830 # Check for Python-specific malloc support
13831 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13832 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13834 # Check whether --with-pymalloc or --without-pymalloc was given.
13835 if test "${with_pymalloc+set}" = set; then
13836 withval
="$with_pymalloc"
13840 if test -z "$with_pymalloc"
13841 then with_pymalloc
="yes"
13843 if test "$with_pymalloc" != "no"
13846 cat >>confdefs.h
<<\_ACEOF
13847 #define WITH_PYMALLOC 1
13851 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13852 echo "${ECHO_T}$with_pymalloc" >&6
13854 # Check for --with-wctype-functions
13855 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13856 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13858 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13859 if test "${with_wctype_functions+set}" = set; then
13860 withval
="$with_wctype_functions"
13862 if test "$withval" != no
13865 cat >>confdefs.h
<<\_ACEOF
13866 #define WANT_WCTYPE_FUNCTIONS 1
13869 echo "$as_me:$LINENO: result: yes" >&5
13870 echo "${ECHO_T}yes" >&6
13871 else echo "$as_me:$LINENO: result: no" >&5
13872 echo "${ECHO_T}no" >&6
13875 echo "$as_me:$LINENO: result: no" >&5
13876 echo "${ECHO_T}no" >&6
13879 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13883 # the dlopen() function means we might want to use dynload_shlib.o. some
13884 # platforms, such as AIX, have dlopen(), but don't want to use it.
13886 for ac_func
in dlopen
13888 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13889 echo "$as_me:$LINENO: checking for $ac_func" >&5
13890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13891 if eval "test \"\${$as_ac_var+set}\" = set"; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 cat >conftest.
$ac_ext <<_ACEOF
13897 cat confdefs.h
>>conftest.
$ac_ext
13898 cat >>conftest.
$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13902 #define $ac_func innocuous_$ac_func
13904 /* System header to define __stub macros and hopefully few prototypes,
13905 which can conflict with char $ac_func (); below.
13906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13907 <limits.h> exists even on freestanding compilers. */
13910 # include <limits.h>
13912 # include <assert.h>
13917 /* Override any gcc2 internal prototype to avoid an error. */
13922 /* We use char because int might match the return type of a gcc2
13923 builtin and then its argument prototype would still apply. */
13925 /* The GNU C library defines this for functions which it implements
13926 to always fail with ENOSYS. Some functions are actually named
13927 something starting with __ and the normal name is an alias. */
13928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13931 char (*f) () = $ac_func;
13940 return f != $ac_func;
13945 rm -f conftest.
$ac_objext conftest
$ac_exeext
13946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13947 (eval $ac_link) 2>conftest.er1
13949 grep -v '^ *+' conftest.er1
>conftest.err
13951 cat conftest.err
>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try
='test -z "$ac_c_werror_flag"
13955 || test ! -s conftest.err'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; } &&
13961 { ac_try
='test -s conftest$ac_exeext'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 eval "$as_ac_var=yes"
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.
$ac_ext >&5
13972 eval "$as_ac_var=no"
13974 rm -f conftest.err conftest.
$ac_objext \
13975 conftest
$ac_exeext conftest.
$ac_ext
13977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13979 if test `eval echo '${'$as_ac_var'}'` = yes; then
13980 cat >>confdefs.h
<<_ACEOF
13981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13988 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13989 # loading of modules.
13991 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13992 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13993 if test -z "$DYNLOADFILE"
13995 case $ac_sys_system/$ac_sys_release in
13996 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13997 if test "$ac_cv_func_dlopen" = yes
13998 then DYNLOADFILE
="dynload_shlib.o"
13999 else DYNLOADFILE
="dynload_aix.o"
14002 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14003 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14004 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14005 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14006 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14008 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14009 # out any dynamic loading
14010 if test "$ac_cv_func_dlopen" = yes
14011 then DYNLOADFILE
="dynload_shlib.o"
14012 else DYNLOADFILE
="dynload_stub.o"
14017 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14018 echo "${ECHO_T}$DYNLOADFILE" >&6
14019 if test "$DYNLOADFILE" != "dynload_stub.o"
14022 cat >>confdefs.h
<<\_ACEOF
14023 #define HAVE_DYNAMIC_LOADING 1
14028 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14031 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14032 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14033 if test -z "$MACHDEP_OBJS"
14035 MACHDEP_OBJS
=$extra_machdep_objs
14037 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14039 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14040 echo "${ECHO_T}MACHDEP_OBJS" >&6
14042 # checks for library functions
14119 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14120 execv fork fpathconf ftime ftruncate \
14121 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14122 getpriority getpwent getspnam getspent getsid getwd \
14123 kill killpg lchown lstat
mkfifo mknod mktime \
14124 mremap nice pathconf pause plock poll pthread_init \
14125 putenv readlink realpath \
14126 select setegid seteuid setgid \
14127 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14128 sigaction siginterrupt sigrelse strftime \
14129 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14130 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14132 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14133 echo "$as_me:$LINENO: checking for $ac_func" >&5
14134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_var+set}\" = set"; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 cat >conftest.
$ac_ext <<_ACEOF
14141 cat confdefs.h
>>conftest.
$ac_ext
14142 cat >>conftest.
$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14146 #define $ac_func innocuous_$ac_func
14148 /* System header to define __stub macros and hopefully few prototypes,
14149 which can conflict with char $ac_func (); below.
14150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14151 <limits.h> exists even on freestanding compilers. */
14154 # include <limits.h>
14156 # include <assert.h>
14161 /* Override any gcc2 internal prototype to avoid an error. */
14166 /* We use char because int might match the return type of a gcc2
14167 builtin and then its argument prototype would still apply. */
14169 /* The GNU C library defines this for functions which it implements
14170 to always fail with ENOSYS. Some functions are actually named
14171 something starting with __ and the normal name is an alias. */
14172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14175 char (*f) () = $ac_func;
14184 return f != $ac_func;
14189 rm -f conftest.
$ac_objext conftest
$ac_exeext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14191 (eval $ac_link) 2>conftest.er1
14193 grep -v '^ *+' conftest.er1
>conftest.err
14195 cat conftest.err
>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try
='test -z "$ac_c_werror_flag"
14199 || test ! -s conftest.err'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try
='test -s conftest$ac_exeext'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 eval "$as_ac_var=yes"
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.
$ac_ext >&5
14216 eval "$as_ac_var=no"
14218 rm -f conftest.err conftest.
$ac_objext \
14219 conftest
$ac_exeext conftest.
$ac_ext
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14223 if test `eval echo '${'$as_ac_var'}'` = yes; then
14224 cat >>confdefs.h
<<_ACEOF
14225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14232 # For some functions, having a definition is not sufficient, since
14233 # we want to take their address.
14234 echo "$as_me:$LINENO: checking for chroot" >&5
14235 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14236 cat >conftest.
$ac_ext <<_ACEOF
14239 cat confdefs.h
>>conftest.
$ac_ext
14240 cat >>conftest.
$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 #include <unistd.h>
14251 rm -f conftest.
$ac_objext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14253 (eval $ac_compile) 2>conftest.er1
14255 grep -v '^ *+' conftest.er1
>conftest.err
14257 cat conftest.err
>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try
='test -z "$ac_c_werror_flag"
14261 || test ! -s conftest.err'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; } &&
14267 { ac_try
='test -s conftest.$ac_objext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14274 cat >>confdefs.h
<<\_ACEOF
14275 #define HAVE_CHROOT 1
14278 echo "$as_me:$LINENO: result: yes" >&5
14279 echo "${ECHO_T}yes" >&6
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.
$ac_ext >&5
14284 echo "$as_me:$LINENO: result: no" >&5
14285 echo "${ECHO_T}no" >&6
14288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14289 echo "$as_me:$LINENO: checking for link" >&5
14290 echo $ECHO_N "checking for link... $ECHO_C" >&6
14291 cat >conftest.
$ac_ext <<_ACEOF
14294 cat confdefs.h
>>conftest.
$ac_ext
14295 cat >>conftest.
$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <unistd.h>
14306 rm -f conftest.
$ac_objext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308 (eval $ac_compile) 2>conftest.er1
14310 grep -v '^ *+' conftest.er1
>conftest.err
14312 cat conftest.err
>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try
='test -z "$ac_c_werror_flag"
14316 || test ! -s conftest.err'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try
='test -s conftest.$ac_objext'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14329 cat >>confdefs.h
<<\_ACEOF
14330 #define HAVE_LINK 1
14333 echo "$as_me:$LINENO: result: yes" >&5
14334 echo "${ECHO_T}yes" >&6
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.
$ac_ext >&5
14339 echo "$as_me:$LINENO: result: no" >&5
14340 echo "${ECHO_T}no" >&6
14343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14344 echo "$as_me:$LINENO: checking for symlink" >&5
14345 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14346 cat >conftest.
$ac_ext <<_ACEOF
14349 cat confdefs.h
>>conftest.
$ac_ext
14350 cat >>conftest.
$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 #include <unistd.h>
14361 rm -f conftest.
$ac_objext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14363 (eval $ac_compile) 2>conftest.er1
14365 grep -v '^ *+' conftest.er1
>conftest.err
14367 cat conftest.err
>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try
='test -z "$ac_c_werror_flag"
14371 || test ! -s conftest.err'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try
='test -s conftest.$ac_objext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14384 cat >>confdefs.h
<<\_ACEOF
14385 #define HAVE_SYMLINK 1
14388 echo "$as_me:$LINENO: result: yes" >&5
14389 echo "${ECHO_T}yes" >&6
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.
$ac_ext >&5
14394 echo "$as_me:$LINENO: result: no" >&5
14395 echo "${ECHO_T}no" >&6
14398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14399 echo "$as_me:$LINENO: checking for fchdir" >&5
14400 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14401 cat >conftest.
$ac_ext <<_ACEOF
14404 cat confdefs.h
>>conftest.
$ac_ext
14405 cat >>conftest.
$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 #include <unistd.h>
14416 rm -f conftest.
$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>conftest.er1
14420 grep -v '^ *+' conftest.er1
>conftest.err
14422 cat conftest.err
>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try
='test -z "$ac_c_werror_flag"
14426 || test ! -s conftest.err'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try
='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14439 cat >>confdefs.h
<<\_ACEOF
14440 #define HAVE_FCHDIR 1
14443 echo "$as_me:$LINENO: result: yes" >&5
14444 echo "${ECHO_T}yes" >&6
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.
$ac_ext >&5
14449 echo "$as_me:$LINENO: result: no" >&5
14450 echo "${ECHO_T}no" >&6
14453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14454 echo "$as_me:$LINENO: checking for fsync" >&5
14455 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14456 cat >conftest.
$ac_ext <<_ACEOF
14459 cat confdefs.h
>>conftest.
$ac_ext
14460 cat >>conftest.
$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 #include <unistd.h>
14471 rm -f conftest.
$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>conftest.er1
14475 grep -v '^ *+' conftest.er1
>conftest.err
14477 cat conftest.err
>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try
='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try
='test -s conftest.$ac_objext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14494 cat >>confdefs.h
<<\_ACEOF
14495 #define HAVE_FSYNC 1
14498 echo "$as_me:$LINENO: result: yes" >&5
14499 echo "${ECHO_T}yes" >&6
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.
$ac_ext >&5
14504 echo "$as_me:$LINENO: result: no" >&5
14505 echo "${ECHO_T}no" >&6
14508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14509 echo "$as_me:$LINENO: checking for fdatasync" >&5
14510 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14511 cat >conftest.
$ac_ext <<_ACEOF
14514 cat confdefs.h
>>conftest.
$ac_ext
14515 cat >>conftest.
$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <unistd.h>
14526 rm -f conftest.
$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528 (eval $ac_compile) 2>conftest.er1
14530 grep -v '^ *+' conftest.er1
>conftest.err
14532 cat conftest.err
>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try
='test -z "$ac_c_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try
='test -s conftest.$ac_objext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14549 cat >>confdefs.h
<<\_ACEOF
14550 #define HAVE_FDATASYNC 1
14553 echo "$as_me:$LINENO: result: yes" >&5
14554 echo "${ECHO_T}yes" >&6
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.
$ac_ext >&5
14559 echo "$as_me:$LINENO: result: no" >&5
14560 echo "${ECHO_T}no" >&6
14563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14565 # On some systems (eg. FreeBSD 5), we would find a definition of the
14566 # functions ctermid_r, setgroups in the library, but no prototype
14567 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14568 # address to avoid compiler warnings and potential miscompilations
14569 # because of the missing prototypes.
14571 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14572 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14573 cat >conftest.
$ac_ext <<_ACEOF
14576 cat confdefs.h
>>conftest.
$ac_ext
14577 cat >>conftest.
$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14580 #include "confdefs.h"
14586 void* p = ctermid_r
14591 rm -f conftest.
$ac_objext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14593 (eval $ac_compile) 2>conftest.er1
14595 grep -v '^ *+' conftest.er1
>conftest.err
14597 cat conftest.err
>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try
='test -z "$ac_c_werror_flag"
14601 || test ! -s conftest.err'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; } &&
14607 { ac_try
='test -s conftest.$ac_objext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14614 cat >>confdefs.h
<<\_ACEOF
14615 #define HAVE_CTERMID_R 1
14618 echo "$as_me:$LINENO: result: yes" >&5
14619 echo "${ECHO_T}yes" >&6
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.
$ac_ext >&5
14624 echo "$as_me:$LINENO: result: no" >&5
14625 echo "${ECHO_T}no" >&6
14628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14630 echo "$as_me:$LINENO: checking for flock" >&5
14631 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14632 cat >conftest.
$ac_ext <<_ACEOF
14635 cat confdefs.h
>>conftest.
$ac_ext
14636 cat >>conftest.
$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14639 #include "confdefs.h"
14640 #include <sys/file.h>
14650 rm -f conftest.
$ac_objext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>conftest.er1
14654 grep -v '^ *+' conftest.er1
>conftest.err
14656 cat conftest.err
>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try
='test -z "$ac_c_werror_flag"
14660 || test ! -s conftest.err'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try
='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14673 cat >>confdefs.h
<<\_ACEOF
14674 #define HAVE_FLOCK 1
14677 echo "$as_me:$LINENO: result: yes" >&5
14678 echo "${ECHO_T}yes" >&6
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.
$ac_ext >&5
14683 echo "$as_me:$LINENO: result: no" >&5
14684 echo "${ECHO_T}no" >&6
14687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14689 echo "$as_me:$LINENO: checking for getpagesize" >&5
14690 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14691 cat >conftest.
$ac_ext <<_ACEOF
14694 cat confdefs.h
>>conftest.
$ac_ext
14695 cat >>conftest.
$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14698 #include "confdefs.h"
14699 #include <unistd.h>
14704 void* p = getpagesize
14709 rm -f conftest.
$ac_objext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711 (eval $ac_compile) 2>conftest.er1
14713 grep -v '^ *+' conftest.er1
>conftest.err
14715 cat conftest.err
>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try
='test -z "$ac_c_werror_flag"
14719 || test ! -s conftest.err'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try
='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14732 cat >>confdefs.h
<<\_ACEOF
14733 #define HAVE_GETPAGESIZE 1
14736 echo "$as_me:$LINENO: result: yes" >&5
14737 echo "${ECHO_T}yes" >&6
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.
$ac_ext >&5
14742 echo "$as_me:$LINENO: result: no" >&5
14743 echo "${ECHO_T}no" >&6
14746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14748 for ac_prog
in true
14750 # Extract the first word of "$ac_prog", so it can be a program name with args.
14751 set dummy
$ac_prog; ac_word
=$2
14752 echo "$as_me:$LINENO: checking for $ac_word" >&5
14753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14754 if test "${ac_cv_prog_TRUE+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 if test -n "$TRUE"; then
14758 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14761 for as_dir
in $PATH
14764 test -z "$as_dir" && as_dir
=.
14765 for ac_exec_ext
in '' $ac_executable_extensions; do
14766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14767 ac_cv_prog_TRUE
="$ac_prog"
14768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14776 TRUE
=$ac_cv_prog_TRUE
14777 if test -n "$TRUE"; then
14778 echo "$as_me:$LINENO: result: $TRUE" >&5
14779 echo "${ECHO_T}$TRUE" >&6
14781 echo "$as_me:$LINENO: result: no" >&5
14782 echo "${ECHO_T}no" >&6
14785 test -n "$TRUE" && break
14787 test -n "$TRUE" || TRUE
="/bin/true"
14790 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14791 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14792 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 ac_check_lib_save_LIBS
=$LIBS
14797 cat >conftest.
$ac_ext <<_ACEOF
14800 cat confdefs.h
>>conftest.
$ac_ext
14801 cat >>conftest.
$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14804 /* Override any gcc2 internal prototype to avoid an error. */
14808 /* We use char because int might match the return type of a gcc2
14809 builtin and then its argument prototype would still apply. */
14819 rm -f conftest.
$ac_objext conftest
$ac_exeext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14821 (eval $ac_link) 2>conftest.er1
14823 grep -v '^ *+' conftest.er1
>conftest.err
14825 cat conftest.err
>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try
='test -z "$ac_c_werror_flag"
14829 || test ! -s conftest.err'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try
='test -s conftest$ac_exeext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_lib_c_inet_aton
=yes
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.
$ac_ext >&5
14846 ac_cv_lib_c_inet_aton
=no
14848 rm -f conftest.err conftest.
$ac_objext \
14849 conftest
$ac_exeext conftest.
$ac_ext
14850 LIBS
=$ac_check_lib_save_LIBS
14852 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14853 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14854 if test $ac_cv_lib_c_inet_aton = yes; then
14858 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14859 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14860 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 ac_check_lib_save_LIBS
=$LIBS
14864 LIBS
="-lresolv $LIBS"
14865 cat >conftest.
$ac_ext <<_ACEOF
14868 cat confdefs.h
>>conftest.
$ac_ext
14869 cat >>conftest.
$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14872 /* Override any gcc2 internal prototype to avoid an error. */
14876 /* We use char because int might match the return type of a gcc2
14877 builtin and then its argument prototype would still apply. */
14887 rm -f conftest.
$ac_objext conftest
$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>conftest.er1
14891 grep -v '^ *+' conftest.er1
>conftest.err
14893 cat conftest.err
>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try
='test -z "$ac_c_werror_flag"
14897 || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try
='test -s conftest$ac_exeext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_lib_resolv_inet_aton
=yes
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.
$ac_ext >&5
14914 ac_cv_lib_resolv_inet_aton
=no
14916 rm -f conftest.err conftest.
$ac_objext \
14917 conftest
$ac_exeext conftest.
$ac_ext
14918 LIBS
=$ac_check_lib_save_LIBS
14920 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14921 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14922 if test $ac_cv_lib_resolv_inet_aton = yes; then
14923 cat >>confdefs.h
<<_ACEOF
14924 #define HAVE_LIBRESOLV 1
14927 LIBS
="-lresolv $LIBS"
14935 echo "$as_me:$LINENO: checking for hstrerror" >&5
14936 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14937 cat >conftest.
$ac_ext <<_ACEOF
14940 cat confdefs.h
>>conftest.
$ac_ext
14941 cat >>conftest.
$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14944 #include "confdefs.h"
14950 void* p = hstrerror; hstrerror(0)
14955 rm -f conftest.
$ac_objext conftest
$ac_exeext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14957 (eval $ac_link) 2>conftest.er1
14959 grep -v '^ *+' conftest.er1
>conftest.err
14961 cat conftest.err
>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try
='test -z "$ac_c_werror_flag"
14965 || test ! -s conftest.err'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } &&
14971 { ac_try
='test -s conftest$ac_exeext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14978 cat >>confdefs.h
<<\_ACEOF
14979 #define HAVE_HSTRERROR 1
14982 echo "$as_me:$LINENO: result: yes" >&5
14983 echo "${ECHO_T}yes" >&6
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.
$ac_ext >&5
14988 echo "$as_me:$LINENO: result: no" >&5
14989 echo "${ECHO_T}no" >&6
14992 rm -f conftest.err conftest.
$ac_objext \
14993 conftest
$ac_exeext conftest.
$ac_ext
14995 echo "$as_me:$LINENO: checking for inet_aton" >&5
14996 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14997 cat >conftest.
$ac_ext <<_ACEOF
15000 cat confdefs.h
>>conftest.
$ac_ext
15001 cat >>conftest.
$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15004 #include "confdefs.h"
15005 #include <sys/types.h>
15006 #include <sys/socket.h>
15007 #include <netinet/in.h>
15008 #include <arpa/inet.h>
15013 void* p = inet_aton;inet_aton(0,0)
15018 rm -f conftest.
$ac_objext conftest
$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020 (eval $ac_link) 2>conftest.er1
15022 grep -v '^ *+' conftest.er1
>conftest.err
15024 cat conftest.err
>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try
='test -z "$ac_c_werror_flag"
15028 || test ! -s conftest.err'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try
='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15041 cat >>confdefs.h
<<\_ACEOF
15042 #define HAVE_INET_ATON 1
15045 echo "$as_me:$LINENO: result: yes" >&5
15046 echo "${ECHO_T}yes" >&6
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.
$ac_ext >&5
15051 echo "$as_me:$LINENO: result: no" >&5
15052 echo "${ECHO_T}no" >&6
15055 rm -f conftest.err conftest.
$ac_objext \
15056 conftest
$ac_exeext conftest.
$ac_ext
15058 echo "$as_me:$LINENO: checking for inet_pton" >&5
15059 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15060 cat >conftest.
$ac_ext <<_ACEOF
15063 cat confdefs.h
>>conftest.
$ac_ext
15064 cat >>conftest.
$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15067 #include "confdefs.h"
15068 #include <sys/types.h>
15069 #include <sys/socket.h>
15070 #include <netinet/in.h>
15071 #include <arpa/inet.h>
15076 void* p = inet_pton
15081 rm -f conftest.
$ac_objext
15082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083 (eval $ac_compile) 2>conftest.er1
15085 grep -v '^ *+' conftest.er1
>conftest.err
15087 cat conftest.err
>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try
='test -z "$ac_c_werror_flag"
15091 || test ! -s conftest.err'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try
='test -s conftest.$ac_objext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15104 cat >>confdefs.h
<<\_ACEOF
15105 #define HAVE_INET_PTON 1
15108 echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.
$ac_ext >&5
15114 echo "$as_me:$LINENO: result: no" >&5
15115 echo "${ECHO_T}no" >&6
15118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15120 # On some systems, setgroups is in unistd.h, on others, in grp.h
15121 echo "$as_me:$LINENO: checking for setgroups" >&5
15122 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15123 cat >conftest.
$ac_ext <<_ACEOF
15126 cat confdefs.h
>>conftest.
$ac_ext
15127 cat >>conftest.
$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 #include "confdefs.h"
15131 #include <unistd.h>
15139 void* p = setgroups
15144 rm -f conftest.
$ac_objext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146 (eval $ac_compile) 2>conftest.er1
15148 grep -v '^ *+' conftest.er1
>conftest.err
15150 cat conftest.err
>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try
='test -z "$ac_c_werror_flag"
15154 || test ! -s conftest.err'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try
='test -s conftest.$ac_objext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15167 cat >>confdefs.h
<<\_ACEOF
15168 #define HAVE_SETGROUPS 1
15171 echo "$as_me:$LINENO: result: yes" >&5
15172 echo "${ECHO_T}yes" >&6
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.
$ac_ext >&5
15177 echo "$as_me:$LINENO: result: no" >&5
15178 echo "${ECHO_T}no" >&6
15181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15183 # check for openpty and forkpty
15186 for ac_func
in openpty
15188 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15189 echo "$as_me:$LINENO: checking for $ac_func" >&5
15190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15191 if eval "test \"\${$as_ac_var+set}\" = set"; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 cat >conftest.
$ac_ext <<_ACEOF
15197 cat confdefs.h
>>conftest.
$ac_ext
15198 cat >>conftest.
$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15202 #define $ac_func innocuous_$ac_func
15204 /* System header to define __stub macros and hopefully few prototypes,
15205 which can conflict with char $ac_func (); below.
15206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15207 <limits.h> exists even on freestanding compilers. */
15210 # include <limits.h>
15212 # include <assert.h>
15217 /* Override any gcc2 internal prototype to avoid an error. */
15222 /* We use char because int might match the return type of a gcc2
15223 builtin and then its argument prototype would still apply. */
15225 /* The GNU C library defines this for functions which it implements
15226 to always fail with ENOSYS. Some functions are actually named
15227 something starting with __ and the normal name is an alias. */
15228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15231 char (*f) () = $ac_func;
15240 return f != $ac_func;
15245 rm -f conftest.
$ac_objext conftest
$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247 (eval $ac_link) 2>conftest.er1
15249 grep -v '^ *+' conftest.er1
>conftest.err
15251 cat conftest.err
>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try
='test -z "$ac_c_werror_flag"
15255 || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try
='test -s conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 eval "$as_ac_var=yes"
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.
$ac_ext >&5
15272 eval "$as_ac_var=no"
15274 rm -f conftest.err conftest.
$ac_objext \
15275 conftest
$ac_exeext conftest.
$ac_ext
15277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15279 if test `eval echo '${'$as_ac_var'}'` = yes; then
15280 cat >>confdefs.h
<<_ACEOF
15281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15285 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15286 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15287 if test "${ac_cv_lib_util_openpty+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 ac_check_lib_save_LIBS
=$LIBS
15291 LIBS
="-lutil $LIBS"
15292 cat >conftest.
$ac_ext <<_ACEOF
15295 cat confdefs.h
>>conftest.
$ac_ext
15296 cat >>conftest.
$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 /* Override any gcc2 internal prototype to avoid an error. */
15303 /* We use char because int might match the return type of a gcc2
15304 builtin and then its argument prototype would still apply. */
15314 rm -f conftest.
$ac_objext conftest
$ac_exeext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316 (eval $ac_link) 2>conftest.er1
15318 grep -v '^ *+' conftest.er1
>conftest.err
15320 cat conftest.err
>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try
='test -z "$ac_c_werror_flag"
15324 || test ! -s conftest.err'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try
='test -s conftest$ac_exeext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_lib_util_openpty
=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.
$ac_ext >&5
15341 ac_cv_lib_util_openpty
=no
15343 rm -f conftest.err conftest.
$ac_objext \
15344 conftest
$ac_exeext conftest.
$ac_ext
15345 LIBS
=$ac_check_lib_save_LIBS
15347 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15348 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15349 if test $ac_cv_lib_util_openpty = yes; then
15350 cat >>confdefs.h
<<\_ACEOF
15351 #define HAVE_OPENPTY 1
15353 LIBS
="$LIBS -lutil"
15355 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15356 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15357 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 ac_check_lib_save_LIBS
=$LIBS
15362 cat >conftest.
$ac_ext <<_ACEOF
15365 cat confdefs.h
>>conftest.
$ac_ext
15366 cat >>conftest.
$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15369 /* Override any gcc2 internal prototype to avoid an error. */
15373 /* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15384 rm -f conftest.
$ac_objext conftest
$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386 (eval $ac_link) 2>conftest.er1
15388 grep -v '^ *+' conftest.er1
>conftest.err
15390 cat conftest.err
>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try
='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try
='test -s conftest$ac_exeext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_cv_lib_bsd_openpty
=yes
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.
$ac_ext >&5
15411 ac_cv_lib_bsd_openpty
=no
15413 rm -f conftest.err conftest.
$ac_objext \
15414 conftest
$ac_exeext conftest.
$ac_ext
15415 LIBS
=$ac_check_lib_save_LIBS
15417 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15418 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15419 if test $ac_cv_lib_bsd_openpty = yes; then
15420 cat >>confdefs.h
<<\_ACEOF
15421 #define HAVE_OPENPTY 1
15434 for ac_func
in forkpty
15436 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15437 echo "$as_me:$LINENO: checking for $ac_func" >&5
15438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15439 if eval "test \"\${$as_ac_var+set}\" = set"; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 cat >conftest.
$ac_ext <<_ACEOF
15445 cat confdefs.h
>>conftest.
$ac_ext
15446 cat >>conftest.
$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15450 #define $ac_func innocuous_$ac_func
15452 /* System header to define __stub macros and hopefully few prototypes,
15453 which can conflict with char $ac_func (); below.
15454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15455 <limits.h> exists even on freestanding compilers. */
15458 # include <limits.h>
15460 # include <assert.h>
15465 /* Override any gcc2 internal prototype to avoid an error. */
15470 /* We use char because int might match the return type of a gcc2
15471 builtin and then its argument prototype would still apply. */
15473 /* The GNU C library defines this for functions which it implements
15474 to always fail with ENOSYS. Some functions are actually named
15475 something starting with __ and the normal name is an alias. */
15476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15479 char (*f) () = $ac_func;
15488 return f != $ac_func;
15493 rm -f conftest.
$ac_objext conftest
$ac_exeext
15494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15495 (eval $ac_link) 2>conftest.er1
15497 grep -v '^ *+' conftest.er1
>conftest.err
15499 cat conftest.err
>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try
='test -z "$ac_c_werror_flag"
15503 || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try
='test -s conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 eval "$as_ac_var=yes"
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.
$ac_ext >&5
15520 eval "$as_ac_var=no"
15522 rm -f conftest.err conftest.
$ac_objext \
15523 conftest
$ac_exeext conftest.
$ac_ext
15525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15527 if test `eval echo '${'$as_ac_var'}'` = yes; then
15528 cat >>confdefs.h
<<_ACEOF
15529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15533 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15534 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15535 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 ac_check_lib_save_LIBS
=$LIBS
15539 LIBS
="-lutil $LIBS"
15540 cat >conftest.
$ac_ext <<_ACEOF
15543 cat confdefs.h
>>conftest.
$ac_ext
15544 cat >>conftest.
$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15547 /* Override any gcc2 internal prototype to avoid an error. */
15551 /* We use char because int might match the return type of a gcc2
15552 builtin and then its argument prototype would still apply. */
15562 rm -f conftest.
$ac_objext conftest
$ac_exeext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15564 (eval $ac_link) 2>conftest.er1
15566 grep -v '^ *+' conftest.er1
>conftest.err
15568 cat conftest.err
>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try
='test -z "$ac_c_werror_flag"
15572 || test ! -s conftest.err'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try
='test -s conftest$ac_exeext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_cv_lib_util_forkpty
=yes
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.
$ac_ext >&5
15589 ac_cv_lib_util_forkpty
=no
15591 rm -f conftest.err conftest.
$ac_objext \
15592 conftest
$ac_exeext conftest.
$ac_ext
15593 LIBS
=$ac_check_lib_save_LIBS
15595 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15596 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15597 if test $ac_cv_lib_util_forkpty = yes; then
15598 cat >>confdefs.h
<<\_ACEOF
15599 #define HAVE_FORKPTY 1
15601 LIBS
="$LIBS -lutil"
15603 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15604 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15605 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 ac_check_lib_save_LIBS
=$LIBS
15610 cat >conftest.
$ac_ext <<_ACEOF
15613 cat confdefs.h
>>conftest.
$ac_ext
15614 cat >>conftest.
$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15617 /* Override any gcc2 internal prototype to avoid an error. */
15621 /* We use char because int might match the return type of a gcc2
15622 builtin and then its argument prototype would still apply. */
15632 rm -f conftest.
$ac_objext conftest
$ac_exeext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15634 (eval $ac_link) 2>conftest.er1
15636 grep -v '^ *+' conftest.er1
>conftest.err
15638 cat conftest.err
>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
15641 { ac_try
='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try
='test -s conftest$ac_exeext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_lib_bsd_forkpty
=yes
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.
$ac_ext >&5
15659 ac_cv_lib_bsd_forkpty
=no
15661 rm -f conftest.err conftest.
$ac_objext \
15662 conftest
$ac_exeext conftest.
$ac_ext
15663 LIBS
=$ac_check_lib_save_LIBS
15665 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15666 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15667 if test $ac_cv_lib_bsd_forkpty = yes; then
15668 cat >>confdefs.h
<<\_ACEOF
15669 #define HAVE_FORKPTY 1
15682 # check for long file support functions
15689 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15691 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15692 echo "$as_me:$LINENO: checking for $ac_func" >&5
15693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15694 if eval "test \"\${$as_ac_var+set}\" = set"; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 cat >conftest.
$ac_ext <<_ACEOF
15700 cat confdefs.h
>>conftest.
$ac_ext
15701 cat >>conftest.
$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15705 #define $ac_func innocuous_$ac_func
15707 /* System header to define __stub macros and hopefully few prototypes,
15708 which can conflict with char $ac_func (); below.
15709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15710 <limits.h> exists even on freestanding compilers. */
15713 # include <limits.h>
15715 # include <assert.h>
15720 /* Override any gcc2 internal prototype to avoid an error. */
15725 /* We use char because int might match the return type of a gcc2
15726 builtin and then its argument prototype would still apply. */
15728 /* The GNU C library defines this for functions which it implements
15729 to always fail with ENOSYS. Some functions are actually named
15730 something starting with __ and the normal name is an alias. */
15731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15734 char (*f) () = $ac_func;
15743 return f != $ac_func;
15748 rm -f conftest.
$ac_objext conftest
$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>conftest.er1
15752 grep -v '^ *+' conftest.er1
>conftest.err
15754 cat conftest.err
>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try
='test -z "$ac_c_werror_flag"
15758 || test ! -s conftest.err'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try
='test -s conftest$ac_exeext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770 eval "$as_ac_var=yes"
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.
$ac_ext >&5
15775 eval "$as_ac_var=no"
15777 rm -f conftest.err conftest.
$ac_objext \
15778 conftest
$ac_exeext conftest.
$ac_ext
15780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15782 if test `eval echo '${'$as_ac_var'}'` = yes; then
15783 cat >>confdefs.h
<<_ACEOF
15784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15796 for ac_func
in dup2 getcwd strdup strerror memmove
15798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15799 echo "$as_me:$LINENO: checking for $ac_func" >&5
15800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15801 if eval "test \"\${$as_ac_var+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 cat >conftest.
$ac_ext <<_ACEOF
15807 cat confdefs.h
>>conftest.
$ac_ext
15808 cat >>conftest.
$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15812 #define $ac_func innocuous_$ac_func
15814 /* System header to define __stub macros and hopefully few prototypes,
15815 which can conflict with char $ac_func (); below.
15816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817 <limits.h> exists even on freestanding compilers. */
15820 # include <limits.h>
15822 # include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error. */
15832 /* We use char because int might match the return type of a gcc2
15833 builtin and then its argument prototype would still apply. */
15835 /* The GNU C library defines this for functions which it implements
15836 to always fail with ENOSYS. Some functions are actually named
15837 something starting with __ and the normal name is an alias. */
15838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15841 char (*f) () = $ac_func;
15850 return f != $ac_func;
15855 rm -f conftest.
$ac_objext conftest
$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>conftest.er1
15859 grep -v '^ *+' conftest.er1
>conftest.err
15861 cat conftest.err
>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try
='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try
='test -s conftest$ac_exeext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 eval "$as_ac_var=yes"
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.
$ac_ext >&5
15882 eval "$as_ac_var=no"
15884 rm -f conftest.err conftest.
$ac_objext \
15885 conftest
$ac_exeext conftest.
$ac_ext
15887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15889 if test `eval echo '${'$as_ac_var'}'` = yes; then
15890 cat >>confdefs.h
<<_ACEOF
15891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15896 "$ac_func.$ac_objext" | \
15897 *" $ac_func.$ac_objext" | \
15898 "$ac_func.$ac_objext "* | \
15899 *" $ac_func.$ac_objext "* ) ;;
15900 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15908 for ac_func
in getpgrp
15910 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15911 echo "$as_me:$LINENO: checking for $ac_func" >&5
15912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15913 if eval "test \"\${$as_ac_var+set}\" = set"; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 cat >conftest.
$ac_ext <<_ACEOF
15919 cat confdefs.h
>>conftest.
$ac_ext
15920 cat >>conftest.
$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15924 #define $ac_func innocuous_$ac_func
15926 /* System header to define __stub macros and hopefully few prototypes,
15927 which can conflict with char $ac_func (); below.
15928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15929 <limits.h> exists even on freestanding compilers. */
15932 # include <limits.h>
15934 # include <assert.h>
15939 /* Override any gcc2 internal prototype to avoid an error. */
15944 /* We use char because int might match the return type of a gcc2
15945 builtin and then its argument prototype would still apply. */
15947 /* The GNU C library defines this for functions which it implements
15948 to always fail with ENOSYS. Some functions are actually named
15949 something starting with __ and the normal name is an alias. */
15950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15953 char (*f) () = $ac_func;
15962 return f != $ac_func;
15967 rm -f conftest.
$ac_objext conftest
$ac_exeext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15969 (eval $ac_link) 2>conftest.er1
15971 grep -v '^ *+' conftest.er1
>conftest.err
15973 cat conftest.err
>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } &&
15976 { ac_try
='test -z "$ac_c_werror_flag"
15977 || test ! -s conftest.err'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; } &&
15983 { ac_try
='test -s conftest$ac_exeext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 eval "$as_ac_var=yes"
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.
$ac_ext >&5
15994 eval "$as_ac_var=no"
15996 rm -f conftest.err conftest.
$ac_objext \
15997 conftest
$ac_exeext conftest.
$ac_ext
15999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16001 if test `eval echo '${'$as_ac_var'}'` = yes; then
16002 cat >>confdefs.h
<<_ACEOF
16003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16005 cat >conftest.
$ac_ext <<_ACEOF
16008 cat confdefs.h
>>conftest.
$ac_ext
16009 cat >>conftest.
$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include <unistd.h>
16020 rm -f conftest.
$ac_objext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16022 (eval $ac_compile) 2>conftest.er1
16024 grep -v '^ *+' conftest.er1
>conftest.err
16026 cat conftest.err
>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try
='test -z "$ac_c_werror_flag"
16030 || test ! -s conftest.err'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } &&
16036 { ac_try
='test -s conftest.$ac_objext'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16043 cat >>confdefs.h
<<\_ACEOF
16044 #define GETPGRP_HAVE_ARG 1
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.
$ac_ext >&5
16053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16059 for ac_func
in setpgrp
16061 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16062 echo "$as_me:$LINENO: checking for $ac_func" >&5
16063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16064 if eval "test \"\${$as_ac_var+set}\" = set"; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 cat >conftest.
$ac_ext <<_ACEOF
16070 cat confdefs.h
>>conftest.
$ac_ext
16071 cat >>conftest.
$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16075 #define $ac_func innocuous_$ac_func
16077 /* System header to define __stub macros and hopefully few prototypes,
16078 which can conflict with char $ac_func (); below.
16079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16080 <limits.h> exists even on freestanding compilers. */
16083 # include <limits.h>
16085 # include <assert.h>
16090 /* Override any gcc2 internal prototype to avoid an error. */
16095 /* We use char because int might match the return type of a gcc2
16096 builtin and then its argument prototype would still apply. */
16098 /* The GNU C library defines this for functions which it implements
16099 to always fail with ENOSYS. Some functions are actually named
16100 something starting with __ and the normal name is an alias. */
16101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16104 char (*f) () = $ac_func;
16113 return f != $ac_func;
16118 rm -f conftest.
$ac_objext conftest
$ac_exeext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16120 (eval $ac_link) 2>conftest.er1
16122 grep -v '^ *+' conftest.er1
>conftest.err
16124 cat conftest.err
>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try
='test -z "$ac_c_werror_flag"
16128 || test ! -s conftest.err'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try
='test -s conftest$ac_exeext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 eval "$as_ac_var=yes"
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.
$ac_ext >&5
16145 eval "$as_ac_var=no"
16147 rm -f conftest.err conftest.
$ac_objext \
16148 conftest
$ac_exeext conftest.
$ac_ext
16150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16152 if test `eval echo '${'$as_ac_var'}'` = yes; then
16153 cat >>confdefs.h
<<_ACEOF
16154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16156 cat >conftest.
$ac_ext <<_ACEOF
16159 cat confdefs.h
>>conftest.
$ac_ext
16160 cat >>conftest.
$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #include <unistd.h>
16171 rm -f conftest.
$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>conftest.er1
16175 grep -v '^ *+' conftest.er1
>conftest.err
16177 cat conftest.err
>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try
='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try
='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16194 cat >>confdefs.h
<<\_ACEOF
16195 #define SETPGRP_HAVE_ARG 1
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.
$ac_ext >&5
16204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16210 for ac_func
in gettimeofday
16212 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16213 echo "$as_me:$LINENO: checking for $ac_func" >&5
16214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16215 if eval "test \"\${$as_ac_var+set}\" = set"; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 cat >conftest.
$ac_ext <<_ACEOF
16221 cat confdefs.h
>>conftest.
$ac_ext
16222 cat >>conftest.
$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16226 #define $ac_func innocuous_$ac_func
16228 /* System header to define __stub macros and hopefully few prototypes,
16229 which can conflict with char $ac_func (); below.
16230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16231 <limits.h> exists even on freestanding compilers. */
16234 # include <limits.h>
16236 # include <assert.h>
16241 /* Override any gcc2 internal prototype to avoid an error. */
16246 /* We use char because int might match the return type of a gcc2
16247 builtin and then its argument prototype would still apply. */
16249 /* The GNU C library defines this for functions which it implements
16250 to always fail with ENOSYS. Some functions are actually named
16251 something starting with __ and the normal name is an alias. */
16252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16255 char (*f) () = $ac_func;
16264 return f != $ac_func;
16269 rm -f conftest.
$ac_objext conftest
$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271 (eval $ac_link) 2>conftest.er1
16273 grep -v '^ *+' conftest.er1
>conftest.err
16275 cat conftest.err
>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try
='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try
='test -s conftest$ac_exeext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 eval "$as_ac_var=yes"
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.
$ac_ext >&5
16296 eval "$as_ac_var=no"
16298 rm -f conftest.err conftest.
$ac_objext \
16299 conftest
$ac_exeext conftest.
$ac_ext
16301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16303 if test `eval echo '${'$as_ac_var'}'` = yes; then
16304 cat >>confdefs.h
<<_ACEOF
16305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16307 cat >conftest.
$ac_ext <<_ACEOF
16310 cat confdefs.h
>>conftest.
$ac_ext
16311 cat >>conftest.
$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <sys/time.h>
16317 gettimeofday((struct timeval*)0,(struct timezone*)0);
16322 rm -f conftest.
$ac_objext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>conftest.er1
16326 grep -v '^ *+' conftest.er1
>conftest.err
16328 cat conftest.err
>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try
='test -z "$ac_c_werror_flag"
16332 || test ! -s conftest.err'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try
='test -s conftest.$ac_objext'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.
$ac_ext >&5
16350 cat >>confdefs.h
<<\_ACEOF
16351 #define GETTIMEOFDAY_NO_TZ 1
16356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16362 echo "$as_me:$LINENO: checking for major" >&5
16363 echo $ECHO_N "checking for major... $ECHO_C" >&6
16364 cat >conftest.
$ac_ext <<_ACEOF
16367 cat confdefs.h
>>conftest.
$ac_ext
16368 cat >>conftest.
$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16371 #if defined(MAJOR_IN_MKDEV)
16372 #include <sys/mkdev.h>
16373 #elif defined(MAJOR_IN_SYSMACROS)
16374 #include <sys/sysmacros.h>
16376 #include <sys/types.h>
16383 makedev(major(0),minor(0));
16389 rm -f conftest.
$ac_objext conftest
$ac_exeext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16391 (eval $ac_link) 2>conftest.er1
16393 grep -v '^ *+' conftest.er1
>conftest.err
16395 cat conftest.err
>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try
='test -z "$ac_c_werror_flag"
16399 || test ! -s conftest.err'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try
='test -s conftest$ac_exeext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16413 cat >>confdefs.h
<<\_ACEOF
16414 #define HAVE_DEVICE_MACROS 1
16417 echo "$as_me:$LINENO: result: yes" >&5
16418 echo "${ECHO_T}yes" >&6
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.
$ac_ext >&5
16425 echo "$as_me:$LINENO: result: no" >&5
16426 echo "${ECHO_T}no" >&6
16429 rm -f conftest.err conftest.
$ac_objext \
16430 conftest
$ac_exeext conftest.
$ac_ext
16432 # On OSF/1 V5.1, getaddrinfo is available, but a define
16433 # for [no]getaddrinfo in netdb.h.
16434 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16435 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16436 cat >conftest.
$ac_ext <<_ACEOF
16439 cat confdefs.h
>>conftest.
$ac_ext
16440 cat >>conftest.
$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16443 #include <sys/types.h>
16444 #include <sys/socket.h>
16452 getaddrinfo(NULL, NULL, NULL, NULL);
16458 rm -f conftest.
$ac_objext conftest
$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>conftest.er1
16462 grep -v '^ *+' conftest.er1
>conftest.err
16464 cat conftest.err
>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try
='test -z "$ac_c_werror_flag"
16468 || test ! -s conftest.err'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; } &&
16474 { ac_try
='test -s conftest$ac_exeext'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16481 echo "$as_me:$LINENO: result: yes" >&5
16482 echo "${ECHO_T}yes" >&6
16483 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16484 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16485 if test "$cross_compiling" = yes; then
16486 echo "$as_me:$LINENO: result: buggy" >&5
16487 echo "${ECHO_T}buggy" >&6
16488 buggygetaddrinfo
=yes
16490 cat >conftest.
$ac_ext <<_ACEOF
16493 cat confdefs.h
>>conftest.
$ac_ext
16494 cat >>conftest.
$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16497 #include <sys/types.h>
16499 #include <string.h>
16500 #include <sys/socket.h>
16501 #include <netinet/in.h>
16505 int passive, gaierr, inet4 = 0, inet6 = 0;
16506 struct addrinfo hints, *ai, *aitop;
16507 char straddr[INET6_ADDRSTRLEN], strport[16];
16509 for (passive = 0; passive <= 1; passive++) {
16510 memset(&hints, 0, sizeof(hints));
16511 hints.ai_family = AF_UNSPEC;
16512 hints.ai_flags = passive ? AI_PASSIVE : 0;
16513 hints.ai_socktype = SOCK_STREAM;
16514 hints.ai_protocol = IPPROTO_TCP;
16515 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16516 (void)gai_strerror(gaierr);
16519 for (ai = aitop; ai; ai = ai->ai_next) {
16520 if (ai->ai_addr == NULL ||
16521 ai->ai_addrlen == 0 ||
16522 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16523 straddr, sizeof(straddr), strport, sizeof(strport),
16524 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16527 switch (ai->ai_family) {
16529 if (strcmp(strport, "54321") != 0) {
16533 if (strcmp(straddr, "0.0.0.0") != 0) {
16537 if (strcmp(straddr, "127.0.0.1") != 0) {
16544 if (strcmp(strport, "54321") != 0) {
16548 if (strcmp(straddr, "::") != 0) {
16552 if (strcmp(straddr, "::1") != 0) {
16562 /* another family support? */
16568 if (!(inet4 == 0 || inet4 == 2))
16570 if (!(inet6 == 0 || inet6 == 2))
16574 freeaddrinfo(aitop);
16579 freeaddrinfo(aitop);
16584 rm -f conftest
$ac_exeext
16585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16586 (eval $ac_link) 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 echo "$as_me:$LINENO: result: good" >&5
16596 echo "${ECHO_T}good" >&6
16597 buggygetaddrinfo
=no
16599 echo "$as_me: program exited with status $ac_status" >&5
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.
$ac_ext >&5
16603 ( exit $ac_status )
16604 echo "$as_me:$LINENO: result: buggy" >&5
16605 echo "${ECHO_T}buggy" >&6
16606 buggygetaddrinfo
=yes
16608 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.
$ac_ext >&5
16615 echo "$as_me:$LINENO: result: no" >&5
16616 echo "${ECHO_T}no" >&6
16617 buggygetaddrinfo
=yes
16620 rm -f conftest.err conftest.
$ac_objext \
16621 conftest
$ac_exeext conftest.
$ac_ext
16623 if test "$buggygetaddrinfo" = "yes"; then
16624 if test "$ipv6" = "yes"; then
16625 echo 'Fatal: You must get working getaddrinfo() function.'
16626 echo ' or you can specify "--disable-ipv6"'.
16631 cat >>confdefs.h
<<\_ACEOF
16632 #define HAVE_GETADDRINFO 1
16637 for ac_func
in getnameinfo
16639 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16640 echo "$as_me:$LINENO: checking for $ac_func" >&5
16641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16642 if eval "test \"\${$as_ac_var+set}\" = set"; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 cat >conftest.
$ac_ext <<_ACEOF
16648 cat confdefs.h
>>conftest.
$ac_ext
16649 cat >>conftest.
$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16653 #define $ac_func innocuous_$ac_func
16655 /* System header to define __stub macros and hopefully few prototypes,
16656 which can conflict with char $ac_func (); below.
16657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16658 <limits.h> exists even on freestanding compilers. */
16661 # include <limits.h>
16663 # include <assert.h>
16668 /* Override any gcc2 internal prototype to avoid an error. */
16673 /* We use char because int might match the return type of a gcc2
16674 builtin and then its argument prototype would still apply. */
16676 /* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
16679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16682 char (*f) () = $ac_func;
16691 return f != $ac_func;
16696 rm -f conftest.
$ac_objext conftest
$ac_exeext
16697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16698 (eval $ac_link) 2>conftest.er1
16700 grep -v '^ *+' conftest.er1
>conftest.err
16702 cat conftest.err
>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try
='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try
='test -s conftest$ac_exeext'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 eval "$as_ac_var=yes"
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.
$ac_ext >&5
16723 eval "$as_ac_var=no"
16725 rm -f conftest.err conftest.
$ac_objext \
16726 conftest
$ac_exeext conftest.
$ac_ext
16728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16730 if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h
<<_ACEOF
16732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16739 # checks for structures
16740 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16741 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16742 if test "${ac_cv_header_time+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 cat >conftest.
$ac_ext <<_ACEOF
16748 cat confdefs.h
>>conftest.
$ac_ext
16749 cat >>conftest.
$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <sys/types.h>
16752 #include <sys/time.h>
16758 if ((struct tm *) 0)
16764 rm -f conftest.
$ac_objext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16766 (eval $ac_compile) 2>conftest.er1
16768 grep -v '^ *+' conftest.er1
>conftest.err
16770 cat conftest.err
>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try
='test -z "$ac_c_werror_flag"
16774 || test ! -s conftest.err'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try
='test -s conftest.$ac_objext'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_header_time
=yes
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.
$ac_ext >&5
16791 ac_cv_header_time
=no
16793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16795 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16796 echo "${ECHO_T}$ac_cv_header_time" >&6
16797 if test $ac_cv_header_time = yes; then
16799 cat >>confdefs.h
<<\_ACEOF
16800 #define TIME_WITH_SYS_TIME 1
16805 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16806 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16807 if test "${ac_cv_struct_tm+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 cat >conftest.
$ac_ext <<_ACEOF
16813 cat confdefs.h
>>conftest.
$ac_ext
16814 cat >>conftest.
$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 #include <sys/types.h>
16822 struct tm *tp; tp->tm_sec;
16827 rm -f conftest.
$ac_objext
16828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16829 (eval $ac_compile) 2>conftest.er1
16831 grep -v '^ *+' conftest.er1
>conftest.err
16833 cat conftest.err
>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try
='test -z "$ac_c_werror_flag"
16837 || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try
='test -s conftest.$ac_objext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_cv_struct_tm
=time.h
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.
$ac_ext >&5
16854 ac_cv_struct_tm
=sys
/time.h
16856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16858 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16859 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16860 if test $ac_cv_struct_tm = sys
/time.h
; then
16862 cat >>confdefs.h
<<\_ACEOF
16863 #define TM_IN_SYS_TIME 1
16868 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16869 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16870 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 cat >conftest.
$ac_ext <<_ACEOF
16876 cat confdefs.h
>>conftest.
$ac_ext
16877 cat >>conftest.
$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #include <sys/types.h>
16880 #include <$ac_cv_struct_tm>
16886 static struct tm ac_aggr;
16887 if (ac_aggr.tm_zone)
16893 rm -f conftest.
$ac_objext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895 (eval $ac_compile) 2>conftest.er1
16897 grep -v '^ *+' conftest.er1
>conftest.err
16899 cat conftest.err
>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try
='test -z "$ac_c_werror_flag"
16903 || test ! -s conftest.err'
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try
='test -s conftest.$ac_objext'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 ac_cv_member_struct_tm_tm_zone
=yes
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.
$ac_ext >&5
16920 cat >conftest.
$ac_ext <<_ACEOF
16923 cat confdefs.h
>>conftest.
$ac_ext
16924 cat >>conftest.
$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16926 #include <sys/types.h>
16927 #include <$ac_cv_struct_tm>
16933 static struct tm ac_aggr;
16934 if (sizeof ac_aggr.tm_zone)
16940 rm -f conftest.
$ac_objext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16942 (eval $ac_compile) 2>conftest.er1
16944 grep -v '^ *+' conftest.er1
>conftest.err
16946 cat conftest.err
>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try
='test -z "$ac_c_werror_flag"
16950 || test ! -s conftest.err'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try
='test -s conftest.$ac_objext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_member_struct_tm_tm_zone
=yes
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.
$ac_ext >&5
16967 ac_cv_member_struct_tm_tm_zone
=no
16969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16973 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16974 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16975 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16977 cat >>confdefs.h
<<_ACEOF
16978 #define HAVE_STRUCT_TM_TM_ZONE 1
16984 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16986 cat >>confdefs.h
<<\_ACEOF
16987 #define HAVE_TM_ZONE 1
16991 echo "$as_me:$LINENO: checking for tzname" >&5
16992 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16993 if test "${ac_cv_var_tzname+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 cat >conftest.
$ac_ext <<_ACEOF
16999 cat confdefs.h
>>conftest.
$ac_ext
17000 cat >>conftest.
$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17003 #ifndef tzname /* For SGI. */
17004 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17015 rm -f conftest.
$ac_objext conftest
$ac_exeext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017 (eval $ac_link) 2>conftest.er1
17019 grep -v '^ *+' conftest.er1
>conftest.err
17021 cat conftest.err
>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try
='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try
='test -s conftest$ac_exeext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_cv_var_tzname
=yes
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.
$ac_ext >&5
17042 ac_cv_var_tzname
=no
17044 rm -f conftest.err conftest.
$ac_objext \
17045 conftest
$ac_exeext conftest.
$ac_ext
17047 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17048 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17049 if test $ac_cv_var_tzname = yes; then
17051 cat >>confdefs.h
<<\_ACEOF
17052 #define HAVE_TZNAME 1
17058 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17059 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17060 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 cat >conftest.
$ac_ext <<_ACEOF
17066 cat confdefs.h
>>conftest.
$ac_ext
17067 cat >>conftest.
$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 $ac_includes_default
17073 static struct stat ac_aggr;
17074 if (ac_aggr.st_rdev)
17080 rm -f conftest.
$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082 (eval $ac_compile) 2>conftest.er1
17084 grep -v '^ *+' conftest.er1
>conftest.err
17086 cat conftest.err
>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try
='test -z "$ac_c_werror_flag"
17090 || test ! -s conftest.err'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try
='test -s conftest.$ac_objext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_member_struct_stat_st_rdev
=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.
$ac_ext >&5
17107 cat >conftest.
$ac_ext <<_ACEOF
17110 cat confdefs.h
>>conftest.
$ac_ext
17111 cat >>conftest.
$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 $ac_includes_default
17117 static struct stat ac_aggr;
17118 if (sizeof ac_aggr.st_rdev)
17124 rm -f conftest.
$ac_objext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17126 (eval $ac_compile) 2>conftest.er1
17128 grep -v '^ *+' conftest.er1
>conftest.err
17130 cat conftest.err
>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try
='test -z "$ac_c_werror_flag"
17134 || test ! -s conftest.err'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try
='test -s conftest.$ac_objext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 ac_cv_member_struct_stat_st_rdev
=yes
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.
$ac_ext >&5
17151 ac_cv_member_struct_stat_st_rdev
=no
17153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17157 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17158 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17159 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17161 cat >>confdefs.h
<<_ACEOF
17162 #define HAVE_STRUCT_STAT_ST_RDEV 1
17168 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17169 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17170 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 cat >conftest.
$ac_ext <<_ACEOF
17176 cat confdefs.h
>>conftest.
$ac_ext
17177 cat >>conftest.
$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 $ac_includes_default
17183 static struct stat ac_aggr;
17184 if (ac_aggr.st_blksize)
17190 rm -f conftest.
$ac_objext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17192 (eval $ac_compile) 2>conftest.er1
17194 grep -v '^ *+' conftest.er1
>conftest.err
17196 cat conftest.err
>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try
='test -z "$ac_c_werror_flag"
17200 || test ! -s conftest.err'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try
='test -s conftest.$ac_objext'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 ac_cv_member_struct_stat_st_blksize
=yes
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.
$ac_ext >&5
17217 cat >conftest.
$ac_ext <<_ACEOF
17220 cat confdefs.h
>>conftest.
$ac_ext
17221 cat >>conftest.
$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 $ac_includes_default
17227 static struct stat ac_aggr;
17228 if (sizeof ac_aggr.st_blksize)
17234 rm -f conftest.
$ac_objext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17236 (eval $ac_compile) 2>conftest.er1
17238 grep -v '^ *+' conftest.er1
>conftest.err
17240 cat conftest.err
>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try
='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try
='test -s conftest.$ac_objext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_cv_member_struct_stat_st_blksize
=yes
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.
$ac_ext >&5
17261 ac_cv_member_struct_stat_st_blksize
=no
17263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17267 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17268 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17269 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17271 cat >>confdefs.h
<<_ACEOF
17272 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17278 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17279 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17280 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 cat >conftest.
$ac_ext <<_ACEOF
17286 cat confdefs.h
>>conftest.
$ac_ext
17287 cat >>conftest.
$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 $ac_includes_default
17293 static struct stat ac_aggr;
17294 if (ac_aggr.st_flags)
17300 rm -f conftest.
$ac_objext
17301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17302 (eval $ac_compile) 2>conftest.er1
17304 grep -v '^ *+' conftest.er1
>conftest.err
17306 cat conftest.err
>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } &&
17309 { ac_try
='test -z "$ac_c_werror_flag"
17310 || test ! -s conftest.err'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try
='test -s conftest.$ac_objext'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 ac_cv_member_struct_stat_st_flags
=yes
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.
$ac_ext >&5
17327 cat >conftest.
$ac_ext <<_ACEOF
17330 cat confdefs.h
>>conftest.
$ac_ext
17331 cat >>conftest.
$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17337 static struct stat ac_aggr;
17338 if (sizeof ac_aggr.st_flags)
17344 rm -f conftest.
$ac_objext
17345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17346 (eval $ac_compile) 2>conftest.er1
17348 grep -v '^ *+' conftest.er1
>conftest.err
17350 cat conftest.err
>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try
='test -z "$ac_c_werror_flag"
17354 || test ! -s conftest.err'
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; } &&
17360 { ac_try
='test -s conftest.$ac_objext'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 ac_cv_member_struct_stat_st_flags
=yes
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.
$ac_ext >&5
17371 ac_cv_member_struct_stat_st_flags
=no
17373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17377 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17378 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17379 if test $ac_cv_member_struct_stat_st_flags = yes; then
17381 cat >>confdefs.h
<<_ACEOF
17382 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17388 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17389 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17390 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 cat >conftest.
$ac_ext <<_ACEOF
17396 cat confdefs.h
>>conftest.
$ac_ext
17397 cat >>conftest.
$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 $ac_includes_default
17403 static struct stat ac_aggr;
17404 if (ac_aggr.st_gen)
17410 rm -f conftest.
$ac_objext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412 (eval $ac_compile) 2>conftest.er1
17414 grep -v '^ *+' conftest.er1
>conftest.err
17416 cat conftest.err
>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try
='test -z "$ac_c_werror_flag"
17420 || test ! -s conftest.err'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try
='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_cv_member_struct_stat_st_gen
=yes
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.
$ac_ext >&5
17437 cat >conftest.
$ac_ext <<_ACEOF
17440 cat confdefs.h
>>conftest.
$ac_ext
17441 cat >>conftest.
$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 $ac_includes_default
17447 static struct stat ac_aggr;
17448 if (sizeof ac_aggr.st_gen)
17454 rm -f conftest.
$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456 (eval $ac_compile) 2>conftest.er1
17458 grep -v '^ *+' conftest.er1
>conftest.err
17460 cat conftest.err
>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try
='test -z "$ac_c_werror_flag"
17464 || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try
='test -s conftest.$ac_objext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_cv_member_struct_stat_st_gen
=yes
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.
$ac_ext >&5
17481 ac_cv_member_struct_stat_st_gen
=no
17483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17488 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17489 if test $ac_cv_member_struct_stat_st_gen = yes; then
17491 cat >>confdefs.h
<<_ACEOF
17492 #define HAVE_STRUCT_STAT_ST_GEN 1
17498 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17499 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17500 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 cat >conftest.
$ac_ext <<_ACEOF
17506 cat confdefs.h
>>conftest.
$ac_ext
17507 cat >>conftest.
$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 $ac_includes_default
17513 static struct stat ac_aggr;
17514 if (ac_aggr.st_birthtime)
17520 rm -f conftest.
$ac_objext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17522 (eval $ac_compile) 2>conftest.er1
17524 grep -v '^ *+' conftest.er1
>conftest.err
17526 cat conftest.err
>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try
='test -z "$ac_c_werror_flag"
17530 || test ! -s conftest.err'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try
='test -s conftest.$ac_objext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_member_struct_stat_st_birthtime
=yes
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.
$ac_ext >&5
17547 cat >conftest.
$ac_ext <<_ACEOF
17550 cat confdefs.h
>>conftest.
$ac_ext
17551 cat >>conftest.
$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 $ac_includes_default
17557 static struct stat ac_aggr;
17558 if (sizeof ac_aggr.st_birthtime)
17564 rm -f conftest.
$ac_objext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17566 (eval $ac_compile) 2>conftest.er1
17568 grep -v '^ *+' conftest.er1
>conftest.err
17570 cat conftest.err
>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try
='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try
='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_cv_member_struct_stat_st_birthtime
=yes
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.
$ac_ext >&5
17591 ac_cv_member_struct_stat_st_birthtime
=no
17593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17599 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17601 cat >>confdefs.h
<<_ACEOF
17602 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17608 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17609 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17610 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 cat >conftest.
$ac_ext <<_ACEOF
17616 cat confdefs.h
>>conftest.
$ac_ext
17617 cat >>conftest.
$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17623 static struct stat ac_aggr;
17624 if (ac_aggr.st_blocks)
17630 rm -f conftest.
$ac_objext
17631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17632 (eval $ac_compile) 2>conftest.er1
17634 grep -v '^ *+' conftest.er1
>conftest.err
17636 cat conftest.err
>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
17639 { ac_try
='test -z "$ac_c_werror_flag"
17640 || test ! -s conftest.err'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; } &&
17646 { ac_try
='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_cv_member_struct_stat_st_blocks
=yes
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.
$ac_ext >&5
17657 cat >conftest.
$ac_ext <<_ACEOF
17660 cat confdefs.h
>>conftest.
$ac_ext
17661 cat >>conftest.
$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17663 $ac_includes_default
17667 static struct stat ac_aggr;
17668 if (sizeof ac_aggr.st_blocks)
17674 rm -f conftest.
$ac_objext
17675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17676 (eval $ac_compile) 2>conftest.er1
17678 grep -v '^ *+' conftest.er1
>conftest.err
17680 cat conftest.err
>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } &&
17683 { ac_try
='test -z "$ac_c_werror_flag"
17684 || test ! -s conftest.err'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } &&
17690 { ac_try
='test -s conftest.$ac_objext'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_member_struct_stat_st_blocks
=yes
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.
$ac_ext >&5
17701 ac_cv_member_struct_stat_st_blocks
=no
17703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17705 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17707 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17708 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17709 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17711 cat >>confdefs.h
<<_ACEOF
17712 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17716 cat >>confdefs.h
<<\_ACEOF
17717 #define HAVE_ST_BLOCKS 1
17722 "fileblocks.$ac_objext" | \
17723 *" fileblocks.$ac_objext" | \
17724 "fileblocks.$ac_objext "* | \
17725 *" fileblocks.$ac_objext "* ) ;;
17726 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17733 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17734 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17735 if test "${ac_cv_header_time_altzone+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 cat >conftest.
$ac_ext <<_ACEOF
17741 cat confdefs.h
>>conftest.
$ac_ext
17742 cat >>conftest.
$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17753 rm -f conftest.
$ac_objext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755 (eval $ac_compile) 2>conftest.er1
17757 grep -v '^ *+' conftest.er1
>conftest.err
17759 cat conftest.err
>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try
='test -z "$ac_c_werror_flag"
17763 || test ! -s conftest.err'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try
='test -s conftest.$ac_objext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_header_time_altzone
=yes
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.
$ac_ext >&5
17780 ac_cv_header_time_altzone
=no
17782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17785 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17786 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17787 if test $ac_cv_header_time_altzone = yes; then
17789 cat >>confdefs.h
<<\_ACEOF
17790 #define HAVE_ALTZONE 1
17796 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17797 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17798 cat >conftest.
$ac_ext <<_ACEOF
17801 cat confdefs.h
>>conftest.
$ac_ext
17802 cat >>conftest.
$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17805 #include <sys/types.h>
17806 #include <sys/select.h>
17807 #include <sys/time.h>
17817 rm -f conftest.
$ac_objext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17819 (eval $ac_compile) 2>conftest.er1
17821 grep -v '^ *+' conftest.er1
>conftest.err
17823 cat conftest.err
>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try
='test -z "$ac_c_werror_flag"
17827 || test ! -s conftest.err'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try
='test -s conftest.$ac_objext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17841 cat >>confdefs.h
<<\_ACEOF
17842 #define SYS_SELECT_WITH_SYS_TIME 1
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.
$ac_ext >&5
17852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17853 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17854 echo "${ECHO_T}$was_it_defined" >&6
17856 echo "$as_me:$LINENO: checking for addrinfo" >&5
17857 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17858 if test "${ac_cv_struct_addrinfo+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 cat >conftest.
$ac_ext <<_ACEOF
17864 cat confdefs.h
>>conftest.
$ac_ext
17865 cat >>conftest.
$ac_ext <<_ACEOF
17866 /* end confdefs.h. */
17868 # include <netdb.h>
17877 rm -f conftest.
$ac_objext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17879 (eval $ac_compile) 2>conftest.er1
17881 grep -v '^ *+' conftest.er1
>conftest.err
17883 cat conftest.err
>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try
='test -z "$ac_c_werror_flag"
17887 || test ! -s conftest.err'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try
='test -s conftest.$ac_objext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_cv_struct_addrinfo
=yes
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.
$ac_ext >&5
17904 ac_cv_struct_addrinfo
=no
17906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17909 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17910 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17911 if test $ac_cv_struct_addrinfo = yes; then
17913 cat >>confdefs.h
<<\_ACEOF
17914 #define HAVE_ADDRINFO 1
17919 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17920 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17921 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17922 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 cat >conftest.
$ac_ext <<_ACEOF
17927 cat confdefs.h
>>conftest.
$ac_ext
17928 cat >>conftest.
$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17931 # include <sys/types.h>
17932 # include <sys/socket.h>
17936 struct sockaddr_storage s
17941 rm -f conftest.
$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>conftest.er1
17945 grep -v '^ *+' conftest.er1
>conftest.err
17947 cat conftest.err
>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try
='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try
='test -s conftest.$ac_objext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_struct_sockaddr_storage
=yes
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.
$ac_ext >&5
17968 ac_cv_struct_sockaddr_storage
=no
17970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17973 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17974 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17975 if test $ac_cv_struct_sockaddr_storage = yes; then
17977 cat >>confdefs.h
<<\_ACEOF
17978 #define HAVE_SOCKADDR_STORAGE 1
17983 # checks for compiler characteristics
17986 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17987 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17988 if test "${ac_cv_c_char_unsigned+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 cat >conftest.
$ac_ext <<_ACEOF
17994 cat confdefs.h
>>conftest.
$ac_ext
17995 cat >>conftest.
$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
18001 static int test_array [1 - 2 * !(((char) -1) < 0)];
18008 rm -f conftest.
$ac_objext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18010 (eval $ac_compile) 2>conftest.er1
18012 grep -v '^ *+' conftest.er1
>conftest.err
18014 cat conftest.err
>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try
='test -z "$ac_c_werror_flag"
18018 || test ! -s conftest.err'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try
='test -s conftest.$ac_objext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_c_char_unsigned
=no
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.
$ac_ext >&5
18035 ac_cv_c_char_unsigned
=yes
18037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18039 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18040 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18041 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18042 cat >>confdefs.h
<<\_ACEOF
18043 #define __CHAR_UNSIGNED__ 1
18048 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18049 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18050 if test "${ac_cv_c_const+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 cat >conftest.
$ac_ext <<_ACEOF
18056 cat confdefs.h
>>conftest.
$ac_ext
18057 cat >>conftest.
$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18063 /* FIXME: Include the comments suggested by Paul. */
18064 #ifndef __cplusplus
18065 /* Ultrix mips cc rejects this. */
18066 typedef int charset[2];
18068 /* SunOS 4.1.1 cc rejects this. */
18069 char const *const *ccp;
18071 /* NEC SVR4.0.2 mips cc rejects this. */
18072 struct point {int x, y;};
18073 static struct point const zero = {0,0};
18074 /* AIX XL C 1.02.0.0 rejects this.
18075 It does not let you subtract one const X* pointer from another in
18076 an arm of an if-expression whose if-part is not a constant
18078 const char *g = "string";
18079 ccp = &g + (g ? g-g : 0);
18080 /* HPUX 7.0 cc rejects these. */
18083 ccp = (char const *const *) p;
18084 { /* SCO 3.2v4 cc rejects this. */
18086 char const *s = 0 ? (char *) 0 : (char const *) 0;
18090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18091 int x[] = {25, 17};
18092 const int *foo = &x[0];
18095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18096 typedef const int *iptr;
18100 { /* AIX XL C 1.02.0.0 rejects this saying
18101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18102 struct s { int j; const int *ap[3]; };
18103 struct s *b; b->j = 5;
18105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18106 const int foo = 10;
18114 rm -f conftest.
$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116 (eval $ac_compile) 2>conftest.er1
18118 grep -v '^ *+' conftest.er1
>conftest.err
18120 cat conftest.err
>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
18123 { ac_try
='test -z "$ac_c_werror_flag"
18124 || test ! -s conftest.err'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try
='test -s conftest.$ac_objext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.
$ac_ext >&5
18143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18145 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18146 echo "${ECHO_T}$ac_cv_c_const" >&6
18147 if test $ac_cv_c_const = no
; then
18149 cat >>confdefs.h
<<\_ACEOF
18157 echo "$as_me:$LINENO: checking for working volatile" >&5
18158 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18159 cat >conftest.
$ac_ext <<_ACEOF
18162 cat confdefs.h
>>conftest.
$ac_ext
18163 cat >>conftest.
$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18169 volatile int x; x = 0;
18174 rm -f conftest.
$ac_objext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18176 (eval $ac_compile) 2>conftest.er1
18178 grep -v '^ *+' conftest.er1
>conftest.err
18180 cat conftest.err
>&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try
='test -z "$ac_c_werror_flag"
18184 || test ! -s conftest.err'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try
='test -s conftest.$ac_objext'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.
$ac_ext >&5
18202 cat >>confdefs.h
<<\_ACEOF
18208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18209 echo "$as_me:$LINENO: result: $works" >&5
18210 echo "${ECHO_T}$works" >&6
18213 echo "$as_me:$LINENO: checking for working signed char" >&5
18214 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18215 cat >conftest.
$ac_ext <<_ACEOF
18218 cat confdefs.h
>>conftest.
$ac_ext
18219 cat >>conftest.
$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18230 rm -f conftest.
$ac_objext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18232 (eval $ac_compile) 2>conftest.er1
18234 grep -v '^ *+' conftest.er1
>conftest.err
18236 cat conftest.err
>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try
='test -z "$ac_c_werror_flag"
18240 || test ! -s conftest.err'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try
='test -s conftest.$ac_objext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.
$ac_ext >&5
18258 cat >>confdefs.h
<<\_ACEOF
18264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18265 echo "$as_me:$LINENO: result: $works" >&5
18266 echo "${ECHO_T}$works" >&6
18269 echo "$as_me:$LINENO: checking for prototypes" >&5
18270 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18271 cat >conftest.
$ac_ext <<_ACEOF
18274 cat confdefs.h
>>conftest.
$ac_ext
18275 cat >>conftest.
$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 int foo(int x) { return 0; }
18286 rm -f conftest.
$ac_objext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18288 (eval $ac_compile) 2>conftest.er1
18290 grep -v '^ *+' conftest.er1
>conftest.err
18292 cat conftest.err
>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try
='test -z "$ac_c_werror_flag"
18296 || test ! -s conftest.err'
18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; } &&
18302 { ac_try
='test -s conftest.$ac_objext'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18310 cat >>confdefs.h
<<\_ACEOF
18311 #define HAVE_PROTOTYPES 1
18314 have_prototypes
=yes
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.
$ac_ext >&5
18321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18322 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18323 echo "${ECHO_T}$have_prototypes" >&6
18326 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18327 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18328 cat >conftest.
$ac_ext <<_ACEOF
18331 cat confdefs.h
>>conftest.
$ac_ext
18332 cat >>conftest.
$ac_ext <<_ACEOF
18333 /* end confdefs.h. */
18335 #include <stdarg.h>
18336 int foo(int x, ...) {
18340 va_arg(va, char *);
18341 va_arg(va, double);
18348 return foo(10, "", 3.14);
18353 rm -f conftest.
$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18357 grep -v '^ *+' conftest.er1
>conftest.err
18359 cat conftest.err
>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try
='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try
='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18377 cat >>confdefs.h
<<\_ACEOF
18378 #define HAVE_STDARG_PROTOTYPES 1
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.
$ac_ext >&5
18388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18389 echo "$as_me:$LINENO: result: $works" >&5
18390 echo "${ECHO_T}$works" >&6
18392 # check for socketpair
18393 echo "$as_me:$LINENO: checking for socketpair" >&5
18394 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18395 cat >conftest.
$ac_ext <<_ACEOF
18398 cat confdefs.h
>>conftest.
$ac_ext
18399 cat >>conftest.
$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 #include <sys/types.h>
18403 #include <sys/socket.h>
18413 rm -f conftest.
$ac_objext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18415 (eval $ac_compile) 2>conftest.er1
18417 grep -v '^ *+' conftest.er1
>conftest.err
18419 cat conftest.err
>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try
='test -z "$ac_c_werror_flag"
18423 || test ! -s conftest.err'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try
='test -s conftest.$ac_objext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18436 cat >>confdefs.h
<<\_ACEOF
18437 #define HAVE_SOCKETPAIR 1
18440 echo "$as_me:$LINENO: result: yes" >&5
18441 echo "${ECHO_T}yes" >&6
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.
$ac_ext >&5
18446 echo "$as_me:$LINENO: result: no" >&5
18447 echo "${ECHO_T}no" >&6
18450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18452 # check if sockaddr has sa_len member
18453 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18454 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18455 cat >conftest.
$ac_ext <<_ACEOF
18458 cat confdefs.h
>>conftest.
$ac_ext
18459 cat >>conftest.
$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18461 #include <sys/types.h>
18462 #include <sys/socket.h>
18472 rm -f conftest.
$ac_objext
18473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18474 (eval $ac_compile) 2>conftest.er1
18476 grep -v '^ *+' conftest.er1
>conftest.err
18478 cat conftest.err
>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } &&
18481 { ac_try
='test -z "$ac_c_werror_flag"
18482 || test ! -s conftest.err'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; } &&
18488 { ac_try
='test -s conftest.$ac_objext'
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 echo "$as_me:$LINENO: result: yes" >&5
18495 echo "${ECHO_T}yes" >&6
18497 cat >>confdefs.h
<<\_ACEOF
18498 #define HAVE_SOCKADDR_SA_LEN 1
18502 echo "$as_me: failed program was:" >&5
18503 sed 's/^/| /' conftest.
$ac_ext >&5
18505 echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6
18508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18510 va_list_is_array
=no
18511 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18512 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18513 cat >conftest.
$ac_ext <<_ACEOF
18516 cat confdefs.h
>>conftest.
$ac_ext
18517 cat >>conftest.
$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18520 #ifdef HAVE_STDARG_PROTOTYPES
18521 #include <stdarg.h>
18523 #include <varargs.h>
18529 va_list list1, list2; list1 = list2;
18534 rm -f conftest.
$ac_objext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18538 grep -v '^ *+' conftest.er1
>conftest.err
18540 cat conftest.err
>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try
='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try
='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.
$ac_ext >&5
18563 cat >>confdefs.h
<<\_ACEOF
18564 #define VA_LIST_IS_ARRAY 1
18567 va_list_is_array
=yes
18570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18571 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18572 echo "${ECHO_T}$va_list_is_array" >&6
18574 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18578 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18579 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18580 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 cat >conftest.
$ac_ext <<_ACEOF
18586 cat confdefs.h
>>conftest.
$ac_ext
18587 cat >>conftest.
$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18589 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18591 #define gethostbyname_r innocuous_gethostbyname_r
18593 /* System header to define __stub macros and hopefully few prototypes,
18594 which can conflict with char gethostbyname_r (); below.
18595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18596 <limits.h> exists even on freestanding compilers. */
18599 # include <limits.h>
18601 # include <assert.h>
18604 #undef gethostbyname_r
18606 /* Override any gcc2 internal prototype to avoid an error. */
18611 /* We use char because int might match the return type of a gcc2
18612 builtin and then its argument prototype would still apply. */
18613 char gethostbyname_r ();
18614 /* The GNU C library defines this for functions which it implements
18615 to always fail with ENOSYS. Some functions are actually named
18616 something starting with __ and the normal name is an alias. */
18617 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18620 char (*f) () = gethostbyname_r;
18629 return f != gethostbyname_r;
18634 rm -f conftest.
$ac_objext conftest
$ac_exeext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18636 (eval $ac_link) 2>conftest.er1
18638 grep -v '^ *+' conftest.er1
>conftest.err
18640 cat conftest.err
>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try
='test -z "$ac_c_werror_flag"
18644 || test ! -s conftest.err'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; } &&
18650 { ac_try
='test -s conftest$ac_exeext'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_cv_func_gethostbyname_r
=yes
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.
$ac_ext >&5
18661 ac_cv_func_gethostbyname_r
=no
18663 rm -f conftest.err conftest.
$ac_objext \
18664 conftest
$ac_exeext conftest.
$ac_ext
18666 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18667 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18668 if test $ac_cv_func_gethostbyname_r = yes; then
18670 cat >>confdefs.h
<<\_ACEOF
18671 #define HAVE_GETHOSTBYNAME_R 1
18674 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18675 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18677 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18678 cat >conftest.
$ac_ext <<_ACEOF
18681 cat confdefs.h
>>conftest.
$ac_ext
18682 cat >>conftest.
$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18685 # include <netdb.h>
18692 struct hostent *he, *res;
18697 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18703 rm -f conftest.
$ac_objext
18704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18705 (eval $ac_compile) 2>conftest.er1
18707 grep -v '^ *+' conftest.er1
>conftest.err
18709 cat conftest.err
>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
18712 { ac_try
='test -z "$ac_c_werror_flag"
18713 || test ! -s conftest.err'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try
='test -s conftest.$ac_objext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18726 cat >>confdefs.h
<<\_ACEOF
18727 #define HAVE_GETHOSTBYNAME_R 1
18731 cat >>confdefs.h
<<\_ACEOF
18732 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18735 echo "$as_me:$LINENO: result: yes" >&5
18736 echo "${ECHO_T}yes" >&6
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.
$ac_ext >&5
18743 echo "$as_me:$LINENO: result: no" >&5
18744 echo "${ECHO_T}no" >&6
18745 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18746 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18747 cat >conftest.
$ac_ext <<_ACEOF
18750 cat confdefs.h
>>conftest.
$ac_ext
18751 cat >>conftest.
$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18754 # include <netdb.h>
18761 struct hostent *he;
18766 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18772 rm -f conftest.
$ac_objext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18774 (eval $ac_compile) 2>conftest.er1
18776 grep -v '^ *+' conftest.er1
>conftest.err
18778 cat conftest.err
>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try
='test -z "$ac_c_werror_flag"
18782 || test ! -s conftest.err'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try
='test -s conftest.$ac_objext'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18795 cat >>confdefs.h
<<\_ACEOF
18796 #define HAVE_GETHOSTBYNAME_R 1
18800 cat >>confdefs.h
<<\_ACEOF
18801 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18804 echo "$as_me:$LINENO: result: yes" >&5
18805 echo "${ECHO_T}yes" >&6
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.
$ac_ext >&5
18812 echo "$as_me:$LINENO: result: no" >&5
18813 echo "${ECHO_T}no" >&6
18814 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18815 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18816 cat >conftest.
$ac_ext <<_ACEOF
18819 cat confdefs.h
>>conftest.
$ac_ext
18820 cat >>conftest.
$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18823 # include <netdb.h>
18830 struct hostent *he;
18831 struct hostent_data data;
18833 (void) gethostbyname_r(name, he, &data);
18839 rm -f conftest.
$ac_objext
18840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18841 (eval $ac_compile) 2>conftest.er1
18843 grep -v '^ *+' conftest.er1
>conftest.err
18845 cat conftest.err
>&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try
='test -z "$ac_c_werror_flag"
18849 || test ! -s conftest.err'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try
='test -s conftest.$ac_objext'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
18862 cat >>confdefs.h
<<\_ACEOF
18863 #define HAVE_GETHOSTBYNAME_R 1
18867 cat >>confdefs.h
<<\_ACEOF
18868 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18871 echo "$as_me:$LINENO: result: yes" >&5
18872 echo "${ECHO_T}yes" >&6
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.
$ac_ext >&5
18879 echo "$as_me:$LINENO: result: no" >&5
18880 echo "${ECHO_T}no" >&6
18883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18895 for ac_func
in gethostbyname
18897 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18898 echo "$as_me:$LINENO: checking for $ac_func" >&5
18899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18900 if eval "test \"\${$as_ac_var+set}\" = set"; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 cat >conftest.
$ac_ext <<_ACEOF
18906 cat confdefs.h
>>conftest.
$ac_ext
18907 cat >>conftest.
$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18911 #define $ac_func innocuous_$ac_func
18913 /* System header to define __stub macros and hopefully few prototypes,
18914 which can conflict with char $ac_func (); below.
18915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18916 <limits.h> exists even on freestanding compilers. */
18919 # include <limits.h>
18921 # include <assert.h>
18926 /* Override any gcc2 internal prototype to avoid an error. */
18931 /* We use char because int might match the return type of a gcc2
18932 builtin and then its argument prototype would still apply. */
18934 /* The GNU C library defines this for functions which it implements
18935 to always fail with ENOSYS. Some functions are actually named
18936 something starting with __ and the normal name is an alias. */
18937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18940 char (*f) () = $ac_func;
18949 return f != $ac_func;
18954 rm -f conftest.
$ac_objext conftest
$ac_exeext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18956 (eval $ac_link) 2>conftest.er1
18958 grep -v '^ *+' conftest.er1
>conftest.err
18960 cat conftest.err
>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try
='test -z "$ac_c_werror_flag"
18964 || test ! -s conftest.err'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; } &&
18970 { ac_try
='test -s conftest$ac_exeext'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 eval "$as_ac_var=yes"
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.
$ac_ext >&5
18981 eval "$as_ac_var=no"
18983 rm -f conftest.err conftest.
$ac_objext \
18984 conftest
$ac_exeext conftest.
$ac_ext
18986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18988 if test `eval echo '${'$as_ac_var'}'` = yes; then
18989 cat >>confdefs.h
<<_ACEOF
18990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19005 # checks for system services
19008 # Linux requires this for correct f.p. operations
19009 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19010 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19011 if test "${ac_cv_func___fpu_control+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 cat >conftest.
$ac_ext <<_ACEOF
19017 cat confdefs.h
>>conftest.
$ac_ext
19018 cat >>conftest.
$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19022 #define __fpu_control innocuous___fpu_control
19024 /* System header to define __stub macros and hopefully few prototypes,
19025 which can conflict with char __fpu_control (); below.
19026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19027 <limits.h> exists even on freestanding compilers. */
19030 # include <limits.h>
19032 # include <assert.h>
19035 #undef __fpu_control
19037 /* Override any gcc2 internal prototype to avoid an error. */
19042 /* We use char because int might match the return type of a gcc2
19043 builtin and then its argument prototype would still apply. */
19044 char __fpu_control ();
19045 /* The GNU C library defines this for functions which it implements
19046 to always fail with ENOSYS. Some functions are actually named
19047 something starting with __ and the normal name is an alias. */
19048 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19051 char (*f) () = __fpu_control;
19060 return f != __fpu_control;
19065 rm -f conftest.
$ac_objext conftest
$ac_exeext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>conftest.er1
19069 grep -v '^ *+' conftest.er1
>conftest.err
19071 cat conftest.err
>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
19074 { ac_try
='test -z "$ac_c_werror_flag"
19075 || test ! -s conftest.err'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; } &&
19081 { ac_try
='test -s conftest$ac_exeext'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_func___fpu_control
=yes
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.
$ac_ext >&5
19092 ac_cv_func___fpu_control
=no
19094 rm -f conftest.err conftest.
$ac_objext \
19095 conftest
$ac_exeext conftest.
$ac_ext
19097 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19098 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19099 if test $ac_cv_func___fpu_control = yes; then
19103 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19104 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19105 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19108 ac_check_lib_save_LIBS
=$LIBS
19109 LIBS
="-lieee $LIBS"
19110 cat >conftest.
$ac_ext <<_ACEOF
19113 cat confdefs.h
>>conftest.
$ac_ext
19114 cat >>conftest.
$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19117 /* Override any gcc2 internal prototype to avoid an error. */
19121 /* We use char because int might match the return type of a gcc2
19122 builtin and then its argument prototype would still apply. */
19123 char __fpu_control ();
19132 rm -f conftest.
$ac_objext conftest
$ac_exeext
19133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19134 (eval $ac_link) 2>conftest.er1
19136 grep -v '^ *+' conftest.er1
>conftest.err
19138 cat conftest.err
>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try
='test -z "$ac_c_werror_flag"
19142 || test ! -s conftest.err'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try
='test -s conftest$ac_exeext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_lib_ieee___fpu_control
=yes
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.
$ac_ext >&5
19159 ac_cv_lib_ieee___fpu_control
=no
19161 rm -f conftest.err conftest.
$ac_objext \
19162 conftest
$ac_exeext conftest.
$ac_ext
19163 LIBS
=$ac_check_lib_save_LIBS
19165 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19166 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19167 if test $ac_cv_lib_ieee___fpu_control = yes; then
19168 cat >>confdefs.h
<<_ACEOF
19169 #define HAVE_LIBIEEE 1
19172 LIBS
="-lieee $LIBS"
19180 # Check for --with-fpectl
19181 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19182 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19184 # Check whether --with-fpectl or --without-fpectl was given.
19185 if test "${with_fpectl+set}" = set; then
19186 withval
="$with_fpectl"
19188 if test "$withval" != no
19191 cat >>confdefs.h
<<\_ACEOF
19192 #define WANT_SIGFPE_HANDLER 1
19195 echo "$as_me:$LINENO: result: yes" >&5
19196 echo "${ECHO_T}yes" >&6
19197 else echo "$as_me:$LINENO: result: no" >&5
19198 echo "${ECHO_T}no" >&6
19201 echo "$as_me:$LINENO: result: no" >&5
19202 echo "${ECHO_T}no" >&6
19205 # check for --with-libm=...
19207 case $ac_sys_system in
19212 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19213 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19215 # Check whether --with-libm or --without-libm was given.
19216 if test "${with_libm+set}" = set; then
19217 withval
="$with_libm"
19219 if test "$withval" = no
19221 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19222 echo "${ECHO_T}force LIBM empty" >&6
19223 elif test "$withval" != yes
19225 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19226 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19227 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19228 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19229 { (exit 1); exit 1; }; }
19232 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19233 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19236 # check for --with-libc=...
19238 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19239 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19241 # Check whether --with-libc or --without-libc was given.
19242 if test "${with_libc+set}" = set; then
19243 withval
="$with_libc"
19245 if test "$withval" = no
19247 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19248 echo "${ECHO_T}force LIBC empty" >&6
19249 elif test "$withval" != yes
19251 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19252 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19253 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19254 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19255 { (exit 1); exit 1; }; }
19258 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19259 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19262 # check for hypot() in math library
19266 for ac_func
in hypot
19268 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269 echo "$as_me:$LINENO: checking for $ac_func" >&5
19270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19271 if eval "test \"\${$as_ac_var+set}\" = set"; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 cat >conftest.
$ac_ext <<_ACEOF
19277 cat confdefs.h
>>conftest.
$ac_ext
19278 cat >>conftest.
$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19282 #define $ac_func innocuous_$ac_func
19284 /* System header to define __stub macros and hopefully few prototypes,
19285 which can conflict with char $ac_func (); below.
19286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19287 <limits.h> exists even on freestanding compilers. */
19290 # include <limits.h>
19292 # include <assert.h>
19297 /* Override any gcc2 internal prototype to avoid an error. */
19302 /* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19305 /* The GNU C library defines this for functions which it implements
19306 to always fail with ENOSYS. Some functions are actually named
19307 something starting with __ and the normal name is an alias. */
19308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19311 char (*f) () = $ac_func;
19320 return f != $ac_func;
19325 rm -f conftest.
$ac_objext conftest
$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>conftest.er1
19329 grep -v '^ *+' conftest.er1
>conftest.err
19331 cat conftest.err
>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try
='test -z "$ac_c_werror_flag"
19335 || test ! -s conftest.err'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try
='test -s conftest$ac_exeext'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 eval "$as_ac_var=yes"
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.
$ac_ext >&5
19352 eval "$as_ac_var=no"
19354 rm -f conftest.err conftest.
$ac_objext \
19355 conftest
$ac_exeext conftest.
$ac_ext
19357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19359 if test `eval echo '${'$as_ac_var'}'` = yes; then
19360 cat >>confdefs.h
<<_ACEOF
19361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19366 "$ac_func.$ac_objext" | \
19367 *" $ac_func.$ac_objext" | \
19368 "$ac_func.$ac_objext "* | \
19369 *" $ac_func.$ac_objext "* ) ;;
19370 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19379 # check for wchar.h
19380 if test "${ac_cv_header_wchar_h+set}" = set; then
19381 echo "$as_me:$LINENO: checking for wchar.h" >&5
19382 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19383 if test "${ac_cv_header_wchar_h+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19387 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19389 # Is the header compilable?
19390 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19391 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19392 cat >conftest.
$ac_ext <<_ACEOF
19395 cat confdefs.h
>>conftest.
$ac_ext
19396 cat >>conftest.
$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 $ac_includes_default
19401 rm -f conftest.
$ac_objext
19402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19403 (eval $ac_compile) 2>conftest.er1
19405 grep -v '^ *+' conftest.er1
>conftest.err
19407 cat conftest.err
>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
19410 { ac_try
='test -z "$ac_c_werror_flag"
19411 || test ! -s conftest.err'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try
='test -s conftest.$ac_objext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_header_compiler
=yes
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.
$ac_ext >&5
19428 ac_header_compiler
=no
19430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19432 echo "${ECHO_T}$ac_header_compiler" >&6
19434 # Is the header present?
19435 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19436 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19437 cat >conftest.
$ac_ext <<_ACEOF
19440 cat confdefs.h
>>conftest.
$ac_ext
19441 cat >>conftest.
$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19448 grep -v '^ *+' conftest.er1
>conftest.err
19450 cat conftest.err
>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } >/dev
/null
; then
19453 if test -s conftest.err
; then
19454 ac_cpp_err
=$ac_c_preproc_warn_flag
19455 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19462 if test -z "$ac_cpp_err"; then
19463 ac_header_preproc
=yes
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.
$ac_ext >&5
19468 ac_header_preproc
=no
19470 rm -f conftest.err conftest.
$ac_ext
19471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19472 echo "${ECHO_T}$ac_header_preproc" >&6
19474 # So? What about this header?
19475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19477 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19478 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19480 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19481 ac_header_preproc
=yes
19484 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19485 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19487 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19488 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19489 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19490 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19491 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19493 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19494 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19495 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19498 ## ------------------------------------------------ ##
19499 ## Report this to http://www.python.org/python-bugs ##
19500 ## ------------------------------------------------ ##
19503 sed "s/^/$as_me: WARNING: /" >&2
19506 echo "$as_me:$LINENO: checking for wchar.h" >&5
19507 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19508 if test "${ac_cv_header_wchar_h+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 ac_cv_header_wchar_h
=$ac_header_preproc
19513 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19514 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19517 if test $ac_cv_header_wchar_h = yes; then
19520 cat >>confdefs.h
<<\_ACEOF
19521 #define HAVE_WCHAR_H 1
19533 # determine wchar_t size
19534 if test "$wchar_h" = yes
19536 echo "$as_me:$LINENO: checking for wchar_t" >&5
19537 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19538 if test "${ac_cv_type_wchar_t+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 cat >conftest.
$ac_ext <<_ACEOF
19544 cat confdefs.h
>>conftest.
$ac_ext
19545 cat >>conftest.
$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19554 if (sizeof (wchar_t))
19560 rm -f conftest.
$ac_objext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19562 (eval $ac_compile) 2>conftest.er1
19564 grep -v '^ *+' conftest.er1
>conftest.err
19566 cat conftest.err
>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try
='test -z "$ac_c_werror_flag"
19570 || test ! -s conftest.err'
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); }; } &&
19576 { ac_try
='test -s conftest.$ac_objext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_cv_type_wchar_t
=yes
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.
$ac_ext >&5
19587 ac_cv_type_wchar_t
=no
19589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19591 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19592 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19594 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19595 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19596 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 if test "$ac_cv_type_wchar_t" = yes; then
19600 # The cast to unsigned long works around a bug in the HP C Compiler
19601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19603 # This bug is HP SR number 8606223364.
19604 if test "$cross_compiling" = yes; then
19605 # Depending upon the size, compute the lo and hi bounds.
19606 cat >conftest.
$ac_ext <<_ACEOF
19609 cat confdefs.h
>>conftest.
$ac_ext
19610 cat >>conftest.
$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19617 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19624 rm -f conftest.
$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>conftest.er1
19628 grep -v '^ *+' conftest.er1
>conftest.err
19630 cat conftest.err
>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try
='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try
='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19648 cat >conftest.
$ac_ext <<_ACEOF
19651 cat confdefs.h
>>conftest.
$ac_ext
19652 cat >>conftest.
$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19659 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19666 rm -f conftest.
$ac_objext
19667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19668 (eval $ac_compile) 2>conftest.er1
19670 grep -v '^ *+' conftest.er1
>conftest.err
19672 cat conftest.err
>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
19675 { ac_try
='test -z "$ac_c_werror_flag"
19676 || test ! -s conftest.err'
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try
='test -s conftest.$ac_objext'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; }; then
19688 ac_hi
=$ac_mid; break
19690 echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.
$ac_ext >&5
19693 ac_lo
=`expr $ac_mid + 1`
19694 if test $ac_lo -le $ac_mid; then
19698 ac_mid
=`expr 2 '*' $ac_mid + 1`
19700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.
$ac_ext >&5
19706 cat >conftest.
$ac_ext <<_ACEOF
19709 cat confdefs.h
>>conftest.
$ac_ext
19710 cat >>conftest.
$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19717 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19724 rm -f conftest.
$ac_objext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19726 (eval $ac_compile) 2>conftest.er1
19728 grep -v '^ *+' conftest.er1
>conftest.err
19730 cat conftest.err
>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try
='test -z "$ac_c_werror_flag"
19734 || test ! -s conftest.err'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try
='test -s conftest.$ac_objext'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19748 cat >conftest.
$ac_ext <<_ACEOF
19751 cat confdefs.h
>>conftest.
$ac_ext
19752 cat >>conftest.
$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19759 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19766 rm -f conftest.
$ac_objext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19768 (eval $ac_compile) 2>conftest.er1
19770 grep -v '^ *+' conftest.er1
>conftest.err
19772 cat conftest.err
>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
19775 { ac_try
='test -z "$ac_c_werror_flag"
19776 || test ! -s conftest.err'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try
='test -s conftest.$ac_objext'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_lo
=$ac_mid; break
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.
$ac_ext >&5
19793 ac_hi
=`expr '(' $ac_mid ')' - 1`
19794 if test $ac_mid -le $ac_hi; then
19798 ac_mid
=`expr 2 '*' $ac_mid`
19800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.
$ac_ext >&5
19808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19811 # Binary search between lo and hi bounds.
19812 while test "x$ac_lo" != "x$ac_hi"; do
19813 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19814 cat >conftest.
$ac_ext <<_ACEOF
19817 cat confdefs.h
>>conftest.
$ac_ext
19818 cat >>conftest.
$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19825 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19832 rm -f conftest.
$ac_objext
19833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19836 grep -v '^ *+' conftest.er1
>conftest.err
19838 cat conftest.err
>&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try
='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try
='test -s conftest.$ac_objext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.
$ac_ext >&5
19859 ac_lo
=`expr '(' $ac_mid ')' + 1`
19861 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19864 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19865 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19866 See \`config.log' for more details." >&5
19867 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19868 See \`config.log' for more details." >&2;}
19869 { (exit 1); exit 1; }; } ;;
19872 if test "$cross_compiling" = yes; then
19873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19874 See \`config.log' for more details." >&5
19875 echo "$as_me: error: cannot run test program while cross compiling
19876 See \`config.log' for more details." >&2;}
19877 { (exit 1); exit 1; }; }
19879 cat >conftest.
$ac_ext <<_ACEOF
19882 cat confdefs.h
>>conftest.
$ac_ext
19883 cat >>conftest.
$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19887 long longval () { return (long) (sizeof (wchar_t)); }
19888 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19890 #include <stdlib.h>
19895 FILE *f = fopen ("conftest.val", "w");
19898 if (((long) (sizeof (wchar_t))) < 0)
19900 long i = longval ();
19901 if (i != ((long) (sizeof (wchar_t))))
19903 fprintf (f, "%ld\n", i);
19907 unsigned long i = ulongval ();
19908 if (i != ((long) (sizeof (wchar_t))))
19910 fprintf (f, "%lu\n", i);
19912 exit (ferror (f) || fclose (f) != 0);
19918 rm -f conftest
$ac_exeext
19919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19920 (eval $ac_link) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19931 echo "$as_me: program exited with status $ac_status" >&5
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.
$ac_ext >&5
19935 ( exit $ac_status )
19936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19937 See \`config.log' for more details." >&5
19938 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19939 See \`config.log' for more details." >&2;}
19940 { (exit 1); exit 1; }; }
19942 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19947 ac_cv_sizeof_wchar_t
=0
19950 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19951 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19952 cat >>confdefs.h
<<_ACEOF
19953 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19959 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19960 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19962 cat >conftest.
$ac_ext <<_ACEOF
19965 cat confdefs.h
>>conftest.
$ac_ext
19966 cat >>conftest.
$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19970 #if TCL_UTF_MAX != 6
19971 # error "NOT UCS4_TCL"
19981 rm -f conftest.
$ac_objext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983 (eval $ac_compile) 2>conftest.er1
19985 grep -v '^ *+' conftest.er1
>conftest.err
19987 cat conftest.err
>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try
='test -z "$ac_c_werror_flag"
19991 || test ! -s conftest.err'
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try
='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20005 cat >>confdefs.h
<<\_ACEOF
20006 #define HAVE_UCS4_TCL 1
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.
$ac_ext >&5
20016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20017 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20018 echo "${ECHO_T}$have_ucs4_tcl" >&6
20020 # check whether wchar_t is signed or not
20021 if test "$wchar_h" = yes
20023 # check whether wchar_t is signed or not
20024 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20025 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20026 if test "${ac_cv_wchar_t_signed+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 if test "$cross_compiling" = yes; then
20031 ac_cv_wchar_t_signed
=yes
20033 cat >conftest.
$ac_ext <<_ACEOF
20036 cat confdefs.h
>>conftest.
$ac_ext
20037 cat >>conftest.
$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20043 /* Success: exit code 0 */
20044 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20048 rm -f conftest
$ac_exeext
20049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20050 (eval $ac_link) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_cv_wchar_t_signed
=yes
20061 echo "$as_me: program exited with status $ac_status" >&5
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.
$ac_ext >&5
20065 ( exit $ac_status )
20066 ac_cv_wchar_t_signed
=no
20068 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20072 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20073 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20076 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20077 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20078 # Check whether --enable-unicode or --disable-unicode was given.
20079 if test "${enable_unicode+set}" = set; then
20080 enableval
="$enable_unicode"
20086 if test $enable_unicode = yes
20088 # Without any arguments, Py_UNICODE defaults to two-byte mode
20089 case "$have_ucs4_tcl" in
20090 yes) enable_unicode
="ucs4"
20092 *) enable_unicode
="ucs2"
20099 case "$enable_unicode" in
20100 ucs2
) unicode_size
="2"
20101 cat >>confdefs.h
<<\_ACEOF
20102 #define Py_UNICODE_SIZE 2
20106 ucs4
) unicode_size
="4"
20107 cat >>confdefs.h
<<\_ACEOF
20108 #define Py_UNICODE_SIZE 4
20118 if test "$enable_unicode" = "no"
20121 echo "$as_me:$LINENO: result: not used" >&5
20122 echo "${ECHO_T}not used" >&6
20124 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20126 cat >>confdefs.h
<<\_ACEOF
20127 #define Py_USING_UNICODE 1
20131 # wchar_t is only usable if it maps to an unsigned type
20132 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20133 -a "$ac_cv_wchar_t_signed" = "no"
20135 PY_UNICODE_TYPE
="wchar_t"
20137 cat >>confdefs.h
<<\_ACEOF
20138 #define HAVE_USABLE_WCHAR_T 1
20141 cat >>confdefs.h
<<\_ACEOF
20142 #define PY_UNICODE_TYPE wchar_t
20145 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20147 PY_UNICODE_TYPE
="unsigned short"
20148 cat >>confdefs.h
<<\_ACEOF
20149 #define PY_UNICODE_TYPE unsigned short
20152 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20154 PY_UNICODE_TYPE
="unsigned long"
20155 cat >>confdefs.h
<<\_ACEOF
20156 #define PY_UNICODE_TYPE unsigned long
20160 PY_UNICODE_TYPE
="no type found"
20162 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20163 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20166 # check for endianness
20167 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20168 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20169 if test "${ac_cv_c_bigendian+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 # See if sys/param.h defines the BYTE_ORDER macro.
20173 cat >conftest.
$ac_ext <<_ACEOF
20176 cat confdefs.h
>>conftest.
$ac_ext
20177 cat >>conftest.
$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 #include <sys/types.h>
20180 #include <sys/param.h>
20185 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20186 bogus endian macros
20193 rm -f conftest.
$ac_objext
20194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20195 (eval $ac_compile) 2>conftest.er1
20197 grep -v '^ *+' conftest.er1
>conftest.err
20199 cat conftest.err
>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } &&
20202 { ac_try
='test -z "$ac_c_werror_flag"
20203 || test ! -s conftest.err'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; } &&
20209 { ac_try
='test -s conftest.$ac_objext'
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; }; then
20215 # It does; now see whether it defined to BIG_ENDIAN or not.
20216 cat >conftest.
$ac_ext <<_ACEOF
20219 cat confdefs.h
>>conftest.
$ac_ext
20220 cat >>conftest.
$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #include <sys/types.h>
20223 #include <sys/param.h>
20228 #if BYTE_ORDER != BIG_ENDIAN
20236 rm -f conftest.
$ac_objext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238 (eval $ac_compile) 2>conftest.er1
20240 grep -v '^ *+' conftest.er1
>conftest.err
20242 cat conftest.err
>&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try
='test -z "$ac_c_werror_flag"
20246 || test ! -s conftest.err'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try
='test -s conftest.$ac_objext'
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 ac_cv_c_bigendian
=yes
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.
$ac_ext >&5
20263 ac_cv_c_bigendian
=no
20265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.
$ac_ext >&5
20270 # It does not; compile a test program.
20271 if test "$cross_compiling" = yes; then
20272 # try to guess the endianness by grepping values into an object file
20273 ac_cv_c_bigendian
=unknown
20274 cat >conftest.
$ac_ext <<_ACEOF
20277 cat confdefs.h
>>conftest.
$ac_ext
20278 cat >>conftest.
$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20281 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20282 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20283 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20284 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20285 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20289 _ascii (); _ebcdic ();
20294 rm -f conftest.
$ac_objext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20296 (eval $ac_compile) 2>conftest.er1
20298 grep -v '^ *+' conftest.er1
>conftest.err
20300 cat conftest.err
>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try
='test -z "$ac_c_werror_flag"
20304 || test ! -s conftest.err'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; } &&
20310 { ac_try
='test -s conftest.$ac_objext'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20316 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20317 ac_cv_c_bigendian
=yes
20319 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20320 if test "$ac_cv_c_bigendian" = unknown
; then
20321 ac_cv_c_bigendian
=no
20323 # finding both strings is unlikely to happen, but who knows?
20324 ac_cv_c_bigendian
=unknown
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.
$ac_ext >&5
20332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20334 cat >conftest.
$ac_ext <<_ACEOF
20337 cat confdefs.h
>>conftest.
$ac_ext
20338 cat >>conftest.
$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20343 /* Are we little or big endian? From Harbison&Steele. */
20347 char c[sizeof (long)];
20350 exit (u.c[sizeof (long) - 1] == 1);
20353 rm -f conftest
$ac_exeext
20354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20355 (eval $ac_link) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 ac_cv_c_bigendian
=no
20366 echo "$as_me: program exited with status $ac_status" >&5
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.
$ac_ext >&5
20370 ( exit $ac_status )
20371 ac_cv_c_bigendian
=yes
20373 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20378 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20379 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20380 case $ac_cv_c_bigendian in
20383 cat >>confdefs.h
<<\_ACEOF
20384 #define WORDS_BIGENDIAN 1
20390 { { echo "$as_me:$LINENO: error: unknown endianness
20391 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20392 echo "$as_me: error: unknown endianness
20393 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20394 { (exit 1); exit 1; }; } ;;
20400 # Check whether right shifting a negative integer extends the sign bit
20401 # or fills with zeros (like the Cray J90, according to Tim Peters).
20402 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20403 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20404 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 if test "$cross_compiling" = yes; then
20409 ac_cv_rshift_extends_sign
=yes
20411 cat >conftest.
$ac_ext <<_ACEOF
20414 cat confdefs.h
>>conftest.
$ac_ext
20415 cat >>conftest.
$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20420 exit(((-1)>>3 == -1) ? 0 : 1);
20424 rm -f conftest
$ac_exeext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426 (eval $ac_link) 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_rshift_extends_sign
=yes
20437 echo "$as_me: program exited with status $ac_status" >&5
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.
$ac_ext >&5
20441 ( exit $ac_status )
20442 ac_cv_rshift_extends_sign
=no
20444 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20448 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20449 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20450 if test "$ac_cv_rshift_extends_sign" = no
20453 cat >>confdefs.h
<<\_ACEOF
20454 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20459 # check for getc_unlocked and related locking functions
20460 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20461 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20462 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 cat >conftest.
$ac_ext <<_ACEOF
20469 cat confdefs.h
>>conftest.
$ac_ext
20470 cat >>conftest.
$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20477 FILE *f = fopen("/dev/null", "r");
20486 rm -f conftest.
$ac_objext conftest
$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488 (eval $ac_link) 2>conftest.er1
20490 grep -v '^ *+' conftest.er1
>conftest.err
20492 cat conftest.err
>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try
='test -z "$ac_c_werror_flag"
20496 || test ! -s conftest.err'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try
='test -s conftest$ac_exeext'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_cv_have_getc_unlocked
=yes
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.
$ac_ext >&5
20513 ac_cv_have_getc_unlocked
=no
20515 rm -f conftest.err conftest.
$ac_objext \
20516 conftest
$ac_exeext conftest.
$ac_ext
20519 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20520 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20521 if test "$ac_cv_have_getc_unlocked" = yes
20524 cat >>confdefs.h
<<\_ACEOF
20525 #define HAVE_GETC_UNLOCKED 1
20530 # check where readline lives
20531 # save the value of LIBS so we don't actually link Python with readline
20532 LIBS_no_readline
=$LIBS
20534 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20535 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20536 if test "${ac_cv_lib_readline_readline+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 ac_check_lib_save_LIBS
=$LIBS
20540 LIBS
="-lreadline $LIBS"
20541 cat >conftest.
$ac_ext <<_ACEOF
20544 cat confdefs.h
>>conftest.
$ac_ext
20545 cat >>conftest.
$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20548 /* Override any gcc2 internal prototype to avoid an error. */
20552 /* We use char because int might match the return type of a gcc2
20553 builtin and then its argument prototype would still apply. */
20563 rm -f conftest.
$ac_objext conftest
$ac_exeext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565 (eval $ac_link) 2>conftest.er1
20567 grep -v '^ *+' conftest.er1
>conftest.err
20569 cat conftest.err
>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try
='test -z "$ac_c_werror_flag"
20573 || test ! -s conftest.err'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try
='test -s conftest$ac_exeext'
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
20585 ac_cv_lib_readline_readline
=yes
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.
$ac_ext >&5
20590 ac_cv_lib_readline_readline
=no
20592 rm -f conftest.err conftest.
$ac_objext \
20593 conftest
$ac_exeext conftest.
$ac_ext
20594 LIBS
=$ac_check_lib_save_LIBS
20596 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20597 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20598 if test $ac_cv_lib_readline_readline = yes; then
20599 cat >>confdefs.h
<<_ACEOF
20600 #define HAVE_LIBREADLINE 1
20603 LIBS
="-lreadline $LIBS"
20607 if test "$ac_cv_have_readline_readline" = no
20610 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20611 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20612 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 ac_check_lib_save_LIBS
=$LIBS
20616 LIBS
="-ltermcap $LIBS"
20617 cat >conftest.
$ac_ext <<_ACEOF
20620 cat confdefs.h
>>conftest.
$ac_ext
20621 cat >>conftest.
$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20624 /* Override any gcc2 internal prototype to avoid an error. */
20628 /* We use char because int might match the return type of a gcc2
20629 builtin and then its argument prototype would still apply. */
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_lib_termcap_readline
=yes
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.
$ac_ext >&5
20666 ac_cv_lib_termcap_readline
=no
20668 rm -f conftest.err conftest.
$ac_objext \
20669 conftest
$ac_exeext conftest.
$ac_ext
20670 LIBS
=$ac_check_lib_save_LIBS
20672 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20673 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20674 if test $ac_cv_lib_termcap_readline = yes; then
20675 cat >>confdefs.h
<<_ACEOF
20676 #define HAVE_LIBTERMCAP 1
20679 LIBS
="-ltermcap $LIBS"
20685 # check for readline 2.1
20686 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20687 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20688 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 ac_check_lib_save_LIBS
=$LIBS
20692 LIBS
="-lreadline $LIBS"
20693 cat >conftest.
$ac_ext <<_ACEOF
20696 cat confdefs.h
>>conftest.
$ac_ext
20697 cat >>conftest.
$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20700 /* Override any gcc2 internal prototype to avoid an error. */
20704 /* We use char because int might match the return type of a gcc2
20705 builtin and then its argument prototype would still apply. */
20706 char rl_callback_handler_install ();
20710 rl_callback_handler_install ();
20715 rm -f conftest.
$ac_objext conftest
$ac_exeext
20716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717 (eval $ac_link) 2>conftest.er1
20719 grep -v '^ *+' conftest.er1
>conftest.err
20721 cat conftest.err
>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
20724 { ac_try
='test -z "$ac_c_werror_flag"
20725 || test ! -s conftest.err'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; } &&
20731 { ac_try
='test -s conftest$ac_exeext'
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737 ac_cv_lib_readline_rl_callback_handler_install
=yes
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.
$ac_ext >&5
20742 ac_cv_lib_readline_rl_callback_handler_install
=no
20744 rm -f conftest.err conftest.
$ac_objext \
20745 conftest
$ac_exeext conftest.
$ac_ext
20746 LIBS
=$ac_check_lib_save_LIBS
20748 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20749 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20750 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20752 cat >>confdefs.h
<<\_ACEOF
20753 #define HAVE_RL_CALLBACK 1
20759 # check for readline 2.2
20760 cat >conftest.
$ac_ext <<_ACEOF
20763 cat confdefs.h
>>conftest.
$ac_ext
20764 cat >>conftest.
$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 #include <readline/readline.h>
20768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20769 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20771 grep -v '^ *+' conftest.er1
>conftest.err
20773 cat conftest.err
>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } >/dev
/null
; then
20776 if test -s conftest.err
; then
20777 ac_cpp_err
=$ac_c_preproc_warn_flag
20778 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20785 if test -z "$ac_cpp_err"; then
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.
$ac_ext >&5
20793 rm -f conftest.err conftest.
$ac_ext
20794 if test $have_readline = yes
20796 cat >conftest.
$ac_ext <<_ACEOF
20799 cat confdefs.h
>>conftest.
$ac_ext
20800 cat >>conftest.
$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20802 #include <readline/readline.h>
20805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20806 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20808 cat >>confdefs.h
<<\_ACEOF
20809 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20817 # check for readline 4.0
20818 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20819 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20820 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 ac_check_lib_save_LIBS
=$LIBS
20824 LIBS
="-lreadline $LIBS"
20825 cat >conftest.
$ac_ext <<_ACEOF
20828 cat confdefs.h
>>conftest.
$ac_ext
20829 cat >>conftest.
$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20832 /* Override any gcc2 internal prototype to avoid an error. */
20836 /* We use char because int might match the return type of a gcc2
20837 builtin and then its argument prototype would still apply. */
20838 char rl_pre_input_hook ();
20842 rl_pre_input_hook ();
20847 rm -f conftest.
$ac_objext conftest
$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>conftest.er1
20851 grep -v '^ *+' conftest.er1
>conftest.err
20853 cat conftest.err
>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try
='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try
='test -s conftest$ac_exeext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 ac_cv_lib_readline_rl_pre_input_hook
=yes
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.
$ac_ext >&5
20874 ac_cv_lib_readline_rl_pre_input_hook
=no
20876 rm -f conftest.err conftest.
$ac_objext \
20877 conftest
$ac_exeext conftest.
$ac_ext
20878 LIBS
=$ac_check_lib_save_LIBS
20880 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20881 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20882 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20884 cat >>confdefs.h
<<\_ACEOF
20885 #define HAVE_RL_PRE_INPUT_HOOK 1
20891 # check for readline 4.2
20892 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20893 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20894 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20895 echo $ECHO_N "(cached) $ECHO_C" >&6
20897 ac_check_lib_save_LIBS
=$LIBS
20898 LIBS
="-lreadline $LIBS"
20899 cat >conftest.
$ac_ext <<_ACEOF
20902 cat confdefs.h
>>conftest.
$ac_ext
20903 cat >>conftest.
$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20906 /* Override any gcc2 internal prototype to avoid an error. */
20910 /* We use char because int might match the return type of a gcc2
20911 builtin and then its argument prototype would still apply. */
20912 char rl_completion_matches ();
20916 rl_completion_matches ();
20921 rm -f conftest.
$ac_objext conftest
$ac_exeext
20922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20923 (eval $ac_link) 2>conftest.er1
20925 grep -v '^ *+' conftest.er1
>conftest.err
20927 cat conftest.err
>&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } &&
20930 { ac_try
='test -z "$ac_c_werror_flag"
20931 || test ! -s conftest.err'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try
='test -s conftest$ac_exeext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_lib_readline_rl_completion_matches
=yes
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.
$ac_ext >&5
20948 ac_cv_lib_readline_rl_completion_matches
=no
20950 rm -f conftest.err conftest.
$ac_objext \
20951 conftest
$ac_exeext conftest.
$ac_ext
20952 LIBS
=$ac_check_lib_save_LIBS
20954 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20955 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20956 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20958 cat >>confdefs.h
<<\_ACEOF
20959 #define HAVE_RL_COMPLETION_MATCHES 1
20965 # also in readline 4.2
20966 cat >conftest.
$ac_ext <<_ACEOF
20969 cat confdefs.h
>>conftest.
$ac_ext
20970 cat >>conftest.
$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 #include <readline/readline.h>
20974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20975 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20977 grep -v '^ *+' conftest.er1
>conftest.err
20979 cat conftest.err
>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } >/dev
/null
; then
20982 if test -s conftest.err
; then
20983 ac_cpp_err
=$ac_c_preproc_warn_flag
20984 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20991 if test -z "$ac_cpp_err"; then
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.
$ac_ext >&5
20999 rm -f conftest.err conftest.
$ac_ext
21000 if test $have_readline = yes
21002 cat >conftest.
$ac_ext <<_ACEOF
21005 cat confdefs.h
>>conftest.
$ac_ext
21006 cat >>conftest.
$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <readline/readline.h>
21011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21012 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21014 cat >>confdefs.h
<<\_ACEOF
21015 #define HAVE_RL_CATCH_SIGNAL 1
21023 # End of readline checks: restore LIBS
21024 LIBS
=$LIBS_no_readline
21026 echo "$as_me:$LINENO: checking for broken nice()" >&5
21027 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21028 if test "${ac_cv_broken_nice+set}" = set; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 if test "$cross_compiling" = yes; then
21033 ac_cv_broken_nice
=no
21035 cat >conftest.
$ac_ext <<_ACEOF
21038 cat confdefs.h
>>conftest.
$ac_ext
21039 cat >>conftest.
$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21044 int val1 = nice(1);
21045 if (val1 != -1 && val1 == nice(2))
21051 rm -f conftest
$ac_exeext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21053 (eval $ac_link) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_broken_nice
=yes
21064 echo "$as_me: program exited with status $ac_status" >&5
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.
$ac_ext >&5
21068 ( exit $ac_status )
21069 ac_cv_broken_nice
=no
21071 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21075 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21076 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21077 if test "$ac_cv_broken_nice" = yes
21080 cat >>confdefs.h
<<\_ACEOF
21081 #define HAVE_BROKEN_NICE 1
21086 echo "$as_me:$LINENO: checking for broken poll()" >&5
21087 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21088 if test "$cross_compiling" = yes; then
21089 ac_cv_broken_poll
=no
21091 cat >conftest.
$ac_ext <<_ACEOF
21094 cat confdefs.h
>>conftest.
$ac_ext
21095 cat >>conftest.
$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21102 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21106 int poll_test = poll (&poll_struct, 1, 0);
21112 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21123 rm -f conftest
$ac_exeext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21125 (eval $ac_link) 2>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; }; then
21134 ac_cv_broken_poll
=yes
21136 echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.
$ac_ext >&5
21140 ( exit $ac_status )
21141 ac_cv_broken_poll
=no
21143 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21145 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21146 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21147 if test "$ac_cv_broken_poll" = yes
21150 cat >>confdefs.h
<<\_ACEOF
21151 #define HAVE_BROKEN_POLL 1
21156 # Before we can test tzset, we need to check if struct tm has a tm_zone
21157 # (which is not required by ISO C or UNIX spec) and/or if we support
21159 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21160 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21161 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 cat >conftest.
$ac_ext <<_ACEOF
21167 cat confdefs.h
>>conftest.
$ac_ext
21168 cat >>conftest.
$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 #include <sys/types.h>
21171 #include <$ac_cv_struct_tm>
21177 static struct tm ac_aggr;
21178 if (ac_aggr.tm_zone)
21184 rm -f conftest.
$ac_objext
21185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21186 (eval $ac_compile) 2>conftest.er1
21188 grep -v '^ *+' conftest.er1
>conftest.err
21190 cat conftest.err
>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } &&
21193 { ac_try
='test -z "$ac_c_werror_flag"
21194 || test ! -s conftest.err'
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; } &&
21200 { ac_try
='test -s conftest.$ac_objext'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
21206 ac_cv_member_struct_tm_tm_zone
=yes
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.
$ac_ext >&5
21211 cat >conftest.
$ac_ext <<_ACEOF
21214 cat confdefs.h
>>conftest.
$ac_ext
21215 cat >>conftest.
$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 #include <sys/types.h>
21218 #include <$ac_cv_struct_tm>
21224 static struct tm ac_aggr;
21225 if (sizeof ac_aggr.tm_zone)
21231 rm -f conftest.
$ac_objext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233 (eval $ac_compile) 2>conftest.er1
21235 grep -v '^ *+' conftest.er1
>conftest.err
21237 cat conftest.err
>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } &&
21240 { ac_try
='test -z "$ac_c_werror_flag"
21241 || test ! -s conftest.err'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try
='test -s conftest.$ac_objext'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 ac_cv_member_struct_tm_tm_zone
=yes
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.
$ac_ext >&5
21258 ac_cv_member_struct_tm_tm_zone
=no
21260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21264 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21265 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21266 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21268 cat >>confdefs.h
<<_ACEOF
21269 #define HAVE_STRUCT_TM_TM_ZONE 1
21275 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21277 cat >>confdefs.h
<<\_ACEOF
21278 #define HAVE_TM_ZONE 1
21282 echo "$as_me:$LINENO: checking for tzname" >&5
21283 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21284 if test "${ac_cv_var_tzname+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21287 cat >conftest.
$ac_ext <<_ACEOF
21290 cat confdefs.h
>>conftest.
$ac_ext
21291 cat >>conftest.
$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21294 #ifndef tzname /* For SGI. */
21295 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21306 rm -f conftest.
$ac_objext conftest
$ac_exeext
21307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21308 (eval $ac_link) 2>conftest.er1
21310 grep -v '^ *+' conftest.er1
>conftest.err
21312 cat conftest.err
>&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } &&
21315 { ac_try
='test -z "$ac_c_werror_flag"
21316 || test ! -s conftest.err'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; } &&
21322 { ac_try
='test -s conftest$ac_exeext'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; }; then
21328 ac_cv_var_tzname
=yes
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.
$ac_ext >&5
21333 ac_cv_var_tzname
=no
21335 rm -f conftest.err conftest.
$ac_objext \
21336 conftest
$ac_exeext conftest.
$ac_ext
21338 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21339 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21340 if test $ac_cv_var_tzname = yes; then
21342 cat >>confdefs.h
<<\_ACEOF
21343 #define HAVE_TZNAME 1
21350 # check tzset(3) exists and works like we expect it to
21351 echo "$as_me:$LINENO: checking for working tzset()" >&5
21352 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21353 if test "${ac_cv_working_tzset+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 if test "$cross_compiling" = yes; then
21358 ac_cv_working_tzset
=no
21360 cat >conftest.
$ac_ext <<_ACEOF
21363 cat confdefs.h
>>conftest.
$ac_ext
21364 cat >>conftest.
$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21367 #include <stdlib.h>
21369 #include <string.h>
21372 extern char *tzname[];
21377 /* Note that we need to ensure that not only does tzset(3)
21378 do 'something' with localtime, but it works as documented
21379 in the library reference and as expected by the test suite.
21380 This includes making sure that tzname is set properly if
21381 tm->tm_zone does not exist since it is the alternative way
21382 of getting timezone info.
21384 Red Hat 6.2 doesn't understand the southern hemisphere
21385 after New Year's Day.
21388 time_t groundhogday = 1044144000; /* GMT-based */
21389 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21391 putenv("TZ=UTC+0");
21393 if (localtime(&groundhogday)->tm_hour != 0)
21396 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21397 if (strcmp(tzname[0], "UTC") ||
21398 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21402 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21404 if (localtime(&groundhogday)->tm_hour != 19)
21407 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21411 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21413 if (localtime(&groundhogday)->tm_hour != 11)
21416 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21420 #if HAVE_STRUCT_TM_TM_ZONE
21421 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21423 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21431 rm -f conftest
$ac_exeext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21433 (eval $ac_link) 2>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 ac_cv_working_tzset
=yes
21444 echo "$as_me: program exited with status $ac_status" >&5
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.
$ac_ext >&5
21448 ( exit $ac_status )
21449 ac_cv_working_tzset
=no
21451 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21455 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21456 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21457 if test "$ac_cv_working_tzset" = yes
21460 cat >>confdefs.h
<<\_ACEOF
21461 #define HAVE_WORKING_TZSET 1
21466 # Look for subsecond timestamps in struct stat
21467 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21468 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21469 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 cat >conftest.
$ac_ext <<_ACEOF
21475 cat confdefs.h
>>conftest.
$ac_ext
21476 cat >>conftest.
$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 #include <sys/stat.h>
21484 st.st_mtim.tv_nsec = 1;
21490 rm -f conftest.
$ac_objext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21492 (eval $ac_compile) 2>conftest.er1
21494 grep -v '^ *+' conftest.er1
>conftest.err
21496 cat conftest.err
>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } &&
21499 { ac_try
='test -z "$ac_c_werror_flag"
21500 || test ! -s conftest.err'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; } &&
21506 { ac_try
='test -s conftest.$ac_objext'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; }; then
21512 ac_cv_stat_tv_nsec
=yes
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.
$ac_ext >&5
21517 ac_cv_stat_tv_nsec
=no
21519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21522 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21523 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21524 if test "$ac_cv_stat_tv_nsec" = yes
21527 cat >>confdefs.h
<<\_ACEOF
21528 #define HAVE_STAT_TV_NSEC 1
21533 # Look for BSD style subsecond timestamps in struct stat
21534 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21535 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21536 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 cat >conftest.
$ac_ext <<_ACEOF
21542 cat confdefs.h
>>conftest.
$ac_ext
21543 cat >>conftest.
$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 #include <sys/stat.h>
21551 st.st_mtimespec.tv_nsec = 1;
21557 rm -f conftest.
$ac_objext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21561 grep -v '^ *+' conftest.er1
>conftest.err
21563 cat conftest.err
>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try
='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try
='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_stat_tv_nsec2
=yes
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.
$ac_ext >&5
21584 ac_cv_stat_tv_nsec2
=no
21586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21589 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21590 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21591 if test "$ac_cv_stat_tv_nsec2" = yes
21594 cat >>confdefs.h
<<\_ACEOF
21595 #define HAVE_STAT_TV_NSEC2 1
21600 # On HP/UX 11.0, mvwdelch is a block with a return statement
21601 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21602 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21603 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21606 cat >conftest.
$ac_ext <<_ACEOF
21609 cat confdefs.h
>>conftest.
$ac_ext
21610 cat >>conftest.
$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21612 #include <curses.h>
21618 rtn = mvwdelch(0,0,0);
21624 rm -f conftest.
$ac_objext
21625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21626 (eval $ac_compile) 2>conftest.er1
21628 grep -v '^ *+' conftest.er1
>conftest.err
21630 cat conftest.err
>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try
='test -z "$ac_c_werror_flag"
21634 || test ! -s conftest.err'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; } &&
21640 { ac_try
='test -s conftest.$ac_objext'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 ac_cv_mvwdelch_is_expression
=yes
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.
$ac_ext >&5
21651 ac_cv_mvwdelch_is_expression
=no
21653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21656 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21657 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21659 if test "$ac_cv_mvwdelch_is_expression" = yes
21662 cat >>confdefs.h
<<\_ACEOF
21663 #define MVWDELCH_IS_EXPRESSION 1
21668 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21669 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21670 if test "${ac_cv_window_has_flags+set}" = set; then
21671 echo $ECHO_N "(cached) $ECHO_C" >&6
21673 cat >conftest.
$ac_ext <<_ACEOF
21676 cat confdefs.h
>>conftest.
$ac_ext
21677 cat >>conftest.
$ac_ext <<_ACEOF
21678 /* end confdefs.h. */
21679 #include <curses.h>
21691 rm -f conftest.
$ac_objext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21693 (eval $ac_compile) 2>conftest.er1
21695 grep -v '^ *+' conftest.er1
>conftest.err
21697 cat conftest.err
>&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } &&
21700 { ac_try
='test -z "$ac_c_werror_flag"
21701 || test ! -s conftest.err'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try
='test -s conftest.$ac_objext'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 ac_cv_window_has_flags
=yes
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.
$ac_ext >&5
21718 ac_cv_window_has_flags
=no
21720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21723 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21724 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21727 if test "$ac_cv_window_has_flags" = yes
21730 cat >>confdefs.h
<<\_ACEOF
21731 #define WINDOW_HAS_FLAGS 1
21736 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21737 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21739 if test -e /dev
/ptmx
21741 echo "$as_me:$LINENO: result: yes" >&5
21742 echo "${ECHO_T}yes" >&6
21744 cat >>confdefs.h
<<\_ACEOF
21745 #define HAVE_DEV_PTMX 1
21749 echo "$as_me:$LINENO: result: no" >&5
21750 echo "${ECHO_T}no" >&6
21753 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21754 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21756 if test -e /dev
/ptc
21758 echo "$as_me:$LINENO: result: yes" >&5
21759 echo "${ECHO_T}yes" >&6
21761 cat >>confdefs.h
<<\_ACEOF
21762 #define HAVE_DEV_PTC 1
21766 echo "$as_me:$LINENO: result: no" >&5
21767 echo "${ECHO_T}no" >&6
21770 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
21771 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
21772 if test "$cross_compiling" = yes; then
21773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21774 See \`config.log' for more details." >&5
21775 echo "$as_me: error: cannot run test program while cross compiling
21776 See \`config.log' for more details." >&2;}
21777 { (exit 1); exit 1; }; }
21779 cat >conftest.
$ac_ext <<_ACEOF
21782 cat confdefs.h
>>conftest.
$ac_ext
21783 cat >>conftest.
$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21786 #include <stddef.h>
21787 #include <string.h>
21793 if(sprintf(buffer, "%zd", (size_t)123) < 0)
21796 if (strncmp(buffer, "123", 3))
21802 rm -f conftest
$ac_exeext
21803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21804 (eval $ac_link) 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 echo "$as_me:$LINENO: result: yes" >&5
21814 echo "${ECHO_T}yes" >&6
21816 cat >>confdefs.h
<<\_ACEOF
21817 #define PY_FORMAT_SIZE_T "z"
21821 echo "$as_me: program exited with status $ac_status" >&5
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.
$ac_ext >&5
21825 ( exit $ac_status )
21826 echo "$as_me:$LINENO: result: no" >&5
21827 echo "${ECHO_T}no" >&6
21829 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21832 echo "$as_me:$LINENO: checking for socklen_t" >&5
21833 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21834 if test "${ac_cv_type_socklen_t+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 cat >conftest.
$ac_ext <<_ACEOF
21840 cat confdefs.h
>>conftest.
$ac_ext
21841 cat >>conftest.
$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21844 #ifdef HAVE_SYS_TYPES_H
21845 #include <sys/types.h>
21847 #ifdef HAVE_SYS_SOCKET_H
21848 #include <sys/socket.h>
21855 if ((socklen_t *) 0)
21857 if (sizeof (socklen_t))
21863 rm -f conftest.
$ac_objext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21865 (eval $ac_compile) 2>conftest.er1
21867 grep -v '^ *+' conftest.er1
>conftest.err
21869 cat conftest.err
>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try
='test -z "$ac_c_werror_flag"
21873 || test ! -s conftest.err'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try
='test -s conftest.$ac_objext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_type_socklen_t
=yes
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.
$ac_ext >&5
21890 ac_cv_type_socklen_t
=no
21892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21894 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21895 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21896 if test $ac_cv_type_socklen_t = yes; then
21900 cat >>confdefs.h
<<\_ACEOF
21901 #define socklen_t int
21909 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21911 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21915 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21916 echo "$as_me:$LINENO: checking for build directories" >&5
21917 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21918 for dir
in $SRCDIRS; do
21919 if test ! -d $dir; then
21923 echo "$as_me:$LINENO: result: done" >&5
21924 echo "${ECHO_T}done" >&6
21926 # generate output files
21927 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21929 cat >confcache
<<\_ACEOF
21930 # This file is a shell script that caches the results of configure
21931 # tests run on this system so they can be shared between configure
21932 # scripts and configure runs, see configure's option --config-cache.
21933 # It is not useful on other systems. If it contains results you don't
21934 # want to keep, you may remove or edit it.
21936 # config.status only pays attention to the cache file if you give it
21937 # the --recheck option to rerun configure.
21939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21941 # following values.
21945 # The following way of writing the cache mishandles newlines in values,
21946 # but we know of no workaround that is simple, portable, and efficient.
21947 # So, don't put newlines in cache variables' values.
21948 # Ultrix sh set writes to stderr and can't be redirected directly,
21949 # and sets the high bit in the cache file unless we assign to the vars.
21952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21954 # `set' does not quote correctly, so add quotes (double-quote
21955 # substitution turns \\\\ into \\, and sed turns \\ into \).
21958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21961 # `set' quotes correctly as required by POSIX, so do not add quotes.
21963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21974 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21975 if test -w $cache_file; then
21976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21977 cat confcache
>$cache_file
21979 echo "not updating unwritable cache $cache_file"
21984 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21985 # Let make expand exec_prefix.
21986 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21988 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21989 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21990 # trailing colons and then remove the whole line if VPATH becomes empty
21991 # (actually we leave an empty line to preserve line numbers).
21992 if test "x$srcdir" = x.
; then
21993 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21994 s/:*\$(srcdir):*/:/;
21995 s/:*\${srcdir}:*/:/;
21997 s/^\([^=]*=[ ]*\):*/\1/;
22003 DEFS
=-DHAVE_CONFIG_H
22007 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22008 # 1. Remove the extension, and $U if already installed.
22009 ac_i
=`echo "$ac_i" |
22010 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22012 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22013 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22015 LIBOBJS
=$ac_libobjs
22017 LTLIBOBJS
=$ac_ltlibobjs
22021 : ${CONFIG_STATUS=./config.status}
22022 ac_clean_files_save
=$ac_clean_files
22023 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22026 cat >$CONFIG_STATUS <<_ACEOF
22028 # Generated by $as_me.
22029 # Run this file to recreate the current configuration.
22030 # Compiler output produced by configure, useful for debugging
22031 # configure, is in config.log if it exists.
22034 ac_cs_recheck=false
22036 SHELL=\${CONFIG_SHELL-$SHELL}
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 ## --------------------- ##
22041 ## M4sh Initialization. ##
22042 ## --------------------- ##
22044 # Be Bourne compatible
22045 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22049 # is contrary to our usage. Disable this feature.
22050 alias -g '${1+"$@"}'='"$@"'
22051 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22054 DUALCASE
=1; export DUALCASE
# for MKS sh
22056 # Support unset when possible.
22057 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22064 # Work around bugs in pre-3.0 UWIN ksh.
22065 $as_unset ENV MAIL MAILPATH
22072 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22073 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22074 LC_TELEPHONE LC_TIME
22076 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22077 eval $as_var=C
; export $as_var
22083 # Required to use basename.
22084 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22090 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22091 as_basename
=basename
22097 # Name of the executable.
22098 as_me
=`$as_basename "$0" ||
22099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22100 X"$0" : 'X\(//\)$' \| \
22101 X"$0" : 'X\(/\)$' \| \
22102 . : '\(.\)' 2>/dev/null ||
22104 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22105 /^X\/\(\/\/\)$/{ s//\1/; q; }
22106 /^X\/\(\/\).*/{ s//\1/; q; }
22110 # PATH needs CR, and LINENO needs CR and PATH.
22111 # Avoid depending upon Character Ranges.
22112 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22113 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22114 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22115 as_cr_digits
='0123456789'
22116 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22118 # The user is always right.
22119 if test "${PATH_SEPARATOR+set}" != set; then
22120 echo "#! /bin/sh" >conf$$.sh
22121 echo "exit 0" >>conf$$.sh
22123 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22132 as_lineno_1
=$LINENO
22133 as_lineno_2
=$LINENO
22134 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22135 test "x$as_lineno_1" != "x$as_lineno_2" &&
22136 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22137 # Find who we are. Look in the path if we contain no path at all
22140 *[\\/]* ) as_myself
=$0 ;;
22141 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22142 for as_dir
in $PATH
22145 test -z "$as_dir" && as_dir
=.
22146 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22151 # We did not find ourselves, most probably we were run as `sh COMMAND'
22152 # in which case we are not to be found in the path.
22153 if test "x$as_myself" = x
; then
22156 if test ! -f "$as_myself"; then
22157 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22158 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22159 { (exit 1); exit 1; }; }
22161 case $CONFIG_SHELL in
22163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22164 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22167 test -z "$as_dir" && as_dir
=.
22168 for as_base
in sh bash ksh sh5
; do
22171 if ("$as_dir/$as_base" -c '
22172 as_lineno_1=$LINENO
22173 as_lineno_2=$LINENO
22174 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22175 test "x$as_lineno_1" != "x$as_lineno_2" &&
22176 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22177 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22178 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22179 CONFIG_SHELL
=$as_dir/$as_base
22180 export CONFIG_SHELL
22181 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22189 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22190 # uniformly replaced by the line number. The first 'sed' inserts a
22191 # line-number line before each line; the second 'sed' does the real
22192 # work. The second script uses 'N' to pair each line-number line
22193 # with the numbered line, and appends trailing '-' during
22194 # substitution so that $LINENO is not a special case at line end.
22195 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22196 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22197 sed '=' <$as_myself |
22202 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22205 s,^['$as_cr_digits']*\n,,
22206 ' >$as_me.lineno
&&
22207 chmod +x
$as_me.lineno ||
22208 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22209 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22210 { (exit 1); exit 1; }; }
22212 # Don't try to exec as it changes $[0], causing all sort of problems
22213 # (the dirname of $[0] is not the place where we might find the
22214 # original and so on. Autoconf is especially sensible to this).
22216 # Exit status is that of the last command.
22221 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22222 *c
*,-n*) ECHO_N
= ECHO_C
='
22224 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22225 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22228 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22234 rm -f conf$$ conf$$.exe conf$$.
file
22236 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22237 # We could just check for DJGPP; but this test a) works b) is more generic
22238 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22239 if test -f conf$$.exe
; then
22240 # Don't use ln at all; we don't have any links
22245 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22250 rm -f conf$$ conf$$.exe conf$$.
file
22252 if mkdir
-p .
2>/dev
/null
; then
22255 test -d .
/-p && rmdir .
/-p
22259 as_executable_p
="test -f"
22261 # Sed expression to map a string onto a valid CPP name.
22262 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22264 # Sed expression to map a string onto a valid variable name.
22265 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22269 # We need space, tab and new line, in precisely that order.
22279 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22280 # report actual input values of CONFIG_FILES etc. instead of their
22281 # values after options handling. Logging --version etc. is OK.
22285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22286 ## Running $as_me. ##
22291 This file was extended by python $as_me 2.5, which was
22292 generated by GNU Autoconf 2.59. Invocation command line was
22294 CONFIG_FILES = $CONFIG_FILES
22295 CONFIG_HEADERS = $CONFIG_HEADERS
22296 CONFIG_LINKS = $CONFIG_LINKS
22297 CONFIG_COMMANDS = $CONFIG_COMMANDS
22301 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22305 # Files that config.status was made for.
22306 if test -n "$ac_config_files"; then
22307 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22310 if test -n "$ac_config_headers"; then
22311 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22314 if test -n "$ac_config_links"; then
22315 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22318 if test -n "$ac_config_commands"; then
22319 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22322 cat >>$CONFIG_STATUS <<\_ACEOF
22325 \`$as_me' instantiates files from templates according to the
22326 current configuration.
22328 Usage: $0 [OPTIONS] [FILE]...
22330 -h, --help print this help, then exit
22331 -V, --version print version number, then exit
22332 -q, --quiet do not print progress messages
22333 -d, --debug don't remove temporary files
22334 --recheck update $as_me by reconfiguring in the same conditions
22335 --file=FILE[:TEMPLATE]
22336 instantiate the configuration file FILE
22337 --header=FILE[:TEMPLATE]
22338 instantiate the configuration header FILE
22340 Configuration files:
22343 Configuration headers:
22346 Report bugs to <bug-autoconf@gnu.org>."
22349 cat >>$CONFIG_STATUS <<_ACEOF
22351 python config.status 2.5
22352 configured by $0, generated by GNU Autoconf 2.59,
22353 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22355 Copyright (C) 2003 Free Software Foundation, Inc.
22356 This config.status script is free software; the Free Software Foundation
22357 gives unlimited permission to copy, distribute and modify it."
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 # If no file are specified by the user, then we need to provide default
22364 # value. By we need to know if files were specified by the user.
22370 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22371 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22379 *) # This is not an option, so the user has probably given explicit
22382 ac_need_defaults
=false
;;
22386 # Handling of the options.
22388 cat >>$CONFIG_STATUS <<\_ACEOF
22389 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22391 --version |
--vers* |
-V )
22392 echo "$ac_cs_version"; exit 0 ;;
22394 # Conflict between --help and --header
22395 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22396 Try \`$0 --help' for more information." >&5
22397 echo "$as_me: error: ambiguous option: $1
22398 Try \`$0 --help' for more information." >&2;}
22399 { (exit 1); exit 1; }; };;
22400 --help |
--hel |
-h )
22401 echo "$ac_cs_usage"; exit 0 ;;
22402 --debug |
--d* |
-d )
22404 --file |
--fil |
--fi |
--f )
22406 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22407 ac_need_defaults
=false
;;
22408 --header |
--heade |
--head |
--hea )
22410 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22411 ac_need_defaults
=false
;;
22412 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22413 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22416 # This is an error.
22417 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22418 Try \`$0 --help' for more information." >&5
22419 echo "$as_me: error: unrecognized option: $1
22420 Try \`$0 --help' for more information." >&2;}
22421 { (exit 1); exit 1; }; } ;;
22423 *) ac_config_targets
="$ac_config_targets $1" ;;
22429 ac_configure_extra_args
=
22431 if $ac_cs_silent; then
22433 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22437 cat >>$CONFIG_STATUS <<_ACEOF
22438 if \$ac_cs_recheck; then
22439 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22440 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22449 cat >>$CONFIG_STATUS <<\_ACEOF
22450 for ac_config_target
in $ac_config_targets
22452 case "$ac_config_target" in
22453 # Handling of arguments.
22454 "Mac/OSX/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/Makefile" ;;
22455 "Mac/OSX/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/PythonLauncher/Makefile" ;;
22456 "Mac/OSX/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/OSX/IDLE/Makefile" ;;
22457 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22458 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22459 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22460 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22461 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22462 { (exit 1); exit 1; }; };;
22466 # If the user did not use the arguments to specify the items to instantiate,
22467 # then the envvar interface is used. Set only those that are not.
22468 # We use the long form for the default assignment because of an extremely
22469 # bizarre bug on SunOS 4.1.3.
22470 if $ac_need_defaults; then
22471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22475 # Have a temporary directory for convenience. Make it in the build tree
22476 # simply because there is no reason to put it here, and in addition,
22477 # creating and moving files from /tmp can sometimes cause problems.
22478 # Create a temporary directory, and hook for its removal unless debugging.
22481 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22482 trap '{ (exit 1); exit 1; }' 1 2 13 15
22485 # Create a (secure) tmp directory for tmp files.
22488 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22489 test -n "$tmp" && test -d "$tmp"
22492 tmp
=.
/confstat$$
-$RANDOM
22493 (umask 077 && mkdir
$tmp)
22496 echo "$me: cannot create a temporary directory in ." >&2
22497 { (exit 1); exit 1; }
22502 cat >>$CONFIG_STATUS <<_ACEOF
22505 # CONFIG_FILES section.
22508 # No need to generate the scripts if there are no CONFIG_FILES.
22509 # This happens for instance when ./config.status config.h
22510 if test -n "\$CONFIG_FILES"; then
22511 # Protect against being on the right side of a sed subst in config.status.
22512 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22513 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22514 s,@SHELL@,$SHELL,;t t
22515 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22516 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22517 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22518 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22519 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22520 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22521 s,@exec_prefix@,$exec_prefix,;t t
22522 s,@prefix@,$prefix,;t t
22523 s,@program_transform_name@,$program_transform_name,;t t
22524 s,@bindir@,$bindir,;t t
22525 s,@sbindir@,$sbindir,;t t
22526 s,@libexecdir@,$libexecdir,;t t
22527 s,@datadir@,$datadir,;t t
22528 s,@sysconfdir@,$sysconfdir,;t t
22529 s,@sharedstatedir@,$sharedstatedir,;t t
22530 s,@localstatedir@,$localstatedir,;t t
22531 s,@libdir@,$libdir,;t t
22532 s,@includedir@,$includedir,;t t
22533 s,@oldincludedir@,$oldincludedir,;t t
22534 s,@infodir@,$infodir,;t t
22535 s,@mandir@,$mandir,;t t
22536 s,@build_alias@,$build_alias,;t t
22537 s,@host_alias@,$host_alias,;t t
22538 s,@target_alias@,$target_alias,;t t
22539 s,@DEFS@,$DEFS,;t t
22540 s,@ECHO_C@,$ECHO_C,;t t
22541 s,@ECHO_N@,$ECHO_N,;t t
22542 s,@ECHO_T@,$ECHO_T,;t t
22543 s,@LIBS@,$LIBS,;t t
22544 s,@VERSION@,$VERSION,;t t
22545 s,@SOVERSION@,$SOVERSION,;t t
22546 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22547 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22548 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22549 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22550 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22551 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22552 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22553 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22554 s,@MACHDEP@,$MACHDEP,;t t
22555 s,@SGI_ABI@,$SGI_ABI,;t t
22556 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22557 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22558 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22559 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22561 s,@CFLAGS@,$CFLAGS,;t t
22562 s,@LDFLAGS@,$LDFLAGS,;t t
22563 s,@CPPFLAGS@,$CPPFLAGS,;t t
22564 s,@ac_ct_CC@,$ac_ct_CC,;t t
22565 s,@EXEEXT@,$EXEEXT,;t t
22566 s,@OBJEXT@,$OBJEXT,;t t
22568 s,@MAINCC@,$MAINCC,;t t
22570 s,@EGREP@,$EGREP,;t t
22571 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22572 s,@LIBRARY@,$LIBRARY,;t t
22573 s,@LDLIBRARY@,$LDLIBRARY,;t t
22574 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22575 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22576 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22577 s,@INSTSONAME@,$INSTSONAME,;t t
22578 s,@RUNSHARED@,$RUNSHARED,;t t
22579 s,@LINKCC@,$LINKCC,;t t
22580 s,@RANLIB@,$RANLIB,;t t
22581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22583 s,@SVNVERSION@,$SVNVERSION,;t t
22584 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22585 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22586 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22589 s,@BASECFLAGS@,$BASECFLAGS,;t t
22590 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22591 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22593 s,@LDSHARED@,$LDSHARED,;t t
22594 s,@BLDSHARED@,$BLDSHARED,;t t
22595 s,@CCSHARED@,$CCSHARED,;t t
22596 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22597 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22598 s,@SHLIBS@,$SHLIBS,;t t
22599 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22600 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22601 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22602 s,@LDLAST@,$LDLAST,;t t
22603 s,@THREADOBJ@,$THREADOBJ,;t t
22604 s,@DLINCLDIR@,$DLINCLDIR,;t t
22605 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22606 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22607 s,@TRUE@,$TRUE,;t t
22608 s,@LIBOBJS@,$LIBOBJS,;t t
22609 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22610 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22611 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22612 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22613 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22614 s,@LIBM@,$LIBM,;t t
22615 s,@LIBC@,$LIBC,;t t
22616 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22617 s,@THREADHEADERS@,$THREADHEADERS,;t t
22618 s,@SRCDIRS@,$SRCDIRS,;t t
22619 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22624 cat >>$CONFIG_STATUS <<\_ACEOF
22625 # Split the substitutions into bite-sized pieces for seds with
22626 # small command number limits, like on Digital OSF/1 and HP-UX.
22627 ac_max_sed_lines
=48
22628 ac_sed_frag
=1 # Number of current file.
22629 ac_beg
=1 # First line for current file.
22630 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22633 while $ac_more_lines; do
22634 if test $ac_beg -gt 1; then
22635 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22637 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22639 if test ! -s $tmp/subs.frag
; then
22640 ac_more_lines
=false
22642 # The purpose of the label and of the branching condition is to
22643 # speed up the sed processing (if there are no `@' at all, there
22644 # is no need to browse any of the substitutions).
22645 # These are the two extra sed commands mentioned above.
22647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22648 if test -z "$ac_sed_cmds"; then
22649 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22651 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22653 ac_sed_frag
=`expr $ac_sed_frag + 1`
22655 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22658 if test -z "$ac_sed_cmds"; then
22661 fi # test -n "$CONFIG_FILES"
22664 cat >>$CONFIG_STATUS <<\_ACEOF
22665 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22668 - |
*:- |
*:-:* ) # input from stdin
22670 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22671 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22672 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22673 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22674 * ) ac_file_in
=$ac_file.
in ;;
22677 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22678 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22680 X"$ac_file" : 'X\(//\)[^/]' \| \
22681 X"$ac_file" : 'X\(//\)$' \| \
22682 X"$ac_file" : 'X\(/\)' \| \
22683 . : '\(.\)' 2>/dev/null ||
22685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22687 /^X\(\/\/\)$/{ s//\1/; q; }
22688 /^X\(\/\).*/{ s//\1/; q; }
22690 { if $as_mkdir_p; then
22695 while test ! -d "$as_dir"; do
22696 as_dirs
="$as_dir $as_dirs"
22697 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22699 X"$as_dir" : 'X\(//\)[^/]' \| \
22700 X"$as_dir" : 'X\(//\)$' \| \
22701 X"$as_dir" : 'X\(/\)' \| \
22702 . : '\(.\)' 2>/dev/null ||
22704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22706 /^X\(\/\/\)$/{ s//\1/; q; }
22707 /^X\(\/\).*/{ s//\1/; q; }
22710 test ! -n "$as_dirs" || mkdir
$as_dirs
22711 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22713 { (exit 1); exit 1; }; }; }
22717 if test "$ac_dir" != .
; then
22718 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22719 # A "../" for each directory in $ac_dir_suffix.
22720 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22722 ac_dir_suffix
= ac_top_builddir
=
22726 .
) # No --srcdir option. We are building in place.
22728 if test -z "$ac_top_builddir"; then
22731 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22733 [\\/]* | ?
:[\\/]* ) # Absolute path.
22734 ac_srcdir
=$srcdir$ac_dir_suffix;
22735 ac_top_srcdir
=$srcdir ;;
22736 *) # Relative path.
22737 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22738 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22741 # Do not use `cd foo && pwd` to compute absolute paths, because
22742 # the directories may not exist.
22744 .
) ac_abs_builddir
="$ac_dir";;
22747 .
) ac_abs_builddir
=`pwd`;;
22748 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22749 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22752 case $ac_abs_builddir in
22753 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22755 case ${ac_top_builddir}.
in
22756 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22757 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22758 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22761 case $ac_abs_builddir in
22762 .
) ac_abs_srcdir
=$ac_srcdir;;
22765 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22766 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22767 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22770 case $ac_abs_builddir in
22771 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22773 case $ac_top_srcdir in
22774 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22775 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22776 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22782 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22783 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22786 if test x
"$ac_file" != x-
; then
22787 { echo "$as_me:$LINENO: creating $ac_file" >&5
22788 echo "$as_me: creating $ac_file" >&6;}
22791 # Let's still pretend it is `configure' which instantiates (i.e., don't
22792 # use $as_me), people would be surprised to read:
22793 # /* config.h. Generated by config.status. */
22794 if test x
"$ac_file" = x-
; then
22797 configure_input
="$ac_file. "
22799 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22800 sed 's,.*/,,'` by configure."
22802 # First look for the input files in the build tree, otherwise in the
22804 ac_file_inputs
=`IFS=:
22805 for f in $ac_file_in; do
22807 -) echo $tmp/stdin ;;
22809 # Absolute (can't be DOS-style, as IFS=:)
22810 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22811 echo "$as_me: error: cannot find input file: $f" >&2;}
22812 { (exit 1); exit 1; }; }
22815 if test -f "$f"; then
22818 elif test -f "$srcdir/$f"; then
22823 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22824 echo "$as_me: error: cannot find input file: $f" >&2;}
22825 { (exit 1); exit 1; }; }
22828 done` ||
{ (exit 1); exit 1; }
22830 cat >>$CONFIG_STATUS <<_ACEOF
22834 cat >>$CONFIG_STATUS <<\_ACEOF
22836 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22837 s
,@configure_input@
,$configure_input,;t t
22838 s
,@srcdir@
,$ac_srcdir,;t t
22839 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22840 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22841 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22842 s
,@builddir@
,$ac_builddir,;t t
22843 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22844 s
,@top_builddir@
,$ac_top_builddir,;t t
22845 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22846 s
,@INSTALL@
,$ac_INSTALL,;t t
22847 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22849 if test x"$ac_file" != x-; then
22850 mv $tmp/out $ac_file
22858 cat >>$CONFIG_STATUS <<\_ACEOF
22861 # CONFIG_HEADER section.
22864 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22865 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22867 # ac_d sets the value in "#define NAME VALUE" lines.
22868 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22869 ac_dB
='[ ].*$,\1#\2'
22872 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22873 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22874 ac_uB
='$,\1#\2define\3'
22878 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22881 - |
*:- |
*:-:* ) # input from stdin
22883 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22884 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22885 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22886 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22887 * ) ac_file_in
=$ac_file.
in ;;
22890 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22891 echo "$as_me: creating $ac_file" >&6;}
22893 # First look for the input files in the build tree, otherwise in the
22895 ac_file_inputs
=`IFS=:
22896 for f in $ac_file_in; do
22898 -) echo $tmp/stdin ;;
22900 # Absolute (can't be DOS-style, as IFS=:)
22901 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22902 echo "$as_me: error: cannot find input file: $f" >&2;}
22903 { (exit 1); exit 1; }; }
22904 # Do quote $f, to prevent DOS paths from being IFS'd.
22907 if test -f "$f"; then
22910 elif test -f "$srcdir/$f"; then
22915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22916 echo "$as_me: error: cannot find input file: $f" >&2;}
22917 { (exit 1); exit 1; }; }
22920 done` ||
{ (exit 1); exit 1; }
22921 # Remove the trailing spaces.
22922 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22926 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22927 # `conftest.undefs', that substitutes the proper values into
22928 # config.h.in to produce config.h. The first handles `#define'
22929 # templates, and the second `#undef' templates.
22930 # And first: Protect against being on the right side of a sed subst in
22931 # config.status. Protect against being in an unquoted here document
22932 # in config.status.
22933 rm -f conftest.defines conftest.undefs
22934 # Using a here document instead of a string reduces the quoting nightmare.
22935 # Putting comments in sed scripts is not portable.
22937 # `end' is used to avoid that the second main sed command (meant for
22938 # 0-ary CPP macros) applies to n-ary macro definitions.
22939 # See the Autoconf documentation for `clear'.
22940 cat >confdef2sed.
sed <<\_ACEOF
22945 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22947 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22950 # If some macros were called several times there might be several times
22951 # the same #defines, which is useless. Nevertheless, we may not want to
22952 # sort them, since we want the *last* AC-DEFINE to be honored.
22953 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22954 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22955 rm -f confdef2sed.sed
22957 # This sed command replaces #undef with comments. This is necessary, for
22958 # example, in the case of _POSIX_SOURCE, which is predefined and required
22959 # on some systems where configure will not decide to define it.
22960 cat >>conftest.undefs <<\_ACEOF
22961 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22964 # Break up conftest.defines because some shells have a limit on the size
22965 # of here documents, and old seds have small limits too (100 cmds).
22966 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22967 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22968 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22969 echo ' :' >>$CONFIG_STATUS
22970 rm -f conftest.tail
22971 while grep . conftest.defines >/dev/null
22973 # Write a limited-size here document to $tmp/defines.sed.
22974 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22975 # Speed up: don't consider the non `#define' lines.
22976 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22977 # Work around the forget-to-reset-the-flag bug.
22978 echo 't clr' >>$CONFIG_STATUS
22979 echo ': clr' >>$CONFIG_STATUS
22980 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22982 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22984 mv $tmp/out $tmp/in
22986 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22987 rm -f conftest.defines
22988 mv conftest.
tail conftest.defines
22990 rm -f conftest.defines
22991 echo ' fi # grep' >>$CONFIG_STATUS
22992 echo >>$CONFIG_STATUS
22994 # Break up conftest.undefs because some shells have a limit on the size
22995 # of here documents, and old seds have small limits too (100 cmds).
22996 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22997 rm -f conftest.
tail
22998 while grep . conftest.undefs
>/dev
/null
23000 # Write a limited-size here document to $tmp/undefs.sed.
23001 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23002 # Speed up: don't consider the non
`#undef'
23003 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23004 # Work around the forget-to-reset-the-flag bug.
23005 echo 't clr' >>$CONFIG_STATUS
23006 echo ': clr' >>$CONFIG_STATUS
23007 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23009 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23011 mv $tmp/out $tmp/in
23013 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23014 rm -f conftest.undefs
23015 mv conftest.tail conftest.undefs
23017 rm -f conftest.undefs
23019 cat >>$CONFIG_STATUS <<\_ACEOF
23020 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23021 # use $as_me), people would be surprised to read:
23022 # /* config.h. Generated by config.status. */
23023 if test x
"$ac_file" = x-
; then
23024 echo "/* Generated by configure. */" >$tmp/config.h
23026 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23028 cat $tmp/in >>$tmp/config.h
23030 if test x
"$ac_file" != x-
; then
23031 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23032 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23033 echo "$as_me: $ac_file is unchanged" >&6;}
23035 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23037 X"$ac_file" : 'X\(//\)[^/]' \| \
23038 X"$ac_file" : 'X\(//\)$' \| \
23039 X"$ac_file" : '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; }
23047 { if $as_mkdir_p; then
23052 while test ! -d "$as_dir"; do
23053 as_dirs
="$as_dir $as_dirs"
23054 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23056 X"$as_dir" : 'X\(//\)[^/]' \| \
23057 X"$as_dir" : 'X\(//\)$' \| \
23058 X"$as_dir" : 'X\(/\)' \| \
23059 . : '\(.\)' 2>/dev/null ||
23061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23063 /^X\(\/\/\)$/{ s//\1/; q; }
23064 /^X\(\/\).*/{ s//\1/; q; }
23067 test ! -n "$as_dirs" || mkdir
$as_dirs
23068 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23069 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23070 { (exit 1); exit 1; }; }; }
23073 mv $tmp/config.h
$ac_file
23077 rm -f $tmp/config.h
23082 cat >>$CONFIG_STATUS <<\_ACEOF
23084 { (exit 0); exit 0; }
23086 chmod +x
$CONFIG_STATUS
23087 ac_clean_files
=$ac_clean_files_save
23090 # configure is writing to config.log, and then calls config.status.
23091 # config.status does its own redirection, appending to config.log.
23092 # Unfortunately, on DOS this fails, as config.log is still kept open
23093 # by configure, so config.status won't be able to write to it; its
23094 # output is simply discarded. So we exec the FD to /dev/null,
23095 # effectively closing config.log, so it can be properly (re)opened and
23096 # appended to by config.status. When coming back to configure, we
23097 # need to make the FD available again.
23098 if test "$no_create" != yes; then
23100 ac_config_status_args
=
23101 test "$silent" = yes &&
23102 ac_config_status_args
="$ac_config_status_args --quiet"
23104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23107 # would make configure fail if this is the last instruction.
23108 $ac_cs_success ||
{ (exit 1); exit 1; }
23112 echo "creating Modules/Setup"
23113 if test ! -f Modules
/Setup
23115 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23118 echo "creating Modules/Setup.local"
23119 if test ! -f Modules
/Setup.
local
23121 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23124 echo "creating Makefile"
23125 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23126 -s Modules Modules
/Setup.config \
23127 Modules
/Setup.
local Modules
/Setup
23128 mv config.c Modules